|
1 | 1 | @use "sass:map";
|
2 | 2 | @use "config" as *;
|
| 3 | +@use "colors" as *; |
3 | 4 | @use "variables" as *;
|
4 | 5 | @use "mixins/caret" as *;
|
5 | 6 | @use "mixins/border-radius" as *;
|
|
9 | 10 | @use "vendor/rfs" as *;
|
10 | 11 | @use "layout/breakpoints" as *;
|
11 | 12 |
|
| 13 | +// scss-docs-start dropdown-variables |
| 14 | +$dropdown-min-width: 10rem !default; |
| 15 | +$dropdown-padding-x: 0 !default; |
| 16 | +$dropdown-padding-y: .5rem !default; |
| 17 | +$dropdown-spacer: .125rem !default; |
| 18 | +$dropdown-font-size: $font-size-base !default; |
| 19 | +$dropdown-color: var(--#{$prefix}body-color) !default; |
| 20 | +$dropdown-bg: var(--#{$prefix}body-bg) !default; |
| 21 | +$dropdown-border-color: var(--#{$prefix}border-color-translucent) !default; |
| 22 | +$dropdown-border-radius: var(--#{$prefix}border-radius) !default; |
| 23 | +$dropdown-border-width: var(--#{$prefix}border-width) !default; |
| 24 | +$dropdown-inner-border-radius: calc(#{$dropdown-border-radius} - #{$dropdown-border-width}) !default; |
| 25 | +$dropdown-divider-bg: $dropdown-border-color !default; |
| 26 | +$dropdown-divider-margin-y: $spacer * .5 !default; |
| 27 | +$dropdown-box-shadow: var(--#{$prefix}box-shadow) !default; |
| 28 | + |
| 29 | +$dropdown-link-color: var(--#{$prefix}body-color) !default; |
| 30 | +$dropdown-link-hover-color: $dropdown-link-color !default; |
| 31 | +$dropdown-link-hover-bg: var(--#{$prefix}tertiary-bg) !default; |
| 32 | + |
| 33 | +$dropdown-link-active-color: $component-active-color !default; |
| 34 | +$dropdown-link-active-bg: $component-active-bg !default; |
| 35 | + |
| 36 | +$dropdown-link-disabled-color: var(--#{$prefix}tertiary-color) !default; |
| 37 | + |
| 38 | +$dropdown-item-padding-y: $spacer * .25 !default; |
| 39 | +$dropdown-item-padding-x: $spacer !default; |
| 40 | + |
| 41 | +$dropdown-header-color: $gray-600 !default; |
| 42 | +$dropdown-header-padding-x: $dropdown-item-padding-x !default; |
| 43 | +$dropdown-header-padding-y: $dropdown-padding-y !default; |
| 44 | +// scss-docs-end dropdown-variables |
| 45 | + |
| 46 | +// scss-docs-start dropdown-dark-variables |
| 47 | +$dropdown-dark-color: $gray-300 !default; |
| 48 | +$dropdown-dark-bg: $gray-800 !default; |
| 49 | +$dropdown-dark-border-color: $dropdown-border-color !default; |
| 50 | +$dropdown-dark-divider-bg: $dropdown-divider-bg !default; |
| 51 | +$dropdown-dark-box-shadow: null !default; |
| 52 | +$dropdown-dark-link-color: $dropdown-dark-color !default; |
| 53 | +$dropdown-dark-link-hover-color: $white !default; |
| 54 | +$dropdown-dark-link-hover-bg: rgba($white, .15) !default; |
| 55 | +$dropdown-dark-link-active-color: $dropdown-link-active-color !default; |
| 56 | +$dropdown-dark-link-active-bg: $dropdown-link-active-bg !default; |
| 57 | +$dropdown-dark-link-disabled-color: $gray-500 !default; |
| 58 | +$dropdown-dark-header-color: $gray-500 !default; |
| 59 | +// scss-docs-end dropdown-dark-variables |
| 60 | + |
12 | 61 | @layer components {
|
13 | 62 | // The dropdown wrapper (`<div>`)
|
14 | 63 | .dropup,
|
|
0 commit comments