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