Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
7cfdc771
Commit
7cfdc771
authored
9 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
Uncomment Firefox .progress styles; fixes #18536
[skip sauce] [skip validator]
parent
a96e522d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scss/_progress.scss
+23
-27
scss/_progress.scss
with
23 additions
and
27 deletions
+23
-27
scss/_progress.scss
+
23
-
27
View file @
7cfdc771
...
...
@@ -35,11 +35,28 @@
// Remove right-hand border of value bar from IE10+/Edge
border
:
0
;
}
.progress
[
value
]
::-moz-progress-bar
{
background-color
:
$progress-bar-color
;
border-top-left-radius
:
$border-radius
;
border-bottom-left-radius
:
$border-radius
;
}
.progress
[
value
]
::-webkit-progress-value
{
background-color
:
$progress-bar-color
;
border-top-left-radius
:
$border-radius
;
border-bottom-left-radius
:
$border-radius
;
}
// Tweaks for empty progress bar
.progress
[
value
=
"0"
]
::-moz-progress-bar
{
min-width
:
2rem
;
color
:
$gray-light
;
background-color
:
transparent
;
background-image
:
none
;
}
// Tweaks for full progress bar
.progress
[
value
=
"100"
]
::-moz-progress-bar
{
border-top-right-radius
:
$border-radius
;
border-bottom-right-radius
:
$border-radius
;
}
.progress
[
value
=
"100"
]
::-webkit-progress-value
{
border-top-right-radius
:
$border-radius
;
border-bottom-right-radius
:
$border-radius
;
...
...
@@ -51,33 +68,12 @@
@include
border-radius
(
$border-radius
);
@include
box-shadow
(
inset
0
.1rem
.1rem
rgba
(
0
,
0
,
0
,.
1
));
}
// Firefox styles must be entirely separate or it busts Webkit styles.
//
// Commented out for now because linter.
//
// $-moz-document url-prefix() {
// .progress[value] {
// background-color: $progress-bg;
// .border-radius($border-radius);
// .box-shadow(inset 0 .1rem .1rem rgba(0,0,0,.1));
// }
// .progress[value]::-moz-progress-bar {
// background-color: $progress-bar-color;
// border-top-left-radius: $border-radius;
// border-bottom-left-radius: $border-radius;
// }
// .progress[value="0"]::-moz-progress-bar {
// color: $gray-light;
// min-width: 2rem;
// background-color: transparent;
// background-image: none;
// }
// .progress[value="100"]::-moz-progress-bar {
// border-top-right-radius: $border-radius;
// border-bottom-right-radius: $border-radius;
// }
// }
base
:
:-
moz-progress-bar
,
//
Absurd-but-syntactically-valid
selector
to
make
these
styles
Firefox-only
.
progress
[
value
]
{
background-color
:
$progress-bg
;
@include
border-radius
(
$border-radius
);
@include
box-shadow
(
inset
0
.1rem
.1rem
rgba
(
0
,
0
,
0
,.
1
));
}
// IE9 hacks to accompany custom markup. We don't need to scope this via media queries, but I feel better doing it anyway.
@media
screen
and
(
min-width
:
0
\
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment