diff options
| author | Pim van den Berg | 2013-06-22 12:55:06 +0200 |
|---|---|---|
| committer | Pim van den Berg | 2013-06-22 12:55:06 +0200 |
| commit | 41a8b01c6dfb5e5660a7d0029338777d01019feb (patch) | |
| tree | abaec0eb770939b3d2396129e27c4ef3704ad925 /layout | |
| parent | start using fieldset + legend for showing data (diff) | |
| download | apt-panopticon_cgp-41a8b01c6dfb5e5660a7d0029338777d01019feb.zip apt-panopticon_cgp-41a8b01c6dfb5e5660a7d0029338777d01019feb.tar.gz apt-panopticon_cgp-41a8b01c6dfb5e5660a7d0029338777d01019feb.tar.bz2 apt-panopticon_cgp-41a8b01c6dfb5e5660a7d0029338777d01019feb.tar.xz | |
overview: add color to load averages
The load average number turns:
* orange
When the load is higher than the number of cpu cores.
* red
When the load is more than twice as high as the number of cpu cores.
Diffstat (limited to 'layout')
| -rw-r--r-- | layout/style.css | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/layout/style.css b/layout/style.css index a828a8d..3d5c94b 100644 --- a/layout/style.css +++ b/layout/style.css | |||
| @@ -138,3 +138,14 @@ legend { | |||
| 138 | font-size: 1.4em; | 138 | font-size: 1.4em; |
| 139 | font-weight: normal; | 139 | font-weight: normal; |
| 140 | } | 140 | } |
| 141 | |||
| 142 | .warn { | ||
| 143 | color: darkorange; | ||
| 144 | font-weight: normal; | ||
| 145 | text-shadow: 0 0 1px darkorange; | ||
| 146 | } | ||
| 147 | .crit { | ||
| 148 | color: red; | ||
| 149 | font-weight: normal; | ||
| 150 | text-shadow: 0 0 1px red; | ||
| 151 | } | ||
