_card.scss 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  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-2 {
  283. margin-top: 10%;
  284. }
  285. @media screen and (max-width: 450px) {
  286. .txt-size {
  287. font-weight: 400;
  288. }
  289. .home-1 {
  290. margin: 0;
  291. }
  292. }
  293. .card-over {
  294. overflow: auto;
  295. }
  296. .f-size {
  297. margin-left: 10px;
  298. }
  299. .w-40 {
  300. width: 100px;
  301. }
  302. .margin-botton-20 {
  303. margin-bottom: 20px;
  304. }
  305. .text-tahun {
  306. font-size: 20px;
  307. text-align: center;
  308. }
  309. .font-color-white {
  310. color: #ffffff;
  311. }
  312. .font-color-black {
  313. color: black;
  314. }
  315. .border-2 {
  316. border-width: 0.5px;
  317. border-color: rgb(124, 122, 122);
  318. }
  319. .cd-home-1{
  320. display: inline;
  321. position: relative;
  322. // background-color: red;
  323. // min-width: 300px;
  324. float: left;
  325. }
  326. .cd-home-2{
  327. display: inline;
  328. // background-color: rgb(50, 0, 230);
  329. // min-width: 300px;
  330. float: right;
  331. }