diff options
Diffstat (limited to 'layout')
-rw-r--r-- | layout/style-b.css | 0 | ||||
-rw-r--r-- | layout/style-c.css | 43 | ||||
-rw-r--r-- | layout/style-d.css | 3 | ||||
-rw-r--r-- | layout/style.css | 67 |
4 files changed, 95 insertions, 18 deletions
diff --git a/layout/style-b.css b/layout/style-b.css new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layout/style-b.css | |||
diff --git a/layout/style-c.css b/layout/style-c.css new file mode 100644 index 0000000..702cc04 --- /dev/null +++ b/layout/style-c.css | |||
@@ -0,0 +1,43 @@ | |||
1 | label[for="navicon"] { | ||
2 | display: block; | ||
3 | } | ||
4 | |||
5 | #header h1 { | ||
6 | padding-left: 30px; | ||
7 | } | ||
8 | |||
9 | #content { | ||
10 | padding-left: 5px; | ||
11 | } | ||
12 | |||
13 | #footer { | ||
14 | padding-left: 5px; | ||
15 | } | ||
16 | |||
17 | .row .hostinfo { | ||
18 | font-size: 0.7em; | ||
19 | opacity: 0.6; | ||
20 | } | ||
21 | |||
22 | .plugins { | ||
23 | position: absolute; | ||
24 | z-index: 0; | ||
25 | display: none; | ||
26 | } | ||
27 | |||
28 | .navicon:checked ~ .plugins { | ||
29 | display: block; | ||
30 | } | ||
31 | |||
32 | .graphs { | ||
33 | position: relative; | ||
34 | z-index: 1; | ||
35 | background: #fff; | ||
36 | min-height: 100%; | ||
37 | min-width: 100%; | ||
38 | bottom: 100%; | ||
39 | } | ||
40 | |||
41 | .navicon:checked ~ .graphs { | ||
42 | left: 125px; | ||
43 | } | ||
diff --git a/layout/style-d.css b/layout/style-d.css new file mode 100644 index 0000000..244e96a --- /dev/null +++ b/layout/style-d.css | |||
@@ -0,0 +1,3 @@ | |||
1 | .graphs img { | ||
2 | width: 99%; | ||
3 | } | ||
diff --git a/layout/style.css b/layout/style.css index 9bf4c7e..768c0c6 100644 --- a/layout/style.css +++ b/layout/style.css | |||
@@ -3,14 +3,41 @@ body { | |||
3 | margin: 0px; | 3 | margin: 0px; |
4 | } | 4 | } |
5 | 5 | ||
6 | label[for="navicon"] { | ||
7 | display: none; | ||
8 | |||
9 | position: absolute; | ||
10 | left: 5px; top: 5px; | ||
11 | z-index: 2; | ||
12 | |||
13 | height: 25px; | ||
14 | width: 25px; | ||
15 | cursor: pointer; | ||
16 | background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' x='0px' y='0px' width='25px' height='25px' viewBox='0 0 25 25' enable-background='new 0 0 25 25' xml:space='preserve'><rect width='25' height='5' style='fill:white'/><rect y='20' width='25' height='5' style='fill:white'/><rect y='10' width='25' height='5' style='fill:white'/></svg>"); | ||
17 | background-size: contain; | ||
18 | } | ||
19 | |||
20 | .navicon { | ||
21 | position: absolute; | ||
22 | clip: rect(0, 0, 0, 0); | ||
23 | } | ||
24 | |||
6 | #header { | 25 | #header { |
7 | background: #4d79b5; | 26 | background: #4d79b5; |
8 | padding-left: 10px; | 27 | padding-left: 10px; |
28 | color: #fff; | ||
29 | } | ||
30 | |||
31 | #header h1 { | ||
32 | position: relative; | ||
33 | display: inline-block; | ||
34 | padding: 8px; | ||
35 | margin: 0; | ||
36 | font-size: 1em; | ||
9 | } | 37 | } |
10 | 38 | ||
11 | #header a{ | 39 | #header a{ |
12 | display: block; | 40 | display: block; |
13 | padding: 8px; | ||
14 | color: #fff; | 41 | color: #fff; |
15 | text-decoration: none; | 42 | text-decoration: none; |
16 | } | 43 | } |
@@ -28,11 +55,7 @@ body { | |||
28 | #footer { | 55 | #footer { |
29 | clear: both; | 56 | clear: both; |
30 | padding: 0px 20px 16px; | 57 | padding: 0px 20px 16px; |
31 | } | 58 | background: #fff; |
32 | |||
33 | h1 { | ||
34 | margin: 0; | ||
35 | font-size: 1em; | ||
36 | } | 59 | } |
37 | 60 | ||
38 | h2 { | 61 | h2 { |
@@ -49,28 +72,35 @@ a:hover { | |||
49 | text-decoration: underline; | 72 | text-decoration: underline; |
50 | } | 73 | } |
51 | 74 | ||
52 | table.summary th { | 75 | .row { |
53 | width: 300px; | 76 | clear: left; |
54 | font-weight: normal; | 77 | padding: 4px; |
55 | text-align: left; | ||
56 | } | 78 | } |
57 | 79 | ||
58 | table.summary tr.even { | 80 | .row.even { |
59 | /* background: #eeeeee; */ | 81 | /* background: #eeeeee; */ |
60 | } | 82 | } |
61 | 83 | ||
62 | table.summary tr.odd { | 84 | .row.odd { |
63 | /* background: #cccccc; */ | 85 | /* background: #cccccc; */ |
64 | } | 86 | } |
65 | 87 | ||
66 | table.summary td { | 88 | .row label { |
67 | width: 50px; | 89 | float: left; |
68 | text-align: right; | 90 | width: 20em; |
91 | } | ||
92 | |||
93 | .row .hostinfo { | ||
94 | float: left; | ||
95 | } | ||
96 | |||
97 | .row .field { | ||
98 | float: left; | ||
99 | width: 3.4em; | ||
69 | } | 100 | } |
70 | 101 | ||
71 | table.summary td.wide { | 102 | .row .field.wide { |
72 | width: 125px; | 103 | width: 8em; |
73 | text-align: right; | ||
74 | } | 104 | } |
75 | 105 | ||
76 | img { | 106 | img { |
@@ -119,6 +149,7 @@ hr { | |||
119 | .plugins { | 149 | .plugins { |
120 | float: left; | 150 | float: left; |
121 | margin-right: 25px; | 151 | margin-right: 25px; |
152 | width: 100px; | ||
122 | } | 153 | } |
123 | 154 | ||
124 | .plugins ul > li:first-of-type { | 155 | .plugins ul > li:first-of-type { |