diff options
| author | Roy Klutman <[email protected]> | 2018-11-21 23:24:13 +0100 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2018-11-22 00:24:13 +0200 |
| commit | e7e43edf65306efaf46a16ffc9fe35ef623bffef (patch) | |
| tree | 39aadb18839e13b6a8b40e941492e7cc09e11157 /scss | |
| parent | 31d6d03c47cc648a9fa32efc0baaf08ae4f6c241 (diff) | |
| download | bootstrap-e7e43edf65306efaf46a16ffc9fe35ef623bffef.tar.xz bootstrap-e7e43edf65306efaf46a16ffc9fe35ef623bffef.zip | |
Add border-radius to dropdown items (#27703)
Diffstat (limited to 'scss')
| -rw-r--r-- | scss/_dropdown.scss | 8 | ||||
| -rw-r--r-- | scss/_variables.scss | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss index eafce8d0b..93c1d78e9 100644 --- a/scss/_dropdown.scss +++ b/scss/_dropdown.scss @@ -136,6 +136,14 @@ background-color: transparent; // For `<button>`s border: 0; // For `<button>`s + &:first-child { + @include border-top-radius($dropdown-inner-border-radius); + } + + &:last-child { + @include border-bottom-radius($dropdown-inner-border-radius); + } + @include hover-focus { color: $dropdown-link-hover-color; text-decoration: none; diff --git a/scss/_variables.scss b/scss/_variables.scss index 1e8025458..988624451 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -657,6 +657,7 @@ $dropdown-bg: $white !default; $dropdown-border-color: rgba($black, .15) !default; $dropdown-border-radius: $border-radius !default; $dropdown-border-width: $border-width !default; +$dropdown-inner-border-radius: calc(#{$dropdown-border-radius} - #{$dropdown-border-width}) !default; $dropdown-divider-bg: $gray-200 !default; $dropdown-box-shadow: 0 .5rem 1rem rgba($black, .175) !default; |
