aboutsummaryrefslogtreecommitdiffstats
path: root/web/css/libs/_labels.scss
diff options
context:
space:
mode:
authorShevAbam <shevabam@gmail.com>2015-07-07 15:57:41 +0200
committerShevAbam <shevabam@gmail.com>2015-07-07 15:57:41 +0200
commit9970343fe5c8226f25234addc6b80836c092fe1f (patch)
treece8f029f3ce9251bd4c207a6427c356ad9042525 /web/css/libs/_labels.scss
parentdd982cee0716e38e68bc42ffb24952b5675a5b19 (diff)
General : cleaning and optimizing CSS
General : responsive design General : reload button now spins when you reload block General : update jQuery plugin Knob to 1.2.11 General : optimizing security (config file esm.config.json is now in the conf/ folder with an htaccess) CPU : retrieves correctly CPU frequency for Raspberry Pi CPU : add CPU temperature (+ option to enable/disable) System : little correction for getting distro name Swap : fix if swap is disabled Services status : adds protocol TCP or UDP for checking service status Services status : new option to hide port number (see show_port in services section)
Diffstat (limited to 'web/css/libs/_labels.scss')
-rw-r--r--web/css/libs/_labels.scss23
1 files changed, 8 insertions, 15 deletions
diff --git a/web/css/libs/_labels.scss b/web/css/libs/_labels.scss
index 726cb7e..5136300 100644
--- a/web/css/libs/_labels.scss
+++ b/web/css/libs/_labels.scss
@@ -2,24 +2,17 @@
span.label {
padding: 1px 3px 2px;
- font-size: $label-font-size;
+ font-size: map-get($label, font-size);
font-weight: bold;
color: #fff;
text-transform: uppercase;
white-space: nowrap;
- background-color: $label-default;
- @include border-radius($label-border-radius);
-
- &.success {
- background-color: $label-success;
- }
- &.warning {
- background-color: $label-warning;
- }
- &.important, &.error {
- background-color: $label-important;
- }
- &.notice {
- background-color: $label-notice;
+ background-color: map-get-deep($label, types, default);
+ @include border-radius(map-get($label, border-radius));
+
+ @each $name, $color in map-get($label, types) {
+ &.#{""+$name+""} {
+ background-color: $color;
+ }
}
} \ No newline at end of file