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

Tiny edits: fix linking if tazpanel installed to host, fix .scroll height, fix textdomain in the menu.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 10 01:01:50 2015 +0300 (2015-04-10)
parents b0146d791379
children 2c1f491aca05
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 outline: none;
58 }
59 #toolbarMenu > li > span {
60 display: inline-block;
61 padding: 0.2rem;
62 cursor: pointer;
63 }
65 #toolbarMenu menu li a {
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 .user #toolbarMenu menu li:hover > a:not([data-root]),
74 .root #toolbarMenu menu li:hover {
75 background-color: hsla(30, 100%, 50%, 0.5);
76 }
81 #toolbarMenu menu {
82 position: absolute;
83 margin: 0; padding: 0;
84 white-space: nowrap;
85 border: 1px solid;
86 display: none;
87 }
89 /* Submenus */
90 #toolbarMenu menu menu {
91 left: 100%; top: 0;
92 min-width: 100%;
93 }
95 /* Show menu list */
96 #toolbarMenu menu.opened {
97 display: block; z-index: 10;
98 }
100 /* By default hide submenus */
101 #toolbarMenu menu.opened menu {
102 display: none;
103 }
104 /* Show submenu on mouse over */
105 .opened li:hover menu { display: block !important; }
107 /* Menu items one below the other */
108 #toolbarMenu menu li {
109 position: relative;
110 float: none;
111 }
112 /* Show arrow for submenu */
113 #toolbarMenu a:after { content: "‣"; float: right; }
114 #toolbarMenu a:only-child:after { content: " "; }
116 #toolbarMenu a { display: block; color: inherit; text-decoration: none; }
118 /* Clicking this layer close menu */
119 #noMenu {
120 position: fixed;
121 background-color: transparent;
122 display: none;
123 height: 100%; width: 100%;
124 }
127 /**
128 * Panes, sections
129 */
131 section {
132 display: block;
133 border: 1pt solid; border-radius: 0.3rem;
134 padding: 0; margin: 0.5rem 0 0 0;
135 }
137 section header {
138 padding: 0.2rem 0.3rem; margin: 0;
139 display: table; width: 100%;
140 border-radius: 0.3rem 0.3rem 0 0;
141 font-weight: bold; font-size: 1.1rem;/* line-height: 0;*/
142 text-shadow: 0 1px 1px hsla(0, 0%, 0%, 0.5);
143 overflow: auto; /* provide break after floated objects */
144 vertical-align: baseline;
145 }
146 section header form, section footer form {
147 display: table-cell; vertical-align: baseline; line-height: 0; width: 1px; white-space: nowrap;
148 }
149 section header button, section footer button { margin: 0; }
151 section footer {
152 padding: 0 0.3rem 0.2rem; margin: 0;
153 display: block;
154 overflow: auto; /* provide break after floated objects */
155 vertical-align: baseline;
156 }
158 section > pre,
159 section div { padding: 0.3rem 0.3rem 0.2rem 0.3rem; margin: 0; }
160 section td:nth-child(1) { padding-left: 0.3rem; }
161 section table { margin-bottom: 0.3rem; }
162 .nogap { word-spacing: 0; } /* remove gap between buttons in line */
164 .scroll { max-height: 12rem; overflow: auto; }
165 section .scroll { padding: 0; margin: 0; border: 1pt solid; }
166 section pre.scroll { margin: 0.1rem; padding: 0.1rem; }
175 #actions {
176 display: block;
177 margin: 0; padding: 0.2rem 0.3rem;
178 overflow: auto; /* provide break after floated objects */
179 }
180 .float-left, .float-right { display: table-cell; padding: 0; margin: 0; }
181 .float-left { float: left; }
182 .float-right { float: right; }
186 fieldset { border: 1pt solid; border-radius: 0.3rem; margin-bottom: 0.2rem; }
187 fieldset[disabled] { background-color: hsla(0, 0%, 50%, 0.1);}
193 /* Icons on the right of the toolbar */
194 #icons {
195 display: table-cell; vertical-align: middle; /* center vertical */
196 padding: 0.1rem 0.3rem;
197 white-space: nowrap; width: 1rem; /* minimal width */
198 }
202 /* Loading notification bar */
203 #loading {
204 position: fixed; top: 76px; right: 140px; width: 248px;
205 padding: 4px 4px 2px;
206 background-color: #f8f8f8; color: #666;
207 border: 1px solid #ddd;
208 cursor: progress;
209 }
213 /* Page content container */
214 #content { margin: 1ex; }
217 /* Page first header */
218 h2 { font-size: 1.5rem; padding: 0.5rem 0 0 0; margin: 0; }
221 /* Additional headers (obsolete) */
222 h3 { font-size: 1.3rem; margin: 0; }
223 h4 { font-size: 1.1rem; margin: 0; }
226 /* Plain paragraph */
227 p { margin: 1ex 0; }
230 #actions p { margin: 6px 0; }
236 button img { padding: 0 3px 0 0; margin: 0; }
237 button, input, select {
238 /*color: ButtonText;*/
239 vertical-align: middle; }
240 button:before, input:before, select:before {
241 padding: 3px; }
243 ul { list-style-type: square; }
244 li { padding: 4px 0; }
247 /* Blocks */
249 #block { float: left; }
251 #wrapper, .wrapper { margin: 20px 0; }
253 .box {
254 display: table;
255 padding: 1em;
256 width: 50%; margin: 0.5em auto;
257 }
258 .box img { float: left; }
260 .box ul { list-style-type: none; padding: 0; }
262 .debug {
263 position: fixed;
264 bottom: 0px;
265 right: 10px;
266 left: 10px;
267 margin: 5px;
268 padding: 4px 10px;
269 background-color: #111;
270 color: #fff;
271 border: 0;
272 /*font-size: 12px;*/
273 opacity: 0.9;
274 }
279 /**********
280 * Tables *
281 **********/
283 /* Base style */
284 table { margin: 0; padding: 0; border: 0 none; border-collapse: collapse; }
286 /* Bold header */
287 thead { font-weight: bold; }
289 /* Wide table */
290 .wide { width: 100%; }
292 /* Center content excluding first column */
293 .center tr td { text-align: center; }
294 .center tr td:nth-child(1) { text-align: left; padding-left: 0.3rem; }
296 /* Table Zebra */
297 .zebra thead td { line-height: 1.5em; text-align: center; vertical-align: middle; border: 1pt solid; }
301 .borders.zebra td + td { border-left: 1px solid; }
305 .outbox { box-shadow: 0 0 2px 4px #ddd; }
306 .fixed { table-layout: fixed; }
309 .borders tr { border-bottom: 1pt solid; }
311 .hborders thead tr { border-top: 1.5pt solid; border-bottom: 1.5pt solid; }
313 td.small { min-width: 60px; }
314 td.pct { min-width: 200px; background: #eee; }
315 div.pct { background: #ccc; }
316 td.pct, div.pct { border-radius: 2px; }
317 td img {vertical-align: middle; }
319 table.daemons td:nth-child(4), table.daemons td:nth-child(5) { text-align: center; }
325 /**
326 * Misc
327 */
329 /* Links */
331 a { text-decoration: none; color: #268bd2; cursor: pointer; }
332 a:not([data-img]):hover { text-decoration: underline; }
335 form { display: inline-block; padding: 0; margin: 0; }
337 pre { margin: 0; padding: 0; color: CaptionText; }
339 .pre-main { margin: 16px 0; }
343 /* Round corner */
345 #loading, .debug, .box, .outbox, section {
346 -moz-border-radius: 4px;
347 -webkit-border-radius: 4px;
348 border-radius: 4px;
349 }
351 /* Help page */
353 #help { text-align: justify; }
354 #help a { text-decoration: underline; }
355 #help a:hover { text-decoration: none; }
359 /*
360 * Page footer
361 */
363 body > footer {
364 border-top: 1px solid;
365 text-align: center;
366 padding: 0.5em;
367 font-size: smaller;
368 }
371 /***************
372 * HTML5 Meter *
373 ***************/
375 .meter {
376 height: 1.2rem;
377 min-width: 150px;
378 color: #222;
379 /*cursor: default;*/
380 }
381 .meter meter {
382 height: inherit;
383 width: 100%;
384 display: block;
385 border: 1px solid #ddd;
386 border-radius: 4px;
387 }
388 .meter span {
389 display: block;
390 white-space: nowrap;
391 position: absolute;
392 margin: -1.1rem auto 0 0.3rem;
393 }
397 /**************
398 * Animations *
399 **************/
401 a.button {
402 -webkit-transition: all 0.3s ease-in-out;
403 -moz-transition: all 0.3s ease-in-out;
404 -o-transition: all 0.3s ease-in-out;
405 -ms-transition: all 0.3s ease-in-out;
406 transition: all 0.3s ease-in-out;
407 }
409 /*section {
410 margin: 20pt -0.7em;
411 padding: 0.8em 0.7em 1.2em;
412 background-color: #fdfdfd;
413 border: 1px solid #ddd;
414 border-radius: 1em;
415 box-shadow: 0 0 3pt 2pt #eee;
416 }
417 section h4 {
418 margin: 0 0 0.5em 0;
419 }
420 section h3 {
421 margin: 0 0 0.5em 0; }
422 */
424 #tabs {
425 font-weight: bold;
426 /*font-size: 14px;*/
427 list-style-type: none;
428 padding-bottom: 25px;
429 border-bottom: 1px solid #aaa;
430 }
432 #tabs li {
433 float: left;
434 height: 16px;
435 background-color: #eee;
436 margin: 0 40px 0 -40px;
437 border: 1px solid #aaa;
438 text-align: center;
439 min-width: 100px;
440 -webkit-border-radius: 4px 4px 0 0;
441 -moz-border-radius: 4px 4px 0 0;
442 border-radius: 4px 4px 0 0;
443 -webkit-appearance: tab;
444 appearance: tab;
445 }
447 #tabs li.active {
448 border-bottom: 1px solid #fff;
449 background-color: #fff;
450 }
452 #tabs a {
453 padding: 8px;
454 }
458 /****************
459 * Search block *
460 ****************/
461 .search {
462 display: block; white-space: nowrap;
463 position: fixed; right: 7px; top: 7px;
464 margin: 0; padding: 0; border: none;
465 }
466 .search input {
467 display: inline-block;
468 width: 200px; height: 24px;
469 }
470 .search button {
471 -webkit-appearance: button;
472 height: 100%; margin: 0;
473 }
477 /**********************
478 * Buttons with icons *
479 **********************/
480 @font-face {
481 font-family: TazPanelWeb;
482 src: url('/styles/default/tazpanel.ttf');
483 }
485 [data-icon]:before, [data-img] {
486 vertical-align: baseline;
487 padding: 0;
488 margin: 0 /*0 0 -0.5em*/;
489 font-size: 1.2em;
490 font-family: TazPanel, TazPanelWeb;
492 font-style: normal;
493 font-weight: normal;
494 font-variant: normal;
495 text-transform: none;
496 line-height: 1.2em;
497 display: inline-block;
498 text-decoration: none;
499 width: 1.2em; text-align: center;
501 -webkit-font-feature-settings: "liga", "dlig";
502 -moz-font-feature-settings: "liga=1, dlig=1";
503 -o-font-feature-settings: "liga", "dlig";
504 font-feature-settings: "liga", "dlig";
506 -webkit-text-rendering: optimizeLegibility;
507 -moz-text-rendering: optimizeLegibility;
508 -o-text-rendering: optimizeLegibility;
509 text-rendering: optimizeLegibility;
511 -webkit-font-smoothing: antialiased;
512 -moz-font-smoothing: antialiased;
513 -o-font-smoothing: antialiased;
514 font-smoothing: antialiased;
515 }
516 button[data-icon]::before { font-size: 16px; line-height: 16px; width: 16px; }
518 [data-icon]::before { content: attr(data-icon); }
519 [data-img]::before { content: attr(data-img); }
521 [data-icon], [data-img] { display: inline-block; }
524 /* Solarized:
525 red #dc322f
526 orange #cb4b16
527 yellow #b58900
528 green #859900
529 cyan #2aa198
530 blue #268bd2
531 magenta #d33682
532 */
535 [data-icon="tazpanel"]::before {
536 display: inline-block;
537 content: '\f13d';
538 color: #EBEBEB;
539 border: 1pt solid hsl(5, 85%, 35%); border-radius: 0.2rem;
540 font-size: 32px; line-height: 32px;
542 height: 32px; width: 32px;
543 margin: 0.2rem;
544 padding: 0;
545 vertical-align: top;
546 background-image: -webkit-linear-gradient(top, hsl(10, 100%, 40%), hsl(0, 70%, 30%));
547 }
548 .light [data-icon="tazpanel"]::before {
549 text-shadow: 0 1pt 2pt hsla(0, 0%, 0%, 0.9), 0 0 2pt hsla(0, 0%, 0%, 0.6);
550 }
554 /*******************
555 * Terminal colors *
556 *******************/
558 /* Using color palettes from Sakura terminal source */
560 .term {
561 padding: 0.3rem;
562 height: 24rem; max-height: 24rem;
563 white-space: pre-wrap;
564 overflow: auto;
565 z-index: 4;
566 background: transparent;
567 }
569 /* SliTaz Spider on background */
570 /*.term_ { display: block; position: relative; z-index: 2; }
571 .term_::after {
572 display: block; border: 1pt solid;
573 font-family: TazPanel;
574 font-size: 16rem;
575 position: absolute; right: 0; bottom: 0;
576 content: '\f13f';
577 opacity: 1;
578 color: orange;
579 z-index: 1;
580 }*/
582 .term.log { white-space: pre; }
583 /*.term input[type="text"] {
584 width: 100%!important; padding: 0; margin: 0; vertical-align: middle;
585 -webkit-appearance: none!important; -moz-appearance: none; appearance: none;
586 display: inline;
587 background-color: transparent; color: inherit; border: none; outline: none;
588 font: inherit; line-height: 1rem;
589 }*/
590 .term .cmdline {
591 /*position: relative; float: left; display: inline-block; white-space: pre-wrap;
592 width: 100%; overflow: hidden; left: 0;
593 vertical-align: middle;*/
594 padding: 0;
595 }
596 #typeField {
597 outline-style: none !important;
598 -webkit-user-modify: read-write;
599 word-wrap: break-word;
600 -webkit-nbsp-mode: space;
601 -webkit-line-break: after-white-space;
602 }
603 #num_hist {
604 display: inline-block;
605 position: absolute; right: 0.5rem; float: right;
606 height: 0;
607 color: #FFF; background: #FFF;
608 }
610 /* Tango palette (default) */
611 .color30{color:#2E3436} .color1.color30{color:#555753} .color40{background:#2E3436}
612 .color31{color:#CC0000} .color1.color31{color:#EF2929} .color41{background:#CC0000}
613 .color32{color:#4E9A06} .color1.color32{color:#8AE234} .color42{background:#4E9A06}
614 .color33{color:#C4A000} .color1.color33{color:#FCE94F} .color43{background:#C4A000}
615 .color34{color:#3465A4} .color1.color34{color:#729FCF} .color44{background:#3465A4}
616 .color35{color:#75507B} .color1.color35{color:#AD7FA8} .color45{background:#75507B}
617 .color36{color:#06989A} .color1.color36{color:#34E2E2} .color46{background:#06989A}
618 .color37{color:#D3D7CF} .color1.color37{color:#EEEEEC} .color47{background:#D3D7CF}
619 .term {color:#D3D7CF; background:#2E3436}
621 /* Linux palette */
622 .linux .color30{color:#000} .linux .color1.color30{color:#555} .linux .color40{background:#000}
623 .linux .color31{color:#A00} .linux .color1.color31{color:#F55} .linux .color41{background:#A00}
624 .linux .color32{color:#0A0} .linux .color1.color32{color:#5F5} .linux .color42{background:#0A0}
625 .linux .color33{color:#A50} .linux .color1.color33{color:#FF5} .linux .color43{background:#A50}
626 .linux .color34{color:#00A} .linux .color1.color34{color:#55F} .linux .color44{background:#00A}
627 .linux .color35{color:#A0A} .linux .color1.color35{color:#F5F} .linux .color45{background:#A0A}
628 .linux .color36{color:#0AA} .linux .color1.color36{color:#5FF} .linux .color46{background:#0AA}
629 .linux .color37{color:#AAA} .linux .color1.color37{color:#FFF} .linux .color47{background:#AAA}
630 .linux.term {color:#AAA; background:#000}
632 /* Xterm palette */
633 .xterm .color30{color:#000000} .xterm .color1.color30{color:#4C4C4C} .xterm .color40{background:#000000}
634 .xterm .color31{color:#CD0000} .xterm .color1.color31{color:#FF0000} .xterm .color41{background:#CD0000}
635 .xterm .color32{color:#00CD00} .xterm .color1.color32{color:#00FFFF} .xterm .color42{background:#00CD00}
636 .xterm .color33{color:#CDCD00} .xterm .color1.color33{color:#FFFF00} .xterm .color43{background:#CDCD00}
637 .xterm .color34{color:#1E90FF} .xterm .color1.color34{color:#4682B4} .xterm .color44{background:#1E90FF}
638 .xterm .color35{color:#CD00CD} .xterm .color1.color35{color:#FF00FF} .xterm .color45{background:#CD00CD}
639 .xterm .color36{color:#00CDCD} .xterm .color1.color36{color:#00FFFF} .xterm .color46{background:#00CDCD}
640 .xterm .color37{color:#E5E5E5} .xterm .color1.color37{color:#FFFFFF} .xterm .color47{background:#E5E5E5}
641 .xterm.term {color:#E5E5E5; background:#000000}
643 /* Rxvt palette */
644 .rxvt .color30{color:#000000} .rxvt .color1.color30{color:#404040} .rxvt .color40{background:#000000}
645 .rxvt .color31{color:#CD0000} .rxvt .color1.color31{color:#FF0000} .rxvt .color41{background:#CD0000}
646 .rxvt .color32{color:#00CD00} .rxvt .color1.color32{color:#00FFFF} .rxvt .color42{background:#00CD00}
647 .rxvt .color33{color:#CDCD00} .rxvt .color1.color33{color:#FFFF00} .rxvt .color43{background:#CDCD00}
648 .rxvt .color34{color:#0000CD} .rxvt .color1.color34{color:#0000FF} .rxvt .color44{background:#0000CD}
649 .rxvt .color35{color:#CD00CD} .rxvt .color1.color35{color:#FF00FF} .rxvt .color45{background:#CD00CD}
650 .rxvt .color36{color:#00CDCD} .rxvt .color1.color36{color:#00FFFF} .rxvt .color46{background:#00CDCD}
651 .rxvt .color37{color:#FAEBD7} .rxvt .color1.color37{color:#FFFFFF} .rxvt .color47{background:#FAEBD7}
652 .rxvt.term {color:#FAEBD7; background:#000000}
654 /* Echo palette (http://mso-chronicles.blogspot.com/2013/02/xfce-terminal-and-xchat-colour-scheme.html) */
655 .echo .color30{color:#000000} .echo .color1.color30{color:#5E5E5E} .echo .color40{background:#000000}
656 .echo .color31{color:#B40000} .echo .color1.color31{color:#FF5200} .echo .color41{background:#B40000}
657 .echo .color32{color:#00AA00} .echo .color1.color32{color:#93DA00} .echo .color42{background:#00AA00}
658 .echo .color33{color:#CB7C00} .echo .color1.color33{color:#FFE139} .echo .color43{background:#CB7C00}
659 .echo .color34{color:#003F68} .echo .color1.color34{color:#0073A2} .echo .color44{background:#003F68}
660 .echo .color35{color:#BF00EF} .echo .color1.color35{color:#DB81FF} .echo .color45{background:#BF00EF}
661 .echo .color36{color:#00A6D0} .echo .color1.color36{color:#81E3FF} .echo .color46{background:#00A6D0}
662 .echo .color37{color:#C6C6C6} .echo .color1.color37{color:#FFFFFF} .echo .color47{background:#C6C6C6}
663 .echo.term {color:#C6C6C6; background:#000000}
665 .color1 { font-weight: bold; }
667 /* History table for terminal */
668 .history { width: 100%; }
669 .history td:nth-child(1), .history td:nth-child(2), .history td:nth-child(3) {
670 white-space: nowrap;
671 width: 1px;
672 }
676 /**********
677 * Inputs *
678 **********/
680 /*:default { outline: 1px dotted hsla(240, 100%, 50%, 0.5); outline-offset: -4px; }*/
681 :required { outline: 1px solid hsla( 30, 100%, 50%, 0.7); outline-offset: -3px; }
682 :invalid { outline: 2px solid hsla( 0, 100%, 50%, 0.7); outline-offset: -3px; }
685 /* HACK for Tazweb (as clean Webkit browser): remove 1px white border around textfield */
686 input[type="text"], input[type="password"], input[type="number"], textarea { -webkit-appearance: searchfield; }
688 textarea { display: block; color: CaptionText; font-family: monospace; box-sizing: border-box; }
694 /***********************
695 * System memory gauge *
696 ***********************/
698 .sysmem {
699 margin: 0.2rem; padding: 0;
700 border: 1pt solid;
701 border-radius: 0.2rem;
702 box-shadow: inset 0 0 0 1pt hsla(0, 0%, 100%, 0.05);
703 width: 100%; margin: 0; padding: 0;
704 }
706 .sysmem_used, .sysmem_buff, .sysmem_free {
707 display: inline-block;
708 padding: 0.2rem 0; margin: 0;
709 height: 120%;
710 text-align: center; vertical-align: middle;
711 text-shadow: 0 1px 1px hsla(0, 0%, 0%, 0.5);
712 text-align: center;
713 }
715 .sysmem_used {
716 background-color: #f28f68;
717 background-image: -webkit-linear-gradient(top, hsla(0, 0%, 100%, 0.25), hsla(0, 0%, 0%, 0.2));
718 border-radius: 0.2rem 0 0 0.2rem;
719 }
720 .sysmem_buff {
721 background-color: #f28f68;
722 background-image:
723 -webkit-linear-gradient(top, hsla(0, 0%, 100%, 0.25), hsla(0, 0%, 0%, 0.2)),
724 -webkit-linear-gradient(135deg,
725 transparent, transparent 25%,
726 #719fd1 25%, #719fd1 50%,
727 transparent 50%, transparent 75%,
728 #719fd1 75%);
729 background-size: 100% 100%;
730 }
731 .sysmem_free {
732 background-color: #719fd1;
733 background-image: -webkit-linear-gradient(top, hsla(0, 0%, 100%, 0.25), hsla(0, 0%, 0%, 0.2));
734 border-radius: 0 0.2rem 0.2rem 0;
735 }
739 /* Disable some links to root actions */
740 button:not([disabled]) { cursor: pointer; }
741 .user [data-root] { pointer-events: none; cursor: default !important; }