2
0

_override-bootstrap.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. padding: 7px 15px;
  20. font-weight: 700;
  21. text-transform: none;
  22. border-radius: $card-border-radius;
  23. }
  24. .card-header:first-child {
  25. border-radius: $card-border-radius;
  26. }
  27. // Well (substitute Well of bootstrap3)
  28. .card.well {
  29. padding: 7px 15px;
  30. }
  31. // Dropdowns
  32. .dropdown {
  33. .dropdown-toggle.btn.disabled {
  34. cursor: not-allowed;
  35. }
  36. }
  37. // agile-admin style
  38. .dropdown-menu {
  39. padding-bottom: 8px;
  40. margin-top: 0px;
  41. border: 1px solid $border;
  42. border-radius: $radius;
  43. box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05) !important;
  44. }
  45. .dropdown-menu > li > a {
  46. width: 100%;
  47. padding: 9px 20px;
  48. }
  49. .dropdown-menu > li > a:focus,
  50. .dropdown-menu > li > a:hover {
  51. background: $extralight;
  52. }
  53. // btn-light (substitute for btn-default of bootstrap3) (agile-admin style)
  54. .btn-light,
  55. .btn-light.disabled {
  56. color: $bodytext;
  57. $this-color: $btn-default-bgcolor;
  58. background: $this-color;
  59. border: 1px solid $this-color;
  60. &:hover,
  61. &:focus,
  62. &.focus {
  63. color: $bodytext;
  64. background: $this-color;
  65. border: 1px solid $this-color;
  66. opacity: 0.8;
  67. box-shadow: none;
  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. }