mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 13:25:00 +00:00
Bug 662251 - Default style and colors for the meter element. f=mounir r=bz,davidb
This commit is contained in:
parent
cbbf51eb82
commit
5f76a7e1fe
@ -4,35 +4,35 @@ div.meter-element {
|
||||
width: 5em;
|
||||
vertical-align: -0.2em;
|
||||
|
||||
/* Default style in case of there is -moz-appearance: none; */
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDShadow #e6e6e6;
|
||||
-moz-border-right-colors: ThreeDHighlight #e6e6e6;
|
||||
-moz-border-bottom-colors: ThreeDHighlight #e6e6e6;
|
||||
-moz-border-left-colors: ThreeDShadow #e6e6e6;
|
||||
/* #e6e6e6 is a light gray. */
|
||||
background-color: #e6e6e6;
|
||||
background-color: grey;
|
||||
}
|
||||
|
||||
div.meter-element.vertical {
|
||||
height: 5em;
|
||||
width: 1em;
|
||||
width: 1em;
|
||||
}
|
||||
|
||||
div.meter-bar {
|
||||
float: none ! important;
|
||||
|
||||
|
||||
height: 100%;
|
||||
/*
|
||||
* We can't apply the following style to the reference because it will have
|
||||
* underisable effectes:
|
||||
* width: 100%;
|
||||
*/
|
||||
|
||||
/* #2eff46 is green */
|
||||
background-color: #2eff46;
|
||||
|
||||
background-color: green;
|
||||
}
|
||||
|
||||
meter, meter::-moz-meter-bar, div.meter-element, div.meter-bar {
|
||||
-moz-appearance: none;
|
||||
}
|
||||
}
|
||||
|
||||
meter {
|
||||
background: grey;
|
||||
}
|
||||
|
||||
meter::-moz-meter-bar {
|
||||
background: green;
|
||||
}
|
||||
|
@ -671,14 +671,7 @@ meter {
|
||||
display: inline-block;
|
||||
vertical-align: -0.2em;
|
||||
|
||||
/* Default style in case of there is -moz-appearance: none; */
|
||||
border: 2px solid;
|
||||
/* #e6e6e6 is a light gray. */
|
||||
-moz-border-top-colors: ThreeDShadow #e6e6e6;
|
||||
-moz-border-right-colors: ThreeDHighlight #e6e6e6;
|
||||
-moz-border-bottom-colors: ThreeDHighlight #e6e6e6;
|
||||
-moz-border-left-colors: ThreeDShadow #e6e6e6;
|
||||
background-color: #e6e6e6;
|
||||
background: -moz-linear-gradient(top, #e6e6e6, #e6e6e6, #eeeeee 20%, #cccccc 45%, #cccccc 55%);
|
||||
}
|
||||
|
||||
::-moz-meter-bar {
|
||||
@ -691,11 +684,19 @@ meter {
|
||||
-moz-appearance: meterchunk;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Default style in case of there is -moz-appearance: none;
|
||||
* #2eff46 is green
|
||||
*/
|
||||
background-color: #2eff46;
|
||||
:-moz-meter-optimum::-moz-meter-bar {
|
||||
/* green. */
|
||||
background: -moz-linear-gradient(top, #ad7, #ad7, #cea 20%, #7a3 45%, #7a3 55%);
|
||||
}
|
||||
:-moz-meter-sub-optimum::-moz-meter-bar {
|
||||
/* orange. */
|
||||
background: -moz-linear-gradient(top, #fe7, #fe7, #ffc 20%, #db3 45%, #db3 55%);
|
||||
}
|
||||
:-moz-meter-sub-sub-optimum::-moz-meter-bar {
|
||||
/* red. */
|
||||
background: -moz-linear-gradient(top, #f77, #f77, #fcc 20%, #d44 45%, #d44 55%);
|
||||
}
|
||||
|
||||
%ifdef XP_OS2
|
||||
|
Loading…
Reference in New Issue
Block a user