themes: generalize indicator markup and styling
[project/luci.git] / themes / luci-theme-material / htdocs / luci-static / material / cascade.css
1 /**
2 * Material is a clean HTML5 theme for LuCI. It is based on luci-theme-bootstrap and MUI
3 *
4 * luci-theme-material
5 * Copyright 2015 Lutty Yang <lutty@wcan.in>
6 *
7 * Have a bug? Please create an issue here on GitHub!
8 * https://github.com/LuttyYang/luci-theme-material/issues
9 *
10 * luci-theme-bootstrap:
11 * Copyright 2008 Steven Barth <steven@midlink.org>
12 * Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
13 * Copyright 2012 David Menting <david@nut-bolt.nl>
14 *
15 * MUI:
16 * https://github.com/muicss/mui
17 *
18 * Menu and loading spinner icons from IcoMoon:
19 * https://icomoon.io
20 *
21 * Pure CSS ripple effect:
22 * https://github.com/mladenplavsic/css-ripple-effect
23 *
24 * Licensed to the public under the Apache License 2.0
25 */
26
27 /*
28 * Include custom css
29 */
30 @import url("custom.css");
31
32 .table {
33 position: relative;
34 display: table;
35 }
36
37 .tr {
38 display: table-row;
39 }
40 .thead {
41 display: table-header-group;
42 }
43
44 .tbody {
45 display: table-row-group;
46 }
47
48 .tfoot {
49 display: table-footer-group;
50 }
51
52 .td,
53 .th {
54 line-height: normal;
55 display: table-cell;
56 padding: .5em;
57 text-align: center;
58 vertical-align: middle;
59 }
60
61 .th {
62 font-weight: bold;
63 }
64
65 .tr.placeholder {
66 height: 4em;
67 }
68
69 .tr.placeholder > .td {
70 line-height: 3;
71 position: absolute;
72 right: 0;
73 bottom: 0;
74 left: 0;
75 text-align: center !important;
76 background: inherit;
77 }
78
79 .td[width="33%"] {
80 padding: 1.1em;
81 }
82
83 .table[width="33%"],
84 .th[width="33%"],
85 .td[width="33%"] {
86 width: 33%;
87 }
88
89 .table[width="100%"],
90 .th[width="100%"],
91 .td[width="100%"] {
92 width: 100%;
93 }
94
95 .col-1 {
96 flex: 1 1 30px !important;
97 }
98
99 .col-2 {
100 flex: 2 2 60px !important;
101 }
102
103 .col-3 {
104 flex: 3 3 90px !important;
105 }
106
107 .col-4 {
108 flex: 4 4 120px !important;
109 }
110
111 .col-5 {
112 flex: 5 5 150px !important;
113 }
114
115 .col-6 {
116 flex: 6 6 180px !important;
117 }
118
119 .col-7 {
120 flex: 7 7 210px !important;
121 }
122
123 .col-8 {
124 flex: 8 8 240px !important;
125 }
126
127 .col-9 {
128 flex: 9 9 270px !important;
129 }
130
131 .col-10 {
132 flex: 10 10 300px !important;
133 }
134
135 * {
136 box-sizing: border-box;
137 margin: 0;
138 padding: 0;
139 }
140
141 .h1,
142 .h2,
143 .h3,
144 .h4,
145 .h5,
146 .h6,
147 h1,
148 h2,
149 h3,
150 h4,
151 h5,
152 h6 {
153 font-family: inherit;
154 font-weight: normal;
155 line-height: 1.1 !important;
156 color: inherit;
157 }
158
159 html {
160 overflow-y: hidden;
161 -webkit-text-size-adjust: 100%;
162 -ms-text-size-adjust: 100%;
163 }
164
165 body {
166 font-size: .8rem;
167 background-color: #eee;
168 }
169
170 html,
171 body {
172 font-family: "Microsoft Yahei", "WenQuanYi Micro Hei", "sans-serif", "Helvetica Neue", "Helvetica", "Hiragino Sans GB";
173 font-family: var(--font-body);
174 height: 100%;
175 margin: 0;
176 padding: 0;
177 }
178
179 select {
180 padding: .36rem .8rem;
181 color: #555;
182 border: thin solid #ccc;
183 background-color: #fff;
184 background-image: none;
185 }
186
187 .btn,
188 button,
189 select,
190 input,
191 .cbi-dropdown {
192 height: 1.8rem;
193 padding: 0;
194 color: rgba(0, 0, 0, .87);
195 border: 0;
196 border-bottom: 2px solid rgba(0, 0, 0, .26);
197 border-radius: 0;
198 outline: 0;
199 background-color: transparent;
200 background-image: none;
201 box-shadow: none;
202 }
203
204 select,
205 .cbi-dropdown {
206 width: inherit;
207 cursor: default;
208 }
209
210 select:not([multiple="multiple"]):focus,
211 input:not(.cbi-button):focus,
212 .cbi-dropdown:focus {
213 border-color: #09c;
214 border-color: var(--main-color);
215 }
216
217 .cbi-dropdown,
218 select[multiple="multiple"] {
219 height: auto;
220 }
221
222 pre {
223 overflow: auto;
224 }
225
226 code {
227 font-size: 1rem;
228 font-size-adjust: .35;
229 padding: 1px 3px;
230 color: #101010;
231 border-radius: 2px;
232 background: #ddd;
233 }
234
235 abbr {
236 cursor: help;
237 text-decoration: underline;
238 color: #005470;
239 }
240
241 hr {
242 margin: 1rem 0;
243 opacity: .1;
244 border-color: #eee;
245 }
246
247 header,
248 .main {
249 position: absolute;
250 width: 100%;
251 }
252
253 header {
254 position: fixed;
255 z-index: 2000;
256 float: left;
257 height: 4rem;
258 transition: box-shadow .2s;
259 box-shadow: 0 2px 5px rgba(0, 0, 0, .26);
260 }
261
262 footer {
263 font-size: .8rem;
264 overflow: hidden;
265 padding: 1rem;
266 text-align: right;
267 white-space: nowrap;
268 color: #aaa;
269 text-shadow: 0 0 2px #bbb;
270 }
271
272 footer > a {
273 text-decoration: none;
274 color: #aaa;
275 }
276
277 small {
278 font-size: 90%;
279 line-height: 1.42857143;
280 white-space: normal;
281 }
282
283 .main {
284 position: relative;
285 top: 4rem;
286 bottom: 0;
287 overflow-y: auto;
288 height: 100%;
289 height: calc(100% - 4rem);
290 }
291
292 .main > .loading {
293 position: fixed;
294 z-index: 1000;
295 top: 0;
296 display: block;
297 width: 100%;
298 height: 100%;
299 pointer-events: none;
300 background-color: rgb(240, 240, 240);
301 }
302
303 .main > .loading > span {
304 font-family: monospace;
305 font-size: 2rem;
306 font-size-adjust: .35;
307 position: relative;
308 top: 12.5%;
309 display: block;
310 text-align: center;
311 color: #888;
312 }
313
314 .main > .loading > span > .loading-img {
315 position: relative;
316 top: .1rem;
317 left: .05rem;
318 display: inline-block;
319 width: 1.25rem;
320 height: 1.25rem;
321 margin-right: 1rem;
322 animation: anim-rotate 2s infinite linear;
323 background: url(./icons/spinner.svg) no-repeat center;
324 }
325
326 @keyframes anim-rotate {
327 0% {
328 -webkit-transform: rotate(0);
329 -ms-transform: rotate(0);
330 transform: rotate(0);
331 }
332 100% {
333 -webkit-transform: rotate(360deg);
334 -ms-transform: rotate(360deg);
335 transform: rotate(360deg);
336 }
337 }
338
339 .main-left {
340 position: fixed;
341 top: 4rem;
342 float: left;
343 overflow-x: auto;
344 width: 15%;
345 width: calc(0% + 15rem);
346 height: 100%;
347 height: calc(100% - 4rem);
348 background-color: #fff;
349 background-color: var(--menu-bg-color);
350 }
351
352 .main-right {
353 float: right;
354 width: 85%;
355 width: calc(100% - 15rem);
356 height: 100%;
357 background-color: #eee;
358 }
359
360 .main-right > #maincontent {
361 background-color: #eee;
362 }
363
364 .pull-right {
365 float: right;
366 }
367
368 .pull-left {
369 float: left;
370 }
371
372 .nowrap:not(.td) {
373 white-space: nowrap;
374 }
375
376 [disabled="disabled"] {
377 pointer-events: none;
378 }
379
380 header {
381 color: #fff;
382 color: var(--header-color);
383 background: #09c;
384 background: var(--header-bg);
385 }
386
387 header > .fill > .container {
388 margin-top: .5rem;
389 padding: .5rem 1rem 0 1rem;
390 -webkit-user-select: none;
391 -moz-user-select: none;
392 -ms-user-select: none;
393 user-select: none;
394 }
395
396 header > .fill > .container > #logo {
397 margin: 0 3.5rem 0 1.5rem;
398 }
399
400 header > .fill > .container > #logo > img {
401 width: calc(0% + 10rem);
402 margin-top: -.1rem;
403 }
404
405 header > .fill > .container > .brand {
406 font-size: 1.4rem;
407 position: absolute;
408 cursor: default;
409 vertical-align: text-bottom;
410 text-decoration: none;
411 color: #fff;
412 color: var(--header-color);
413 }
414
415 header > .fill > .container > .status {
416 position: absolute;
417 top: 25%;
418 right: 1em;
419 float: right;
420 }
421
422 header > .fill > .container > .status > * {
423 position: relative;
424 top: .2rem;
425 float: left;
426 margin-left: .3rem;
427 cursor: pointer;
428 }
429
430 #xhr_poll_status {
431 display: flex;
432 }
433
434 .danger {
435 background-color: #ff7d60 !important;
436 }
437
438 .warning {
439 background-color: #f0e68c !important;
440 }
441
442 .success {
443 background-color: #5cb85c !important;
444 }
445
446 .notice,
447 [data-indicator]:not([data-style="inactive"]) {
448 background-color: #5bc0de !important;
449 }
450
451 .error {
452 color: #f00;
453 }
454
455 .alert,
456 .alert-message {
457 font-weight: bold;
458 margin-bottom: 1em;
459 padding: 1rem;
460 border: 0;
461 border-radius: 0 !important;
462 background-color: #fff;
463 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
464 text-shadow: 1px 1px rgba(0, 0, 0, .1);
465 }
466
467 .alert-message > h4 {
468 font-size: 110%;
469 font-weight: bold;
470 }
471
472 .alert-message > * {
473 margin: .5rem 0;
474 }
475
476 .alert-message .btn {
477 padding: .3rem .6rem;
478 }
479
480 .container .alert,
481 .container .alert-message {
482 margin-top: 1rem;
483 }
484
485 .main > .main-left > .nav {
486 margin-top: .5rem;
487 }
488
489 .main > .main-left > .nav > li {
490 padding: .5rem 1rem;
491 cursor: pointer;
492 -webkit-user-select: none;
493 -moz-user-select: none;
494 -ms-user-select: none;
495 user-select: none;
496 }
497
498 .main > .main-left > .nav > li:last-child {
499 display: flex;
500 align-items: center;
501 margin: 2rem 0 1rem 0;
502 padding: 0 0 0 2rem;
503 }
504
505 .main > .main-left > .nav > li a {
506 display: block;
507 color: #5f6368;
508 color: var(--menu-color);
509 }
510
511 .main > .main-left > .nav > .slide {
512 padding: 0;
513 }
514
515 .main > .main-left > .nav > .slide > ul {
516 display: none;
517 }
518
519 .main > .main-left > .nav > .slide > .menu,
520 .main > .main-left > .nav > li > [data-title="Logout"] {
521 font-size: 1.15rem;
522 font-weight: 500;
523 display: flex;
524 align-items: center;
525 width: 100%;
526 padding: .5rem 1rem;
527 text-decoration: none;
528 color: #202124;
529 color: var(--main-menu-color);
530 }
531
532 .main > .main-left > .nav > .slide > .menu::before {
533 position: absolute;
534 right: 17px;
535 width: 16px;
536 height: 16px;
537 content: "";
538 background: url(./icons/arrow.svg) no-repeat;
539 }
540
541 .main > .main-left > .nav > .slide > .menu.active::before {
542 transform: rotate(-180deg);
543 }
544
545 body[class*="node-"] > .main > .main-left > .nav > .slide > .menu::before {
546 transition: transform .1s ease-in-out;
547 }
548
549 body[class*="node-"] > .main > .main-left > .nav > .slide > .menu.active::before {
550 transition: transform .2s ease-in-out;
551 }
552
553 .main > .main-left[style*="overflow: hidden"] > .nav > .slide > .menu::before {
554 display: none;
555 }
556
557 .main > .main-left > .nav > li:last-child::before {
558 position: absolute;
559 left: 14px;
560 width: 24px;
561 height: 24px;
562 content: url(./icons/logout.svg);
563 }
564
565 .main > .main-left > .nav > li:hover,
566 .main > .main-left > .nav > .slide > .menu:hover {
567 background: #d4d4d4;
568 background: var(--submenu-bg-hover);
569 }
570
571 .main > .main-left > .nav > .slide:hover {
572 background: none;
573 }
574
575 .main > .main-left > .nav > .slide > .slide-menu > li {
576 padding: .4rem 2rem;
577 }
578
579 .main > .main-left > .nav > .slide > .slide-menu > .active {
580 background-color: #09c;
581 background-color: var(--submenu-bg-hover-active);
582 }
583
584 .main > .main-left > .nav > .slide > .slide-menu > li > a {
585 white-space: nowrap;
586 text-decoration: none;
587 }
588
589 .main > .main-left > .nav > .slide > .slide-menu > .active > a {
590 color: #fff;
591 }
592
593 .main > .main-left > .nav > .slide > .slide-menu > li:hover {
594 background: #d4d4d4;
595 background: var(--submenu-bg-hover);
596 }
597
598 .main > .main-left > .nav > .slide > .slide-menu > li:not(.active):hover > a {
599 color: #202124;
600 color: var(--menu-color-hover);
601 }
602
603 .main > .main-left > .nav > .slide > .slide-menu > .active:hover {
604 background-color: #09c;
605 background-color: var(--main-color);
606 }
607
608 /* ripple effect */
609 .main > .main-left > .nav > .slide > .menu,
610 .main > .main-left > .nav > .slide > .slide-menu > li,
611 .main > .main-left > .nav > li:last-child {
612 position: relative;
613 overflow: hidden;
614 transform: translate3d(0, 0, 0);
615 }
616
617 .main > .main-left > .nav > .slide > .menu::after,
618 .main > .main-left > .nav > .slide > .slide-menu > li::after,
619 .main > .main-left > .nav > li:last-child::after {
620 position: absolute;
621 top: 0;
622 left: 0;
623 display: block;
624 width: 100%;
625 height: 100%;
626 content: "";
627 transition: transform .5s, opacity 1s;
628 transform: scale(10, 10);
629 pointer-events: none;
630 opacity: 0;
631 background-image: radial-gradient(circle, #000 10%, transparent 10.01%);
632 background-repeat: no-repeat;
633 background-position: 50%;
634 }
635
636 .main > .main-left > .nav > .slide > .menu:active::after,
637 .main > .main-left > .nav > .slide > .slide-menu > li:active::after,
638 .main > .main-left > .nav > li:last-child:active::after {
639 transition: 0s;
640 transform: scale(0, 0);
641 opacity: .2;
642 }
643
644 #maincontent > .container {
645 margin: 0 2rem 1rem 2rem;
646 }
647
648 ul {
649 line-height: normal;
650 }
651
652 li {
653 list-style-type: none;
654 }
655
656 h1 {
657 font-size: 2rem;
658 padding-bottom: 10px;
659 border-bottom: thin solid #eee;
660 }
661
662 h2 {
663 font-size: 1.8rem;
664 margin: 2rem 0 0 0;
665 padding-bottom: 10px;
666 border-bottom: thin solid #eee;
667 }
668
669 h3 {
670 font-size: 1.4rem;
671 margin: 2rem 0 0 0;
672 padding-bottom: 10px;
673 }
674
675 h4 {
676 font-size: 1.2rem;
677 margin: 2rem 0 0 0;
678 padding-bottom: 10px;
679 }
680
681 h5 {
682 font-size: 1rem;
683 margin: 2rem 0 0 0;
684 padding-bottom: 10px;
685 }
686
687 .cbi-section,
688 .cbi-section-error,
689 #iptables,
690 .Firewall form,
691 #cbi-network > .cbi-section-node,
692 #cbi-wireless > .cbi-section-node,
693 #cbi-wireless > #wifi_assoclist_table,
694 [data-tab-title],
695 [data-page^="admin-system-admin"]:not(.node-main-login) .cbi-map:not(#cbi-dropbear),
696 [data-page="admin-system-opkg"] #maincontent > .container {
697 font-family: inherit;
698 font-weight: normal;
699 font-style: normal;
700 line-height: normal;
701 min-width: inherit;
702 margin: 1rem 0 0 0;
703 padding: 2rem;
704 border: 0;
705 border-radius: 0;
706 background-color: #fff;
707 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
708 }
709
710 .cbi-modal .cbi-section,
711 .cbi-section .cbi-section {
712 padding: 0;
713 box-shadow: none;
714 }
715
716 .cbi-modal .cbi-tabmenu {
717 margin-left: 0;
718 }
719
720 .cbi-map-descr,
721 .cbi-section-descr {
722 font-size: small;
723 line-height: 1.42857143;
724 padding: .5rem;
725 color: #999;
726 }
727
728 .cbi-map-descr + fieldset {
729 margin-top: 1rem;
730 }
731
732 .cbi-section > legend {
733 display: none !important;
734 }
735
736 fieldset > fieldset,
737 .cbi-section > .cbi-section {
738 margin: 0;
739 padding: 0;
740 border: 0;
741 box-shadow: none;
742 }
743
744 .cbi-section > h3:first-child,
745 .panel-title {
746 font-size: 1.4rem;
747 line-height: 1;
748 display: block;
749 width: 100%;
750 margin: 0;
751 margin-bottom: .5rem;
752 padding-bottom: 1rem;
753 color: #404040;
754 border-bottom: thin solid #eee;
755 }
756
757 .cbi-section > h3:first-child,
758 .cbi-section > h4:first-child,
759 .cbi-section > p:first-child,
760 [data-tab-title] > h3:first-child,
761 [data-tab-title] > h4:first-child,
762 [data-tab-title] > p:first-child {
763 padding-top: 1rem;
764 }
765
766 table {
767 border-spacing: 0;
768 border-collapse: collapse;
769 }
770
771 table,
772 .table {
773 overflow-y: hidden;
774 width: 100%;
775 box-shadow: 0 0 0 1px #ddd;
776 }
777
778 table > tbody > tr > td,
779 table > tbody > tr > th,
780 table > tfoot > tr > td,
781 table > tfoot > tr > th,
782 table > thead > tr > td,
783 table > thead > tr > th,
784 .table > .tbody > .tr > .td,
785 .table > .tbody > .tr > .th,
786 .table > .tfoot > .tr > .td,
787 .table > .tfoot > .tr > .th,
788 .table > .thead > .tr > .td,
789 .table > .thead > .tr > .th,
790 .table > .tr > .td.cbi-value-field,
791 .table > .tr > .th.cbi-section-table-cell {
792 padding: .5rem;
793 }
794
795 .container > .cbi-section:first-of-type > .table[width="100%"] > .tr > .td {
796 padding: .6rem;
797 }
798
799 .cbi-section-table-cell {
800 line-height: 1.1;
801 align-self: flex-end;
802 flex: 1 1 auto;
803 }
804
805 tr > td,
806 tr > th,
807 .tr > .td,
808 .tr > .th,
809 .cbi-section-table-row::before,
810 #cbi-wireless > #wifi_assoclist_table > .tr:nth-child(2) {
811 border-top: thin solid #ddd;
812 }
813
814 #cbi-wireless .td,
815 #cbi-network .tr:first-child > .td,
816 .table[width="100%"] > .tr:first-child > .td,
817 [data-page="admin-network-diagnostics"] .tr > .td,
818 .tr.table-titles > .th,
819 .tr.cbi-section-table-titles > .th {
820 border-top: 0 !important;
821 }
822
823 .table[width="100%"] > .tr:first-child > .td {
824 margin: auto 0;
825 }
826
827 .cbi-section-table-row {
828 margin-bottom: 1rem;
829 text-align: center !important;
830 background: #f4f4f4;
831 }
832
833 .cbi-section-table-row:last-child {
834 margin-bottom: 0;
835 }
836
837 .cbi-section-table-row > .cbi-value-field .cbi-dropdown,
838 .cbi-section-table-row > .cbi-value-field .cbi-input-select,
839 .cbi-section-table-row > .cbi-value-field .cbi-input-text,
840 .cbi-section-table-row > .cbi-value-field .cbi-input-password {
841 width: 100%;
842 }
843
844 .cbi-section-table-row > .cbi-value-field [data-dynlist] > input,
845 .cbi-section-table-row > .cbi-value-field input.cbi-input-password {
846 width: calc(100% - 1.5rem);
847 }
848
849 .cbi-section-table-row .td {
850 text-align: center !important;
851 }
852
853 div > table > tbody > tr:nth-of-type(2n),
854 div > .table > .tr:nth-of-type(2n) {
855 background-color: #f9f9f9;
856 }
857
858 /* fix multiple table */
859 table table,
860 .table .table,
861 .cbi-value-field table,
862 .cbi-value-field .table,
863 td > table > tbody > tr > td,
864 .td > .table > .tbody > .tr > .td,
865 .cbi-value-field > table > tbody > tr > td,
866 .cbi-value-field > .table > .tbody > .tr > .td {
867 border: 0;
868 }
869
870 /* button style */
871 .btn,
872 .cbi-button,
873 .item::after {
874 font-size: .8rem;
875 display: inline-block;
876 width: auto !important;
877 padding: 0 .8rem;
878 cursor: pointer;
879 -webkit-user-select: none;
880 -moz-user-select: none;
881 -ms-user-select: none;
882 user-select: none;
883 transition: all .2s ease-in-out;
884 text-align: center;
885 vertical-align: middle;
886 white-space: nowrap;
887 text-decoration: none;
888 text-transform: uppercase;
889 color: rgba(0, 0, 0, .87);
890 border: 0;
891 border-radius: .2rem;
892 background-color: #f0f0f0;
893 background-image: none;
894 -webkit-appearance: none;
895 -ms-touch-action: manipulation;
896 touch-action: manipulation;
897 }
898
899 .cbi-button-up,
900 .cbi-button-down {
901 font-size: 1.2rem;
902 display: inline-block;
903 min-width: 0;
904 padding: .2rem .3rem;
905 color: transparent !important;
906 background: url(./icons/arrow.svg) no-repeat center;
907 background-size: 12px 20px;
908 }
909
910 .cbi-button-up {
911 transform: scaleY(-1);
912 }
913
914 .cbi-button:not(select) {
915 -webkit-appearance: none !important;
916 }
917
918 .cbi-button + .cbi-button {
919 margin-left: .6rem;
920 }
921
922 .btn:hover,
923 .btn:focus,
924 .btn:active,
925 .cbi-button:hover,
926 .cbi-button:focus,
927 .cbi-button:active,
928 .item:hover::after,
929 .item:focus::after,
930 .item:active::after,
931 .cbi-page-actions .cbi-button-apply + .cbi-button-save:hover,
932 .cbi-page-actions .cbi-button-apply + .cbi-button-save:focus,
933 .cbi-page-actions .cbi-button-apply + .cbi-button-save:active {
934 text-decoration: none;
935 outline: 0;
936 }
937
938 .btn:hover,
939 .btn:focus,
940 .cbi-button:hover,
941 .cbi-button:focus,
942 .item:hover::after,
943 .item:focus::after {
944 box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
945 }
946
947 .btn:active,
948 .cbi-button:active,
949 .item:active::after {
950 box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .23);
951 }
952
953 .cbi-button-up:hover,
954 .cbi-button-up:focus {
955 box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 -2px 2px rgba(0, 0, 0, .2);
956 }
957
958 .cbi-button-up:active {
959 box-shadow: 0 -10px 20px rgba(0, 0, 0, .19), 0 -6px 6px rgba(0, 0, 0, .23);
960 }
961
962 .btn:disabled,
963 .cbi-button:disabled {
964 cursor: not-allowed;
965 pointer-events: none;
966 opacity: .5;
967 box-shadow: none;
968 }
969
970 /* gray */
971 .alert-message [class="btn"],
972 .modal div[class="btn"],
973 .cbi-button-find,
974 .cbi-button-link,
975 .cbi-button-up,
976 .cbi-button-down,
977 .cbi-button-neutral,
978 .cbi-button[name="zero"],
979 .cbi-button[name="restart"],
980 .cbi-button[onclick="hide_empty(this)"] {
981 font-weight: bold;
982 border: thin solid #bfbfbf;
983 background-color: #d4d4d4;
984 }
985
986 /* dark blue */
987 .btn.primary,
988 .cbi-page-actions .cbi-button-save,
989 .cbi-page-actions .cbi-button-apply + .cbi-button-save,
990 .cbi-button-add,
991 .cbi-button-save,
992 .cbi-button-positive,
993 .cbi-button-link,
994 .cbi-button[value="Enable"],
995 .cbi-button[value="Scan"],
996 .cbi-button[value^="Back"],
997 .cbi-button-neutral[onclick="handleConfig(event)"] {
998 font-weight: normal;
999 color: #fff;
1000 border: thin solid #2e6da4;
1001 background-color: #337ab7;
1002 }
1003
1004 /* light blue */
1005 .cbi-page-actions .cbi-button-apply,
1006 .cbi-section-actions .cbi-button-edit,
1007 .cbi-button-edit,
1008 .cbi-button-apply,
1009 .cbi-button-reload,
1010 .cbi-button-action,
1011 .cbi-button[value="Submit"],
1012 .cbi-button[value="Upload"],
1013 .cbi-button[value$="Apply"],
1014 .cbi-button[onclick="addKey(event)"] {
1015 font-weight: normal;
1016 color: #fff;
1017 border: thin solid #46b8da;
1018 background-color: #5bc0de;
1019 }
1020
1021 /* red */
1022 .btn.danger,
1023 .cbi-section-remove > .cbi-button,
1024 .cbi-button-remove,
1025 .cbi-button-reset,
1026 .cbi-button-negative,
1027 .cbi-button[value="Stop"],
1028 .cbi-button[value="Kill"],
1029 .cbi-button[onclick="reboot(this)"],
1030 .cbi-button-neutral[value="Restart"] {
1031 font-weight: normal;
1032 color: #fff;
1033 border: thin solid #d43f3a;
1034 background-color: #d9534f;
1035 }
1036
1037 /* yellow */
1038 .btn[value="Dismiss"],
1039 .cbi-button[value="Terminate"],
1040 .cbi-button[value="Reset"],
1041 .cbi-button[value="Disabled"],
1042 .cbi-button[onclick^="iface_reconnect"],
1043 .cbi-button[onclick="handleReset(event)"],
1044 .cbi-button-neutral[value="Disable"] {
1045 font-weight: normal;
1046 color: #fff;
1047 border: thin solid #eea236;
1048 background-color: #f0ad4e;
1049 }
1050
1051 /* green */
1052 .cbi-button-success,
1053 .cbi-button-download,
1054 .cbi-button[name="backup"],
1055 .cbi-button[value="Download"],
1056 .cbi-button[value="Save mtdblock"] {
1057 font-weight: normal;
1058 color: #fff;
1059 border: thin solid #4cae4c;
1060 background-color: #5cb85c;
1061 }
1062
1063 .cbi-page-actions .cbi-button-link:first-child {
1064 float: left;
1065 }
1066
1067 .a-to-btn {
1068 text-decoration: none;
1069 }
1070
1071 .cbi-value-field .cbi-button-add {
1072 font-weight: bold;
1073 margin: 9px 0 4px 3px;
1074 padding: 1px 6px;
1075 }
1076
1077 .tabs {
1078 margin: 0 -2rem;
1079 padding-left: .5rem;
1080 background-color: #fff;
1081 }
1082
1083 .tabs > li,
1084 .cbi-tabmenu > li {
1085 display: inline-block;
1086 padding: .55rem 0;
1087 cursor: pointer;
1088 }
1089
1090 .tabs > li {
1091 padding-bottom: .4rem;
1092 border-bottom: .2rem solid transparent;
1093 }
1094
1095 .tabs > li[class~="active"],
1096 .tabs > li:hover {
1097 border-bottom-color: #09c;
1098 border-bottom-color: var(--main-color);
1099 }
1100
1101 .tabs > li:hover {
1102 cursor: pointer;
1103 border-bottom-color: #c9c9c9;
1104 }
1105
1106 .tabs > li > a,
1107 .cbi-tabmenu > li > a {
1108 padding: .6rem .9rem;
1109 text-decoration: none;
1110 color: #404040;
1111 }
1112
1113 .tabs > li[class~="active"] > a {
1114 color: #09c;
1115 color: var(--main-color);
1116 }
1117
1118 .cbi-tabmenu {
1119 border: thin solid #d4d4d4;
1120 border-bottom: 0;
1121 }
1122
1123 .cbi-tabmenu > li:hover {
1124 background-color: #f1f1f1;
1125 }
1126
1127 .cbi-tabmenu > li[class~="cbi-tab"] {
1128 background-color: #fff;
1129 }
1130
1131 .cbi-tabmenu {
1132 background-color: #d4d4d4;
1133 }
1134
1135 .cbi-section .cbi-section-remove:nth-of-type(2n),
1136 .container > .cbi-section .cbi-section-node:nth-of-type(2n) {
1137 background-color: #f9f9f9;
1138 }
1139
1140 [data-tab-title] {
1141 overflow: hidden;
1142 height: 0;
1143 opacity: 0;
1144 margin: 0;
1145 padding: 0rem 1rem !important;
1146 }
1147
1148 [data-tab-active="true"] {
1149 overflow: visible;
1150 height: auto;
1151 opacity: 1;
1152 transition: opacity .25s ease-in;
1153 margin: inherit !important;
1154 }
1155
1156 .cbi-section[id] .cbi-section-remove:nth-of-type(4n+3),
1157 .cbi-section[id] .cbi-section-node:nth-of-type(4n+4) {
1158 background-color: #f9f9f9;
1159 }
1160
1161 .cbi-section-node-tabbed {
1162 margin-top: 0;
1163 padding: 0;
1164 border: thin solid #d4d4d4;
1165 border-top: 0;
1166 }
1167
1168 .cbi-tabcontainer > .cbi-value:nth-of-type(2n) {
1169 background-color: #f9f9f9;
1170 }
1171
1172 .cbi-value-field,
1173 .cbi-value-description {
1174 line-height: 1.25;
1175 display: table-cell;
1176 }
1177
1178 .cbi-value-description {
1179 font-size: small;
1180 padding-top: .4rem;
1181 opacity: .5;
1182 }
1183
1184 .cbi-value-title {
1185 display: table-cell;
1186 float: left;
1187 width: 23rem;
1188 padding-top: .35rem;
1189 padding-right: 2rem;
1190 text-align: right;
1191 word-wrap: break-word;
1192 }
1193
1194 .cbi-value {
1195 display: inline-block;
1196 width: 100%;
1197 padding: .35rem 1rem .2rem 1rem;
1198 }
1199
1200 .cbi-value ul {
1201 line-height: 1.25;
1202 }
1203
1204 .cbi-value-field .cbi-dropdown,
1205 .cbi-value-field .cbi-input-select,
1206 .cbi-value input[type="text"],
1207 .cbi-value input[type="password"] {
1208 min-width: 25rem;
1209 }
1210
1211 #cbi-firewall-zone .cbi-input-select,
1212 #cbi-network-switch_vlan .cbi-input-select {
1213 min-width: 11rem;
1214 }
1215
1216 #cbi-network-switch_vlan .cbi-input-text {
1217 max-width: 3rem;
1218 }
1219
1220 .cbi-input-invalid {
1221 color: #f00;
1222 border-bottom-color: #f00;
1223 }
1224
1225 .cbi-section-error {
1226 font-weight: bold;
1227 line-height: 1.42857143;
1228 margin: 18px;
1229 padding: 6px;
1230 border: thin solid #f00;
1231 border-radius: 3px;
1232 background-color: #fce6e6;
1233 }
1234
1235 .cbi-section-error ul {
1236 margin: 0 0 0 20px;
1237 }
1238
1239 .cbi-section-error ul li {
1240 font-weight: bold;
1241 color: #f00;
1242 }
1243
1244 .td[data-title]::before {
1245 font-weight: bold;
1246 display: none;
1247 padding: .25rem 0;
1248 content: attr(data-title) ":\20";
1249 text-align: left;
1250 white-space: nowrap;
1251 }
1252
1253 .tr.placeholder .td[data-title]::before {
1254 display: none;
1255 }
1256
1257 .tr[data-title]::before,
1258 .tr.cbi-section-table-titles.named::before {
1259 font-weight: bold;
1260 display: table-cell;
1261 align-self: center;
1262 flex: 1 1 5%;
1263 padding: .25rem;
1264 content: attr(data-title) "\20";
1265 text-align: center;
1266 vertical-align: middle;
1267 white-space: normal;
1268 word-wrap: break-word;
1269 }
1270
1271 .cbi-rowstyle-1 {
1272 background-color: #f9f9f9;
1273 }
1274
1275 .cbi-rowstyle-2 {
1276 background-color: #eee;
1277 }
1278
1279 .cbi-rowstyle-2 .cbi-button-up,
1280 .cbi-rowstyle-2 .cbi-button-down,
1281 body:not(.Interfaces) .cbi-rowstyle-2:first-child {
1282 background-color: #fff !important;
1283 }
1284
1285 .cbi-section-table .cbi-section-table-titles .cbi-section-table-cell {
1286 width: auto !important;
1287 }
1288
1289 .td.cbi-section-actions {
1290 text-align: right !important;
1291 vertical-align: middle;
1292 }
1293
1294 .td.cbi-section-actions > * {
1295 display: inline-flex;
1296 }
1297
1298 .td.cbi-section-actions > * > *,
1299 .td.cbi-section-actions > * > form > * {
1300 margin: 0 5px;
1301 }
1302
1303 .td.cbi-section-actions > * > form {
1304 display: inline-flex;
1305 margin: 0;
1306 }
1307
1308 /* lists */
1309 .cbi-dynlist {
1310 line-height: 1.3;
1311 flex-direction: column;
1312 min-height: 30px;
1313 cursor: text;
1314 }
1315
1316 .cbi-dynlist > .item {
1317 position: relative;
1318 max-width: 25rem;
1319 margin-right: 2em;
1320 padding: .5em .25em .25em 0;
1321 pointer-events: none;
1322 color: #666;
1323 border-bottom: 2px solid rgba(0, 0, 0, .26);
1324 outline: 0;
1325 }
1326
1327 .cbi-dynlist[name="sshkeys"] > .item {
1328 max-width: none;
1329 }
1330
1331 .cbi-dynlist > .item::after {
1332 font-weight: bold;
1333 position: absolute;
1334 right: -2em;
1335 bottom: 0;
1336 display: inline-flex;
1337 min-height: 17px;
1338 padding: 0 6px;
1339 content: "\00D7";
1340 pointer-events: auto;
1341 color: #fff;
1342 border: thin solid #d43f3a;
1343 background-color: #d9534f;
1344 }
1345
1346 .cbi-dynlist > .item > span {
1347 white-space: normal;
1348 word-break: break-word;
1349 }
1350
1351 .cbi-dynlist > .add-item {
1352 display: inline-flex;
1353 align-items: center;
1354 width: 100%;
1355 min-width: 16rem;
1356 }
1357
1358 .cbi-dynlist > .add-item:not([ondrop]) > input {
1359 overflow: hidden;
1360 width: 100%;
1361 min-width: 15rem;
1362 white-space: nowrap;
1363 text-overflow: ellipsis;
1364 }
1365
1366 .cbi-dynlist > .add-item[ondrop] > input {
1367 min-width: 13rem;
1368 }
1369
1370 .cbi-dynlist,
1371 .cbi-dropdown {
1372 position: relative;
1373 display: inline-flex;
1374 padding: 0;
1375 }
1376
1377 .cbi-dropdown[placeholder*="select"] {
1378 max-width: 25rem;
1379 height: auto;
1380 margin-top: -3px;
1381 }
1382
1383 .cbi-dropdown > ul {
1384 display: flex;
1385 overflow-x: hidden;
1386 overflow-y: auto;
1387 width: 100%;
1388 margin: 0 !important;
1389 padding: 0;
1390 list-style: none;
1391 outline: 0;
1392 }
1393
1394 .cbi-dropdown > ul.preview {
1395 display: none;
1396 }
1397
1398 .cbi-dropdown > .open {
1399 flex-basis: 15px;
1400 }
1401
1402 .cbi-dropdown > .open,
1403 .cbi-dropdown > .more {
1404 font-size: 1rem;
1405 font-weight: 900;
1406 line-height: 2;
1407 display: flex;
1408 flex-direction: column;
1409 flex-grow: 0;
1410 flex-shrink: 0;
1411 justify-content: center;
1412 padding: 0 .25em;
1413 cursor: default;
1414 text-align: center;
1415 outline: 0;
1416 }
1417
1418 .cbi-dropdown > .more,
1419 .cbi-dropdown > ul > li[placeholder] {
1420 font-weight: bold;
1421 display: none;
1422 color: #777;
1423 text-shadow: 1px 1px 0 #fff;
1424 }
1425
1426 .cbi-dropdown > ul > li {
1427 display: none;
1428 overflow: hidden;
1429 align-items: center;
1430 align-self: center;
1431 flex-grow: 1;
1432 flex-shrink: 1;
1433 min-height: 20px;
1434 padding: .25em;
1435 white-space: nowrap;
1436 text-overflow: ellipsis;
1437 }
1438
1439 .cbi-dropdown > ul > li .hide-open {
1440 display: initial;
1441 }
1442
1443 .cbi-dropdown > ul > li .hide-close {
1444 display: none;
1445 }
1446
1447 .cbi-dropdown > ul > li[display]:not([display="0"]) {
1448 border-left: thin solid #ccc;
1449 }
1450
1451 .cbi-dropdown[empty] > ul {
1452 max-width: 1px;
1453 }
1454
1455 .cbi-dropdown > ul > li > form {
1456 display: none;
1457 margin: 0;
1458 padding: 0;
1459 pointer-events: none;
1460 }
1461
1462 .cbi-dropdown > ul > li img {
1463 margin-right: .25em;
1464 vertical-align: middle;
1465 }
1466
1467 .cbi-dropdown > ul > li > form > input[type="checkbox"] {
1468 height: auto;
1469 margin: 0;
1470 }
1471
1472 .cbi-dropdown > ul > li input[type="text"] {
1473 height: 20px;
1474 }
1475
1476 .cbi-dropdown[open] > ul.dropdown {
1477 position: absolute;
1478 z-index: 1100;
1479 display: block;
1480 width: auto;
1481 min-width: 100%;
1482 max-width: none;
1483 max-height: 200px !important;
1484 border: thin solid #918e8c;
1485 background: #f6f6f6;
1486 box-shadow: 0 0 4px #918e8c;
1487 color: var(--main-menu-color);
1488 }
1489
1490 .cbi-dropdown > ul > li[display],
1491 .cbi-dropdown[open] > ul.preview,
1492 .cbi-dropdown[open] > ul.dropdown > li,
1493 .cbi-dropdown[multiple] > ul > li > label,
1494 .cbi-dropdown[multiple][open] > ul.dropdown > li,
1495 .cbi-dropdown[multiple][more] > .more,
1496 .cbi-dropdown[multiple][empty] > .more {
1497 display: flex;
1498 align-items: center;
1499 flex-grow: 1;
1500 }
1501
1502 .cbi-dropdown[empty] > ul > li,
1503 .cbi-dropdown[optional][open] > ul.dropdown > li[placeholder],
1504 .cbi-dropdown[multiple][open] > ul.dropdown > li > form {
1505 display: block;
1506 }
1507
1508 .cbi-dropdown[open] > ul.dropdown > li .hide-open {
1509 display: none;
1510 }
1511
1512 .cbi-dropdown[open] > ul.dropdown > li .hide-close {
1513 display: initial;
1514 }
1515
1516 .cbi-dropdown[open] > ul.dropdown > li {
1517 border-bottom: thin solid #ccc;
1518 }
1519
1520 .cbi-dropdown[open] > ul.dropdown > li[selected] {
1521 background: #b0d0f0;
1522 }
1523
1524 .cbi-dropdown[open] > ul.dropdown > li.focus {
1525 background: linear-gradient(90deg, #a3c2e8 0%, #84aad9 100%);
1526 }
1527
1528 .cbi-dropdown[open] > ul.dropdown > li:last-child {
1529 margin-bottom: 0;
1530 border-bottom: 0;
1531 }
1532
1533 .cbi-dropdown[open] > ul.dropdown > li[unselectable] {
1534 opacity: .7;
1535 }
1536
1537 .cbi-dropdown[open] > ul.dropdown > li > input.create-item-input:first-child:last-child {
1538 width: 100%;
1539 }
1540
1541 .cbi-dropdown[disabled] {
1542 pointer-events: none;
1543 opacity: .6;
1544 }
1545
1546 .cbi-dropdown .zonebadge {
1547 width: 100%;
1548 }
1549
1550 .cbi-dropdown[open] .zonebadge {
1551 width: auto;
1552 }
1553
1554 /* progressbar */
1555 .cbi-progressbar {
1556 position: relative;
1557 min-width: 170px;
1558 height: 20px;
1559 margin: 6px 0;
1560 border: thin solid #999;
1561 background: #eee;
1562 }
1563
1564 .cbi-progressbar > div {
1565 width: 0;
1566 height: 100%;
1567 transition: width .25s ease-in;
1568 background: #5bc0de;
1569 background: var(--bar-bg);
1570 }
1571
1572 .cbi-progressbar::after {
1573 font-family: monospace;
1574 font-size: 1.3em;
1575 font-weight: bold;
1576 font-size-adjust: .38;
1577 line-height: normal;
1578 position: absolute;
1579 top: 2px;
1580 right: 0;
1581 bottom: 2px;
1582 left: 0;
1583 overflow: hidden;
1584 content: attr(title);
1585 text-align: center;
1586 white-space: pre;
1587 text-overflow: ellipsis;
1588 text-shadow: 0 0 2px #eee;
1589 }
1590
1591 #modal_overlay {
1592 position: fixed;
1593 z-index: 900;
1594 top: 4rem;
1595 right: 10000px;
1596 bottom: 0;
1597 left: -10000px;
1598 overflow-y: scroll;
1599 transition: opacity .125s ease-in;
1600 opacity: 0;
1601 background: rgba(0, 0, 0, .7);
1602 -webkit-overflow-scrolling: touch;
1603 }
1604
1605 .modal {
1606 display: flex;
1607 align-items: center;
1608 flex-wrap: wrap;
1609 width: 90%;
1610 min-width: 270px;
1611 max-width: 600px;
1612 min-height: 32px;
1613 margin: 5em auto;
1614 padding: 1em;
1615 border-radius: 3px !important;
1616 background: #fff;
1617 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1618 }
1619
1620 .modal > * {
1621 line-height: normal;
1622 flex-basis: 100%;
1623 margin-bottom: .5em;
1624 max-width: 100%;
1625 }
1626
1627 .modal > pre,
1628 .modal > textarea {
1629 font-size: 1rem;
1630 font-size-adjust: .35;
1631 overflow: auto;
1632 margin-bottom: .5em;
1633 padding: 8.5px;
1634 cursor: auto;
1635 white-space: pre-wrap;
1636 color: #eee;
1637 outline: 0;
1638 background-color: #101010;
1639 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1640 }
1641
1642 .modal > h4 {
1643 margin: .5em 0;
1644 }
1645
1646 .modal ul {
1647 margin-left: 2.2em;
1648 }
1649
1650 .modal li {
1651 list-style-type: square;
1652 color: #808080;
1653 }
1654
1655 .modal p {
1656 padding-left: .25rem;
1657 word-break: break-word;
1658 }
1659
1660 .modal .label {
1661 font-size: .6rem;
1662 font-weight: normal;
1663 padding: .1rem .3rem;
1664 padding-bottom: 0;
1665 cursor: default;
1666 border-radius: 0;
1667 }
1668
1669 .modal .label.warning {
1670 background-color: #f0ad4e !important;
1671 }
1672
1673 .modal .btn {
1674 padding: .3rem .6rem;
1675 }
1676
1677 .modal.cbi-modal {
1678 max-width: 90%;
1679 max-height: none;
1680 }
1681
1682 body.modal-overlay-active {
1683 overflow: hidden;
1684 height: 100vh;
1685 }
1686
1687 body.modal-overlay-active #modal_overlay {
1688 right: 0;
1689 left: 0;
1690 opacity: 1;
1691 }
1692
1693 .spinning {
1694 position: relative;
1695 padding-left: 32px !important;
1696 }
1697
1698 .spinning::before {
1699 position: absolute;
1700 top: 0;
1701 bottom: 0;
1702 left: .2em;
1703 width: 32px;
1704 content: "";
1705 background: url(../resources/icons/loading.gif) no-repeat center;
1706 background-size: 16px;
1707 }
1708
1709 /* luci */
1710 .hidden {
1711 display: none;
1712 }
1713
1714 .left,
1715 .left::before {
1716 text-align: left !important;
1717 }
1718
1719 .right,
1720 .right::before {
1721 text-align: right !important;
1722 }
1723
1724 .center,
1725 .center::before {
1726 text-align: center !important;
1727 }
1728
1729 .top {
1730 align-self: flex-start !important;
1731 vertical-align: top !important;
1732 }
1733
1734 .bottom {
1735 align-self: flex-end !important;
1736 vertical-align: bottom !important;
1737 }
1738
1739 .inline {
1740 display: inline;
1741 }
1742
1743 .cbi-page-actions {
1744 padding-top: 1rem;
1745 text-align: right;
1746 }
1747
1748 .cbi-page-actions > form[method="post"] {
1749 display: inline-block;
1750 }
1751
1752 .th[data-type="button"],
1753 .td[data-type="button"],
1754 .th[data-type="fvalue"],
1755 .td[data-type="fvalue"] {
1756 flex: 1 1 2em;
1757 text-align: center;
1758 }
1759
1760 .ifacebadge {
1761 display: inline-flex;
1762 padding: .5rem .8rem;
1763 border-bottom: thin solid #ccc;
1764 background: #eee;
1765 box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
1766 }
1767
1768 td > .ifacebadge,
1769 .td > .ifacebadge {
1770 font-size: .8rem;
1771 background-color: #f0f0f0;
1772 }
1773
1774 .ifacebadge > em,
1775 .ifacebadge > img {
1776 display: inline-block;
1777 align-self: flex-start;
1778 margin: 0 .2rem;
1779 }
1780
1781 .ifacebadge > img + img {
1782 margin: 0 .2rem 0 0;
1783 }
1784
1785 .network-status-table {
1786 display: flex;
1787 flex-wrap: wrap;
1788 }
1789
1790 .network-status-table .ifacebox {
1791 flex-grow: 1;
1792 margin: .5em;
1793 }
1794
1795 .network-status-table .ifacebox-body {
1796 display: flex;
1797 flex-direction: column;
1798 height: 100%;
1799 }
1800
1801 .network-status-table .ifacebox-body > span {
1802 flex: 10 10 auto;
1803 height: 100%;
1804 }
1805
1806 .network-status-table .ifacebox-body > div {
1807 display: flex;
1808 flex-wrap: wrap;
1809 }
1810
1811 .network-status-table .ifacebox-body .ifacebadge {
1812 align-items: center;
1813 flex: 1 1 auto;
1814 min-width: 220px;
1815 margin: .5em .25em 0 .25em;
1816 padding: .5em;
1817 background-color: #fff;
1818 }
1819
1820 /* textarea */
1821 .cbi-input-textarea {
1822 font-family: monospace;
1823 width: 100%;
1824 min-height: 14rem;
1825 padding: .8rem;
1826 color: #000;
1827 }
1828
1829 #syslog {
1830 font-size: small;
1831 line-height: 1.25;
1832 overflow-y: hidden;
1833 width: 100%;
1834 min-height: 15rem;
1835 padding: 1rem;
1836 resize: none;
1837 color: #eee;
1838 border: 0;
1839 border-radius: 0;
1840 background-color: #101010;
1841 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1842 }
1843
1844 #syslog:focus {
1845 outline: 0;
1846 }
1847
1848 /* config changes */
1849 .uci-change-list {
1850 font-family: monospace;
1851 }
1852
1853 .uci-change-list ins,
1854 .uci-change-legend-label ins {
1855 display: block;
1856 padding: 2px;
1857 text-decoration: none;
1858 border: thin solid #0f0;
1859 background-color: #cfc;
1860 }
1861
1862 .uci-change-list del,
1863 .uci-change-legend-label del {
1864 font-style: normal;
1865 display: block;
1866 padding: 2px;
1867 text-decoration: none;
1868 border: thin solid #f00;
1869 background-color: #fcc;
1870 }
1871
1872 .uci-change-list var,
1873 .uci-change-legend-label var {
1874 font-style: normal;
1875 display: block;
1876 padding: 2px;
1877 text-decoration: none;
1878 border: thin solid #ccc;
1879 background-color: #eee;
1880 }
1881
1882 .uci-change-list var ins,
1883 .uci-change-list var del {
1884 font-style: normal;
1885 padding: 0;
1886 white-space: pre;
1887 border: 0;
1888 }
1889
1890 .uci-change-legend {
1891 padding: 5px;
1892 }
1893
1894 .uci-change-legend-label {
1895 float: left;
1896 width: 150px;
1897 }
1898
1899 .uci-change-legend-label > ins,
1900 .uci-change-legend-label > del,
1901 .uci-change-legend-label > var {
1902 display: block;
1903 float: left;
1904 width: 10px;
1905 height: 10px;
1906 margin-right: 4px;
1907 }
1908
1909 .uci-change-legend-label var ins,
1910 .uci-change-legend-label var del {
1911 line-height: .4;
1912 border: 0;
1913 }
1914
1915 .uci-change-list var,
1916 .uci-change-list del,
1917 .uci-change-list ins {
1918 padding: .5rem;
1919 }
1920
1921 /* other fix */
1922 #iwsvg,
1923 #iwsvg2,
1924 #bwsvg {
1925 border: thin solid #d4d4d4 !important;
1926 }
1927
1928 #iwsvg,
1929 [data-page="admin-status-realtime-bandwidth"] #bwsvg {
1930 border-top: 0 !important;
1931 }
1932
1933 .ifacebox {
1934 line-height: 1.25;
1935 display: inline-flex;
1936 flex-direction: column;
1937 min-width: 100px;
1938 border-bottom: thin solid #ccc;
1939 background-color: #f9f9f9;
1940 box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 0, 0, .2);
1941 }
1942
1943 .ifacebox-head {
1944 padding: .25em;
1945 background: #eee;
1946 }
1947
1948 .ifacebox-head.active {
1949 background: #5bc0de;
1950 background: var(--bar-bg);
1951 }
1952
1953 .ifacebox-body {
1954 padding: .25em;
1955 }
1956
1957 .cbi-image-button {
1958 margin-left: .5rem;
1959 }
1960
1961 .zonebadge {
1962 display: inline-block;
1963 padding: .2rem .5rem;
1964 }
1965
1966 .zonebadge .ifacebadge {
1967 margin: .1rem .2rem;
1968 padding: .2rem .3rem;
1969 border: thin solid #6c6c6c;
1970 }
1971
1972 .zonebadge > input[type="text"] {
1973 min-width: 10rem;
1974 margin-top: .3rem;
1975 padding: .16rem 1rem;
1976 }
1977
1978 .zonebadge > em,
1979 .zonebadge > strong {
1980 display: inline-block;
1981 margin: 0 .2rem;
1982 }
1983
1984 .cbi-value-field .cbi-input-checkbox,
1985 .cbi-value-field .cbi-input-radio {
1986 margin-top: .1rem;
1987 }
1988
1989 .cbi-value-field > ul > li {
1990 display: flex;
1991 }
1992
1993 .cbi-value-field > ul > li > label {
1994 margin-top: .5rem;
1995 }
1996
1997 .cbi-value-field > ul > li .ifacebadge {
1998 margin-top: -.5rem;
1999 margin-left: .4rem;
2000 background-color: #eee;
2001 }
2002
2003 .cbi-section-table-row > .cbi-value-field .cbi-dropdown {
2004 min-width: 7rem;
2005 }
2006
2007 .cbi-section-create {
2008 display: inline-flex;
2009 align-items: center;
2010 margin: .5rem -3px;
2011 }
2012
2013 .cbi-section-create > * {
2014 margin: .5rem;
2015 }
2016
2017 .cbi-section-remove {
2018 padding: .5rem;
2019 }
2020
2021 div.cbi-value var,
2022 td.cbi-value-field var,
2023 .td.cbi-value-field var {
2024 font-style: italic;
2025 color: #0069d6;
2026 }
2027
2028 .cbi-optionals {
2029 padding: 1rem 1rem 0 1rem;
2030 border-top: thin solid #ccc;
2031 }
2032
2033 .cbi-dropdown-container {
2034 position: relative;
2035 }
2036
2037 .cbi-tooltip-container,
2038 span[data-tooltip],
2039 span[data-tooltip] .label {
2040 cursor: help !important;
2041 }
2042
2043 .cbi-tooltip {
2044 position: absolute;
2045 z-index: 1000;
2046 left: -1000px;
2047 padding: 2px 5px;
2048 transition: opacity .25s ease-out;
2049 white-space: pre;
2050 pointer-events: none;
2051 opacity: 0;
2052 border-radius: 3px;
2053 background: #fff;
2054 box-shadow: 0 0 2px #444;
2055 }
2056
2057 .cbi-tooltip-container:hover .cbi-tooltip {
2058 left: auto;
2059 transition: opacity .25s ease-in;
2060 opacity: 1;
2061 }
2062
2063 .zonebadge .cbi-tooltip {
2064 margin: -1.5rem 0 0 -.5rem;
2065 padding: .25rem;
2066 background: inherit;
2067 }
2068
2069 .zonebadge-empty {
2070 color: #404040;
2071 background: repeating-linear-gradient(45deg, rgba(204, 204, 204, .5), rgba(204, 204, 204, .5) 5px, rgba(255, 255, 255, .5) 5px, rgba(255, 255, 255, .5) 10px);
2072 }
2073
2074 .zone-forwards {
2075 display: flex;
2076 min-width: 10rem;
2077 }
2078
2079 .zone-forwards > * {
2080 flex: 1 1 45%;
2081 }
2082
2083 .zone-forwards > span {
2084 flex-basis: 10%;
2085 padding: 0 .25rem;
2086 text-align: center;
2087 }
2088
2089 .zone-forwards .zone-src,
2090 .zone-forwards .zone-dest {
2091 display: flex;
2092 flex-direction: column;
2093 }
2094
2095 .label,
2096 [data-indicator] {
2097 font-size: .8rem;
2098 font-weight: bold;
2099 padding: .3rem .8rem;
2100 white-space: nowrap;
2101 text-decoration: none;
2102 text-transform: uppercase;
2103 color: #fff !important;
2104 border-radius: 3px;
2105 background-color: #bfbfbf;
2106 text-shadow: none;
2107 }
2108
2109 label > input[type="checkbox"],
2110 label > input[type="radio"] {
2111 position: relative;
2112 top: .4rem;
2113 right: .2rem;
2114 margin: 0;
2115 vertical-align: bottom;
2116 }
2117
2118 label[data-index][data-depends] {
2119 padding-right: 2em;
2120 }
2121
2122 .showSide {
2123 display: none;
2124 }
2125
2126 .darkMask {
2127 position: fixed;
2128 z-index: 99;
2129 display: none;
2130 width: 100%;
2131 height: 100%;
2132 content: "";
2133 background-color: rgba(0, 0, 0, .56);
2134 }
2135
2136 /* diagnostics */
2137 #diag-rc-output > pre,
2138 #command-rc-output > pre,
2139 [data-page="admin-services-wol"] .notice code {
2140 font-size: 1.2rem;
2141 font-size-adjust: .35;
2142 line-height: normal;
2143 display: block;
2144 overflow-y: hidden;
2145 width: 100%;
2146 padding: 8.5px;
2147 white-space: pre;
2148 color: #eee;
2149 background-color: #101010;
2150 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2151 }
2152
2153 [data-page="admin-network-diagnostics"] .table {
2154 box-shadow: none;
2155 }
2156
2157 input[name="ping"],
2158 input[name="traceroute"],
2159 input[name="nslookup"] {
2160 width: 80%;
2161 }
2162
2163 /* fix Main Login */
2164 .node-main-login > .main > .main-left {
2165 display: none;
2166 }
2167
2168 .node-main-login > .main > .main-right {
2169 width: 100%;
2170 }
2171
2172 .node-main-login > .main fieldset {
2173 display: inline;
2174 overflow: hidden;
2175 margin-bottom: 1rem;
2176 padding: .5rem;
2177 border: 0;
2178 background: none;
2179 box-shadow: none;
2180 }
2181
2182 .node-main-login > .main .cbi-value-title {
2183 width: 9.5rem;
2184 }
2185
2186 .node-main-login > .main #maincontent {
2187 text-align: center;
2188 }
2189
2190 .node-main-login > .main .container {
2191 display: inline-block;
2192 margin-top: 2rem !important;
2193 padding: 1rem 3.5rem 2rem;
2194 text-align: left;
2195 background-color: #fff;
2196 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2197 }
2198
2199 .node-main-login > .main form > div:last-child {
2200 float: right;
2201 }
2202
2203 .node-main-login > .main .cbi-value {
2204 display: block;
2205 }
2206
2207 .node-main-login > .main .cbi-value > * {
2208 display: inline-block !important;
2209 }
2210
2211 .node-main-login > .main .cbi-input-text {
2212 width: 100% !important;
2213 min-width: 15rem;
2214 }
2215
2216 .node-main-login .cbi-section {
2217 box-shadow: none;
2218 }
2219
2220 @media screen and (min-height: 585px) {
2221 .node-main-login footer {
2222 position: absolute;
2223 bottom: 0;
2224 width: 100%;
2225 }
2226 }
2227
2228 /* fix status */
2229 .node-status-overview > .main fieldset:nth-child(4) .td:nth-child(2),
2230 .node-status-processes > .main .table .tr .td:nth-child(3) {
2231 white-space: normal;
2232 }
2233
2234 /* fix system reboot */
2235 [data-page="admin-system-reboot"] p {
2236 padding-left: 2rem;
2237 }
2238
2239 [data-page="admin-system-reboot"] p > span {
2240 position: relative;
2241 top: .1rem;
2242 left: 1rem;
2243 }
2244
2245 /* samba */
2246 #cbi-samba [data-tab="template"] .cbi-value-field {
2247 display: block;
2248 }
2249
2250 #cbi-samba [data-tab="template"] .cbi-value-title {
2251 width: auto;
2252 padding-bottom: .6rem;
2253 }
2254
2255 /* software */
2256 .controls > * > .btn:not([aria-label$="page"]) {
2257 flex-grow: initial !important;
2258 margin-top: .1rem;
2259 }
2260
2261 .controls > #pager > .btn[aria-label$="page"] {
2262 font-size: 1.4rem;
2263 font-weight: bold;
2264 }
2265
2266 .controls > * > label {
2267 margin-bottom: .2rem;
2268 }
2269
2270 [data-page="admin-system-opkg"] div.btn {
2271 line-height: 3;
2272 display: inline;
2273 padding: .3rem .6rem;
2274 }
2275
2276 [data-page^="admin-system-admin"]:not(.node-main-login) .cbi-map:not(#cbi-dropbear),
2277 [data-page="admin-system-opkg"] #maincontent > .container {
2278 margin-top: 2rem;
2279 padding-top: .1rem;
2280 }
2281
2282 [data-page="admin-system-opkg"] #maincontent > .container {
2283 margin: 2rem;
2284 margin-bottom: 1rem;
2285 }
2286
2287 .td.version,
2288 .td.size {
2289 white-space: normal !important;
2290 word-break: break-word;
2291 }
2292
2293 .cbi-tabmenu + .cbi-section {
2294 margin-top: 0;
2295 }
2296
2297 /* wireless overview */
2298 #cbi-wireless > #wifi_assoclist_table > .tr {
2299 box-shadow: inset 1px -1px 0 #ddd, inset -1px -1px 0 #ddd;
2300 }
2301
2302 #cbi-wireless > #wifi_assoclist_table > .tr.placeholder > .td {
2303 right: 33px;
2304 bottom: 33px;
2305 left: 33px;
2306 border-top: thin solid #ddd !important;
2307 }
2308
2309 #cbi-wireless > #wifi_assoclist_table > .tr.table-titles {
2310 box-shadow: inset 1px 0 0 #ddd, inset -1px 0 0 #ddd;
2311 }
2312
2313 #cbi-wireless > #wifi_assoclist_table > .tr.table-titles > .th {
2314 border-bottom: thin solid #ddd;
2315 box-shadow: 0 -1px 0 0 #ddd;
2316 }
2317
2318 #wifi_assoclist_table > .tr > .td[data-title="RX Rate / TX Rate"] {
2319 width: 23rem;
2320 }
2321
2322 /* firewall */
2323 #iptables {
2324 margin: 0;
2325 }
2326
2327 .Firewall form {
2328 margin: 2rem 2rem 0 0;
2329 padding: 0;
2330 box-shadow: none;
2331 }
2332
2333 #cbi-firewall-redirect table *,
2334 #cbi-network-switch_vlan table *,
2335 #cbi-firewall-zone table * {
2336 font-size: small;
2337 }
2338
2339 #cbi-firewall-redirect table input[type="text"],
2340 #cbi-network-switch_vlan table input[type="text"],
2341 #cbi-firewall-zone table input[type="text"] {
2342 width: 5rem;
2343 }
2344
2345 #cbi-firewall-redirect table select,
2346 #cbi-network-switch_vlan table select,
2347 #cbi-firewall-zone table select {
2348 min-width: 3.5rem;
2349 }
2350
2351 #cbi-network-switch_vlan .th,
2352 #cbi-network-switch_vlan .td {
2353 flex-basis: 12%;
2354 }
2355
2356 #cbi-firewall-zone .table,
2357 #cbi-network-switch_vlan .table {
2358 display: block;
2359 }
2360
2361 #cbi-firewall-zone .td,
2362 #cbi-network-switch_vlan .td {
2363 width: 100%;
2364 }
2365
2366 /* applyreboot fix */
2367 #applyreboot-container {
2368 margin: 2rem;
2369 }
2370
2371 #applyreboot-section {
2372 line-height: 300%;
2373 margin: 2rem;
2374 }
2375
2376 /* openvpn bug fix */
2377 .OpenVPN a {
2378 line-height: initial !important;
2379 }
2380
2381 /* custom commands */
2382 .commandbox {
2383 width: 24% !important;
2384 margin: 10px 0 0 10px !important;
2385 padding: .5rem 1rem;
2386 border-bottom: thin solid #ccc;
2387 background: #eee;
2388 box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
2389 }
2390
2391 .commandbox h3 {
2392 line-height: normal !important;
2393 overflow: hidden;
2394 margin: 6px 0 !important;
2395 white-space: nowrap;
2396 text-overflow: ellipsis;
2397 }
2398
2399 .commandbox div {
2400 left: auto !important;
2401 }
2402
2403 .commandbox code {
2404 position: absolute;
2405 overflow: hidden;
2406 max-width: 60%;
2407 margin-left: 4px;
2408 padding: 2px 3px;
2409 white-space: nowrap;
2410 text-overflow: ellipsis;
2411 }
2412
2413 .commandbox code:hover {
2414 overflow-y: auto;
2415 max-height: 50px;
2416 white-space: normal;
2417 }
2418
2419 .commandbox p:first-of-type {
2420 margin-top: -6px;
2421 }
2422
2423 .commandbox p:nth-of-type(2) {
2424 margin-top: 2px;
2425 }
2426
2427 [data-page^="admin-system-commands"] .panel-title,
2428 [data-page^="command-cfg"] .mobile-hide,
2429 [data-page^="command-cfg"] .showSide {
2430 display: none;
2431 }
2432
2433 #command-rc-output .alert-message {
2434 line-height: 1.42857143;
2435 position: absolute;
2436 top: 40px;
2437 right: 32px;
2438 max-width: 40%;
2439 margin: 0;
2440 animation: anim-fade-in 1.5s forwards;
2441 word-break: break-word;
2442 opacity: 0;
2443 }
2444
2445 @keyframes anim-fade-in {
2446 100% {
2447 opacity: 1;
2448 }
2449 }
2450
2451 /* IE hacks */
2452 @media all and (-ms-high-contrast: none) {
2453 .main > .main-left > .nav > .slide > .menu::before {
2454 top: 30.25%;
2455 }
2456
2457 .main > .main-left > .nav > li:last-child::before {
2458 top: 20%;
2459 }
2460
2461 .showSide::before {
2462 top: -12px;
2463 }
2464 }
2465
2466 @media screen and (max-width: 1600px) {
2467 header > .fill > .container > #logo {
2468 margin: 0 2.5rem 0 .5rem;
2469 }
2470
2471 .main-left {
2472 width: calc(0% + 13rem);
2473 }
2474
2475 .main-right {
2476 width: calc(100% - 13rem);
2477 }
2478
2479 .btn:not(button),
2480 .cbi-button {
2481 font-size: .8rem;
2482 padding: .3rem .6rem;
2483 }
2484
2485 .label,
2486 [data-indicator] {
2487 padding: .2rem .6rem;
2488 }
2489
2490 fieldset,
2491 .cbi-section {
2492 padding: 1rem;
2493 }
2494
2495 .cbi-value-title {
2496 width: 15rem;
2497 padding-right: .6rem;
2498 }
2499
2500 .cbi-value-field .cbi-dropdown,
2501 .cbi-value-field .cbi-input-select,
2502 .cbi-value input[type="text"],
2503 .cbi-value input[type="password"] {
2504 min-width: 22rem;
2505 }
2506
2507 #cbi-firewall-zone .cbi-input-select {
2508 min-width: 9rem;
2509 }
2510
2511 .cbi-input-textarea {
2512 font-size: small;
2513 }
2514
2515 .node-admin-status > .main fieldset li > a {
2516 padding: .3rem .6rem;
2517 }
2518 }
2519
2520 @media screen and (max-width: 1366px) {
2521 header {
2522 height: 3.5rem;
2523 }
2524
2525 header > .fill > .container {
2526 margin-top: .25rem;
2527 cursor: default;
2528 }
2529
2530 .main {
2531 top: 3.5rem;
2532 height: calc(100% - 3.5rem);
2533 }
2534
2535 .main-left {
2536 top: 3.5rem;
2537 width: calc(0% + 13rem);
2538 height: calc(100% - 3.5rem);
2539 }
2540
2541 .main-right {
2542 width: calc(100% - 13rem);
2543 }
2544
2545 .tabs > li > a,
2546 .cbi-tabmenu > li > a {
2547 padding: .2rem .5rem;
2548 }
2549
2550 .panel-title {
2551 font-size: 1.1rem;
2552 padding-bottom: 1rem;
2553 }
2554
2555 table {
2556 font-size: .7rem !important;
2557 width: 100% !important;
2558 }
2559
2560 .table .cbi-input-text {
2561 width: 100%;
2562 }
2563
2564 .cbi-value-field .cbi-dropdown,
2565 .cbi-value-field .cbi-input-select,
2566 .cbi-value input[type="text"],
2567 .cbi-value input[type="password"] {
2568 min-width: 19rem;
2569 }
2570
2571 #cbi-firewall-zone .cbi-input-select {
2572 min-width: 4rem;
2573 }
2574
2575 .main > .main-left > .nav > li,
2576 .main > .main-left > .nav > li a,
2577 .main > .main-left > .nav > .slide > .menu,
2578 .main > .main-left > .nav > li > [data-title="Logout"] {
2579 font-size: .9rem;
2580 }
2581
2582 .main > .main-left > .nav > .slide > .slide-menu > li > a {
2583 font-size: .7rem;
2584 }
2585
2586 #modal_overlay {
2587 top: 3.5rem;
2588 }
2589
2590 [data-page="admin-network-firewall-forwards"] .table:not(.cbi-section-table) {
2591 display: block;
2592 }
2593
2594 [data-page="admin-network-firewall-forwards"] .table:not(.cbi-section-table),
2595 [data-page="admin-network-firewall-rules"] .table:not(.cbi-section-table),
2596 [data-page="admin-network-hosts"] .table,
2597 [data-page="admin-network-routes"] .table {
2598 overflow-y: visible;
2599 }
2600
2601 .commandbox {
2602 width: 32% !important;
2603 }
2604 }
2605
2606 @media screen and (max-width: 1152px) {
2607 header > .fill > .container > #logo {
2608 display: none;
2609 }
2610
2611 header > .fill > .container > .brand {
2612 position: relative;
2613 }
2614
2615 html,
2616 .main {
2617 overflow-y: visible;
2618 }
2619
2620 .main > .loading > span {
2621 top: 25%;
2622 }
2623
2624 .main-left {
2625 position: fixed;
2626 z-index: 100;
2627 width: 0;
2628 }
2629
2630 .main-right {
2631 width: 100%;
2632 }
2633
2634 .showSide {
2635 position: relative;
2636 top: .18rem;
2637 display: inline-flex;
2638 align-items: center;
2639 width: 1.6rem;
2640 height: 1.6rem;
2641 margin-right: .7rem;
2642 cursor: pointer;
2643 }
2644
2645 .showSide::before {
2646 position: absolute;
2647 left: 1px;
2648 width: 24px;
2649 height: 24px;
2650 content: "";
2651 background: url(./icons/menu.svg) no-repeat center;
2652 }
2653
2654 body:not(.logged-in) .showSide {
2655 visibility: hidden;
2656 width: 0;
2657 margin: 0;
2658 }
2659
2660 .node-main-login > .main .cbi-value-title {
2661 text-align: left;
2662 }
2663
2664 .cbi-value-title {
2665 width: 12rem;
2666 padding-right: 1rem;
2667 }
2668
2669 .cbi-value-field .cbi-dropdown,
2670 .cbi-value-field .cbi-input-select,
2671 .cbi-value input[type="text"] {
2672 width: 16rem;
2673 min-width: 16rem;
2674 }
2675
2676 .cbi-value input[type="password"],
2677 .cbi-value input[name^="pw"],
2678 .cbi-value input[data-update="change"]:nth-child(2) {
2679 width: 13rem !important;
2680 min-width: 13rem;
2681 }
2682
2683 #diag-rc-output > pre,
2684 #command-rc-output > pre,
2685 [data-page="admin-services-wol"] .notice code {
2686 font-size: 1rem;
2687 }
2688
2689 .table {
2690 display: block;
2691 }
2692
2693 .Interfaces .table {
2694 overflow-x: hidden;
2695 }
2696
2697 #packages.table {
2698 display: grid;
2699 }
2700
2701 .tr {
2702 display: flex;
2703 flex-direction: row;
2704 flex-wrap: wrap;
2705 }
2706
2707 .Overview .table[width="100%"] > .tr {
2708 flex-wrap: nowrap;
2709 }
2710
2711 .tr.placeholder {
2712 border-bottom: thin solid #ddd;
2713 }
2714
2715 .tr.placeholder > .td,
2716 #cbi-firewall .tr > .td,
2717 #cbi-network .tr:nth-child(2) > .td,
2718 .cbi-section #wifi_assoclist_table .tr > .td {
2719 border-top: 0;
2720 }
2721
2722 .th,
2723 .td {
2724 display: inline-block;
2725 align-self: flex-start;
2726 flex: 2 2 25%;
2727 text-overflow: ellipsis;
2728 word-wrap: break-word;
2729 }
2730
2731 .td select,
2732 .td input[type="text"] {
2733 width: 100%;
2734 word-wrap: normal;
2735 }
2736
2737 .td [data-dynlist] > input,
2738 .td input.cbi-input-password {
2739 width: calc(100% - 1.5rem);
2740 }
2741
2742 .td[data-type="button"],
2743 .td[data-type="fvalue"] {
2744 flex: 1 1 12.5%;
2745 text-align: left;
2746 }
2747
2748 .th.cbi-value-field,
2749 .td.cbi-value-field,
2750 .th.cbi-section-table-cell,
2751 .td.cbi-section-table-cell {
2752 flex-basis: auto;
2753 padding-top: 1rem;
2754 }
2755
2756 .cbi-section-table-row {
2757 display: flex;
2758 flex-direction: row;
2759 flex-wrap: wrap;
2760 justify-content: space-between;
2761 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2762 }
2763
2764 .td.cbi-value-field,
2765 .cbi-section-table-cell {
2766 display: inline-block;
2767 flex: 10 10 auto;
2768 flex-basis: 50%;
2769 text-align: center;
2770 }
2771
2772 .td.cbi-section-actions {
2773 vertical-align: bottom;
2774 }
2775
2776 .tr.table-titles,
2777 .tr.cbi-section-table-titles,
2778 .tr.cbi-section-table-descr {
2779 display: none;
2780 }
2781
2782 .tr[data-title]::before,
2783 .tr.cbi-section-table-titles.named::before {
2784 font-size: .9rem;
2785 display: block;
2786 flex: 1 1 100%;
2787 border-bottom: thin solid rgba(0, 0, 0, .26);
2788 background: #90c0e0;
2789 }
2790
2791 .td[data-title],
2792 [data-page^="admin-status-realtime"] .td[id] {
2793 text-align: left;
2794 }
2795
2796 .td[data-title]::before {
2797 display: block;
2798 }
2799
2800 .cbi-button + .cbi-button {
2801 margin-left: 0;
2802 }
2803
2804 .td.cbi-section-actions > * > *,
2805 .td.cbi-section-actions > * > form > * {
2806 margin: 2.1px 3px;
2807 }
2808
2809 .Firewall form {
2810 position: static !important;
2811 margin: 0 0 2rem 0;
2812 padding: 2rem;
2813 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2814 }
2815
2816 .Firewall form input {
2817 width: 100% !important;
2818 margin: 0;
2819 margin-top: 1rem;
2820 }
2821
2822 .Firewall .center,
2823 .Firewall .center::before {
2824 text-align: left !important;
2825 }
2826
2827 .commandbox {
2828 width: 100% !important;
2829 margin-left: 0 !important;
2830 }
2831 }
2832
2833 @media screen and (max-width: 600px) {
2834 body {
2835 font-size: .8rem;
2836 }
2837
2838 .cbi-progressbar::after {
2839 font-size: .95em;
2840 line-height: 1.5;
2841 }
2842
2843 fieldset,
2844 .cbi-section {
2845 margin: 1rem 0 0 0;
2846 }
2847
2848 .tabs {
2849 margin: 0 -1rem;
2850 }
2851
2852 #maincontent > .container {
2853 margin: 0 .5rem 1.5rem .5rem;
2854 }
2855
2856 .main > .main-left > .nav > .slide > .menu,
2857 .main > .main-left > .nav > li > [data-title="Logout"] {
2858 font-size: 1.2rem;
2859 }
2860
2861 .main > .main-left > .nav > .slide > .slide-menu > li > a {
2862 font-size: 1rem;
2863 }
2864
2865 .cbi-value-title {
2866 display: block;
2867 min-width: 0 !important;
2868 margin: .5rem 0;
2869 text-align: left;
2870 }
2871
2872 .cbi-value-title,
2873 .cbi-value-description,
2874 .cbi-value-field,
2875 .cbi-value-field .cbi-dropdown,
2876 .cbi-value-field .cbi-input-select,
2877 .cbi-value input[type="text"] {
2878 width: 100%;
2879 }
2880
2881 .cbi-value > .cbi-value-field {
2882 display: inline-block;
2883 }
2884
2885 .tabs > li > a,
2886 .cbi-tabmenu > li > a {
2887 font-size: .9rem;
2888 padding: .2rem .3rem;
2889 }
2890
2891 .cbi-page-actions > div > input {
2892 display: none;
2893 }
2894
2895 .cbi-page-actions > .cbi-button {
2896 margin-top: .2rem;
2897 }
2898
2899 .node-main-login > .main .container {
2900 margin: 2rem 1.2rem 1.5rem 1.2rem !important;
2901 padding: .3rem 1.7rem 2rem 1.6rem;
2902 }
2903
2904 .node-main-login > .main .cbi-value {
2905 padding: 0;
2906 }
2907
2908 .node-main-login > .main form > div:last-child {
2909 margin-top: 2rem;
2910 }
2911
2912 .node-main-login > .main .cbi-value-title {
2913 font-size: 1.2rem;
2914 width: 100% !important;
2915 }
2916
2917 .node-main-login > .main fieldset {
2918 margin: 0;
2919 padding: .5rem;
2920 }
2921
2922 .commandbox p:first-of-type {
2923 margin-top: -8px;
2924 }
2925
2926 #syslog,
2927 #diag-rc-output > pre,
2928 #command-rc-output > pre,
2929 [data-page="admin-services-wol"] .notice code {
2930 font-size: .8rem !important;
2931 }
2932
2933 h2 {
2934 font-size: 2rem;
2935 }
2936
2937 .tabs > li > a {
2938 font-size: .9rem;
2939 }
2940
2941 select,
2942 input {
2943 font-size: .9rem;
2944 }
2945
2946 code {
2947 font-size: .8rem;
2948 }
2949
2950 .mobile-hide {
2951 display: none;
2952 }
2953
2954 .panel-title {
2955 font-size: 1.4rem;
2956 padding-bottom: 1rem;
2957 }
2958
2959 .node-system-packages > .main .cbi-value.cbi-value-last > div {
2960 width: 100% !important;
2961 }
2962
2963 .node-system-packages > .main .cbi-value .cbi-value-field input {
2964 width: 100%;
2965 }
2966
2967 .th,
2968 .td {
2969 flex-basis: 50%;
2970 }
2971
2972 .td.cbi-value-field {
2973 flex-basis: 100%;
2974 }
2975
2976 .td.cbi-value-field[data-type="button"],
2977 .td.cbi-value-field[data-type="fvalue"] {
2978 flex-basis: 25%;
2979 text-align: left;
2980 }
2981
2982 .tr[data-title]::before,
2983 .tr.cbi-section-table-titles.named::before {
2984 font-size: 1rem;
2985 }
2986
2987 td > .ifacebadge,
2988 .td > .ifacebadge {
2989 font-size: .62rem;
2990 }
2991
2992 #cbi-wireless > #wifi_assoclist_table .td {
2993 overflow: hidden;
2994 }
2995
2996 #cbi-wireless > .cbi-section-node .td,
2997 .Interfaces .td.cbi-section-actions {
2998 text-align: center !important;
2999 }
3000
3001 [data-page="admin-status-processes"] .td[data-title="Hang Up"]::before,
3002 [data-page="admin-status-processes"] .td[data-title="Terminate"]::before,
3003 [data-page="admin-status-processes"] .td[data-title="Kill"]::before {
3004 display: none;
3005 }
3006
3007 .hide-sm,
3008 .hide-xs:not([data-title="MAC-Address"]) {
3009 display: none;
3010 }
3011
3012 .cbi-modal {
3013 padding: .5rem;
3014 }
3015
3016 .cbi-modal .cbi-value {
3017 padding: 0 0 .25rem 0;
3018 }
3019
3020 .cbi-modal [data-tab-title] {
3021 padding: 0 .25rem !important;
3022 }
3023
3024 [data-tab-title] {
3025 padding: 0 .5rem !important;
3026 }
3027 }
3028
3029 @media screen and (min-width: 600px) {
3030 ::-webkit-scrollbar {
3031 width: 10px;
3032 height: 10px;
3033 }
3034
3035 ::-webkit-scrollbar,
3036 ::-webkit-scrollbar-corner {
3037 background: transparent;
3038 }
3039
3040 ::-webkit-scrollbar-thumb {
3041 background: #9e9e9e;
3042 }
3043
3044 ::-webkit-scrollbar-thumb:hover {
3045 background: #757575;
3046 }
3047
3048 ::-webkit-scrollbar-thumb:active {
3049 background: #424242;
3050 }
3051 }