_card.scss 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  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-2{
  279. margin-top: 10%;
  280. }
  281. @media screen and (max-width :450px) {
  282. .txt-size{
  283. font-weight:400;
  284. }
  285. .home-1{
  286. margin:0;
  287. }
  288. }
  289. .card-over{
  290. overflow: auto;
  291. }
  292. .f-size{
  293. margin-left: 10px;
  294. }
  295. .w-40{
  296. width: 100px;
  297. }
  298. .margin-botton-20{
  299. margin-bottom: 20px;
  300. }
  301. .text-tahun{
  302. font-size: 20px;
  303. text-align: center;
  304. }
  305. .font-color-white{
  306. color: #FFFFFF;
  307. }