_override-bootstrap.scss 2.3 KB

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