tazpanel view styles/default/style.css @ rev 406

Small improvements: no need HTML "meta charset" (it's done in HTTP headers); no need "$SCRIPT_NAME" in links; use HTML "&" in links; hide Wi-Fi password in the page; fix month selector in the date settings; use HTML5 plain "header" and "footer"; use "printf"'s loop nature; fix "1" message in page loading break.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jan 03 17:11:14 2015 +0200 (2015-01-03)
parents d9576ab0e512
children defd4d56e443
line source
1 /*
2 * CSS style for TazPanel - (C) 2011-12 SliTaz GNU/Linux
3 */
5 /* To always have a scroll bar */
6 html {
7 min-height: 102%;
8 }
10 body {
11 background: #fff;
12 color: black;
13 font: 13px "DejaVu Sans", Ubuntu, "Droid Sans", "Liberation Sans", FreeSans, sans-serif;
14 margin: 80px 0 0;
15 }
17 h1 { margin: 0; padding: 8px; color: #fff; font-size: 20px; }
18 h2 { color: #333; margin: 10px 0 10px; font-size: 180%; }
19 h3 { color: #444; font-size: 160%; }
20 h4 { color: #666; font-size: 140%; }
21 img { border: 0pt none; vertical-align: middle; padding: 0px 6px 2px 0;}
22 p { margin: 10px 0; }
23 ul { list-style-type: square; }
24 li { padding: 4px 0; }
25 a { text-decoration: none; color: #666; }
26 a:hover { color: #000; }
28 /* Header and main title */
30 header {
31 height: 40px;
32 /*border-bottom: 4px solid #afafaf;*/
33 background: #222 url(images/logo.png) no-repeat left;
34 position: fixed;
35 top: 0;
36 width: 100%;
37 }
39 header h1 {
40 margin: 0;
41 padding: 8px 0 0 42px;
42 font-style: italic;
43 }
45 /* Desktop gui style bar */
47 #toolbar {
48 position: fixed;
49 top: 40px;
50 left: 0;
51 height: 23px;
52 width: 100%;
53 padding: 0;
54 background-color: #f1efeb;
55 border-bottom: 1px solid #c1baad;
56 z-index: 200;
57 cursor: default;
58 }
60 #menu {
61 margin: 0;
62 padding: 0;
63 }
64 #menu li {
65 list-style: none;
66 float: left;
67 padding: 0;
68 }
69 #menu li a {
70 display: block;
71 padding: 4px 6px;
72 background-color: inherit;
73 text-decoration: none;
74 cursor: default;
75 color: #000;
76 }
77 #menu li a:hover {
78 color: #ffffff;
79 background-color: #d66018;
80 }
81 #menu li ul {
82 display: none;
83 min-width: 180px;
84 background-color: #f1efeb;
85 border: 1px solid #c1baad;
86 }
87 #menu li ul a {
88 padding: 4px 6px 2px;
89 }
90 #menu li:hover ul {
91 display: block;
92 position: absolute;
93 margin: 0;
94 padding: 0;
95 }
96 #menu li:hover li {
97 float: none;
98 position: relative;
99 }
100 #menu li:hover li a {
101 background-color: #f1efeb;
102 color: #000;
103 }
104 #menu li li a { border: 1px solid #f1efeb; }
105 #menu li li a:hover {
106 background-color: #d66018;
107 color: #ffffff;
108 border-radius: 2px;
109 /* border: 1px solid #c1baad; */
110 }
112 /* submenus */
113 #menu li:hover li ul {
114 display: none;
115 position: absolute;
116 left: 180px;
117 top: 0px;
118 z-index:1;
119 }
120 #menu li:hover li:hover ul {
121 display: block;
122 }
124 #icons { margin: 3px 8px; float: right; }
125 #icons img { padding: 0; }
127 #loading {
128 /* font-weight: bold; */
129 background-color: #f8f8f8;
130 border: 1px solid #ddd;
131 color: #666;
132 cursor: progress;
133 position: fixed;
134 top: 76px;
135 right: 140px;
136 width: 248px;
137 padding: 4px 4px 2px;
138 }
140 /* Blocks */
142 #block { float: left; }
144 /* Content */
146 #content { margin: 20px; }
147 #wrapper, .wrapper { margin: 20px 0; }
149 #actions {
150 min-height: 20px;
151 padding: 0;
152 }
154 #actions p { margin: 6px 0; }
156 .search {
157 position: fixed;
158 right: 10px;
159 top: -8px;
160 }
162 .search input[type=submit] {
163 padding: 5px;
164 margin-left: -4px;
165 background-color: #f1f1f1;
166 border: 1px solid #ddd;
167 cursor: pointer;
168 color: #000;
169 font-weight: bold;
170 border-radius: 0px;
171 }
173 .search input[type=submit].radius {
174 border-top-right-radius: 4px;
175 border-bottom-right-radius: 4px;
176 border-top-left-radius: 0px;
177 border-bottom-left-radius: 0px;
178 }
180 .search input[type=text] {
181 border: 1px solid #ddd;
182 padding: 4px;
183 height: 18px;
184 margin: 0;
185 width: 200px;
186 border-top-left-radius: 4px;
187 border-bottom-left-radius: 4px;
188 }
190 .box {
191 margin: 10px 0;
192 padding: 12px;
193 background: #f8f8f8;
194 border: 1px solid #ddd;
195 }
197 .box ul { list-style-type: none; padding: 0; }
199 .debug {
200 position: fixed;
201 bottom: 0px;
202 right: 10px;
203 left: 10px;
204 margin: 5px;
205 padding: 4px 10px;
206 background-color: #111;
207 color: #fff;
208 border: 0;
209 font-size: 12px;
210 opacity: 0.9;
211 }
213 .float-left {
214 float: left;
215 }
216 .float-right {
217 float: right;
218 }
220 /* Table */
222 table {
223 background-color: #f8f8f8;
224 border: 4px solid #ddd;
225 padding: 10px;
226 width: 100%;
227 margin: 0 0 6px 0;
228 }
230 table a { color: #000; }
231 table a:hover { color: #666; }
232 td.small { min-width: 60px; }
233 td.pct { min-width: 200px; background: #eee; }
234 div.pct { background: #ccc; }
235 td.pct, div.pct { border-radius: 2px; }
237 #thead, .thead, thead {
238 height: 10px;
239 font-weight: bold;
240 }
242 /*
243 * Table Zebra
244 */
246 table.zebra {
247 border: none;
248 border-collapse: collapse;
249 margin: 20px 0;
250 }
251 table.zebra tr:nth-child(even) {
252 background-color: rgba(0,0,0,0.05);
253 }
254 table.zebra thead tr td {
255 height: 22px;
256 background-color: #eee;
257 text-align: center;
258 vertical-align: middle;
259 }
260 table.zebra td + td {
261 border-left: 1px solid #ddd;
262 height: 22px;
263 }
264 table.zebra td:first-child { padding-left: 6px; }
265 .outbox {
266 box-shadow: 0 0 2px 4px #ddd;
267 }
268 .fixed {
269 table-layout: fixed;
270 }
272 /*
273 * syntax_highlighter
274 */
276 span.conf-comment { color: #666; }
277 span.conf-var { color: #392600; }
278 span.conf-val, span.sh-val { color: #f35a00; }
279 span.sh-comment { color: #b20000; }
280 span.activity-log { color: #888; }
281 span.diff-rm { color: red; }
282 span.diff-add { color: green; }
283 span.diff-at { color: blue; }
284 span.top { color: #00c800; font-weight: normal; }
285 span.kernel-hex { color: #18A423; }
286 span.kernel-id { color: #287FC7; }
287 span.kernel-id2 { color: #843523; }
288 span.lsusb-h, span.lspci-h { color: #800; font-weight: bold; }
289 span.lsusb-t, span.lspci-t { color: #448; font-weight: bold; }
291 /* Misc */
293 pre, .pre-main {
294 font: 13px "DejaVu Sans Mono", "Droid Sans Mono", "Liberation Mono", FreeMono, monospace;
295 background-color: #f8f8f8;
296 border: 4px solid #ddd;
297 padding: 10px;
298 margin: 10px 0;
299 overflow: auto;
300 }
302 .pre-main { margin: 16px 0; }
304 input[type=submit], .button {
305 color: #444444;
306 border: 1px solid #afafaf;
307 padding: 4px;
308 margin: 4px 0px;
309 font-size: 14px;
310 line-height: 1.2em;
311 background-image: -webkit-linear-gradient(#FAFAFA, #F4F4F4 40%, #E5E5E5);
312 background-image: -moz-linear-gradient(#FAFAFA, #F4F4F4 40%, #E5E5E5);
313 -webkit-appearance: none;
314 -webkit-padding-end: 12px;
315 -webkit-padding-start: 6px;
316 }
317 input[type="submit"] {
318 -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
319 -moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
320 box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
321 }
322 /*select {
323 background-image: url(images/down.png),
324 -webkit-linear-gradient(#FAFAFA, #F4F4F4 40%, #E5E5E5);
325 background-position: center right;
326 background-repeat: no-repeat;
327 }*/
328 a.button {
329 white-space: nowrap;
330 height: 16px;
331 margin: 2px 0;
332 display: inline-block;
333 }
335 input[type=submit]:hover, .button:hover {
336 background-color: #ddd;
337 border: 1px solid #999;
338 }
340 input[type=text], input[type=password] { height: 18px; }
342 div.scroll { height: 200px; overflow: auto;
343 border: 1px solid #ddd; }
344 div.scroll table { border: 0px solid #fff; }
346 #terminal {
347 background: #000;
348 color: #fff;
349 border: 1px solid #444;
350 min-height: 240px;
351 }
353 /* Round corner */
355 #loading, table, pre, input[type=submit], .debug, .box,
356 .button, div.scroll, .outbox, section {
357 -moz-border-radius: 4px;
358 -webkit-border-radius: 4px;
359 border-radius: 4px;
360 }
362 /* Help page */
364 #help { text-align: justify; }
365 #help a { color: #215090; text-decoration: underline; }
366 #help a:hover { text-decoration: none; color: blue; }
368 /* Footer */
370 footer {
371 /* border-bottom: 1px solid #c1baad; */
372 height: 25px;
373 text-align: center;
374 padding: 40px 10px;
375 font-size: 11px;
376 color: #bbb;
377 }
379 footer a { color: #bbb; }
380 footer a:hover { color: #555; }
382 /* HTML5 Meter */
383 .meter {
384 height: 22px;
385 min-width: 200px;
386 cursor: default;
387 }
388 .meter meter {
389 height: inherit;
390 width: 100%;
391 display: block;
392 border: 1px solid #ddd;
393 border-radius: 4px;
394 }
395 .meter span {
396 height: 22px;
397 display: block;
398 white-space: nowrap;
399 position: absolute;
400 margin: -18px auto 0 2px;
401 }
403 a.button, input {
404 -webkit-transition: all 0.3s ease-in-out;
405 -moz-transition: all 0.3s ease-in-out;
406 -o-transition: all 0.3s ease-in-out;
407 -ms-transition: all 0.3s ease-in-out;
408 transition: all 0.3s ease-in-out;
409 }
411 /*section {
412 margin: 20pt -0.7em;
413 padding: 0.8em 0.7em 1.2em;
414 background-color: #fdfdfd;
415 border: 1px solid #ddd;
416 border-radius: 1em;
417 box-shadow: 0 0 3pt 2pt #eee;
418 }
419 section h4 {
420 margin: 0 0 0.5em 0;
421 }
422 section h3 {
423 margin: 0 0 0.5em 0; }
424 */