aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-11-26 18:46:46 -0800
committerGitHub <[email protected]>2016-11-26 18:46:46 -0800
commit23301b21cd1a36611bf35a9f71cdf1a7293741de (patch)
tree701246ffa5a164b5768823835570e1e2a6bb6a78
parent2da3d1c8623d74370c1c6223a80a3e6e0f89f0b2 (diff)
downloadbootstrap-23301b21cd1a36611bf35a9f71cdf1a7293741de.tar.xz
bootstrap-23301b21cd1a36611bf35a9f71cdf1a7293741de.zip
Remove most border-radius properties and instead use overflow: hidden; to properly round corners of a full progress bar. (#21216)
Fixes #19065.
-rw-r--r--scss/_progress.scss16
1 files changed, 1 insertions, 15 deletions
diff --git a/scss/_progress.scss b/scss/_progress.scss
index c2364feee..8b0225e9a 100644
--- a/scss/_progress.scss
+++ b/scss/_progress.scss
@@ -17,6 +17,7 @@
width: 100%;
height: $spacer-y; // todo: make a new var for this
margin-bottom: $spacer-y;
+ overflow: hidden; // force rounded corners by cropping it
}
.progress[value] {
// Set overall background
@@ -37,30 +38,19 @@
}
.progress[value]::-moz-progress-bar {
background-color: $progress-bar-color;
- @include border-left-radius($progress-border-radius);
}
.progress[value]::-webkit-progress-value {
background-color: $progress-bar-color;
- @include border-left-radius($progress-border-radius);
-}
-// Tweaks for full progress bar
-.progress[value="100"]::-moz-progress-bar {
- @include border-right-radius($progress-border-radius);
-}
-.progress[value="100"]::-webkit-progress-value {
- @include border-right-radius($progress-border-radius);
}
// Unfilled portion of the bar
.progress[value]::-webkit-progress-bar {
background-color: $progress-bg;
- @include border-radius($progress-border-radius);
@include box-shadow($progress-box-shadow);
}
base::-moz-progress-bar, // Absurd-but-syntactically-valid selector to make these styles Firefox-only
.progress[value] {
background-color: $progress-bg;
- @include border-radius($progress-border-radius);
@include box-shadow($progress-box-shadow);
}
@@ -76,10 +66,6 @@ base::-moz-progress-bar, // Absurd-but-syntactically-valid selector to make thes
height: $spacer-y;
text-indent: -999rem; // Simulate hiding of value as in native `<progress>`
background-color: $progress-bar-color;
- @include border-left-radius($progress-border-radius);
- }
- .progress[width="100%"] {
- @include border-right-radius($progress-border-radius);
}
}