_override-bootstrap.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. // increase specificity with ':root' for GROWI theming
  2. :root {
  3. font-size: $font-size-root;
  4. > body {
  5. font-family: $font-family-sans-serif;
  6. }
  7. * {
  8. outline: none !important;
  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. h6 {
  31. font-size: 12px;
  32. line-height: 14px;
  33. }
  34. // Navs
  35. .nav-tabs {
  36. .nav-item {
  37. margin-right: 0.15rem;
  38. a.active {
  39. cursor: default;
  40. }
  41. }
  42. }
  43. // Custom Control
  44. .custom-control {
  45. .custom-control-input,
  46. .custom-control-input + .custom-control-label {
  47. cursor: pointer;
  48. }
  49. }
  50. // card (substitute panel of bootstrap3)
  51. .card {
  52. margin-bottom: 20px;
  53. }
  54. .card-header {
  55. font-weight: 700;
  56. text-transform: none;
  57. }
  58. .card-header:first-child {
  59. }
  60. // Well (substitute Well of bootstrap3)
  61. .card.well {
  62. min-height: 20px;
  63. padding: $card-spacer-y $card-spacer-x;
  64. }
  65. // Dropdowns
  66. .dropdown-toggle {
  67. &.btn.disabled {
  68. pointer-events: auto;
  69. cursor: not-allowed;
  70. opacity: unset;
  71. }
  72. // hide caret
  73. &.dropdown-toggle-no-caret::after {
  74. content: none;
  75. }
  76. }
  77. //Modals
  78. .modal-open {
  79. position: fixed;
  80. width: 100%;
  81. padding-right: 0 !important;
  82. }
  83. .modal-content {
  84. box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.1);
  85. }
  86. .modal-header {
  87. border-bottom: 1px solid #e5e5e5;
  88. }
  89. .modal-footer {
  90. border-top: 1px solid #e5e5e5;
  91. }
  92. // col-form-label (substitute for control-label of bootstrap3)
  93. .col-form-label {
  94. text-align: right;
  95. }
  96. // label
  97. label {
  98. font-weight: 700;
  99. }
  100. // disabled button (reproduction from bootstrap3.)
  101. // see https://cccabinet.jpn.org/bootstrap4/components/buttons#disabled-state
  102. .btn.disabled,
  103. .btn[disabled],
  104. fieldset[disabled] .btn {
  105. cursor: not-allowed;
  106. }
  107. // progress bar
  108. .progress {
  109. margin-bottom: 18px;
  110. overflow: hidden;
  111. }
  112. .text-break {
  113. word-break: break-word;
  114. overflow-wrap: break-word;
  115. }
  116. }