_variables.scss 37 KB

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