_bootstrap-variables.scss 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923
  1. // Variables
  2. //
  3. // Variables should follow the `$component-state-property-size` formula for
  4. // consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs.
  5. //
  6. // Color system
  7. //
  8. // stylelint-disable
  9. $white: #fff !default;
  10. $gray-100: #f8f9fa !default;
  11. $gray-200: #e9ecef !default;
  12. $gray-300: #dee2e6 !default;
  13. $gray-400: #ced4da !default;
  14. $gray-500: #adb5bd !default;
  15. $gray-600: #6c757d !default;
  16. $gray-700: #495057 !default;
  17. $gray-800: #343a40 !default;
  18. $gray-900: #212529 !default;
  19. $black: #000 !default;
  20. $grays: () !default;
  21. $grays: map-merge((
  22. "100": $gray-100,
  23. "200": $gray-200,
  24. "300": $gray-300,
  25. "400": $gray-400,
  26. "500": $gray-500,
  27. "600": $gray-600,
  28. "700": $gray-700,
  29. "800": $gray-800,
  30. "900": $gray-900
  31. ), $grays);
  32. $blue: #007bff !default;
  33. $indigo: #6610f2 !default;
  34. $purple: #6f42c1 !default;
  35. $pink: #e83e8c !default;
  36. $red: #dc3545 !default;
  37. $orange: #fd7e14 !default;
  38. $yellow: #ffc107 !default;
  39. $green: #28a745 !default;
  40. $teal: #20c997 !default;
  41. $cyan: #17a2b8 !default;
  42. $colors: () !default;
  43. $colors: map-merge((
  44. "blue": $blue,
  45. "indigo": $indigo,
  46. "purple": $purple,
  47. "pink": $pink,
  48. "red": $red,
  49. "orange": $orange,
  50. "yellow": $yellow,
  51. "green": $green,
  52. "teal": $teal,
  53. "cyan": $cyan,
  54. "white": $white,
  55. "gray": $gray-600,
  56. "gray-dark": $gray-800
  57. ), $colors);
  58. $primary: $blue !default;
  59. $secondary: $gray-600 !default;
  60. $success: $green !default;
  61. $info: $cyan !default;
  62. $warning: $yellow !default;
  63. $danger: $red !default;
  64. $light: $gray-100 !default;
  65. $dark: $gray-800 !default;
  66. $theme-colors: () !default;
  67. $theme-colors: map-merge((
  68. "primary": $primary,
  69. "secondary": $secondary,
  70. "success": $success,
  71. "info": $info,
  72. "warning": $warning,
  73. "danger": $danger,
  74. "light": $light,
  75. "dark": $dark
  76. ), $theme-colors);
  77. // stylelint-enable
  78. // Set a specific jump point for requesting color jumps
  79. $theme-color-interval: 8% !default;
  80. // The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255.
  81. $yiq-contrasted-threshold: 150 !default;
  82. // Customize the light and dark text colors for use in our YIQ color contrast function.
  83. $yiq-text-dark: #1f2d3d !default;
  84. $yiq-text-light: $white !default;
  85. // Options
  86. //
  87. // Quickly modify global styling by enabling or disabling optional features.
  88. $enable-caret: true !default;
  89. $enable-rounded: true !default;
  90. $enable-shadows: true !default;
  91. $enable-gradients: false !default;
  92. $enable-transitions: true !default;
  93. $enable-prefers-reduced-motion-media-query: true !default;
  94. $enable-hover-media-query: false !default; // Deprecated, no longer affects any compiled CSS
  95. $enable-grid-classes: true !default;
  96. $enable-pointer-cursor-for-buttons: true !default;
  97. $enable-print-styles: true !default;
  98. $enable-responsive-font-sizes: false !default;
  99. $enable-validation-icons: true !default;
  100. $enable-deprecation-messages: true !default;
  101. // Characters which are escaped by the escape-svg function
  102. $escaped-characters: (
  103. ("<", "%3c"),
  104. (">", "%3e"),
  105. ("#", "%23"),
  106. ("(", "%28"),
  107. (")", "%29"),
  108. ) !default;
  109. // Spacing
  110. //
  111. // Control the default styling of most Bootstrap elements by modifying these
  112. // variables. Mostly focused on spacing.
  113. // You can add more entries to the $spacers map, should you need more variation.
  114. // stylelint-disable
  115. $spacer: 1rem !default;
  116. $spacers: () !default;
  117. $spacers: map-merge((
  118. 0: 0,
  119. 1: ($spacer * .25),
  120. 2: ($spacer * .5),
  121. 3: $spacer,
  122. 4: ($spacer * 1.5),
  123. 5: ($spacer * 3)
  124. ), $spacers);
  125. // This variable affects the `.h-*` and `.w-*` classes.
  126. $sizes: () !default;
  127. $sizes: map-merge((
  128. 25: 25%,
  129. 50: 50%,
  130. 75: 75%,
  131. 100: 100%
  132. ), $sizes);
  133. // stylelint-enable
  134. // Body
  135. //
  136. // Settings for the `<body>` element.
  137. $body-bg: $white !default;
  138. $body-color: $gray-900 !default;
  139. // Links
  140. //
  141. // Style anchor elements.
  142. $link-color: theme-color("primary") !default;
  143. $link-decoration: none !default;
  144. $link-hover-color: darken($link-color, 15%) !default;
  145. $link-hover-decoration: none !default;
  146. // Paragraphs
  147. //
  148. // Style p element.
  149. $paragraph-margin-bottom: 1rem !default;
  150. // Grid breakpoints
  151. //
  152. // Define the minimum dimensions at which your layout will change,
  153. // adapting to different screen sizes, for use in media queries.
  154. $grid-breakpoints: (
  155. xs: 0,
  156. sm: 576px,
  157. md: 768px,
  158. lg: 992px,
  159. xl: 1200px
  160. ) !default;
  161. @include _assert-ascending($grid-breakpoints, "$grid-breakpoints");
  162. @include _assert-starts-at-zero($grid-breakpoints);
  163. // Grid containers
  164. //
  165. // Define the maximum width of `.container` for different screen sizes.
  166. $container-max-widths: (
  167. sm: 540px,
  168. md: 720px,
  169. lg: 960px,
  170. xl: 1140px
  171. ) !default;
  172. @include _assert-ascending($container-max-widths, "$container-max-widths");
  173. // Grid columns
  174. //
  175. // Set the number of columns and specify the width of the gutters.
  176. $grid-columns: 12 !default;
  177. $grid-gutter-width: 15px !default;
  178. // Components
  179. //
  180. // Define common padding and border radius sizes and more.
  181. $line-height-lg: 1.5 !default;
  182. $line-height-sm: 1.5 !default;
  183. $border-width: 1px !default;
  184. $border-color: $gray-300 !default;
  185. $border-radius: .25rem !default;
  186. $border-radius-lg: .3rem !default;
  187. $border-radius-sm: .2rem !default;
  188. $component-active-color: $white !default;
  189. $component-active-bg: theme-color("primary") !default;
  190. $caret-width: .3em !default;
  191. $transition-base: all .2s ease-in-out !default;
  192. $transition-fade: opacity .15s linear !default;
  193. $transition-collapse: height .35s ease !default;
  194. // Fonts
  195. //
  196. // Font, line-height, and color for body text, headings, and more.
  197. // stylelint-disable value-keyword-case
  198. $font-family-sans-serif: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
  199. $font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
  200. $font-family-base: $font-family-sans-serif !default;
  201. // stylelint-enable value-keyword-case
  202. $font-size-base: 1rem !default; // Assumes the browser default, typically `16px`
  203. $font-size-lg: ($font-size-base * 1.25) !default;
  204. $font-size-sm: ($font-size-base * .875) !default;
  205. $font-weight-light: 300 !default;
  206. $font-weight-normal: 400 !default;
  207. $font-weight-bold: 700 !default;
  208. $font-weight-base: $font-weight-normal !default;
  209. $line-height-base: 1.5 !default;
  210. $h1-font-size: $font-size-base * 2.5 !default;
  211. $h2-font-size: $font-size-base * 2 !default;
  212. $h3-font-size: $font-size-base * 1.75 !default;
  213. $h4-font-size: $font-size-base * 1.5 !default;
  214. $h5-font-size: $font-size-base * 1.25 !default;
  215. $h6-font-size: $font-size-base !default;
  216. $headings-margin-bottom: ($spacer * .5) !default;
  217. $headings-font-family: inherit !default;
  218. $headings-font-weight: 500 !default;
  219. $headings-line-height: 1.2 !default;
  220. $headings-color: inherit !default;
  221. $display1-size: 6rem !default;
  222. $display2-size: 5.5rem !default;
  223. $display3-size: 4.5rem !default;
  224. $display4-size: 3.5rem !default;
  225. $display1-weight: 300 !default;
  226. $display2-weight: 300 !default;
  227. $display3-weight: 300 !default;
  228. $display4-weight: 300 !default;
  229. $display-line-height: $headings-line-height !default;
  230. $lead-font-size: ($font-size-base * 1.25) !default;
  231. $lead-font-weight: 300 !default;
  232. $small-font-size: 80% !default;
  233. $text-muted: $gray-600 !default;
  234. $blockquote-small-color: $gray-600 !default;
  235. $blockquote-font-size: ($font-size-base * 1.25) !default;
  236. $hr-border-color: rgba($black, .1) !default;
  237. $hr-border-width: $border-width !default;
  238. $mark-padding: .2em !default;
  239. $dt-font-weight: $font-weight-bold !default;
  240. $kbd-box-shadow: inset 0 -.1rem 0 rgba($black, .25) !default;
  241. $nested-kbd-font-weight: $font-weight-bold !default;
  242. $list-inline-padding: .5rem !default;
  243. $mark-bg: #fcf8e3 !default;
  244. $hr-margin-y: $spacer !default;
  245. // Tables
  246. //
  247. // Customizes the `.table` component with basic values, each used across all table variations.
  248. $table-cell-padding: .75rem !default;
  249. $table-cell-padding-sm: .3rem !default;
  250. $table-bg: transparent !default;
  251. $table-accent-bg: rgba($black, .05) !default;
  252. $table-hover-bg: rgba($black, .075) !default;
  253. $table-active-bg: $table-hover-bg !default;
  254. $table-border-width: $border-width !default;
  255. $table-border-color: $gray-300 !default;
  256. $table-head-bg: $gray-200 !default;
  257. $table-head-color: $gray-700 !default;
  258. $table-dark-bg: $gray-900 !default;
  259. $table-dark-accent-bg: rgba($white, .05) !default;
  260. $table-dark-hover-bg: rgba($white, .075) !default;
  261. $table-dark-border-color: lighten($gray-900, 10%) !default;
  262. $table-dark-color: $body-bg !default;
  263. // Buttons + Forms
  264. //
  265. // Shared variables that are reassigned to `$input-` and `$btn-` specific variables.
  266. $input-btn-padding-y: .375rem !default;
  267. $input-btn-padding-x: .75rem !default;
  268. $input-btn-line-height: $line-height-base !default;
  269. $input-btn-focus-width: .2rem !default;
  270. $input-btn-focus-color: rgba($component-active-bg, .25) !default;
  271. $input-btn-focus-box-shadow: 0 0 0 $input-btn-focus-width $input-btn-focus-color !default;
  272. $input-btn-padding-y-sm: .25rem !default;
  273. $input-btn-padding-x-sm: .5rem !default;
  274. $input-btn-line-height-sm: $line-height-sm !default;
  275. $input-btn-padding-y-lg: .5rem !default;
  276. $input-btn-padding-x-lg: 1rem !default;
  277. $input-btn-line-height-lg: $line-height-lg !default;
  278. $input-btn-border-width: $border-width !default;
  279. // Buttons
  280. //
  281. // For each of Bootstrap's buttons, define text, background, and border color.
  282. $btn-padding-y: $input-btn-padding-y !default;
  283. $btn-padding-x: $input-btn-padding-x !default;
  284. $btn-line-height: $input-btn-line-height !default;
  285. $btn-padding-y-sm: $input-btn-padding-y-sm !default;
  286. $btn-padding-x-sm: $input-btn-padding-x-sm !default;
  287. $btn-line-height-sm: $input-btn-line-height-sm !default;
  288. $btn-padding-y-lg: $input-btn-padding-y-lg !default;
  289. $btn-padding-x-lg: $input-btn-padding-x-lg !default;
  290. $btn-line-height-lg: $input-btn-line-height-lg !default;
  291. $btn-border-width: $input-btn-border-width !default;
  292. $btn-font-weight: $font-weight-normal !default;
  293. $btn-box-shadow: none !default;
  294. $btn-focus-width: 0 !default;
  295. $btn-focus-box-shadow: none !default;
  296. $btn-disabled-opacity: .65 !default;
  297. $btn-active-box-shadow: none !default;
  298. $btn-link-disabled-color: $gray-600 !default;
  299. $btn-block-spacing-y: .5rem !default;
  300. // Allows for customizing button radius independently from global border radius
  301. $btn-border-radius: $border-radius !default;
  302. $btn-border-radius-lg: $border-radius-lg !default;
  303. $btn-border-radius-sm: $border-radius-sm !default;
  304. $btn-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;
  305. // Forms
  306. $input-padding-y: $input-btn-padding-y !default;
  307. $input-padding-x: $input-btn-padding-x !default;
  308. $input-line-height: $input-btn-line-height !default;
  309. $input-padding-y-sm: $input-btn-padding-y-sm !default;
  310. $input-padding-x-sm: $input-btn-padding-x-sm !default;
  311. $input-line-height-sm: $input-btn-line-height-sm !default;
  312. $input-padding-y-lg: $input-btn-padding-y-lg !default;
  313. $input-padding-x-lg: $input-btn-padding-x-lg !default;
  314. $input-line-height-lg: $input-btn-line-height-lg !default;
  315. $input-bg: $white !default;
  316. $input-disabled-bg: $gray-200 !default;
  317. $input-color: $gray-700 !default;
  318. $input-border-color: $gray-400 !default;
  319. $input-border-width: $input-btn-border-width !default;
  320. $input-box-shadow: inset 0 0 0 rgba($black, 0) !default;
  321. $input-border-radius: $border-radius !default;
  322. $input-border-radius-lg: $border-radius-lg !default;
  323. $input-border-radius-sm: $border-radius-sm !default;
  324. $input-focus-bg: $input-bg !default;
  325. $input-focus-border-color: lighten($component-active-bg, 25%) !default;
  326. $input-focus-color: $input-color !default;
  327. $input-focus-width: 0 !default;
  328. $input-focus-box-shadow: none !default;
  329. $input-placeholder-color: lighten($gray-600, 15%) !default;
  330. $input-height-border: $input-border-width * 2 !default;
  331. $input-height-inner: ($font-size-base * $input-btn-line-height) + ($input-btn-padding-y * 2) !default;
  332. $input-height-inner-half: calc(#{$input-line-height * .5em} + #{$input-padding-y}) !default;
  333. $input-height-inner-quarter: calc(#{$input-line-height * .25em} + #{$input-padding-y * .5}) !default;
  334. $input-height: calc(#{$input-height-inner} + #{$input-height-border}) !default;
  335. $input-height-inner-sm: ($font-size-sm * $input-btn-line-height-sm) + ($input-btn-padding-y-sm * 2) !default;
  336. $input-height-sm: calc(#{$input-height-inner-sm} + #{$input-height-border}) !default;
  337. $input-height-inner-lg: ($font-size-lg * $input-btn-line-height-lg) + ($input-btn-padding-y-lg * 2) !default;
  338. $input-height-lg: calc(#{$input-height-inner-lg} + #{$input-height-border}) !default;
  339. $input-transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;
  340. $form-text-margin-top: .25rem !default;
  341. $form-check-input-gutter: 1.25rem !default;
  342. $form-check-input-margin-y: .3rem !default;
  343. $form-check-input-margin-x: .25rem !default;
  344. $form-check-inline-margin-x: .75rem !default;
  345. $form-check-inline-input-margin-x: .3125rem !default;
  346. $form-group-margin-bottom: 1rem !default;
  347. $input-group-addon-color: $input-color !default;
  348. $input-group-addon-bg: $gray-200 !default;
  349. $input-group-addon-border-color: $input-border-color !default;
  350. $custom-control-gutter: .5rem !default;
  351. $custom-control-spacer-x: 1rem !default;
  352. $custom-control-indicator-size: 1rem !default;
  353. $custom-control-indicator-bg: $gray-300 !default;
  354. $custom-control-indicator-bg-size: 50% 50% !default;
  355. $custom-control-indicator-box-shadow: inset 0 .25rem .25rem rgba($black, .1) !default;
  356. $custom-control-indicator-disabled-bg: $gray-200 !default;
  357. $custom-control-label-disabled-color: $gray-600 !default;
  358. $custom-control-indicator-checked-color: $component-active-color !default;
  359. $custom-control-indicator-checked-bg: $component-active-bg !default;
  360. $custom-control-indicator-checked-disabled-bg: rgba(theme-color("primary"), .5) !default;
  361. $custom-control-indicator-checked-box-shadow: none !default;
  362. $custom-control-indicator-focus-box-shadow: 0 0 0 1px $body-bg, $input-btn-focus-box-shadow !default;
  363. $custom-control-indicator-active-color: $component-active-color !default;
  364. $custom-control-indicator-active-bg: lighten($component-active-bg, 35%) !default;
  365. $custom-control-indicator-active-box-shadow: none !default;
  366. $custom-checkbox-indicator-border-radius: $border-radius !default;
  367. $custom-checkbox-indicator-icon-checked: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#{$custom-control-indicator-checked-color}' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E"), "#", "%23") !default;
  368. $custom-checkbox-indicator-indeterminate-bg: $component-active-bg !default;
  369. $custom-checkbox-indicator-indeterminate-color: $custom-control-indicator-checked-color !default;
  370. $custom-checkbox-indicator-icon-indeterminate: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='#{$custom-checkbox-indicator-indeterminate-color}' d='M0 2h4'/%3E%3C/svg%3E"), "#", "%23") !default;
  371. $custom-checkbox-indicator-indeterminate-box-shadow: none !default;
  372. $custom-radio-indicator-border-radius: 50% !default;
  373. $custom-radio-indicator-icon-checked: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='#{$custom-control-indicator-checked-color}'/%3E%3C/svg%3E"), "#", "%23") !default;
  374. $custom-select-padding-y: .375rem !default;
  375. $custom-select-padding-x: .75rem !default;
  376. $custom-select-height: $input-height !default;
  377. $custom-select-indicator-padding: 1rem !default; // Extra padding to account for the presence of the background-image based indicator
  378. $custom-select-line-height: $input-btn-line-height !default;
  379. $custom-select-color: $input-color !default;
  380. $custom-select-disabled-color: $gray-600 !default;
  381. $custom-select-bg: $white !default;
  382. $custom-select-disabled-bg: $gray-200 !default;
  383. $custom-select-bg-size: 8px 10px !default; // In pixels because image dimensions
  384. $custom-select-indicator-color: $gray-800 !default;
  385. $custom-select-indicator: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'><path fill='#{$custom-select-indicator-color}' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>") !default;
  386. $custom-select-background: escape-svg($custom-select-indicator) right $custom-select-padding-x center / $custom-select-bg-size no-repeat !default; // Used so we can have multiple background elements (e.g., arrow and feedback icon)
  387. $custom-select-border-width: $input-btn-border-width !default;
  388. $custom-select-border-color: $input-border-color !default;
  389. $custom-select-border-radius: $border-radius !default;
  390. $custom-select-focus-border-color: $input-focus-border-color !default;
  391. $custom-select-focus-box-shadow: none !default;
  392. $custom-select-font-size-sm: 75% !default;
  393. $custom-select-height-sm: $input-height-sm !default;
  394. $custom-select-font-size-lg: 125% !default;
  395. $custom-select-height-lg: $input-height-lg !default;
  396. $custom-file-height: $input-height !default;
  397. $custom-file-focus-border-color: $input-focus-border-color !default;
  398. $custom-file-focus-box-shadow: $custom-select-focus-box-shadow !default;
  399. $custom-file-padding-y: $input-btn-padding-y !default;
  400. $custom-file-padding-x: $input-btn-padding-x !default;
  401. $custom-file-line-height: $input-btn-line-height !default;
  402. $custom-file-color: $input-color !default;
  403. $custom-file-bg: $input-bg !default;
  404. $custom-file-border-width: $input-btn-border-width !default;
  405. $custom-file-border-color: $input-border-color !default;
  406. $custom-file-border-radius: $input-border-radius !default;
  407. $custom-file-box-shadow: $custom-select-focus-box-shadow !default;
  408. $custom-file-button-color: $custom-file-color !default;
  409. $custom-file-button-bg: $input-group-addon-bg !default;
  410. $custom-file-text: (
  411. en: "Browse"
  412. ) !default;
  413. $custom-range-thumb-focus-box-shadow: 0 0 0 1px $body-bg, $input-btn-focus-box-shadow !default;
  414. // Form validation
  415. $form-feedback-margin-top: $form-text-margin-top !default;
  416. $form-feedback-font-size: $small-font-size !default;
  417. $form-feedback-valid-color: theme-color("success") !default;
  418. $form-feedback-invalid-color: theme-color("danger") !default;
  419. // Dropdowns
  420. //
  421. // Dropdown menu container and contents.
  422. $dropdown-min-width: 10rem !default;
  423. $dropdown-padding-y: .5rem !default;
  424. $dropdown-spacer: .125rem !default;
  425. $dropdown-bg: $white !default;
  426. $dropdown-border-color: rgba($black, .15) !default;
  427. $dropdown-border-radius: $border-radius !default;
  428. $dropdown-border-width: $border-width !default;
  429. $dropdown-divider-bg: $gray-200 !default;
  430. $dropdown-box-shadow: 0 .5rem 1rem rgba($black, .175) !default;
  431. $dropdown-link-color: $gray-900 !default;
  432. $dropdown-link-hover-color: darken($gray-900, 5%) !default;
  433. $dropdown-link-hover-bg: $gray-100 !default;
  434. $dropdown-link-active-color: $component-active-color !default;
  435. $dropdown-link-active-bg: $component-active-bg !default;
  436. $dropdown-link-disabled-color: $gray-600 !default;
  437. $dropdown-item-padding-y: .25rem !default;
  438. $dropdown-item-padding-x: 1rem !default;
  439. $dropdown-header-color: $gray-600 !default;
  440. // Z-index master list
  441. //
  442. // Warning: Avoid customizing these values. They're used for a bird's eye view
  443. // of components dependent on the z-axis and are designed to all work together.
  444. $zindex-dropdown: 1000 !default;
  445. $zindex-sticky: 1020 !default;
  446. $zindex-fixed: 1030 !default;
  447. $zindex-modal-backdrop: 1040 !default;
  448. $zindex-modal: 1050 !default;
  449. $zindex-popover: 1060 !default;
  450. $zindex-tooltip: 1070 !default;
  451. // Navs
  452. $nav-link-padding-y: .5rem !default;
  453. $nav-link-padding-x: 1rem !default;
  454. $nav-link-disabled-color: $gray-600 !default;
  455. $nav-tabs-border-color: $gray-300 !default;
  456. $nav-tabs-border-width: $border-width !default;
  457. $nav-tabs-border-radius: $border-radius !default;
  458. $nav-tabs-link-hover-border-color: $gray-200 $gray-200 $nav-tabs-border-color !default;
  459. $nav-tabs-link-active-color: $gray-700 !default;
  460. $nav-tabs-link-active-bg: $body-bg !default;
  461. $nav-tabs-link-active-border-color: $gray-300 $gray-300 $nav-tabs-link-active-bg !default;
  462. $nav-pills-border-radius: $border-radius !default;
  463. $nav-pills-link-active-color: $component-active-color !default;
  464. $nav-pills-link-active-bg: $component-active-bg !default;
  465. // Navbar
  466. $navbar-padding-y: ($spacer * .5) !default;
  467. $navbar-padding-x: ($spacer * .5) !default;
  468. $navbar-nav-link-padding-x: 1rem !default;
  469. $navbar-brand-font-size: $font-size-lg !default;
  470. // Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link
  471. $nav-link-height: ($font-size-base * $line-height-base + $nav-link-padding-y * 2) !default;
  472. $navbar-brand-height: $navbar-brand-font-size * $line-height-base !default;
  473. $navbar-brand-padding-y: ($nav-link-height - $navbar-brand-height) * .5 !default;
  474. $navbar-toggler-padding-y: .25rem !default;
  475. $navbar-toggler-padding-x: .75rem !default;
  476. $navbar-toggler-font-size: $font-size-lg !default;
  477. $navbar-toggler-border-radius: $btn-border-radius !default;
  478. $navbar-dark-color: rgba($white, .75) !default;
  479. $navbar-dark-hover-color: rgba($white, 1) !default;
  480. $navbar-dark-active-color: $white !default;
  481. $navbar-dark-disabled-color: rgba($white, .25) !default;
  482. $navbar-dark-toggler-icon-bg: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{$navbar-dark-color}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"), "#", "%23") !default;
  483. $navbar-dark-toggler-border-color: rgba($white, .1) !default;
  484. $navbar-light-color: rgba($black, .5) !default;
  485. $navbar-light-hover-color: rgba($black, .7) !default;
  486. $navbar-light-active-color: rgba($black, .9) !default;
  487. $navbar-light-disabled-color: rgba($black, .3) !default;
  488. $navbar-light-toggler-icon-bg: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{$navbar-light-color}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"), "#", "%23") !default;
  489. $navbar-light-toggler-border-color: rgba($black, .1) !default;
  490. // Pagination
  491. $pagination-padding-y: .5rem !default;
  492. $pagination-padding-x: .75rem !default;
  493. $pagination-padding-y-sm: .25rem !default;
  494. $pagination-padding-x-sm: .5rem !default;
  495. $pagination-padding-y-lg: .75rem !default;
  496. $pagination-padding-x-lg: 1.5rem !default;
  497. $pagination-line-height: 1.25 !default;
  498. $pagination-color: $link-color !default;
  499. $pagination-bg: $white !default;
  500. $pagination-border-width: $border-width !default;
  501. $pagination-border-color: $gray-300 !default;
  502. $pagination-focus-box-shadow: $input-btn-focus-box-shadow !default;
  503. $pagination-hover-color: $link-hover-color !default;
  504. $pagination-hover-bg: $gray-200 !default;
  505. $pagination-hover-border-color: $gray-300 !default;
  506. $pagination-active-color: $component-active-color !default;
  507. $pagination-active-bg: $component-active-bg !default;
  508. $pagination-active-border-color: $pagination-active-bg !default;
  509. $pagination-disabled-color: $gray-600 !default;
  510. $pagination-disabled-bg: $white !default;
  511. $pagination-disabled-border-color: $gray-300 !default;
  512. // Jumbotron
  513. $jumbotron-padding: 2rem !default;
  514. $jumbotron-bg: $gray-200 !default;
  515. // Cards
  516. $card-spacer-y: .75rem !default;
  517. $card-spacer-x: 1.25rem !default;
  518. $card-border-width: 0 !default; //$border-width !default;
  519. $card-border-radius: $border-radius !default;
  520. $card-border-color: rgba($black, .125) !default;
  521. $card-inner-border-radius: calc(#{$card-border-radius} - #{$card-border-width}) !default;
  522. $card-cap-bg: rgba($black, .03) !default;
  523. $card-bg: $white !default;
  524. $card-img-overlay-padding: 1.25rem !default;
  525. $card-group-margin: ($grid-gutter-width * .5) !default;
  526. $card-deck-margin: $card-group-margin !default;
  527. $card-columns-count: 3 !default;
  528. $card-columns-gap: 1.25rem !default;
  529. $card-columns-margin: $card-spacer-y !default;
  530. // Tooltips
  531. $tooltip-font-size: $font-size-sm !default;
  532. $tooltip-max-width: 200px !default;
  533. $tooltip-color: $white !default;
  534. $tooltip-bg: $black !default;
  535. $tooltip-border-radius: $border-radius !default;
  536. $tooltip-opacity: .9 !default;
  537. $tooltip-padding-y: .25rem !default;
  538. $tooltip-padding-x: .5rem !default;
  539. $tooltip-margin: 0 !default;
  540. $tooltip-arrow-width: .8rem !default;
  541. $tooltip-arrow-height: .4rem !default;
  542. $tooltip-arrow-color: $tooltip-bg !default;
  543. // Form tooltips must come after regular tooltips
  544. $form-feedback-tooltip-padding-y: $tooltip-padding-y !default;
  545. $form-feedback-tooltip-padding-x: $tooltip-padding-x !default;
  546. $form-feedback-tooltip-font-size: $tooltip-font-size !default;
  547. $form-feedback-tooltip-line-height: $line-height-base !default;
  548. $form-feedback-tooltip-opacity: $tooltip-opacity !default;
  549. $form-feedback-tooltip-border-radius: $tooltip-border-radius !default;
  550. // Popovers
  551. $popover-font-size: $font-size-sm !default;
  552. $popover-bg: $white !default;
  553. $popover-max-width: 276px !default;
  554. $popover-border-width: $border-width !default;
  555. $popover-border-color: rgba($black, .2) !default;
  556. $popover-border-radius: $border-radius-lg !default;
  557. $popover-box-shadow: 0 .25rem .5rem rgba($black, .2) !default;
  558. $popover-header-bg: darken($popover-bg, 3%) !default;
  559. $popover-header-color: $headings-color !default;
  560. $popover-header-padding-y: .5rem !default;
  561. $popover-header-padding-x: .75rem !default;
  562. $popover-body-color: $body-color !default;
  563. $popover-body-padding-y: $popover-header-padding-y !default;
  564. $popover-body-padding-x: $popover-header-padding-x !default;
  565. $popover-arrow-width: 1rem !default;
  566. $popover-arrow-height: .5rem !default;
  567. $popover-arrow-color: $popover-bg !default;
  568. $popover-arrow-outer-color: fade-in($popover-border-color, .05) !default;
  569. // Badges
  570. $badge-font-size: 75% !default;
  571. $badge-font-weight: $font-weight-bold !default;
  572. $badge-padding-y: .25em !default;
  573. $badge-padding-x: .4em !default;
  574. $badge-border-radius: $border-radius !default;
  575. $badge-pill-padding-x: .6em !default;
  576. // Use a higher than normal value to ensure completely rounded edges when
  577. // customizing padding or font-size on labels.
  578. $badge-pill-border-radius: 10rem !default;
  579. // Modals
  580. // Padding applied to the modal body
  581. $modal-inner-padding: 1rem !default;
  582. $modal-dialog-margin: .5rem !default;
  583. $modal-dialog-margin-y-sm-up: 1.75rem !default;
  584. $modal-title-line-height: $line-height-base !default;
  585. $modal-content-bg: $white !default;
  586. $modal-content-border-color: rgba($black, .2) !default;
  587. $modal-content-border-width: $border-width !default;
  588. $modal-content-border-radius: $border-radius-lg !default;
  589. $modal-content-box-shadow-xs: 0 .25rem .5rem rgba($black, .5) !default;
  590. $modal-content-box-shadow-sm-up: 0 .5rem 1rem rgba($black, .5) !default;
  591. $modal-backdrop-bg: $black !default;
  592. $modal-backdrop-opacity: .5 !default;
  593. $modal-header-border-color: $gray-200 !default;
  594. $modal-footer-border-color: $modal-header-border-color !default;
  595. $modal-header-border-width: $modal-content-border-width !default;
  596. $modal-footer-border-width: $modal-header-border-width !default;
  597. $modal-header-padding: 1rem !default;
  598. $modal-lg: 800px !default;
  599. $modal-md: 500px !default;
  600. $modal-sm: 300px !default;
  601. $modal-transition: transform .3s ease-out !default;
  602. // Alerts
  603. //
  604. // Define alert colors, border radius, and padding.
  605. $alert-padding-y: .75rem !default;
  606. $alert-padding-x: 1.25rem !default;
  607. $alert-margin-bottom: 1rem !default;
  608. $alert-border-radius: $border-radius !default;
  609. $alert-link-font-weight: $font-weight-bold !default;
  610. $alert-border-width: $border-width !default;
  611. $alert-bg-level: -10 !default;
  612. $alert-border-level: -9 !default;
  613. $alert-color-level: 6 !default;
  614. // Progress bars
  615. $progress-height: 1rem !default;
  616. $progress-font-size: ($font-size-base * .75) !default;
  617. $progress-bg: $gray-200 !default;
  618. $progress-border-radius: $border-radius !default;
  619. $progress-box-shadow: inset 0 .1rem .1rem rgba($black, .1) !default;
  620. $progress-bar-color: $white !default;
  621. $progress-bar-bg: theme-color("primary") !default;
  622. $progress-bar-animation-timing: 1s linear infinite !default;
  623. $progress-bar-transition: width .6s ease !default;
  624. // List group
  625. $list-group-bg: $white !default;
  626. $list-group-border-color: rgba($black, .125) !default;
  627. $list-group-border-width: $border-width !default;
  628. $list-group-border-radius: $border-radius !default;
  629. $list-group-item-padding-y: .75rem !default;
  630. $list-group-item-padding-x: 1.25rem !default;
  631. $list-group-hover-bg: $gray-100 !default;
  632. $list-group-active-color: $component-active-color !default;
  633. $list-group-active-bg: $component-active-bg !default;
  634. $list-group-active-border-color: $list-group-active-bg !default;
  635. $list-group-disabled-color: $gray-600 !default;
  636. $list-group-disabled-bg: $list-group-bg !default;
  637. $list-group-action-color: $gray-700 !default;
  638. $list-group-action-hover-color: $list-group-action-color !default;
  639. $list-group-action-active-color: $body-color !default;
  640. $list-group-action-active-bg: $gray-200 !default;
  641. // Image thumbnails
  642. $thumbnail-padding: .25rem !default;
  643. $thumbnail-bg: $body-bg !default;
  644. $thumbnail-border-width: $border-width !default;
  645. $thumbnail-border-color: $gray-300 !default;
  646. $thumbnail-border-radius: $border-radius !default;
  647. $thumbnail-box-shadow: 0 1px 2px rgba($black, .075) !default;
  648. // Figures
  649. $figure-caption-font-size: 90% !default;
  650. $figure-caption-color: $gray-600 !default;
  651. // Breadcrumbs
  652. $breadcrumb-padding-y: .75rem !default;
  653. $breadcrumb-padding-x: 1rem !default;
  654. $breadcrumb-item-padding: .5rem !default;
  655. $breadcrumb-margin-bottom: 1rem !default;
  656. $breadcrumb-bg: $gray-200 !default;
  657. $breadcrumb-divider-color: $gray-600 !default;
  658. $breadcrumb-active-color: $gray-600 !default;
  659. $breadcrumb-divider: "/" !default;
  660. // Carousel
  661. $carousel-control-color: $white !default;
  662. $carousel-control-width: 15% !default;
  663. $carousel-control-opacity: .5 !default;
  664. $carousel-indicator-width: 30px !default;
  665. $carousel-indicator-height: 3px !default;
  666. $carousel-indicator-spacer: 3px !default;
  667. $carousel-indicator-active-bg: $white !default;
  668. $carousel-caption-width: 70% !default;
  669. $carousel-caption-color: $white !default;
  670. $carousel-control-icon-width: 20px !default;
  671. $carousel-control-prev-icon-bg: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color}' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E"), "#", "%23") !default;
  672. $carousel-control-next-icon-bg: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color}' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E"), "#", "%23") !default;
  673. $carousel-transition: transform .6s ease !default;
  674. // Close
  675. $close-font-size: $font-size-base * 1.5 !default;
  676. $close-font-weight: $font-weight-bold !default;
  677. $close-color: $black !default;
  678. $close-text-shadow: 0 1px 0 $white !default;
  679. // Code
  680. $code-font-size: 87.5% !default;
  681. $code-color: $pink !default;
  682. $kbd-padding-y: .2rem !default;
  683. $kbd-padding-x: .4rem !default;
  684. $kbd-font-size: $code-font-size !default;
  685. $kbd-color: $white !default;
  686. $kbd-bg: $gray-900 !default;
  687. $pre-color: $gray-900 !default;
  688. $pre-scrollable-max-height: 340px !default;
  689. // Printing
  690. $print-page-size: a3 !default;
  691. $print-body-min-width: map-get($grid-breakpoints, "lg") !default;