luci-theme-openwrt: add styling for input-adjacent buttons
[project/luci.git] / themes / luci-theme-openwrt / htdocs / luci-static / openwrt.org / cascade.css
1 @charset "utf-8";
2
3 .lang_he {
4 direction: RTL;
5 unicode-bidi: embed;
6 }
7
8 @media all {
9
10 html {
11 min-height: 100%;
12 height: auto;
13 position:relative;
14 }
15
16 body {
17 color: #ffffff;
18 background-color: #4a6b7c;
19 background-position: bottom center;
20 background-repeat: repeat-x;
21 font-family: Arial, Verdana, sans-serif;
22 font-size: 10pt;
23 padding-bottom: 1.5em;
24 }
25
26 * {
27 margin: 0;
28 padding: 0;
29 box-sizing: border-box;
30 }
31
32 .table { display: table; width: 100%; position: relative; }
33 .tr { display: table-row; }
34 .thead { display: table-header-group; }
35 .tbody { display: table-row-group; }
36 .tfoot { display: table-footer-group; }
37 .td, .th { display: table-cell; }
38 .th { font-weight: bold; }
39
40 .table[width="33%"], .th[width="33%"], .td[width="33%"] { width: 33%; }
41 .table[width="100%"], .th[width="100%"], .td[width="100%"] { width: 100%; }
42
43 .col-1 { flex: 1 1 30px !important; -webkit-flex: 1 1 30px !important; }
44 .col-2 { flex: 2 2 60px !important; -webkit-flex: 2 2 60px !important; }
45 .col-3 { flex: 3 3 90px !important; -webkit-flex: 3 3 90px !important; }
46 .col-4 { flex: 4 4 120px !important; -webkit-flex: 4 4 120px !important; }
47 .col-5 { flex: 5 5 150px !important; -webkit-flex: 5 5 150px !important; }
48 .col-6 { flex: 6 6 180px !important; -webkit-flex: 6 6 180px !important; }
49 .col-7 { flex: 7 7 210px !important; -webkit-flex: 7 7 210px !important; }
50 .col-8 { flex: 8 8 240px !important; -webkit-flex: 8 8 240px !important; }
51 .col-9 { flex: 9 9 270px !important; -webkit-flex: 9 9 270px !important; }
52 .col-10 { flex: 10 10 300px !important; -webkit-flex: 10 10 300px !important; }
53
54 .tr.placeholder {
55 height: 3.5em;
56 }
57
58 .tr.placeholder > .td {
59 position: absolute;
60 left: 0;
61 right: 0;
62 bottom: 0;
63 text-align: center;
64 line-height: 3em;
65 }
66
67 .nowrap {
68 white-space: nowrap;
69 }
70
71 a img {
72 border: none;
73 text-decoration: none;
74 }
75
76 #maincontainer {
77 display: flex;
78 }
79
80 #maincontent {
81 flex-basis: 100%;
82 }
83
84 #mainmenu {
85 max-width: 200px;
86 background: #f5f5f5;
87 border: 1px solid #444;
88 border-width: 0 0 1px 1px;
89 font-size: 11pt;
90 padding-bottom: 1em;
91 }
92
93 #mainmenu ul {
94 display: block;
95 margin: 0;
96 padding: 0;
97 }
98
99 #mainmenu ul li {
100 display: block;
101 white-space: nowrap;
102 }
103
104 #mainmenu ul li > a {
105 display: block;
106 color: #444;
107 padding: .4em .5em;
108 text-decoration: none;
109 }
110
111 #mainmenu ul li.selected > a {
112 background: #fff;
113 color: #37c;
114 border: 1px dotted #444;
115 border-width: 1px 0;
116 }
117
118 #mainmenu ul li.selected:first-child > a {
119 border-top: none;
120 }
121
122 #mainmenu ul li li > a {
123 font-size: 85%;
124 padding-left: 1.5em;
125 }
126
127 #mainmenu ul li > ul {
128 flex-basis: 100%;
129 max-height: 0;
130 visibility: hidden;
131 transition: max-height .15s;
132 }
133
134 #mainmenu ul:not(.active) li.selected > ul,
135 #mainmenu ul li.active > ul {
136 max-height: 1000px;
137 visibility: visible;
138 transition: max-height .25s;
139 }
140
141 #mainmenu ul li.mainmenu-item-logout {
142 margin-top: 15%;
143 }
144
145 #tabmenu {
146 padding: 0;
147 margin: -.5em -.5em .5em -.5em;
148 background: #bbb;
149 }
150
151 #tabmenu ul {
152 border-color: #444;
153 padding-top: .5em;
154 flex-wrap: wrap;
155 background: repeating-linear-gradient(#f5f5f5, #bbb 2.4em, #f5f5f5 2.4em, #bbb);
156 line-height: 1em;
157 }
158
159 #tabmenu ul li {
160 border-color: #444;
161 }
162
163 #tabmenu ul li.cbi-tab {
164 background: #f5f5f5;
165 }
166
167 abbr,
168 acronym {
169 font-style: normal;
170 font-variant: normal;
171 }
172
173 abbr[title],
174 acronym[title] {
175 border-bottom: 1px dotted;
176 cursor: help;
177 }
178
179 a:link abbr[title],
180 a:visited abbr[title],
181 a:link acronym[title],
182 a:visited acronym[title] {
183 cursor: pointer;
184 }
185
186 code {
187 font-family: monospace;
188 white-space: pre;
189 }
190
191 hr {
192 margin: .5em 0;
193 padding: 0;
194 border: 1px solid #444;
195 border-width: 0 0 1px 0;
196 }
197
198 #maincontent ul {
199 margin-left: 2em;
200 }
201
202 .warning {
203 color: red;
204 background-color: white;
205 font-weight: bold;
206 }
207
208 .clear {
209 clear: both;
210 }
211
212 .skiplink,
213 .navigation,
214 .hidden {
215 position: absolute;
216 left: -1000px;
217 top: -1000px;
218 width: 0px;
219 height: 0px;
220 overflow: hidden;
221 display: inline;
222 }
223
224 .error {
225 color: #ff0000;
226 background-color: white;
227 }
228
229 .alert-message {
230 font-weight: normal;
231 padding: .5em;
232 border-radius: 3px;
233 border: 1px solid #a22;
234 color: #a22;
235 background: #fee;
236 margin: 0 0 .5em 0;
237 }
238
239 .alert-message.notice {
240 border-color: #15a;
241 background: #e6f6ff;
242 color: #15a;
243 }
244
245 .alert-message.warning {
246 border-color: #ed5;
247 background: #fe9;
248 color: #650;
249 }
250
251 div.hostinfo {
252 float: left;
253 margin: 0;
254 padding: 0;
255 width: auto;
256 padding: 0.5em;
257 }
258
259 .lang_he div.hostinfo {
260 float: right;
261 }
262
263 #xhr_poll_status {
264 cursor: pointer;
265 }
266
267 #xhr_poll_status #xhr_poll_status_off {
268 font-weight: bold;
269 color: #FF0000;
270 }
271
272 #xhr_poll_status #xhr_poll_status_on {
273 font-weight: bold;
274 color: #00FF00;
275 }
276
277 #menubar {
278 position: relative;
279 width: 100%;
280 background: #000000;
281 color: #ffffff;
282 }
283
284 #menubar .warning {
285 color: red;
286 background-color: #557788;
287 }
288
289 html #menubar a:link,
290 html #menubar a:visited {
291 position: relative;
292 display: block;
293 padding: 0.5em;
294 background: #000000;
295 color: #ffffff;
296 text-decoration: none;
297 }
298
299
300 html #menubar a:link:hover,
301 html #menubar a:visited:hover,
302 html #menubar a:link:active,
303 html #menubar a:visited:active,
304 #menubar a:link:focus,
305 #menubar a:visited:focus {
306 background: #000000;
307 color: #ffff00;
308 font-weight: bold;
309 }
310
311 html #menubar a:link.active,
312 html #menubar a:visited.active,
313 html #menubar a:link.preactive,
314 html #menubar a:visited.preactive {
315 background: #000000;
316 color: #ffff00;
317 font-weight: bold;
318 }
319
320 html #menubar a:link.warning,
321 html #menubar a:visited.warning {
322 background: #000000;
323 color: red;
324 font-weight: bold;
325 }
326
327 #modemenu {
328 width: auto;
329 background: #000000;
330 color: #ffffff;
331 list-style: none;
332 margin-right: 1px;
333 margin-left: 2em;
334 float: right;
335 }
336
337 #modemenu li {
338 float: right;
339 list-style: none;
340 }
341
342 #savemenu {
343 float: right;
344 }
345
346 .lang_he #savemenu {
347 float: left;
348 }
349
350 .lang_de #submenu_admin_uci {
351 width: 12em;
352 }
353
354 .lang_ru #submenu_admin_uci {
355 width: 11.5em;
356 }
357
358 textarea#syslog {
359 width: 98%;
360 min-height: 500px;
361 border: 3px solid #cccccc;
362 padding: 5px;
363 font-family: monospace;
364 }
365
366 #maincontainer {
367 clear: both;
368 width: 96%;
369 margin: 0 auto;
370 height:100%;
371 }
372
373 #maincontent {
374 padding: 0.5em;
375 background: #f5f5f5;
376 color: #000000;
377 border-width: 0 1px 1px 1px;
378 border-style: solid;
379 border-color: #444444;
380 }
381
382 .lang_he #maincontent {
383 direction: rtl;
384 }
385
386 h2, h3, h4, legend {
387 font-size: 150%;
388 font-family: Trebuchet MS, Verdana, sans-serif;
389 font-weight: bold;
390 margin: .25em 0 .5em 0;
391 border-bottom: 1px solid;
392 padding-bottom: 4px;
393 display: block;
394 width: 100%;
395 }
396
397 h3, legend {
398 font-size: 125%;
399 }
400
401 h4 {
402 font-size: 112%;
403 }
404
405 fieldset { border: none; }
406 fieldset > legend { float: left; }
407 fieldset > legend + * { clear: both; }
408
409 p {
410 margin-bottom: .5em;
411 }
412
413 .cbi-section {
414 margin: 0 0 .5em 0;
415 }
416
417 .cbi-section > h3,
418 .cbi-section > legend {
419 margin-top: .5em;
420 }
421
422 .cbi-section-descr {
423 margin-bottom: 0.5em;
424 font-size: 95%;
425 }
426
427 .cbi-section-descr:empty {
428 display: none;
429 }
430
431 .cbi-title-ref {
432 color: #37c;
433 }
434
435 .cbi-title-ref::after {
436 content: "âž™";
437 }
438
439 ul.cbi-apply {
440 font-size: 90%;
441 }
442
443 input:-webkit-input-placeholder {
444 color: #AAAAAA;
445 }
446
447 input:-moz-placeholder {
448 color: #AAAAAA;
449 }
450
451 input:-ms-input-placeholder {
452 color: #AAAAAA;
453 }
454
455 input[type=submit],
456 input[type=reset],
457 input[type=image],
458 input[type=button] {
459 cursor: pointer;
460 }
461
462 select,
463 input,
464 textarea {
465 background: #eeeeee;
466 color: #000000;
467 border-width: 1px;
468 border-color: #000000;
469 }
470
471 input[type=image] {
472 border: none;
473 }
474
475 input:focus,
476 input:not(.btn):not(.cbi-button):hover,
477 select:focus,
478 select:hover {
479 background-color: #ffffff;
480 color: #000000;
481 }
482
483 input[type=text],
484 input[type=password] {
485 padding: 0 3px;
486 }
487
488 select,
489 input[type=text],
490 input[type=password] {
491 width: 20em;
492 font-size: inherit;
493 line-height: 13pt;
494 height: 14pt;
495 }
496
497 select[multiple] {
498 height: auto;
499 }
500
501 input[type=radio],
502 input[type=checkbox],
503 [data-dynlist] > input + img,
504 input.cbi-input-password + img {
505 vertical-align: middle;
506 }
507
508 .td select,
509 .td .cbi-dropdown,
510 .td input[type=text] {
511 width: 100%;
512 }
513
514 .td [data-dynlist] > input,
515 .td input.cbi-input-password {
516 width: calc(100% - 20px);
517 }
518
519 img.cbi-image-button {
520 cursor: pointer;
521 margin: 0 2px;
522 vertical-align: middle;
523 }
524
525 .btn, .cbi-button {
526 padding: 0 .5em;
527 border-radius: 3px;
528 border: 1px solid #aaa;
529 text-decoration: none;
530 color: #000;
531 display: inline-block;
532 font-size: inherit;
533 -webkit-appearance: none;
534 background: #fff;
535 text-align: center;
536 font-weight: bold;
537 line-height: 13pt;
538 height: 16pt;
539 }
540
541 .btn:hover, .cbi-button:hover {
542 box-shadow: 0 0 3px #37c;
543 }
544
545 .btn[disabled],
546 .btn[disabled]:hover,
547 .cbi-button[disabled],
548 .cbi-button[disabled]:hover {
549 opacity: .6;
550 cursor: default;
551 pointer-events: none;
552 }
553
554 .cbi-button-positive,
555 .cbi-button-fieldadd,
556 .cbi-button-add,
557 .cbi-button-save {
558 border-color: #595;
559 color: #595;
560 }
561
562 .cbi-button-neutral,
563 .cbi-button-reset,
564 .cbi-button-download,
565 .cbi-button-find,
566 .cbi-button-link,
567 .cbi-button-up,
568 .cbi-button-down {
569 border-color: #444;
570 color: #444;
571 }
572
573 .cbi-button-action,
574 .cbi-button-apply,
575 .cbi-button-reload,
576 .cbi-button-edit {
577 border-color: #37c;
578 color: #37c;
579 }
580
581 .cbi-button-negative,
582 .cbi-section-remove .cbi-button,
583 .cbi-button-remove {
584 border-color: #a22;
585 color: #a22;
586 }
587
588 .cbi-button-action.important,
589 .cbi-page-actions .cbi-button-apply,
590 .cbi-section-actions .cbi-button-edit {
591 color: #fff;
592 background: #37c;
593 }
594
595 .cbi-button-positive.important,
596 .cbi-page-actions .cbi-button-save {
597 color: #fff;
598 background: #595;
599 }
600
601 .cbi-button-negative.important {
602 color: #fff;
603 background: #a22;
604 }
605
606 .cbi-page-actions .cbi-button-apply + .cbi-button-save {
607 background: #fff;
608 color: #595;
609 }
610
611 .cbi-input-invalid {
612 background-image: url('../resources/cbi/reset.gif');
613 background-repeat: no-repeat;
614 background-position: right;
615 color: #FF0000 !important;
616 border-color: #FF0000;
617 }
618
619 table td, table th {
620 color: #000000;
621 }
622
623 .table .td, .table .th {
624 color: #000000;
625 padding: .25em;
626 }
627
628 .table.smalltext {
629 background: #f5f5f5;
630 color: #000000;
631 border-top: 1px solid #666666;
632 border-right: 1px solid #666666;
633 border-bottom: 1px solid #666666;
634 font-size: 90%;
635 width: 80%;
636 margin-left: auto;
637 margin-right: auto;
638 border-collapse: collapse;
639 }
640
641 .table.smalltext .tr:hover .td {
642 background-color: #bbddee;
643 color: #000000;
644 }
645
646 .table.smalltext .tr .th {
647 padding: 0 0.25em;
648 border-left: 1px solid #666666;
649 text-align: left;
650 }
651
652 .table.smalltext .tr .td {
653 padding: 0 0.25em;
654 border-top: 1px solid #666666;
655 border-left: 1px solid #666666;
656 }
657
658 .cbi-rowstyle-1 {
659 background-color: #eeeeff;
660 color: #000000;
661 }
662
663 .cbi-rowstyle-2 {
664 color: #000000;
665 }
666
667 .cbi-value {
668 clear: left;
669 vertical-align: middle;
670 padding: 0.25em 0.6em;
671 border-bottom: 1px dotted #bbbbbb;
672 }
673
674 .cbi-value:hover {
675 background: #f8f8f8;
676 color: #000000;
677 }
678
679 .cbi-value-title {
680 float: left;
681 width: 40%;
682 line-height: 1.8em;
683 }
684
685 .cbi-value-field {
686 width: 58%;
687 margin-left: 40%;
688 padding: 0.25em 0;
689 }
690
691 .td.cbi-value-field {
692 width: auto;
693 margin-left: 0;
694 align-self: center;
695 vertical-align: middle;
696 }
697
698 .cbi-value-description {
699 background-image: url(/luci-static/resources/cbi/help.gif);
700 background-position: .25em .25em;
701 background-repeat: no-repeat;
702 margin: .25em 0 0 0;
703 padding: .25em .25em .25em 1.75em;
704 }
705
706 .cbi-section-create {
707 padding: 0 0 .25em 0;
708 margin: -3px;
709 display: inline-flex;
710 align-items: center;
711 }
712
713 .cbi-section-create > * {
714 margin: 3px;
715 flex: 1 1 auto;
716 }
717
718 .cbi-section-create > * > input {
719 width: 100%;
720 }
721
722 .cbi-section-remove > .cbi-button {
723 margin-bottom: -1px;
724 border-radius: 3px 3px 0 0;
725 }
726
727 .cbi-section-node + .cbi-section-create {
728 padding-top: 0;
729 }
730
731 div.cbi-map-descr {
732 margin-bottom: 1em;
733 }
734
735 div.cbi-optionals {
736 padding: 0.25em;
737 border-bottom: 1px dotted #bbbbbb;
738 }
739
740 .cbi-section-node {
741 clear: both;
742 padding-bottom: 0;
743 position: relative;
744 border: 1px dotted #555;
745 background: #fff;
746 margin-bottom: .5em;
747 }
748
749 .cbi-section-node-tabbed {
750 border-top: none;
751 margin-top: -.5em;
752 }
753
754 .cbi-section-node .cbi-value:last-child,
755 .cbi-section-node .cbi-optionals:last-child {
756 border-bottom: none;
757 }
758
759 .table.cbi-section-table {
760 width: 100%;
761 font-size: 95%;
762 border: 1px dotted #444;
763 background: #fff;
764 margin: 0 0 .5em 0;
765 }
766
767 .cbi-section-node > .table.cbi-section-table {
768 border: none;
769 margin: 0;
770 }
771
772 @keyframes flash {
773 0% { opacity: 1; }
774 50% { opacity: .5; }
775 100% { opacity: 1; }
776 }
777
778 .tr.cbi-section-table-row.flash {
779 animation: flash .35s;
780 }
781
782 .tr.cbi-section-table-descr .th {
783 font-weight: normal;
784 font-size: 90%;
785 vertical-align: top;
786 }
787
788 .td.cbi-section-table-optionals {
789 text-align: left !important;
790 padding-top: 1em;
791 }
792
793 .th.cbi-section-actions,
794 .td.cbi-section-actions {
795 overflow: visible;
796 align-self: center;
797 vertical-align: middle;
798 }
799
800 .th.cbi-section-actions > *,
801 .td.cbi-section-actions > * {
802 display: flex;
803 justify-content: flex-end;
804 flex-direction: row;
805 flex: 1 1 150px;
806 margin: auto -1px auto auto;
807 }
808
809 .td.cbi-section-actions > * > *,
810 .td.cbi-section-actions > * > form > * {
811 flex: 1 1 4em;
812 margin: 0 1px;
813 }
814
815 .td.cbi-section-actions > * > form {
816 display: flex;
817 margin: 0;
818 }
819
820 .cbi-page-actions {
821 display: flex;
822 justify-content: flex-end;
823 margin: -3px;
824 }
825
826 .cbi-page-actions > form {
827 display: flex;
828 }
829
830 .cbi-page-actions > * {
831 flex: 0 1 auto;
832 margin: 3px;
833 }
834
835 .cbi-page-actions > form > * {
836 flex: 1;
837 margin: 0 3px 0 0;
838 }
839
840 .cbi-page-actions > .cbi-button-save,
841 .cbi-page-actions > .cbi-button-apply,
842 .cbi-page-actions > form[method="post"] {
843 margin-left: auto;
844 }
845
846 *::-ms-backdrop,
847 .cbi-page-actions > .cbi-button-save,
848 .cbi-page-actions > .cbi-button-apply,
849 .cbi-page-actions > form[method="post"] {
850 margin-left: 50%;
851 }
852
853 .cbi-page-actions > .cbi-button-apply + .cbi-button-save,
854 .cbi-page-actions > .cbi-button-save + form[method="post"] {
855 margin-left: 3px;
856 }
857
858 .th[data-type="button"], .td[data-type="button"],
859 .th[data-type="fvalue"], .td[data-type="fvalue"] {
860 flex: 1 1 2em;
861 text-align: center;
862 }
863
864 #cbi-network-switch_vlan .th,
865 #cbi-network-switch_vlan .td {
866 flex-basis: 12%;
867 }
868
869 .td[data-title]::before {
870 content: attr(data-title) ":\20";
871 font-weight: bold;
872 text-align: left;
873 display: none;
874 padding: 1px;
875 white-space: nowrap;
876 }
877
878 .td[data-description]::after {
879 content: attr(data-description);
880 font-size: 90%;
881 text-align: left;
882 display: none;
883 background: url(/luci-static/resources/cbi/help.gif) left top no-repeat;
884 padding: .125em 0 .125em 18px;
885 margin: .125em 0;
886 }
887
888 .tr.placeholder .td[data-title]::before,
889 .tr.placeholder .td[data-description]::after {
890 display: none;
891 }
892
893 .tr[data-title]::before,
894 .tr.cbi-section-table-titles.named::before {
895 content: attr(data-title) "\20";
896 font-weight: bold;
897 text-align: left;
898 display: table-cell;
899 align-self: center;
900 flex: 1 1 5%;
901 padding: .25em;
902 white-space: normal;
903 word-wrap: break-word;
904 vertical-align: middle;
905 }
906
907 .cbi-value-helpicon img {
908 vertical-align: bottom;
909 }
910
911 .td.cbi-value-error {
912 border-color: red;
913 }
914
915 .cbi-value-error input,
916 .cbi-value-error select {
917 color: red;
918 background-color: #ffcccc;
919 }
920
921 .cbi-section-error {
922 color: red;
923 background-color: white;
924 font-size: 95%;
925 border: 1px dotted red;
926 margin: 3px;
927 padding: 3px;
928 }
929
930 .cbi-value-field var {
931 color: #2222FF;
932 }
933
934 ul.cbi-tabmenu {
935 list-style-type: none;
936 display: flex;
937 margin: 0 0 .5em 0 !important;
938 padding: 0 0 0 5px;
939 border-bottom: 1px solid #bbb;
940 }
941
942 ul.cbi-tabmenu li {
943 display: inline-flex;
944 margin: 0 5px -1px 0;
945 flex: 0 1 auto;
946 border: 1px solid #bbb;
947 border-bottom: none;
948 border-radius: 3px 3px 0 0;
949 background: linear-gradient(#ddd 90%, #aaa 100%);
950 color: #888;
951 overflow: hidden;
952 text-overflow: ellipsis;
953 word-wrap: break-word;
954 }
955
956 ul.cbi-tabmenu li a,
957 ul.cbi-tabmenu li a:hover {
958 text-decoration: none;
959 color: inherit;
960 padding: 5px;
961 flex: 1 1 auto;
962 width: 100%;
963 height: 100%;
964 }
965
966 ul.cbi-tabmenu li.cbi-tab-highlighted {
967 color: #000;
968 background: #fea;
969 }
970
971 ul.cbi-tabmenu li.cbi-tab {
972 color: #000;
973 background: #fff;
974 }
975
976 .cbi-tab-descr {
977 background-image: url(/luci-static/resources/cbi/help.gif);
978 background-position: .25em 50%;
979 background-repeat: no-repeat;
980 border-bottom: 1px solid #ccc;
981 margin: 0 .25em .25em .25em;
982 padding: .5em .5em .5em 2em;
983 }
984
985
986 .cbi-dropdown {
987 border: 1px inset #000;
988 display: inline-flex;
989 cursor: pointer;
990 background: #eee;
991 position: relative;
992 padding: 0;
993 color: #000;
994 min-width: 20em;
995 max-width: 100%;
996 }
997
998 .cbi-dropdown:hover {
999 background: #fff;
1000 }
1001
1002 .cbi-dropdown:focus {
1003 outline: 2px solid #4b6e9b;
1004 }
1005
1006 .cbi-dropdown > ul {
1007 margin: 0 !important;
1008 padding: 0;
1009 list-style: none;
1010 overflow-x: hidden;
1011 overflow-y: auto;
1012 display: flex;
1013 width: 100%;
1014 }
1015
1016 .cbi-dropdown > ul.preview {
1017 display: none;
1018 }
1019
1020 .cbi-dropdown > .open {
1021 border: 2px outset #eee;
1022 flex-basis: 15px;
1023 }
1024
1025 .cbi-dropdown > .open,
1026 .cbi-dropdown > .more {
1027 flex-grow: 0;
1028 flex-shrink: 0;
1029 display: flex;
1030 flex-direction: column;
1031 justify-content: center;
1032 text-align: center;
1033 line-height: 2em;
1034 padding: 0 .25em;
1035 }
1036
1037 .cbi-dropdown > .more,
1038 .cbi-dropdown > ul > li[placeholder] {
1039 color: #777;
1040 font-weight: bold;
1041 text-shadow: 1px 1px 0px #fff;
1042 display: none;
1043 }
1044
1045 .cbi-dropdown > ul > li {
1046 display: none;
1047 padding: .25em;
1048 white-space: nowrap;
1049 overflow: hidden;
1050 text-overflow: ellipsis;
1051 flex-shrink: 1;
1052 flex-grow: 1;
1053 align-items: center;
1054 align-self: center;
1055 min-height: 20px;
1056 }
1057
1058 .cbi-dropdown > ul > li .hide-open { display: initial; }
1059 .cbi-dropdown > ul > li .hide-close { display: none; }
1060
1061 .cbi-dropdown > ul > li[display]:not([display="0"]) {
1062 border-left: 1px solid #ccc;
1063 }
1064
1065 .cbi-dropdown[empty] > ul {
1066 max-width: 1px;
1067 }
1068
1069 .cbi-dropdown > ul > li > form {
1070 display: none;
1071 margin: 0;
1072 padding: 0;
1073 pointer-events: none;
1074 }
1075
1076 .cbi-dropdown > ul > li img {
1077 vertical-align: middle;
1078 margin-right: .25em;
1079 }
1080
1081 .cbi-dropdown > ul > li > form > input[type="checkbox"] {
1082 margin: 0;
1083 }
1084
1085 .cbi-dropdown > ul > li input[type="text"] {
1086 height: 20px;
1087 }
1088
1089 .cbi-dropdown[open] {
1090 position: relative;
1091 }
1092
1093 .cbi-dropdown[open] > ul.dropdown {
1094 display: block;
1095 background: #f6f6f5;
1096 border: 1px solid #918e8c;
1097 box-shadow: 0 0 4px #918e8c;
1098 position: absolute;
1099 z-index: 1000;
1100 max-width: none;
1101 min-width: 100%;
1102 width: auto;
1103 }
1104
1105 .cbi-dropdown > ul > li[display],
1106 .cbi-dropdown[open] > ul.preview,
1107 .cbi-dropdown[open] > ul.dropdown > li,
1108 .cbi-dropdown[multiple] > ul > li > label,
1109 .cbi-dropdown[multiple][open] > ul.dropdown > li,
1110 .cbi-dropdown[multiple][more] > .more,
1111 .cbi-dropdown[multiple][empty] > .more {
1112 flex-grow: 1;
1113 display: flex;
1114 align-items: center;
1115 }
1116
1117 .cbi-dropdown[empty] > ul > li,
1118 .cbi-dropdown[optional][open] > ul.dropdown > li[placeholder],
1119 .cbi-dropdown[multiple][open] > ul.dropdown > li > form {
1120 display: block;
1121 }
1122
1123 .cbi-dropdown[open] > ul.dropdown > li .hide-open { display: none; }
1124 .cbi-dropdown[open] > ul.dropdown > li .hide-close { display: initial; }
1125
1126 .cbi-dropdown[open] > ul.dropdown > li {
1127 border-bottom: 1px solid #ccc;
1128 }
1129
1130 .cbi-dropdown[open] > ul.dropdown > li[selected] {
1131 background: #b0d0f0;
1132 }
1133
1134 .cbi-dropdown[open] > ul.dropdown > li.focus {
1135 background: linear-gradient(90deg, #a3c2e8 0%, #84aad9 100%);
1136 }
1137
1138 .cbi-dropdown[open] > ul.dropdown > li:last-child {
1139 margin-bottom: 0;
1140 border-bottom: none;
1141 }
1142
1143 .cbi-dropdown[disabled] {
1144 pointer-events: none;
1145 opacity: .6;
1146 }
1147
1148 input[type="text"] + .cbi-button,
1149 input[type="password"] + .cbi-button,
1150 select + .cbi-button {
1151 border-radius: 0 3px 3px 0;
1152 border: 1px outset #000;
1153 margin: 0 0 1px -2px;
1154 padding: 0 6px;
1155 vertical-align: top;
1156 display: inline-block;
1157 height: 14pt;
1158 font-size: 10pt;
1159 line-height: 12pt;
1160 }
1161
1162 .cbi-tooltip-container {
1163 cursor: help;
1164 }
1165
1166 .cbi-tooltip {
1167 position: absolute;
1168 z-index: 1000;
1169 left: -1000px;
1170 opacity: 0;
1171 transition: opacity .25s ease-out;
1172 pointer-events: none;
1173 box-shadow: 0 0 2px #444;
1174 }
1175
1176 .cbi-tooltip-container:hover .cbi-tooltip {
1177 left: auto;
1178 opacity: 1;
1179 transition: opacity .25s ease-in;
1180 }
1181
1182 .zonebadge .cbi-tooltip {
1183 padding: 1px;
1184 background: inherit;
1185 margin: -1.6em 0 0 -5px;
1186 }
1187
1188
1189 .zone-forwards {
1190 display: flex;
1191 flex-wrap: wrap;
1192 }
1193
1194 .zone-forwards > * {
1195 flex: 1 1 45%;
1196 padding: 1px;
1197 }
1198
1199 .zone-forwards > span {
1200 flex-basis: 10%;
1201 text-align: center;
1202 }
1203
1204 .zone-forwards .zone-src,
1205 .zone-forwards .zone-dest {
1206 display: flex;
1207 flex-direction: column;
1208 }
1209
1210
1211 .left, .left::before, .left::after { text-align: left !important; }
1212 .right, .right::before, .right::after { text-align: right !important; }
1213 .center, .center::before, .center::after { text-align: center !important; }
1214
1215 .top, .top::before, .top::after { vertical-align: top !important; }
1216 .middle, .middle::before, .middle::after { vertical-align: middle !important; }
1217 .bottom, .bottom::before, .bottom::after { vertical-align: bottom !important; }
1218
1219 .td.top { align-self: flex-start; vertical-align: top; }
1220 .td.middle { align-self: center; vertical-align: middle; }
1221 .td.bottom { align-self: flex-end; vertical-align: bottom; }
1222
1223 .luci {
1224 position: absolute;
1225 bottom: 0;
1226 left: 1em;
1227 height: 1.5em;
1228 font-size: 80%;
1229 margin-bottom: 0;
1230 }
1231
1232 .luci a:link,
1233 .luci a:visited {
1234 background-color: transparent;
1235 color: #666666;
1236 text-decoration: none;
1237 font-size: 70%;
1238 }
1239
1240 .inline {
1241 display: inline;
1242 }
1243
1244 .error500 {
1245 white-space: normal;
1246 border: 1px dotted #ff0000;
1247 background-color: #ffffff;
1248 color: #000000;
1249 padding: 0.5em;
1250 }
1251
1252
1253 .ifacebadge, .ifacebox {
1254 display: inline-flex;
1255 align-content: center;
1256 border: 1px solid #ccc;
1257 border-radius: 3px;
1258 padding: 2px;
1259 background: #fff;
1260 }
1261
1262 .ifacebox-head {
1263 background: #eee;
1264 }
1265
1266 .ifacebox-head.active {
1267 background: #90c0e0;
1268 }
1269
1270 .ifacebadge, .zonebadge {
1271 align-items: center;
1272 }
1273
1274 .ifacebadge > * {
1275 align-self: flex-start;
1276 }
1277
1278 .ifacebadge > img,
1279 .ifacebadge > em {
1280 margin-right: 5px;
1281 display: inline-block;
1282 height: 16px;
1283 }
1284
1285 .ifacebadge-active {
1286 border-color: #000000;
1287 font-weight: bold;
1288 }
1289
1290 .ifacebox {
1291 flex-direction: column;
1292 margin: 0;
1293 padding: 0;
1294 min-width: 100px;
1295 text-align: center;
1296 }
1297
1298 .ifacebox > * {
1299 padding: 2px;
1300 }
1301
1302 .td > .ifacebadge,
1303 .td > .zonebadge {
1304 margin: 0;
1305 vertical-align: top;
1306 }
1307
1308 .network-status-table {
1309 display: flex;
1310 flex-wrap: wrap;
1311 margin: -.25em -.25em .25em -.25em;
1312 }
1313
1314 .network-status-table .ifacebox {
1315 margin: .25em;
1316 font-size: 90%;
1317 flex-grow: 1;
1318 }
1319
1320 .network-status-table .ifacebox-body {
1321 display: flex;
1322 flex-direction: column;
1323 flex: 1 0 auto;
1324 padding: .5em;
1325 }
1326
1327 .network-status-table .ifacebox-body > span {
1328 flex: 10 10 auto;
1329 }
1330
1331 .network-status-table .ifacebox-body > div {
1332 display: flex;
1333 flex-wrap: wrap;
1334 }
1335
1336 .ifacebadge.large,
1337 .network-status-table .ifacebox-body .ifacebadge {
1338 flex: 1;
1339 -webkit-flex: 1 1 auto;
1340 padding: .5em;
1341 min-width: 220px;
1342 white-space: nowrap;
1343 }
1344
1345 .network-status-table .ifacebox-body .ifacebadge {
1346 margin: .5em 0 0 0;
1347 }
1348
1349
1350 .zonebadge {
1351 padding: 2px;
1352 display: inline-block;
1353 white-space: nowrap;
1354 border-radius: 3px;
1355 }
1356
1357 .zonebadge > em,
1358 .zonebadge > strong {
1359 margin: 3px;
1360 }
1361
1362 .zonebadge input {
1363 width: 6em;
1364 height: 1.5em;
1365 }
1366
1367 .zonebadge .ifacebadge,
1368 .cbi-dropdown .ifacebadge {
1369 margin: 1px;
1370 }
1371
1372 .zonebadge .ifacebadge img,
1373 .zonebadge .ifacebadge em,
1374 .cbi-dropdown .ifacebadge img,
1375 .cbi-dropdown .ifacebadge em {
1376 margin: 0 1px;
1377 }
1378
1379 .zonebadge-empty {
1380 border: 1px dashed #AAAAAA;
1381 color: #AAAAAA;
1382 font-style: italic;
1383 font-size: smaller;
1384 }
1385
1386
1387 .uci-change-list {
1388 font-family: monospace;
1389 }
1390
1391 .uci-change-list ins,
1392 .uci-change-legend-label ins {
1393 text-decoration: none;
1394 border: 1px solid #00FF00;
1395 background-color: #CCFFCC;
1396 display: block;
1397 padding: 2px;
1398 }
1399
1400 .uci-change-list del,
1401 .uci-change-legend-label del {
1402 text-decoration: none;
1403 border: 1px solid #FF0000;
1404 background-color: #FFCCCC;
1405 display: block;
1406 font-style: normal;
1407 padding: 2px;
1408 }
1409
1410 .uci-change-list var,
1411 .uci-change-legend-label var {
1412 text-decoration: none;
1413 border: 1px solid #CCCCCC;
1414 background-color: #EEEEEE;
1415 display: block;
1416 font-style: normal;
1417 padding: 2px;
1418 }
1419
1420 .uci-change-list var ins,
1421 .uci-change-list var del {
1422 /*display: inline;*/
1423 border: none;
1424 white-space: pre;
1425 font-style: normal;
1426 padding: 0px;
1427 }
1428
1429 .uci-change-legend {
1430 padding: 5px;
1431 }
1432
1433 .uci-change-legend-label {
1434 width: 150px;
1435 float: left;
1436 font-size: 80%;
1437 }
1438
1439 .uci-change-legend-label>ins,
1440 .uci-change-legend-label>del,
1441 .uci-change-legend-label>var {
1442 float: left;
1443 margin-right: 4px;
1444 width: 10px;
1445 height: 10px;
1446 display: block;
1447 }
1448
1449 .uci-change-legend-label var ins,
1450 .uci-change-legend-label var del {
1451 line-height: 6px;
1452 border: none;
1453 }
1454
1455
1456 }
1457
1458 @media screen and (max-width: 992px) {
1459 body {
1460 -webkit-text-size-adjust: 100%;
1461 }
1462
1463 #maincontainer {
1464 flex-direction: column;
1465 width: 100%;
1466 }
1467
1468 #maincontent {
1469 width: 96%;
1470 margin: auto;
1471 flex-basis: auto;
1472 }
1473
1474 #mainmenu {
1475 border: none;
1476 border-radius: 0;
1477 max-width: none;
1478 background: #000;
1479 box-shadow: 0 0 2px #444;
1480 padding: 0;
1481 border-top: 1px solid #444;
1482 position: relative;
1483 }
1484
1485 #mainmenu ul > li.selected > a {
1486 background: #444;
1487 color: #fff;
1488 border-top: none;
1489 }
1490
1491 #mainmenu ul > li.selected:not(.active) > ul {
1492 max-height: 0;
1493 visibility: hidden;
1494 }
1495
1496 #mainmenu ul > li > a {
1497 flex: 1 1 auto;
1498 color: #fff;
1499 border: 1px solid #444;
1500 border-width: 0 0 1px 1px;
1501 }
1502
1503 #mainmenu ul.l1 {
1504 display: flex;
1505 flex-direction: row;
1506 flex-wrap: wrap;
1507 position: relative;
1508 margin-left: -1px;
1509 width: 100%;
1510 }
1511
1512 #mainmenu ul.l1 > li {
1513 display: inline-flex;
1514 flex: 1 1 auto;
1515 position: relative;
1516 height: 2em;
1517 }
1518
1519 #mainmenu ul.l1 ul.l2 {
1520 position: absolute;
1521 top: 2em;
1522 right: 0;
1523 z-index: 1000;
1524 background: #000;
1525 box-shadow: 0 0 2px #444;
1526 min-width: 120px;
1527 display: block;
1528 }
1529
1530 #mainmenu ul.l1 ul.l2.align-left {
1531 right: auto;
1532 left: 0;
1533 }
1534
1535 #mainmenu ul.l2 > li {
1536 display: block;
1537 }
1538
1539 #mainmenu ul.l2 > li > a {
1540 padding: .5em;
1541 }
1542
1543 #mainmenu ul li.mainmenu-item-logout {
1544 margin-top: 0;
1545 margin-left: auto;
1546 }
1547
1548 #mainmenu ul li.mainmenu-item-logout::before {
1549 content: "\0a";
1550 flex: 10;
1551 border: 1px solid #444;
1552 border-width: 0 0 1px 1px;
1553 }
1554
1555 .table {
1556 display: flex;
1557 flex-direction: column;
1558 width: 100%;
1559 }
1560
1561 .tr {
1562 display: flex;
1563 flex-direction: row;
1564 flex-wrap: wrap;
1565 align-items: flex-end;
1566 }
1567
1568 .th, .td {
1569 flex: 2 2 25%;
1570 align-self: flex-start;
1571 overflow: hidden;
1572 text-overflow: ellipsis;
1573 word-wrap: break-word;
1574 display: inline-block;
1575 }
1576
1577 .td select {
1578 word-wrap: normal;
1579 }
1580
1581 .td[data-type="button"],
1582 .td[data-type="fvalue"] {
1583 flex: 1 1 12.5%;
1584 text-align: left;
1585 }
1586
1587 .td.cbi-value-field {
1588 align-self: flex-start;
1589 }
1590
1591 .td.cbi-value-field .cbi-button {
1592 width: 100%;
1593 }
1594
1595 .table.cbi-section-table {
1596 border: none;
1597 background: none;
1598 margin: 0;
1599 }
1600
1601 .tr.table-titles,
1602 .cbi-section-table-titles,
1603 .cbi-section-table-descr {
1604 display: none;
1605 }
1606
1607 .cbi-section-table-row {
1608 display: flex;
1609 flex-direction: row;
1610 flex-wrap: wrap;
1611 border: 1px dotted #444;
1612 margin: 0 0 .5em 0;
1613 background: #fff;
1614 }
1615
1616 .cbi-section-table-row:hover {
1617 border: 1px solid #4a6b7c;
1618 }
1619
1620 .cbi-section-table + .cbi-section-create {
1621 padding-top: 0;
1622 }
1623
1624 .tr[data-title]::before {
1625 display: block;
1626 flex: 1 1 100%;
1627 background: #eef;
1628 }
1629
1630 .td[data-title]::before,
1631 .td[data-description]::after {
1632 display: block;
1633 }
1634
1635 .td[data-title] ~ .td.cbi-section-actions {
1636 align-self: flex-start;
1637 }
1638
1639 .td[data-title] ~ .td.cbi-section-actions::before {
1640 display: block;
1641 content: "\a0";
1642 }
1643
1644 .hide-sm,
1645 .hide-xs {
1646 display: none;
1647 }
1648 }
1649
1650 @media screen and (max-width: 480px) {
1651 body {
1652 font-size: 12pt;
1653 }
1654
1655 input, textarea, select {
1656 font-size: 12pt !important;
1657 line-height: 1.4em;
1658 }
1659
1660 select, input[type="text"], input[type="password"] {
1661 width: 100%;
1662 height: 1.4em;
1663 }
1664
1665 [data-dynlist] > input,
1666 input.cbi-input-password {
1667 width: calc(100% - 20px);
1668 }
1669
1670 .cbi-dropdown {
1671 min-width: 100%;
1672 }
1673
1674 .btn, .cbi-button {
1675 font-size: 9pt !important;
1676 line-height: 13pt;
1677 }
1678
1679 #maincontent {
1680 padding: .25em;
1681 }
1682
1683 #tabmenu {
1684 margin: -.25em -.25em 1em -.25em;
1685 }
1686
1687 .th, .td {
1688 flex: 2 2 50%;
1689 }
1690
1691 .td.cbi-value-field {
1692 flex-basis: 100%;
1693 }
1694
1695 .td.cbi-value-field[data-type="dvalue"] {
1696 flex-basis: 50%;
1697 }
1698
1699 .td.cbi-value-field[data-type="button"],
1700 .td.cbi-value-field[data-type="fvalue"] {
1701 flex-basis: 25%;
1702 text-align: left;
1703 }
1704
1705 .cbi-value-title {
1706 float: none;
1707 font-weight: bold;
1708 }
1709
1710 .cbi-value-field {
1711 width: 100%;
1712 margin: 0;
1713 }
1714
1715 .cbi-value-description {
1716 margin-top: 5px;
1717 display: block;
1718 }
1719
1720 .cbi-section-create {
1721 margin-bottom: 1em;
1722 }
1723
1724 .cbi-page-actions {
1725 flex-wrap: wrap;
1726 margin: -2px;
1727 }
1728
1729 .cbi-page-actions > .cbi-button-link {
1730 flex-basis: 100%;
1731 margin-right: 2px;
1732 }
1733
1734 .cbi-page-actions > * {
1735 flex: 1 1 auto;
1736 margin: 2px;
1737 }
1738
1739 ul.cbi-tabmenu {
1740 padding: 0 3px;
1741 }
1742
1743 ul.cbi-tabmenu li {
1744 font-size: 90%;
1745 margin: 0 1px -1px 0;
1746 }
1747
1748 .hide-xs {
1749 display: none;
1750 }
1751
1752 #cbi-network .td[id] > strong {
1753 display: block;
1754 }
1755
1756 #cbi-network-switch_vlan .td.cbi-section-actions {
1757 flex-basis: 100%;
1758 }
1759 }