Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Déramond <julien.deramond@orange.com>2022-02-25 17:38:51 +0300
committerMark Otto <otto@github.com>2022-02-25 19:43:47 +0300
commit2c5a16ff8bdffe64361c4e2b8ad2a2dd57c6fa14 (patch)
treec89df70ab0db8a404c32fb7fc328762ea1352731 /scss/_dropdown.scss
parent1c5ec4c310ee630884fb75050ecd94e771031839 (diff)
Use all dropdowns CSS variables
Diffstat (limited to 'scss/_dropdown.scss')
-rw-r--r--scss/_dropdown.scss8
1 files changed, 4 insertions, 4 deletions
diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss
index ad45b84a9f..2a9a6646f8 100644
--- a/scss/_dropdown.scss
+++ b/scss/_dropdown.scss
@@ -25,7 +25,7 @@
--#{$variable-prefix}dropdown-border-color: #{$dropdown-border-color};
--#{$variable-prefix}dropdown-border-radius: #{$dropdown-border-radius};
--#{$variable-prefix}dropdown-border-width: #{$dropdown-border-width};
- --#{$variable-prefix}dropdown-inner-border: #{$dropdown-inner-border-radius};
+ --#{$variable-prefix}dropdown-inner-border-radius: #{$dropdown-inner-border-radius};
--#{$variable-prefix}dropdown-divider-bg: #{$dropdown-divider-bg};
--#{$variable-prefix}dropdown-divider-margin-y: #{$dropdown-divider-margin-y};
--#{$variable-prefix}dropdown-box-shadow: #{$dropdown-box-shadow};
@@ -145,7 +145,7 @@
// Dividers (basically an `<hr>`) within the dropdown
.dropdown-divider {
height: 0;
- margin: $dropdown-divider-margin-y 0;
+ margin: var(--#{$variable-prefix}dropdown-divider-margin-y) 0;
overflow: hidden;
border-top: 1px solid var(--#{$variable-prefix}dropdown-divider-bg);
}
@@ -170,11 +170,11 @@
// See https://github.com/twbs/bootstrap/pull/27703
@if $dropdown-padding-y == 0 {
&:first-child {
- @include border-top-radius($dropdown-inner-border-radius);
+ @include border-top-radius(var(--#{$variable-prefix}dropdown-inner-border-radius));
}
&:last-child {
- @include border-bottom-radius($dropdown-inner-border-radius);
+ @include border-bottom-radius(var(--#{$variable-prefix}dropdown-inner-border-radius));
}
}