Last active
August 23, 2016 01:15
-
-
Save Bandit/c7225a8c4fe2b6a5d45050933b8dfc02 to your computer and use it in GitHub Desktop.
Semantic UI HTML5 Meter Tag Styles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************* | |
Site Overrides | |
*******************************/ | |
/* <meter> */ | |
meter { | |
/* Reset the default appearance */ | |
// -webkit-appearance: none; /* this breaks Chrome v52+ http://blog.chromium.org/2016/06/chrome-52-beta-css-containment-simpler.html */ | |
-moz-appearance: none; | |
appearance: none; | |
width: 100%; | |
height: 1rem; | |
/* For Firefox */ | |
background: @background; | |
// box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset; | |
border-radius: @borderRadius; | |
} | |
/* WebKit */ | |
meter::-webkit-meter-bar { | |
background: @background; | |
// box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset; | |
border-radius: @borderRadius; | |
} | |
meter::-webkit-meter-optimum-value, | |
meter::-webkit-meter-suboptimum-value, | |
meter::-webkit-meter-even-less-good-value { | |
border-radius: @borderRadius; | |
} | |
meter::-webkit-meter-optimum-value { | |
background: @indicatingSixthColor; | |
} | |
meter::-webkit-meter-suboptimum-value { | |
background: @indicatingFourthColor; | |
} | |
meter::-webkit-meter-even-less-good-value { | |
background: @indicatingFirstColor; | |
} | |
/* Firefox */ | |
meter::-moz-meter-bar { | |
border-radius: @borderRadius; | |
} | |
meter:-moz-meter-optimum::-moz-meter-bar { | |
background: @indicatingSixthColor; | |
} | |
meter:-moz-meter-sub-optimum::-moz-meter-bar { | |
background: @indicatingFourthColor; | |
} | |
meter:-moz-meter-sub-sub-optimum::-moz-meter-bar { | |
background: @indicatingFirstColor; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put this file in
./site/modules/progress.overrides.import.less
to utilise the variables (and theme colours) from the Progress module.