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