bootstrap-reset.scss 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. /* ========================================================================
  2. Component: bootstrap-reset
  3. ========================================================================== */
  4. // Use this file to reset simple bootstrap styles
  5. // instead of modifying the core files
  6. // Makes easy to update new framework versions
  7. // --------------------------------------------------
  8. *:not(.react-grid-Cell):focus {
  9. outline: 0 !important;
  10. }
  11. a {
  12. outline: none !important;
  13. &.text-muted {
  14. &:hover,
  15. &:focus {
  16. color: darken($text-muted, 10%);
  17. }
  18. }
  19. }
  20. hr {
  21. border-top: 1px solid $gray-light;
  22. }
  23. // custom element
  24. [data-now] {
  25. display: inline-block;
  26. }
  27. .badge {
  28. padding: 0.1875rem 0.4375rem;
  29. font-size: 0.75rem;
  30. border-radius: 0.625rem;
  31. &.badge-warning {
  32. color: #fff !important;
  33. }
  34. &.badge-secondary {
  35. background-color: $gray-dark;
  36. color: #fff;
  37. }
  38. }
  39. .list-group {
  40. line-height: 1.3;
  41. .list-group-item {
  42. padding: 10px;
  43. color: #555;
  44. &.active {
  45. color: #fff;
  46. .badge {
  47. background-color: #fff;
  48. color: $primary;
  49. }
  50. }
  51. .card > & {
  52. border: 0;
  53. }
  54. }
  55. }
  56. .list-group + .card-footer {
  57. border-top: 0;
  58. }
  59. .page-header {
  60. padding-bottom: 0.59375rem;
  61. margin: 2.625rem 0 1.3125rem;
  62. border-bottom: 1px solid $gray-light;
  63. }
  64. .card {
  65. // border-color: transparent;
  66. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  67. .card-header {
  68. border-bottom: 0;
  69. padding: 0.625rem 0.9375rem;
  70. background-color: transparent;
  71. .card-title {
  72. margin-bottom: 0;
  73. font-size: 1rem;
  74. }
  75. a {
  76. text-decoration: none !important;
  77. }
  78. }
  79. }
  80. .card-body {
  81. padding: 20px; //15px
  82. }
  83. .card-footer {
  84. padding: 0.625rem 0.9375rem;
  85. }
  86. .card-default {
  87. border-top-width: 3px;
  88. border-color: $card-default-border-color;
  89. .card-header {
  90. background-color: #fff;
  91. }
  92. }
  93. .well {
  94. border: 1px solid $gray;
  95. }
  96. .jumbotron {
  97. border: 1px solid $gray;
  98. background-color: #fff;
  99. @include media-breakpoint-up(md) {
  100. padding: $jumbotron-padding ($jumbotron-padding/2);
  101. }
  102. }
  103. .nav-tabs > .nav-item > .nav-link {
  104. font-weight: bold;
  105. color: $body-color;
  106. background-color: $gray-lighter;
  107. margin: 0;
  108. border: 1px solid $gray;
  109. border-radius: 0;
  110. padding: 10px 20px;
  111. &.active {
  112. background-color: $nav-tabs-link-active-bg;
  113. &,
  114. &:hover,
  115. &:focus {
  116. //color: inherit;
  117. border-bottom-color: #fff;
  118. }
  119. }
  120. }
  121. .tab-content {
  122. padding: 10px 20px;
  123. border-style: solid;
  124. border-width: 0 1px 1px 1px;
  125. border-color: $gray;
  126. .nav-pills + & {
  127. border: 0;
  128. padding: 0;
  129. }
  130. .p-0 & {
  131. padding: 0 !important;
  132. }
  133. }
  134. .btn {
  135. border-radius: 3px;
  136. font-size: 13px;
  137. -webkit-appearance: none;
  138. outline: none !important; // padding: 0.375rem 1rem;
  139. @include transition(all 0.1s);
  140. &.btn-link {
  141. box-shadow: none;
  142. border: 0;
  143. }
  144. .input-group & {
  145. font-size: 14px;
  146. border-color: $input-border-color;
  147. }
  148. .input-group .form-control-sm + .input-group-btn & {
  149. font-size: 0.8125rem;
  150. padding: 0.3125rem 0.625rem;
  151. margin-left: -1px;
  152. border-top-left-radius: 0;
  153. border-bottom-left-radius: 0;
  154. }
  155. }
  156. // Override button styles
  157. .btn {
  158. &.btn-warning {
  159. color: #fff;
  160. }
  161. &.btn-outline-warning:not(:disabled) {
  162. &:hover,
  163. &:active {
  164. color: #fff;
  165. }
  166. }
  167. }
  168. .btn-secondary {
  169. background-color: $btn-secondary-bg;
  170. border-color: $btn-secondary-border;
  171. color: $btn-secondary-color;
  172. &:hover {
  173. background-color: #f5f5f5;
  174. } // active state override
  175. &:not(:disabled):not(.disabled):active,
  176. &:not(:disabled):not(.disabled).active,
  177. .show > &.dropdown-toggle {
  178. background-color: #f5f5f5;
  179. box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  180. }
  181. }
  182. .btn-outline-secondary {
  183. border-color: $btn-secondary-border !important;
  184. color: $btn-secondary-color;
  185. &:hover {
  186. color: $btn-secondary-color;
  187. background-color: #f5f5f5 !important;
  188. }
  189. &:focus {
  190. box-shadow: 0 0 0 0.2rem rgba($btn-secondary-border, 0.5);
  191. }
  192. }
  193. span.btn {
  194. -webkit-appearance: none !important;
  195. }
  196. // FORMS
  197. .form-control {
  198. box-shadow: 0 0 0 #000 !important;
  199. font-size: 0.875rem; //14px
  200. &:focus {
  201. border-color: $input-focus-border-color;
  202. }
  203. }
  204. .form-control-sm,
  205. select.form-control-sm {
  206. font-size: 0.75rem;
  207. height: 31px;
  208. }
  209. .custom-select {
  210. -webkit-appearance: none;
  211. }
  212. .custom-control-label::before,
  213. .custom-control-label::after {
  214. top: 0.19rem;
  215. }
  216. .custom-control-label::before {
  217. border: 1px solid $gray;
  218. }
  219. fieldset {
  220. padding-bottom: 20px;
  221. border-bottom: 1px dashed #eee;
  222. margin-bottom: 20px;
  223. &.last-child,
  224. &:last-child {
  225. border-bottom: 0;
  226. }
  227. .form-group {
  228. margin-bottom: 0;
  229. }
  230. }
  231. .input-group-text {
  232. font-size: 0.875rem; // 14px
  233. }
  234. @include media-breakpoint-down(sm) {
  235. // Remove Input Shadows on iPad
  236. input[type="text"],
  237. input[type="email"],
  238. input[type="search"],
  239. input[type="password"] {
  240. -webkit-appearance: none;
  241. }
  242. }
  243. // TABLES
  244. .table-responsive {
  245. overflow-y: hidden;
  246. }
  247. .table {
  248. // Bottom align for column headings
  249. > thead > tr > th {
  250. border-bottom-width: 0;
  251. } // Account for multiple tbody instances
  252. > tbody + tbody {
  253. border-bottom-width: 1px;
  254. }
  255. .form-control {
  256. max-width: 100%;
  257. }
  258. }
  259. .table-bordered {
  260. > thead > tr {
  261. > th,
  262. > td {
  263. border-bottom-width: 1px;
  264. }
  265. }
  266. }
  267. .progress {
  268. @include box-shadow(0 0 0 #000);
  269. border-radius: $border-radius-sm;
  270. border: 1px solid $progress-bg;
  271. background-color: #fff;
  272. .progress-bar {
  273. @include box-shadow(0 0 0 #000);
  274. }
  275. }
  276. // Popover
  277. // --------------------------------------------------
  278. .popover {
  279. box-shadow: 0 0 0 #000;
  280. border-color: #eee;
  281. border-bottom: 2px solid $gray-light;
  282. border-radius: $border-radius-sm;
  283. .popover-title {
  284. border: 0;
  285. }
  286. }
  287. // NAV
  288. .nav {
  289. &.nav-pills {
  290. .active > a {
  291. background-color: $primary;
  292. }
  293. }
  294. }
  295. // DROPDOWN
  296. .dropdown-menu {
  297. border-radius: $border-radius-sm;
  298. font-size: 14px;
  299. padding: 0.3125rem 0;
  300. box-shadow: rgba(0, 0, 0, 0.176) 0px 6px 12px;
  301. border-color: $dropdown-border-color;
  302. .dropdown-item {
  303. line-height: 1.52857143;
  304. padding: 0.1875rem 1.25rem;
  305. }
  306. }
  307. .dropdown-header {
  308. color: #a1a2a3;
  309. }
  310. .navbar-top .navbar-nav > .active > a {
  311. color: #999;
  312. &:hover,
  313. &:focus {
  314. color: #d1d2d3;
  315. }
  316. }
  317. .navbar-default .navbar-nav .open .dropdown-menu > li > a {
  318. color: #666;
  319. &:hover,
  320. &:focus {
  321. color: #222;
  322. }
  323. }
  324. // CAROUSEL
  325. .carousel {
  326. .carousel-indicators {
  327. bottom: 0;
  328. }
  329. .carousel-control {
  330. &.left,
  331. &.right {
  332. background-image: none;
  333. } // Add support for font awesome
  334. em {
  335. position: absolute;
  336. top: 50%;
  337. left: 50%;
  338. z-index: 5;
  339. display: inline-block;
  340. width: 20px;
  341. height: 20px;
  342. margin-top: -10px;
  343. margin-left: -10px;
  344. }
  345. }
  346. }
  347. // ALERT
  348. @each $color, $value in $theme-colors {
  349. .alert-#{$color} {
  350. @include alert-variant($value, $value, #fff);
  351. }
  352. }
  353. .alert-secondary {
  354. color: $body-color;
  355. border-color: $gray-light;
  356. }
  357. // fix for ie9 (dropdwon no showing)
  358. .topnavbar,
  359. .navbar,
  360. .navbar .dropdown-menu {
  361. filter: none !important;
  362. }