_variables.scss 38 KB

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