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