_override-bootstrap.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. * {
  2. outline: none !important;
  3. }
  4. :root {
  5. font-size: $font-size-root;
  6. > body {
  7. font-family: $font-family-sans-serif;
  8. }
  9. }
  10. h1 {
  11. font-size: 36px;
  12. line-height: 48px;
  13. }
  14. h2 {
  15. font-size: 24px;
  16. line-height: 36px;
  17. }
  18. h3 {
  19. font-size: 21px;
  20. line-height: 30px;
  21. }
  22. h4 {
  23. font-size: 18px;
  24. line-height: 22px;
  25. }
  26. h5 {
  27. font-size: 16px;
  28. line-height: 18px;
  29. }
  30. h5 {
  31. font-size: 14px;
  32. line-height: 16px;
  33. }
  34. // Navs
  35. .nav-tabs {
  36. .nav-item {
  37. margin-right: 0.15rem;
  38. a.active {
  39. cursor: default;
  40. }
  41. }
  42. }
  43. // card (substitute panel of bootstrap3)
  44. .card {
  45. margin-bottom: 20px;
  46. border-radius: $card-border-radius;
  47. }
  48. .card-header {
  49. font-weight: 700;
  50. text-transform: none;
  51. border-radius: $card-border-radius;
  52. }
  53. .card-header:first-child {
  54. border-radius: $card-border-radius;
  55. }
  56. // Well (substitute Well of bootstrap3)
  57. .card.well {
  58. min-height: 20px;
  59. padding: $card-spacer-y $card-spacer-x;
  60. border-radius: 3px;
  61. }
  62. // Dropdowns
  63. .dropdown {
  64. .dropdown-toggle.btn.disabled {
  65. cursor: not-allowed;
  66. }
  67. }
  68. // agile-admin style
  69. .dropdown-menu {
  70. padding-bottom: 8px;
  71. margin-top: 0px;
  72. border: 1px solid $border;
  73. border-radius: $radius;
  74. box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05) !important;
  75. }
  76. .dropdown-menu > li > a {
  77. width: 100%;
  78. padding: 9px 20px;
  79. }
  80. .dropdown-menu > li > a:focus,
  81. .dropdown-menu > li > a:hover {
  82. background: $extralight;
  83. }
  84. // btn-light (substitute for btn-default of bootstrap3) (agile-admin style)
  85. .btn-light,
  86. .btn-light.disabled {
  87. color: $bodytext;
  88. $this-color: $btn-default-bgcolor;
  89. background: $this-color;
  90. border: 1px solid $this-color;
  91. &:hover,
  92. &:focus,
  93. &.focus {
  94. color: $bodytext;
  95. background: $this-color;
  96. border: 1px solid $this-color;
  97. opacity: 0.8;
  98. }
  99. &:active &.active {
  100. box-shadow: none;
  101. }
  102. }
  103. .btn-light.btn-outline {
  104. background-color: transparent;
  105. &:hover,
  106. &:focus,
  107. &.focus {
  108. background: $btn-default-bgcolor;
  109. }
  110. }
  111. //Modals
  112. .modal-content {
  113. box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.1);
  114. }
  115. .modal-header {
  116. border-bottom: 1px solid #e5e5e5;
  117. }
  118. .modal-footer {
  119. border-top: 1px solid #e5e5e5;
  120. }
  121. // col-form-label (substitute for control-label of bootstrap3)
  122. .col-form-label {
  123. text-align: right;
  124. }
  125. // label
  126. label {
  127. font-weight: 700;
  128. }
  129. // disabled button (reproduction from bootstrap3.)
  130. // see https://cccabinet.jpn.org/bootstrap4/components/buttons#disabled-state
  131. .btn.disabled,
  132. .btn[disabled],
  133. fieldset[disabled] .btn {
  134. cursor: not-allowed;
  135. }
  136. // progress bar
  137. .progress {
  138. margin-bottom: 18px;
  139. overflow: hidden;
  140. }