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