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