_card.scss 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. //
  2. // Base styles
  3. //
  4. .card {
  5. position: relative;
  6. display: flex;
  7. flex-direction: column;
  8. min-width: 0; // See https://github.com/twbs/bootstrap/pull/22740#issuecomment-305868106
  9. height: $card-height;
  10. word-wrap: break-word;
  11. background-color: $card-bg;
  12. background-clip: border-box;
  13. border: $card-border-width solid $card-border-color;
  14. @include border-radius($card-border-radius);
  15. > hr {
  16. margin-right: 0;
  17. margin-left: 0;
  18. }
  19. > .list-group {
  20. border-top: inherit;
  21. border-bottom: inherit;
  22. &:first-child {
  23. border-top-width: 0;
  24. @include border-top-radius($card-inner-border-radius);
  25. }
  26. &:last-child {
  27. border-bottom-width: 0;
  28. @include border-bottom-radius($card-inner-border-radius);
  29. }
  30. }
  31. // Due to specificity of the above selector (`.card > .list-group`), we must
  32. // use a child selector here to prevent double borders.
  33. > .card-header + .list-group,
  34. > .list-group + .card-footer {
  35. border-top: 0;
  36. }
  37. }
  38. .card-body {
  39. // Enable `flex-grow: 1` for decks and groups so that card blocks take up
  40. // as much space as possible, ensuring footers are aligned to the bottom.
  41. flex: 1 1 auto;
  42. // Workaround for the image size bug in IE
  43. // See: https://github.com/twbs/bootstrap/pull/28855
  44. min-height: 1px;
  45. padding: $card-spacer-x;
  46. color: $card-color;
  47. }
  48. .card-title {
  49. margin-bottom: $card-spacer-y;
  50. }
  51. .card-subtitle {
  52. margin-top: -$card-spacer-y / 2;
  53. margin-bottom: 0;
  54. }
  55. .card-text:last-child {
  56. margin-bottom: 0;
  57. }
  58. .card-link {
  59. @include hover() {
  60. text-decoration: none;
  61. }
  62. + .card-link {
  63. margin-left: $card-spacer-x;
  64. }
  65. }
  66. //
  67. // Optional textual caps
  68. //
  69. .card-header {
  70. padding: $card-spacer-y $card-spacer-x;
  71. margin-bottom: 0; // Removes the default margin-bottom of <hN>
  72. color: $card-cap-color;
  73. background-color: $card-cap-bg;
  74. border-bottom: $card-border-width solid $card-border-color;
  75. &:first-child {
  76. @include border-radius(
  77. $card-inner-border-radius $card-inner-border-radius 0 0
  78. );
  79. }
  80. }
  81. .card-footer {
  82. padding: $card-spacer-y $card-spacer-x;
  83. color: $card-cap-color;
  84. background-color: $card-cap-bg;
  85. border-top: $card-border-width solid $card-border-color;
  86. &:last-child {
  87. @include border-radius(
  88. 0 0 $card-inner-border-radius $card-inner-border-radius
  89. );
  90. }
  91. }
  92. //
  93. // Header navs
  94. //
  95. .card-header-tabs {
  96. margin-right: -$card-spacer-x / 2;
  97. margin-bottom: -$card-spacer-y;
  98. margin-left: -$card-spacer-x / 2;
  99. border-bottom: 0;
  100. }
  101. .card-header-pills {
  102. margin-right: -$card-spacer-x / 2;
  103. margin-left: -$card-spacer-x / 2;
  104. }
  105. // Card image
  106. .card-img-overlay {
  107. position: absolute;
  108. top: 0;
  109. right: 0;
  110. bottom: 0;
  111. left: 0;
  112. padding: $card-img-overlay-padding;
  113. @include border-radius($card-inner-border-radius);
  114. }
  115. .card-img,
  116. .card-img-top,
  117. .card-img-bottom {
  118. flex-shrink: 0; // For IE: https://github.com/twbs/bootstrap/issues/29396
  119. width: 300px;
  120. height: 150px;
  121. position: relative;
  122. margin-left: auto;
  123. margin-right: auto;
  124. // width: 345.73px;
  125. // height: 185px;
  126. // Required because we use flexbox and this inherently applies align-self: stretch
  127. }
  128. .card-img,
  129. .card-img-top {
  130. @include border-top-radius($card-inner-border-radius);
  131. }
  132. .card-img,
  133. .card-img-bottom {
  134. @include border-bottom-radius($card-inner-border-radius);
  135. }
  136. // Card deck
  137. .card-deck {
  138. .card {
  139. margin-bottom: $card-deck-margin;
  140. }
  141. @include media-breakpoint-up(sm) {
  142. display: flex;
  143. flex-flow: row wrap;
  144. margin-right: -$card-deck-margin;
  145. margin-left: -$card-deck-margin;
  146. .card {
  147. // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
  148. flex: 1 0 0%;
  149. margin-right: $card-deck-margin;
  150. margin-bottom: 0; // Override the default
  151. margin-left: $card-deck-margin;
  152. }
  153. }
  154. }
  155. //
  156. // Card groups
  157. //
  158. .card-group {
  159. // The child selector allows nested `.card` within `.card-group`
  160. // to display properly.
  161. > .card {
  162. margin-bottom: $card-group-margin;
  163. }
  164. @include media-breakpoint-up(sm) {
  165. display: flex;
  166. flex-flow: row wrap;
  167. // The child selector allows nested `.card` within `.card-group`
  168. // to display properly.
  169. > .card {
  170. // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
  171. flex: 1 0 0%;
  172. margin-bottom: 0;
  173. + .card {
  174. margin-left: 0;
  175. border-left: 0;
  176. }
  177. // Handle rounded corners
  178. @if $enable-rounded {
  179. &:not(:last-child) {
  180. @include border-right-radius(0);
  181. .card-img-top,
  182. .card-header {
  183. // stylelint-disable-next-line property-disallowed-list
  184. border-top-right-radius: 0;
  185. }
  186. .card-img-bottom,
  187. .card-footer {
  188. // stylelint-disable-next-line property-disallowed-list
  189. border-bottom-right-radius: 0;
  190. }
  191. }
  192. &:not(:first-child) {
  193. @include border-left-radius(0);
  194. .card-img-top,
  195. .card-header {
  196. // stylelint-disable-next-line property-disallowed-list
  197. border-top-left-radius: 0;
  198. }
  199. .card-img-bottom,
  200. .card-footer {
  201. // stylelint-disable-next-line property-disallowed-list
  202. border-bottom-left-radius: 0;
  203. }
  204. }
  205. }
  206. }
  207. }
  208. }
  209. //
  210. // Columns
  211. //
  212. .card-columns {
  213. .card {
  214. margin-bottom: $card-columns-margin;
  215. }
  216. @include media-breakpoint-up(sm) {
  217. column-count: $card-columns-count;
  218. column-gap: $card-columns-gap;
  219. orphans: 1;
  220. widows: 1;
  221. .card {
  222. display: inline-block; // Don't let them vertically span multiple columns
  223. width: 100%; // Don't let their width change
  224. }
  225. }
  226. }
  227. //
  228. // Accordion
  229. //
  230. .accordion {
  231. overflow-anchor: none;
  232. > .card {
  233. overflow: hidden;
  234. &:not(:last-of-type) {
  235. border-bottom: 0;
  236. @include border-bottom-radius(0);
  237. }
  238. &:not(:first-of-type) {
  239. @include border-top-radius(0);
  240. }
  241. > .card-header {
  242. @include border-radius(0);
  243. margin-bottom: -$card-border-width;
  244. }
  245. }
  246. }
  247. .header-1 {
  248. background: #3e3a8e;
  249. box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  250. border-radius: 5px;
  251. // width: 830px;
  252. margin-bottom: 30px;
  253. }
  254. .card-title-1 {
  255. margin-left: 10px;
  256. padding: 10px;
  257. font-size: 25px;
  258. text-align: left;
  259. color: rgba(255, 255, 255, 0.9);
  260. }
  261. .border-radius-login {
  262. border-radius: 5px;
  263. }
  264. .header-penjadwalan {
  265. background: #3e3a8e;
  266. box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  267. border-radius: 5px;
  268. // width: 830px;
  269. height: 45px;
  270. margin: 20px;
  271. }
  272. .warna-penjadwalan-block {
  273. height: 35px;
  274. width: 60px;
  275. margin-left: auto;
  276. }
  277. .home-1 {
  278. margin-left: 20px;
  279. margin-right: 10px;
  280. margin-top: 20px;
  281. }
  282. .home-1-1{
  283. margin-left: 20px;
  284. margin-right: 10px;
  285. margin-top: -40px;
  286. }
  287. .home-2 {
  288. margin-top: 10%;
  289. }
  290. @media screen and (max-width: 450px) {
  291. .txt-size {
  292. font-weight: 400;
  293. color: black;
  294. }
  295. .home-1 {
  296. margin: 0;
  297. }
  298. }
  299. .card-over {
  300. overflow: auto;
  301. }
  302. .f-size {
  303. margin-left: 10px;
  304. }
  305. .w-40 {
  306. width: 100px;
  307. }
  308. .margin-botton-20 {
  309. margin-bottom: 20px;
  310. }
  311. .text-tahun {
  312. font-size: 20px;
  313. text-align: center;
  314. }
  315. .font-color-white {
  316. color: #ffffff;
  317. }
  318. .font-color-black {
  319. color: black;
  320. }
  321. .border-2 {
  322. border-width: 0.5px;
  323. border-color: rgb(124, 122, 122);
  324. }
  325. .cd-home-1{
  326. display: inline;
  327. position: relative;
  328. // background-color: red;
  329. // min-width: 300px;
  330. float: left;
  331. }
  332. .cd-home-2{
  333. display: inline;
  334. // background-color: rgb(50, 0, 230);
  335. // min-width: 300px;
  336. float: right;
  337. }
  338. .dropzone-style-1{
  339. // background-color: #9e9e9e;
  340. // width: 50px;
  341. padding-top: 10px;
  342. border: 1px solid #dde6e9;
  343. min-height: 70px;
  344. border-radius: 5px;
  345. cursor: pointer;
  346. }
  347. .center-ver-hor{
  348. display: flex;
  349. align-items: center;
  350. justify-content: center;
  351. height: 100%;
  352. }
  353. .invalid-mv:focus:invalid{
  354. border: solid 1px red;
  355. // background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-exclamation-triangle' viewBox='0 0 16 16'%3E%3Cpath d='M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017.163.163 0 0 1-.054-.06.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z'/%3E%3Cpath d='M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995z'/%3E%3C/svg%3E") no-repeat 95% 50% ;
  356. }
  357. .invalid-mv:focus:valid{
  358. border: solid 1px green;
  359. }