tazpanel view styles/default/base.css @ rev 426

Code cleaning; add icons for packages and "toggle" to tazpanel.ttf; merge checkbox.js with tazpanel.js.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 27 14:28:32 2015 +0200 (2015-03-27)
parents 299f204b8f1f
children b0146d791379
line source
1 /**
2 * CSS style for TazPanel - (C) 2011-2015 SliTaz GNU/Linux
3 */
6 /* To always have a scroll bar */
7 /*html { min-height: 102%; } */
9 body { color: CaptionText; font: caption; margin: 72px 0 0 0; }
13 /**
14 * Header and main title
15 */
17 body > header {
18 position: fixed; top: 0; left: 0;
19 width: 100%;
20 background-color: #222;
21 }
23 body > header h1 {
24 margin: 0;
25 color: #fff;
26 font-size: 20px; line-height: 40px; /* center vertical */
27 font-style: italic;
28 white-space: nowrap; overflow: hidden;
29 vertical-align: middle;
30 }
34 /**
35 * Toolbar with menu
36 */
38 nav {
39 position: fixed; top: 40px; left: 0;
40 width: 100%;
41 display: table;
42 border: 1px solid; border-right: none; border-left: none;
43 }
47 /* menu panel */
48 #toolbarMenu { margin: 0; padding: 0; height: 100%; font: menu; }
50 /* menu items */
51 #toolbarMenu li {
52 list-style: none;
53 float: left;
54 display: block;
55 padding: 0;
56 color: inherit; background: inherit;
57 cursor: pointer;
58 outline: none;
59 }
60 #toolbarMenu > li > span {
61 display: inline-block;
62 padding: 0.2rem;
63 }
65 #toolbarMenu menu li {
66 padding: 0.2rem;
67 }
69 /* Selected menu item */
70 #toolbarMenu li:focus span,
71 #toolbarMenu li:hover span,
72 #toolbarMenu menu li:focus,
73 #toolbarMenu menu li:hover {
74 background-color: hsla(30, 100%, 50%, 0.5);
75 }
80 #toolbarMenu menu {
81 position: absolute;
82 margin: 0; padding: 0;
83 white-space: nowrap;
84 border: 1px solid;
85 display: none;
86 }
88 /* Submenus */
89 #toolbarMenu menu menu {
90 left: 100%; top: 0;
91 min-width: 100%;
92 }
94 /* Show menu list */
95 #toolbarMenu menu.opened {
96 display: block; z-index: 10;
97 }
99 /* By default hide submenus */
100 #toolbarMenu menu.opened menu {
101 display: none;
102 }
103 /* Show submenu on mouse over */
104 .opened li:hover menu { display: block !important; }
106 /* Menu items one below the other */
107 #toolbarMenu menu li {
108 position: relative;
109 float: none;
110 }
111 /* Show arrow for submenu */
112 #toolbarMenu a:after { content: "‣"; float: right; }
113 #toolbarMenu a:only-child:after { content: " "; }
115 #toolbarMenu a { display: block; color: inherit; text-decoration: none; }
117 /* Clicking this layer close menu */
118 #noMenu {
119 position: fixed;
120 background-color: transparent;
121 display: none;
122 height: 100%; width: 100%;
123 }
126 /**
127 * Panes, sections
128 */
130 section {
131 display: block;
132 border: 1pt solid; border-radius: 0.3rem;
133 padding: 0; margin: 0.5rem 0 0 0;
134 }
136 section header {
137 padding: 0.2rem 0.3rem; margin: 0;
138 display: table; width: 100%;
139 border-radius: 0.3rem 0.3rem 0 0;
140 font-weight: bold; font-size: 1.1rem;/* line-height: 0;*/
141 text-shadow: 0 1px 1px hsla(0, 0%, 0%, 0.5);
142 overflow: auto; /* provide break after floated objects */
143 vertical-align: baseline;
144 }
145 section header form, section footer form {
146 display: table-cell; vertical-align: baseline; line-height: 0; width: 1px; white-space: nowrap;
147 }
148 section header button, section footer button { margin: 0; }
150 section footer {
151 padding: 0 0.3rem 0.2rem; margin: 0;
152 display: block;
153 overflow: auto; /* provide break after floated objects */
154 vertical-align: baseline;
155 }
157 section > pre,
158 section div { padding: 0.3rem 0.3rem 0.2rem 0.3rem; margin: 0; }
159 section td:nth-child(1) { padding-left: 0.3rem; }
160 section table { margin-bottom: 0.3rem; }
161 .nogap { word-spacing: 0; } /* remove gap between buttons in line */
172 #actions {
173 display: block;
174 margin: 0; padding: 0.2rem 0.3rem;
175 overflow: auto; /* provide break after floated objects */
176 }
177 .float-left, .float-right { display: table-cell; padding: 0; margin: 0; }
178 .float-left { float: left; }
179 .float-right { float: right; }
183 fieldset { border: 1pt solid; border-radius: 0.3rem; margin-bottom: 0.2rem; }
190 /* Icons on the right of the toolbar */
191 #icons {
192 display: table-cell; vertical-align: middle; /* center vertical */
193 padding: 0.1rem 0.3rem;
194 white-space: nowrap; width: 1rem; /* minimal width */
195 }
199 /* Loading notification bar */
200 #loading {
201 position: fixed; top: 76px; right: 140px; width: 248px;
202 padding: 4px 4px 2px;
203 background-color: #f8f8f8; color: #666;
204 border: 1px solid #ddd;
205 cursor: progress;
206 }
210 /* Page content container */
211 #content { margin: 1ex; }
214 /* Page first header */
215 h2 { font-size: 1.5rem; padding: 0.5rem 0 0 0; margin: 0; }
218 /* Additional headers (obsolete) */
219 h3 { font-size: 1.3rem; margin: 0; }
220 h4 { font-size: 1.1rem; margin: 0; }
223 /* Plain paragraph */
224 p { margin: 1ex 0; }
227 #actions p { margin: 6px 0; }
233 button img { padding: 0 3px 0 0; margin: 0; }
234 button, input, select {
235 /*color: ButtonText;*/
236 vertical-align: middle; }
237 button:before, input:before, select:before {
238 padding: 3px; }
240 ul { list-style-type: square; }
241 li { padding: 4px 0; }
244 /* Blocks */
246 #block { float: left; }
248 #wrapper, .wrapper { margin: 20px 0; }
250 .box {
251 margin: 10px 0;
252 padding: 12px;
253 background: #f8f8f8;
254 border: 1px solid #ddd;
255 }
257 .box ul { list-style-type: none; padding: 0; }
259 .debug {
260 position: fixed;
261 bottom: 0px;
262 right: 10px;
263 left: 10px;
264 margin: 5px;
265 padding: 4px 10px;
266 background-color: #111;
267 color: #fff;
268 border: 0;
269 /*font-size: 12px;*/
270 opacity: 0.9;
271 }
276 /**********
277 * Tables *
278 **********/
280 /* Base style */
281 table { margin: 0; padding: 0; border: 0 none; border-collapse: collapse; }
283 /* Bold header */
284 thead { font-weight: bold; }
286 /* Wide table */
287 .wide { width: 100%; }
289 /* Center content excluding first column */
290 .center tr td { text-align: center; }
291 .center tr td:nth-child(1) { text-align: left; padding-left: 0.3rem; }
293 /* Table Zebra */
294 .zebra thead td { line-height: 1.5em; text-align: center; vertical-align: middle; border: 1pt solid; }
298 .borders.zebra td + td { border-left: 1px solid; }
302 .outbox { box-shadow: 0 0 2px 4px #ddd; }
303 .fixed { table-layout: fixed; }
306 .borders tr { border-bottom: 1pt solid; }
308 .hborders thead tr { border-top: 1.5pt solid; border-bottom: 1.5pt solid; }
310 td.small { min-width: 60px; }
311 td.pct { min-width: 200px; background: #eee; }
312 div.pct { background: #ccc; }
313 td.pct, div.pct { border-radius: 2px; }
314 td img {vertical-align: middle; }
316 table.daemons td:nth-child(4), table.daemons td:nth-child(5) { text-align: center; }
322 /* Misc */
324 a { text-decoration: none; color: #268bd2; cursor: pointer; }
325 a:not([data-img]):hover { text-decoration: underline; }
328 form { display: inline-block; padding: 0; margin: 0; }
330 pre { margin: 0; padding: 0; color: CaptionText; }
332 .pre-main { margin: 16px 0; }
334 .scroll { height: 12rem; overflow: auto; border: 1px solid; }
335 .scroll table { border: 0px solid #fff; }
338 /* Round corner */
340 #loading, .debug, .box, div.scroll, .outbox, section {
341 -moz-border-radius: 4px;
342 -webkit-border-radius: 4px;
343 border-radius: 4px;
344 }
346 /* Help page */
348 #help { text-align: justify; }
349 #help a { text-decoration: underline; }
350 #help a:hover { text-decoration: none; }
354 /*
355 * Page footer
356 */
358 body > footer {
359 border-top: 1px solid;
360 text-align: center;
361 padding: 0.5em;
362 font-size: smaller;
363 }
366 /***************
367 * HTML5 Meter *
368 ***************/
370 .meter {
371 height: 1.2rem;
372 min-width: 150px;
373 color: #222;
374 /*cursor: default;*/
375 }
376 .meter meter {
377 height: inherit;
378 width: 100%;
379 display: block;
380 border: 1px solid #ddd;
381 border-radius: 4px;
382 }
383 .meter span {
384 display: block;
385 white-space: nowrap;
386 position: absolute;
387 margin: -1.1rem auto 0 0.3rem;
388 }
392 /**************
393 * Animations *
394 **************/
396 a.button {
397 -webkit-transition: all 0.3s ease-in-out;
398 -moz-transition: all 0.3s ease-in-out;
399 -o-transition: all 0.3s ease-in-out;
400 -ms-transition: all 0.3s ease-in-out;
401 transition: all 0.3s ease-in-out;
402 }
404 /*section {
405 margin: 20pt -0.7em;
406 padding: 0.8em 0.7em 1.2em;
407 background-color: #fdfdfd;
408 border: 1px solid #ddd;
409 border-radius: 1em;
410 box-shadow: 0 0 3pt 2pt #eee;
411 }
412 section h4 {
413 margin: 0 0 0.5em 0;
414 }
415 section h3 {
416 margin: 0 0 0.5em 0; }
417 */
419 #tabs {
420 font-weight: bold;
421 /*font-size: 14px;*/
422 list-style-type: none;
423 padding-bottom: 25px;
424 border-bottom: 1px solid #aaa;
425 }
427 #tabs li {
428 float: left;
429 height: 16px;
430 background-color: #eee;
431 margin: 0 40px 0 -40px;
432 border: 1px solid #aaa;
433 text-align: center;
434 min-width: 100px;
435 -webkit-border-radius: 4px 4px 0 0;
436 -moz-border-radius: 4px 4px 0 0;
437 border-radius: 4px 4px 0 0;
438 -webkit-appearance: tab;
439 appearance: tab;
440 }
442 #tabs li.active {
443 border-bottom: 1px solid #fff;
444 background-color: #fff;
445 }
447 #tabs a {
448 padding: 8px;
449 }
453 /****************
454 * Search block *
455 ****************/
456 .search {
457 display: block; white-space: nowrap;
458 position: fixed; right: 7px; top: 7px;
459 margin: 0; padding: 0; border: none;
460 }
461 .search input {
462 display: inline-block;
463 width: 200px; height: 24px;
464 }
465 .search button {
466 -webkit-appearance: button;
467 height: 100%; margin: 0;
468 }
472 /**********************
473 * Buttons with icons *
474 **********************/
475 @font-face {
476 font-family: TazPanelWeb;
477 src: url('/styles/default/tazpanel.ttf');
478 }
480 [data-icon]:before, [data-img] {
481 vertical-align: baseline;
482 padding: 0;
483 margin: 0 /*0 0 -0.5em*/;
484 font-size: 1.2em;
485 font-family: TazPanel, TazPanelWeb;
487 font-style: normal;
488 font-weight: normal;
489 font-variant: normal;
490 text-transform: none;
491 line-height: 1.2em;
492 display: inline-block;
493 text-decoration: none;
494 width: 1.2em; text-align: center;
496 -webkit-font-feature-settings: "liga", "dlig";
497 -moz-font-feature-settings: "liga=1, dlig=1";
498 -o-font-feature-settings: "liga", "dlig";
499 font-feature-settings: "liga", "dlig";
501 -webkit-text-rendering: optimizeLegibility;
502 -moz-text-rendering: optimizeLegibility;
503 -o-text-rendering: optimizeLegibility;
504 text-rendering: optimizeLegibility;
506 -webkit-font-smoothing: antialiased;
507 -moz-font-smoothing: antialiased;
508 -o-font-smoothing: antialiased;
509 font-smoothing: antialiased;
510 }
511 button[data-icon]::before { font-size: 16px; line-height: 16px; width: 16px; }
513 [data-icon]::before { content: attr(data-icon); }
514 [data-img]::before { content: attr(data-img); }
516 [data-icon], [data-img] { display: inline-block; }
519 /* Solarized:
520 red #dc322f
521 orange #cb4b16
522 yellow #b58900
523 green #859900
524 cyan #2aa198
525 blue #268bd2
526 magenta #d33682
527 */
530 [data-icon="tazpanel"]::before {
531 display: inline-block;
532 content: '\f13d';
533 color: #EBEBEB;
534 border: 1pt solid hsl(5, 85%, 35%); border-radius: 0.2rem;
535 font-size: 32px; line-height: 32px;
537 height: 32px; width: 32px;
538 margin: 0.2rem;
539 padding: 0;
540 vertical-align: top;
541 background-image: -webkit-linear-gradient(top, hsl(10, 100%, 40%), hsl(0, 70%, 30%));
542 }
543 .light [data-icon="tazpanel"]::before {
544 text-shadow: 0 1pt 2pt hsla(0, 0%, 0%, 0.9), 0 0 2pt hsla(0, 0%, 0%, 0.6);
545 }
549 /*******************
550 * Terminal colors *
551 *******************/
553 /* Using color palettes from Sakura terminal source */
555 .term {
556 padding: 0.3rem;
557 height: 24rem; max-height: 24rem;
558 white-space: pre-wrap;
559 overflow: auto;
560 z-index: 4;
561 background: transparent;
562 }
564 /* SliTaz Spider on background */
565 /*.term_ { display: block; position: relative; z-index: 2; }
566 .term_::after {
567 display: block; border: 1pt solid;
568 font-family: TazPanel;
569 font-size: 16rem;
570 position: absolute; right: 0; bottom: 0;
571 content: '\f13f';
572 opacity: 1;
573 color: orange;
574 z-index: 1;
575 }*/
577 .term.log { white-space: pre; }
578 /*.term input[type="text"] {
579 width: 100%!important; padding: 0; margin: 0; vertical-align: middle;
580 -webkit-appearance: none!important; -moz-appearance: none; appearance: none;
581 display: inline;
582 background-color: transparent; color: inherit; border: none; outline: none;
583 font: inherit; line-height: 1rem;
584 }*/
585 .term .cmdline {
586 /*position: relative; float: left; display: inline-block; white-space: pre-wrap;
587 width: 100%; overflow: hidden; left: 0;
588 vertical-align: middle;*/
589 padding: 0;
590 }
591 #typeField {
592 outline-style: none !important;
593 -webkit-user-modify: read-write;
594 word-wrap: break-word;
595 -webkit-nbsp-mode: space;
596 -webkit-line-break: after-white-space;
597 }
598 #num_hist {
599 display: inline-block;
600 position: absolute; right: 0.5rem; float: right;
601 height: 0;
602 color: #FFF; background: #FFF;
603 }
605 /* Tango palette (default) */
606 .color30{color:#2E3436} .color1.color30{color:#555753} .color40{background:#2E3436}
607 .color31{color:#CC0000} .color1.color31{color:#EF2929} .color41{background:#CC0000}
608 .color32{color:#4E9A06} .color1.color32{color:#8AE234} .color42{background:#4E9A06}
609 .color33{color:#C4A000} .color1.color33{color:#FCE94F} .color43{background:#C4A000}
610 .color34{color:#3465A4} .color1.color34{color:#729FCF} .color44{background:#3465A4}
611 .color35{color:#75507B} .color1.color35{color:#AD7FA8} .color45{background:#75507B}
612 .color36{color:#06989A} .color1.color36{color:#34E2E2} .color46{background:#06989A}
613 .color37{color:#D3D7CF} .color1.color37{color:#EEEEEC} .color47{background:#D3D7CF}
614 .term {color:#D3D7CF; background:#2E3436}
616 /* Linux palette */
617 .linux .color30{color:#000} .linux .color1.color30{color:#555} .linux .color40{background:#000}
618 .linux .color31{color:#A00} .linux .color1.color31{color:#F55} .linux .color41{background:#A00}
619 .linux .color32{color:#0A0} .linux .color1.color32{color:#5F5} .linux .color42{background:#0A0}
620 .linux .color33{color:#A50} .linux .color1.color33{color:#FF5} .linux .color43{background:#A50}
621 .linux .color34{color:#00A} .linux .color1.color34{color:#55F} .linux .color44{background:#00A}
622 .linux .color35{color:#A0A} .linux .color1.color35{color:#F5F} .linux .color45{background:#A0A}
623 .linux .color36{color:#0AA} .linux .color1.color36{color:#5FF} .linux .color46{background:#0AA}
624 .linux .color37{color:#AAA} .linux .color1.color37{color:#FFF} .linux .color47{background:#AAA}
625 .linux.term {color:#AAA; background:#000}
627 /* Xterm palette */
628 .xterm .color30{color:#000000} .xterm .color1.color30{color:#4C4C4C} .xterm .color40{background:#000000}
629 .xterm .color31{color:#CD0000} .xterm .color1.color31{color:#FF0000} .xterm .color41{background:#CD0000}
630 .xterm .color32{color:#00CD00} .xterm .color1.color32{color:#00FFFF} .xterm .color42{background:#00CD00}
631 .xterm .color33{color:#CDCD00} .xterm .color1.color33{color:#FFFF00} .xterm .color43{background:#CDCD00}
632 .xterm .color34{color:#1E90FF} .xterm .color1.color34{color:#4682B4} .xterm .color44{background:#1E90FF}
633 .xterm .color35{color:#CD00CD} .xterm .color1.color35{color:#FF00FF} .xterm .color45{background:#CD00CD}
634 .xterm .color36{color:#00CDCD} .xterm .color1.color36{color:#00FFFF} .xterm .color46{background:#00CDCD}
635 .xterm .color37{color:#E5E5E5} .xterm .color1.color37{color:#FFFFFF} .xterm .color47{background:#E5E5E5}
636 .xterm.term {color:#E5E5E5; background:#000000}
638 /* Rxvt palette */
639 .rxvt .color30{color:#000000} .rxvt .color1.color30{color:#404040} .rxvt .color40{background:#000000}
640 .rxvt .color31{color:#CD0000} .rxvt .color1.color31{color:#FF0000} .rxvt .color41{background:#CD0000}
641 .rxvt .color32{color:#00CD00} .rxvt .color1.color32{color:#00FFFF} .rxvt .color42{background:#00CD00}
642 .rxvt .color33{color:#CDCD00} .rxvt .color1.color33{color:#FFFF00} .rxvt .color43{background:#CDCD00}
643 .rxvt .color34{color:#0000CD} .rxvt .color1.color34{color:#0000FF} .rxvt .color44{background:#0000CD}
644 .rxvt .color35{color:#CD00CD} .rxvt .color1.color35{color:#FF00FF} .rxvt .color45{background:#CD00CD}
645 .rxvt .color36{color:#00CDCD} .rxvt .color1.color36{color:#00FFFF} .rxvt .color46{background:#00CDCD}
646 .rxvt .color37{color:#FAEBD7} .rxvt .color1.color37{color:#FFFFFF} .rxvt .color47{background:#FAEBD7}
647 .rxvt.term {color:#FAEBD7; background:#000000}
649 /* Echo palette (http://mso-chronicles.blogspot.com/2013/02/xfce-terminal-and-xchat-colour-scheme.html) */
650 .echo .color30{color:#000000} .echo .color1.color30{color:#5E5E5E} .echo .color40{background:#000000}
651 .echo .color31{color:#B40000} .echo .color1.color31{color:#FF5200} .echo .color41{background:#B40000}
652 .echo .color32{color:#00AA00} .echo .color1.color32{color:#93DA00} .echo .color42{background:#00AA00}
653 .echo .color33{color:#CB7C00} .echo .color1.color33{color:#FFE139} .echo .color43{background:#CB7C00}
654 .echo .color34{color:#003F68} .echo .color1.color34{color:#0073A2} .echo .color44{background:#003F68}
655 .echo .color35{color:#BF00EF} .echo .color1.color35{color:#DB81FF} .echo .color45{background:#BF00EF}
656 .echo .color36{color:#00A6D0} .echo .color1.color36{color:#81E3FF} .echo .color46{background:#00A6D0}
657 .echo .color37{color:#C6C6C6} .echo .color1.color37{color:#FFFFFF} .echo .color47{background:#C6C6C6}
658 .echo.term {color:#C6C6C6; background:#000000}
660 .color1 { font-weight: bold; }
662 /* History table for terminal */
663 .history { width: 100%; }
664 .history td:nth-child(1), .history td:nth-child(2), .history td:nth-child(3) {
665 white-space: nowrap;
666 width: 1px;
667 }
671 /**********
672 * Inputs *
673 **********/
675 /*:default { outline: 1px dotted hsla(240, 100%, 50%, 0.5); outline-offset: -4px; }*/
676 :required { outline: 1px solid hsla( 30, 100%, 50%, 0.7); outline-offset: -3px; }
677 :invalid { outline: 2px solid hsla( 0, 100%, 50%, 0.7); outline-offset: -3px; }
680 /* HACK for Tazweb (as clean Webkit browser): remove 1px white border around textfield */
681 input[type="text"], input[type="password"], input[type="number"], textarea { -webkit-appearance: searchfield; }
683 textarea { display: block; color: CaptionText; font-family: monospace; box-sizing: border-box; }
689 /***********************
690 * System memory gauge *
691 ***********************/
693 .sysmem {
694 margin: 0.2rem; padding: 0;
695 border: 1pt solid;
696 border-radius: 0.2rem;
697 box-shadow: inset 0 0 0 1pt hsla(0, 0%, 100%, 0.05);
698 width: 100%; margin: 0; padding: 0;
699 }
701 .sysmem_used, .sysmem_buff, .sysmem_free {
702 display: inline-block;
703 padding: 0.2rem 0; margin: 0;
704 height: 120%;
705 text-align: center; vertical-align: middle;
706 text-shadow: 0 1px 1px hsla(0, 0%, 0%, 0.5);
707 text-align: center;
708 }
710 .sysmem_used {
711 background-color: #f28f68;
712 background-image: -webkit-linear-gradient(top, hsla(0, 0%, 100%, 0.25), hsla(0, 0%, 0%, 0.2));
713 border-radius: 0.2rem 0 0 0.2rem;
714 }
715 .sysmem_buff {
716 background-color: #f28f68;
717 background-image:
718 -webkit-linear-gradient(top, hsla(0, 0%, 100%, 0.25), hsla(0, 0%, 0%, 0.2)),
719 -webkit-linear-gradient(135deg,
720 transparent, transparent 25%,
721 #719fd1 25%, #719fd1 50%,
722 transparent 50%, transparent 75%,
723 #719fd1 75%);
724 background-size: 100% 100%;
725 }
726 .sysmem_free {
727 background-color: #719fd1;
728 background-image: -webkit-linear-gradient(top, hsla(0, 0%, 100%, 0.25), hsla(0, 0%, 0%, 0.2));
729 border-radius: 0 0.2rem 0.2rem 0;
730 }