_card.scss 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  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($card-inner-border-radius $card-inner-border-radius 0 0);
  77. }
  78. }
  79. .card-footer {
  80. padding: $card-spacer-y $card-spacer-x;
  81. color: $card-cap-color;
  82. background-color: $card-cap-bg;
  83. border-top: $card-border-width solid $card-border-color;
  84. &:last-child {
  85. @include border-radius(0 0 $card-inner-border-radius $card-inner-border-radius );
  86. }
  87. }
  88. //
  89. // Header navs
  90. //
  91. .card-header-tabs {
  92. margin-right: -$card-spacer-x / 2;
  93. margin-bottom: -$card-spacer-y;
  94. margin-left: -$card-spacer-x / 2;
  95. border-bottom: 0;
  96. }
  97. .card-header-pills {
  98. margin-right: -$card-spacer-x / 2;
  99. margin-left: -$card-spacer-x / 2;
  100. }
  101. // Card image
  102. .card-img-overlay {
  103. position: absolute;
  104. top: 0;
  105. right: 0;
  106. bottom: 0;
  107. left: 0;
  108. padding: $card-img-overlay-padding;
  109. @include border-radius($card-inner-border-radius);
  110. }
  111. .card-img,
  112. .card-img-top,
  113. .card-img-bottom {
  114. flex-shrink: 0; // For IE: https://github.com/twbs/bootstrap/issues/29396
  115. width: 300px;
  116. height: 150px;
  117. position: relative;
  118. margin-left: auto;
  119. margin-right: auto;
  120. // width: 345.73px;
  121. // height: 185px;
  122. // Required because we use flexbox and this inherently applies align-self: stretch
  123. }
  124. .card-img,
  125. .card-img-top {
  126. @include border-top-radius($card-inner-border-radius);
  127. }
  128. .card-img,
  129. .card-img-bottom {
  130. @include border-bottom-radius($card-inner-border-radius);
  131. }
  132. // Card deck
  133. .card-deck {
  134. .card {
  135. margin-bottom: $card-deck-margin;
  136. }
  137. @include media-breakpoint-up(sm) {
  138. display: flex;
  139. flex-flow: row wrap;
  140. margin-right: -$card-deck-margin;
  141. margin-left: -$card-deck-margin;
  142. .card {
  143. // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
  144. flex: 1 0 0%;
  145. margin-right: $card-deck-margin;
  146. margin-bottom: 0; // Override the default
  147. margin-left: $card-deck-margin;
  148. }
  149. }
  150. }
  151. //
  152. // Card groups
  153. //
  154. .card-group {
  155. // The child selector allows nested `.card` within `.card-group`
  156. // to display properly.
  157. >.card {
  158. margin-bottom: $card-group-margin;
  159. }
  160. @include media-breakpoint-up(sm) {
  161. display: flex;
  162. flex-flow: row wrap;
  163. // The child selector allows nested `.card` within `.card-group`
  164. // to display properly.
  165. >.card {
  166. // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
  167. flex: 1 0 0%;
  168. margin-bottom: 0;
  169. +.card {
  170. margin-left: 0;
  171. border-left: 0;
  172. }
  173. // Handle rounded corners
  174. @if $enable-rounded {
  175. &:not(:last-child) {
  176. @include border-right-radius(0);
  177. .card-img-top,
  178. .card-header {
  179. // stylelint-disable-next-line property-disallowed-list
  180. border-top-right-radius: 0;
  181. }
  182. .card-img-bottom,
  183. .card-footer {
  184. // stylelint-disable-next-line property-disallowed-list
  185. border-bottom-right-radius: 0;
  186. }
  187. }
  188. &:not(:first-child) {
  189. @include border-left-radius(0);
  190. .card-img-top,
  191. .card-header {
  192. // stylelint-disable-next-line property-disallowed-list
  193. border-top-left-radius: 0;
  194. }
  195. .card-img-bottom,
  196. .card-footer {
  197. // stylelint-disable-next-line property-disallowed-list
  198. border-bottom-left-radius: 0;
  199. }
  200. }
  201. }
  202. }
  203. }
  204. }
  205. //
  206. // Columns
  207. //
  208. .card-columns {
  209. .card {
  210. margin-bottom: $card-columns-margin;
  211. }
  212. @include media-breakpoint-up(sm) {
  213. column-count: $card-columns-count;
  214. column-gap: $card-columns-gap;
  215. orphans: 1;
  216. widows: 1;
  217. .card {
  218. display: inline-block; // Don't let them vertically span multiple columns
  219. width: 100%; // Don't let their width change
  220. }
  221. }
  222. }
  223. //
  224. // Accordion
  225. //
  226. .accordion {
  227. overflow-anchor: none;
  228. >.card {
  229. overflow: hidden;
  230. &:not(:last-of-type) {
  231. border-bottom: 0;
  232. @include border-bottom-radius(0);
  233. }
  234. &:not(:first-of-type) {
  235. @include border-top-radius(0);
  236. }
  237. >.card-header {
  238. @include border-radius(0);
  239. margin-bottom: -$card-border-width;
  240. }
  241. }
  242. }
  243. .header-1 {
  244. background: #3e3a8e;
  245. box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  246. border-radius: 5px;
  247. // width: 830px;
  248. margin-bottom: 30px;
  249. }
  250. .card-title-1 {
  251. margin-left: 10px;
  252. padding: 10px;
  253. font-size: 25px;
  254. text-align: left;
  255. color: rgba(255, 255, 255, 0.9);
  256. }
  257. .border-radius-login {
  258. border-radius: 5px;
  259. }
  260. .header-penjadwalan {
  261. background: #3e3a8e;
  262. box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  263. border-radius: 5px;
  264. // width: 830px;
  265. height: 45px;
  266. margin: 20px;
  267. }
  268. .warna-penjadwalan-block {
  269. height: 35px;
  270. width: 60px;
  271. margin-left: auto;
  272. }
  273. .home-1 {
  274. margin-left: 20px;
  275. margin-right: 10px;
  276. margin-top: 20px;
  277. }
  278. .home-1-1 {
  279. margin-left: 20px;
  280. margin-right: 10px;
  281. margin-top: -40px;
  282. }
  283. .home-2 {
  284. margin-top: 10%;
  285. }
  286. @media screen and (max-width: 450px) {
  287. .txt-size {
  288. font-weight: 400;
  289. color: black;
  290. }
  291. .home-1 {
  292. margin: 0;
  293. }
  294. }
  295. .card-over {
  296. overflow: auto;
  297. }
  298. .f-size {
  299. margin-left: 10px;
  300. }
  301. .w-40 {
  302. width: 100px;
  303. }
  304. .margin-botton-20 {
  305. margin-bottom: 20px;
  306. }
  307. .text-tahun {
  308. font-size: 20px;
  309. text-align: center;
  310. }
  311. .font-color-white {
  312. color: #ffffff;
  313. }
  314. .font-color-black {
  315. color: black;
  316. }
  317. .border-2 {
  318. border-width: 0.5px;
  319. border-color: rgb(124, 122, 122);
  320. }
  321. .cd-home-1 {
  322. display: inline;
  323. position: relative;
  324. // background-color: red;
  325. // min-width: 300px;
  326. float: left;
  327. }
  328. .cd-home-2 {
  329. display: inline;
  330. // background-color: rgb(50, 0, 230);
  331. // min-width: 300px;
  332. float: right;
  333. }
  334. .dropzone-style-1 {
  335. // background-color: #9e9e9e;
  336. // width: 50px;
  337. padding-top: 10px;
  338. border: 1px solid #dde6e9;
  339. min-height: 70px;
  340. border-radius: 5px;
  341. cursor: pointer;
  342. }
  343. .center-ver-hor {
  344. display: flex;
  345. align-items: center;
  346. justify-content: center;
  347. height: 100%;
  348. }
  349. .invalid-mv:focus:invalid {
  350. border: solid 1px red;
  351. // 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% ;
  352. }
  353. .invalid-mv:focus:valid {
  354. border: solid 1px green;
  355. }
  356. .getover {
  357. overflow: auto;
  358. font-size: 0.8rem;
  359. }