2 * Material is a clean HTML5 theme for LuCI. It is based on luci-theme-bootstrap and MUI
5 * Copyright 2015 Lutty Yang <lutty@wcan.in>
7 * Have a bug? Please create an issue here on GitHub!
8 * https://github.com/LuttyYang/luci-theme-material/issues
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>
16 * https://github.com/muicss/mui
18 * Menu and loading spinner icons from IcoMoon:
21 * Pure CSS ripple effect:
22 * https://github.com/mladenplavsic/css-ripple-effect
24 * Licensed to the public under the Apache License 2.0
30 @import url("custom.css");
41 display: table-header-group;
45 display: table-row-group;
49 display: table-footer-group;
58 vertical-align: middle;
69 .tr.placeholder > .td {
75 text-align: center !important;
96 flex: 1 1 30px !important;
100 flex: 2 2 60px !important;
104 flex: 3 3 90px !important;
108 flex: 4 4 120px !important;
112 flex: 5 5 150px !important;
116 flex: 6 6 180px !important;
120 flex: 7 7 210px !important;
124 flex: 8 8 240px !important;
128 flex: 9 9 270px !important;
132 flex: 10 10 300px !important;
136 box-sizing: border-box;
153 font-family: inherit;
155 line-height: 1.1 !important;
161 -webkit-text-size-adjust: 100%;
162 -ms-text-size-adjust: 100%;
167 background-color: #eee;
172 font-family: "Microsoft Yahei", "WenQuanYi Micro Hei", "sans-serif", "Helvetica Neue", "Helvetica", "Hiragino Sans GB";
173 font-family: var(--font-body);
180 padding: .36rem .8rem;
182 border: thin solid #ccc;
183 background-color: #fff;
184 background-image: none;
194 color: rgba(0, 0, 0, .87);
196 border-bottom: 2px solid rgba(0, 0, 0, .26);
199 background-color: transparent;
200 background-image: none;
210 select:not([multiple="multiple"]):focus,
211 input:not(.cbi-button):focus,
212 .cbi-dropdown:focus {
214 border-color: var(--main-color);
217 select[multiple="multiple"] {
227 font-size-adjust: .35;
236 text-decoration: underline;
257 transition: box-shadow .2s;
258 box-shadow: 0 2px 5px rgba(0, 0, 0, .26);
268 text-shadow: 0 0 2px #bbb;
272 text-decoration: none;
278 line-height: 1.42857143;
288 height: calc(100% - 4rem);
298 pointer-events: none;
299 background-color: rgb(240, 240, 240);
302 .main > .loading > span {
303 font-family: monospace;
305 font-size-adjust: .35;
313 .main > .loading > span > .loading-img {
317 display: inline-block;
321 animation: anim-rotate 2s infinite linear;
322 background: url(./icons/spinner.svg) no-repeat center;
325 @keyframes anim-rotate {
327 -webkit-transform: rotate(0);
328 -ms-transform: rotate(0);
329 transform: rotate(0);
332 -webkit-transform: rotate(360deg);
333 -ms-transform: rotate(360deg);
334 transform: rotate(360deg);
344 width: calc(0% + 15rem);
346 height: calc(100% - 4rem);
347 background-color: #fff;
348 background-color: var(--menu-bg-color);
354 width: calc(100% - 15rem);
356 background-color: #eee;
359 .main-right > #maincontent {
360 background-color: #eee;
375 [disabled="disabled"] {
376 pointer-events: none;
381 color: var(--header-color);
383 background: var(--header-bg);
386 header > .fill > .container {
388 padding: .5rem 1rem 0 1rem;
389 -webkit-user-select: none;
390 -moz-user-select: none;
391 -ms-user-select: none;
395 header > .fill > .container > #logo {
396 margin: 0 3.5rem 0 1.5rem;
399 header > .fill > .container > #logo > img {
400 width: calc(0% + 10rem);
404 header > .fill > .container > .brand {
408 vertical-align: text-bottom;
409 text-decoration: none;
411 color: var(--header-color);
414 header > .fill > .container > .status {
421 header > .fill > .container > .status > * {
434 background-color: #ff7d60 !important;
438 background-color: #f0e68c !important;
442 background-color: #5cb85c !important;
446 background-color: #5bc0de !important;
459 border-radius: 0 !important;
460 background-color: #fff;
461 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
462 text-shadow: 1px 1px rgba(0, 0, 0, .1);
465 .alert-message > h4 {
474 .alert-message .btn {
475 padding: .3rem .6rem;
479 .container .alert-message {
483 .main > .main-left > .nav {
487 .main > .main-left > .nav > li {
490 -webkit-user-select: none;
491 -moz-user-select: none;
492 -ms-user-select: none;
496 .main > .main-left > .nav > li:last-child {
499 margin: 2rem 0 1rem 0;
503 .main > .main-left > .nav > li a {
506 color: var(--menu-color);
509 .main > .main-left > .nav > .slide {
513 .main > .main-left > .nav > .slide > ul {
517 .main > .main-left > .nav > .slide > .menu,
518 .main > .main-left > .nav > li > [data-title="Logout"] {
525 text-decoration: none;
527 color: var(--main-menu-color);
530 .main > .main-left > .nav > .slide > .menu::before {
536 background: url(./icons/arrow.svg) no-repeat;
539 .main > .main-left > .nav > .slide > .menu.active::before {
540 transform: rotate(-180deg);
543 body[class*="node-"] > .main > .main-left > .nav > .slide > .menu::before {
544 transition: transform .1s ease-in-out;
547 body[class*="node-"] > .main > .main-left > .nav > .slide > .menu.active::before {
548 transition: transform .2s ease-in-out;
551 .main > .main-left[style*="overflow: hidden"] > .nav > .slide > .menu::before {
555 .main > .main-left > .nav > li:last-child::before {
560 content: url(./icons/logout.svg);
563 .main > .main-left > .nav > li:hover,
564 .main > .main-left > .nav > .slide > .menu:hover {
566 background: var(--submenu-bg-hover);
569 .main > .main-left > .nav > .slide:hover {
573 .main > .main-left > .nav > .slide > .slide-menu > li {
577 .main > .main-left > .nav > .slide > .slide-menu > .active {
578 background-color: #09c;
579 background-color: var(--submenu-bg-hover-active);
582 .main > .main-left > .nav > .slide > .slide-menu > li > a {
584 text-decoration: none;
587 .main > .main-left > .nav > .slide > .slide-menu > .active > a {
591 .main > .main-left > .nav > .slide > .slide-menu > li:hover {
593 background: var(--submenu-bg-hover);
596 .main > .main-left > .nav > .slide > .slide-menu > li:not(.active):hover > a {
598 color: var(--menu-color-hover);
601 .main > .main-left > .nav > .slide > .slide-menu > .active:hover {
602 background-color: #09c;
603 background-color: var(--main-color);
607 .main > .main-left > .nav > .slide > .menu,
608 .main > .main-left > .nav > .slide > .slide-menu > li,
609 .main > .main-left > .nav > li:last-child {
612 transform: translate3d(0, 0, 0);
615 .main > .main-left > .nav > .slide > .menu::after,
616 .main > .main-left > .nav > .slide > .slide-menu > li::after,
617 .main > .main-left > .nav > li:last-child::after {
625 transition: transform .5s, opacity 1s;
626 transform: scale(10, 10);
627 pointer-events: none;
629 background-image: radial-gradient(circle, #000 10%, transparent 10.01%);
630 background-repeat: no-repeat;
631 background-position: 50%;
634 .main > .main-left > .nav > .slide > .menu:active::after,
635 .main > .main-left > .nav > .slide > .slide-menu > li:active::after,
636 .main > .main-left > .nav > li:last-child:active::after {
638 transform: scale(0, 0);
642 #maincontent > .container {
643 margin: 0 2rem 1rem 2rem;
651 list-style-type: none;
656 padding-bottom: 10px;
657 border-bottom: thin solid #eee;
663 padding-bottom: 10px;
664 border-bottom: thin solid #eee;
670 padding-bottom: 10px;
676 padding-bottom: 10px;
682 padding-bottom: 10px;
689 #cbi-network > .cbi-section-node,
690 #cbi-wireless > .cbi-section-node,
691 #cbi-wireless > #wifi_assoclist_table,
693 [data-page^="admin-system-admin"]:not(.node-main-login) .cbi-map:not(#cbi-dropbear),
694 [data-page="admin-system-opkg"] #maincontent > .container {
695 font-family: inherit;
704 background-color: #fff;
705 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
708 .cbi-modal .cbi-section,
709 .cbi-section .cbi-section {
717 line-height: 1.42857143;
722 .cbi-map-descr + fieldset {
726 .cbi-section > legend {
727 display: none !important;
731 .cbi-section > .cbi-section {
738 .cbi-section > h3:first-child,
745 margin-bottom: .5rem;
746 padding-bottom: 1rem;
748 border-bottom: thin solid #eee;
751 .cbi-section > h3:first-child,
752 .cbi-section > h4:first-child,
753 .cbi-section > p:first-child,
754 [data-tab-title] > h3:first-child,
755 [data-tab-title] > h4:first-child,
756 [data-tab-title] > p:first-child {
762 border-collapse: collapse;
769 box-shadow: 0 0 0 1px #ddd;
772 table > tbody > tr > td,
773 table > tbody > tr > th,
774 table > tfoot > tr > td,
775 table > tfoot > tr > th,
776 table > thead > tr > td,
777 table > thead > tr > th,
778 .table > .tbody > .tr > .td,
779 .table > .tbody > .tr > .th,
780 .table > .tfoot > .tr > .td,
781 .table > .tfoot > .tr > .th,
782 .table > .thead > .tr > .td,
783 .table > .thead > .tr > .th,
784 .table > .tr > .td.cbi-value-field,
785 .table > .tr > .th.cbi-section-table-cell {
789 .container > .cbi-section:first-of-type > .table[width="100%"] > .tr > .td {
793 .cbi-section-table-cell {
795 align-self: flex-end;
803 .cbi-section-table-row::before,
804 #cbi-wireless > #wifi_assoclist_table > .tr:nth-child(2) {
805 border-top: thin solid #ddd;
809 #cbi-network .tr:first-child > .td,
810 .table[width="100%"] > .tr:first-child > .td,
811 [data-page="admin-network-diagnostics"] .tr > .td,
812 .tr.table-titles > .th,
813 .tr.cbi-section-table-titles > .th {
814 border-top: 0 !important;
817 .table[width="100%"] > .tr:first-child > .td {
821 .cbi-section-table-row {
823 text-align: center !important;
827 .cbi-section-table-row:last-child {
831 .cbi-section-table-row > .cbi-value-field .cbi-dropdown,
832 .cbi-section-table-row > .cbi-value-field .cbi-input-select,
833 .cbi-section-table-row > .cbi-value-field .cbi-input-text,
834 .cbi-section-table-row > .cbi-value-field .cbi-input-password {
838 .cbi-section-table-row > .cbi-value-field [data-dynlist] > input,
839 .cbi-section-table-row > .cbi-value-field input.cbi-input-password {
840 width: calc(100% - 1.5rem);
843 .cbi-section-table-row .td {
844 text-align: center !important;
847 div > table > tbody > tr:nth-of-type(2n),
848 div > .table > .tr:nth-of-type(2n) {
849 background-color: #f9f9f9;
852 /* fix multiple table */
855 .cbi-value-field table,
856 .cbi-value-field .table,
857 td > table > tbody > tr > td,
858 .td > .table > .tbody > .tr > .td,
859 .cbi-value-field > table > tbody > tr > td,
860 .cbi-value-field > .table > .tbody > .tr > .td {
869 display: inline-block;
870 width: auto !important;
873 -webkit-user-select: none;
874 -moz-user-select: none;
875 -ms-user-select: none;
877 transition: all .2s ease-in-out;
879 vertical-align: middle;
881 text-decoration: none;
882 text-transform: uppercase;
883 color: rgba(0, 0, 0, .87);
885 border-radius: .2rem;
886 background-color: #f0f0f0;
887 background-image: none;
888 -webkit-appearance: none;
889 -ms-touch-action: manipulation;
890 touch-action: manipulation;
896 display: inline-block;
898 padding: .2rem .3rem;
899 color: transparent !important;
900 background: url(./icons/arrow.svg) no-repeat center;
901 background-size: 12px 20px;
905 transform: scaleY(-1);
908 .cbi-button:not(select) {
909 -webkit-appearance: none !important;
912 .cbi-button + .cbi-button {
925 .cbi-page-actions .cbi-button-apply + .cbi-button-save:hover,
926 .cbi-page-actions .cbi-button-apply + .cbi-button-save:focus,
927 .cbi-page-actions .cbi-button-apply + .cbi-button-save:active {
928 text-decoration: none;
938 box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
943 .item:active::after {
944 box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .23);
947 .cbi-button-up:hover,
948 .cbi-button-up:focus {
949 box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 -2px 2px rgba(0, 0, 0, .2);
952 .cbi-button-up:active {
953 box-shadow: 0 -10px 20px rgba(0, 0, 0, .19), 0 -6px 6px rgba(0, 0, 0, .23);
957 .cbi-button:disabled {
959 pointer-events: none;
965 .alert-message [class="btn"],
966 .modal div[class="btn"],
972 .cbi-button[name="zero"],
973 .cbi-button[name="restart"],
974 .cbi-button[onclick="hide_empty(this)"] {
976 border: thin solid #bfbfbf;
977 background-color: #d4d4d4;
982 .cbi-page-actions .cbi-button-save,
983 .cbi-page-actions .cbi-button-apply + .cbi-button-save,
986 .cbi-button-positive,
988 .cbi-button[value="Enable"],
989 .cbi-button[value="Scan"],
990 .cbi-button[value^="Back"],
991 .cbi-button-neutral[onclick="handleConfig(event)"] {
994 border: thin solid #2e6da4;
995 background-color: #337ab7;
999 .cbi-page-actions .cbi-button-apply,
1000 .cbi-section-actions .cbi-button-edit,
1005 .cbi-button[value="Submit"],
1006 .cbi-button[value="Upload"],
1007 .cbi-button[value$="Apply"],
1008 .cbi-button[onclick="addKey(event)"] {
1009 font-weight: normal;
1011 border: thin solid #46b8da;
1012 background-color: #5bc0de;
1017 .cbi-section-remove > .cbi-button,
1020 .cbi-button-negative,
1021 .cbi-button[value="Stop"],
1022 .cbi-button[value="Kill"],
1023 .cbi-button[onclick="reboot(this)"],
1024 .cbi-button-neutral[value="Restart"] {
1025 font-weight: normal;
1027 border: thin solid #d43f3a;
1028 background-color: #d9534f;
1032 .btn[value="Dismiss"],
1033 .cbi-button[value="Terminate"],
1034 .cbi-button[value="Reset"],
1035 .cbi-button[value="Disabled"],
1036 .cbi-button[onclick^="iface_reconnect"],
1037 .cbi-button[onclick="handleReset(event)"],
1038 .cbi-button-neutral[value="Disable"] {
1039 font-weight: normal;
1041 border: thin solid #eea236;
1042 background-color: #f0ad4e;
1046 .cbi-button-success,
1047 .cbi-button-download,
1048 .cbi-button[name="backup"],
1049 .cbi-button[value="Download"],
1050 .cbi-button[value="Save mtdblock"] {
1051 font-weight: normal;
1053 border: thin solid #4cae4c;
1054 background-color: #5cb85c;
1057 .cbi-page-actions .cbi-button-link:first-child {
1062 text-decoration: none;
1065 .cbi-value-field .cbi-button-add {
1067 margin: 9px 0 4px 3px;
1073 padding-left: .5rem;
1074 background-color: #fff;
1079 display: inline-block;
1085 padding-bottom: .4rem;
1086 border-bottom: .2rem solid transparent;
1089 .tabs > li[class~="active"],
1091 border-bottom-color: #09c;
1092 border-bottom-color: var(--main-color);
1097 border-bottom-color: #c9c9c9;
1101 .cbi-tabmenu > li > a {
1102 padding: .6rem .9rem;
1103 text-decoration: none;
1107 .tabs > li[class~="active"] > a {
1109 color: var(--main-color);
1113 border: thin solid #d4d4d4;
1117 .cbi-tabmenu > li:hover {
1118 background-color: #f1f1f1;
1121 .cbi-tabmenu > li[class~="cbi-tab"] {
1122 background-color: #fff;
1126 background-color: #d4d4d4;
1129 .cbi-section .cbi-section-remove:nth-of-type(2n),
1130 .container > .cbi-section .cbi-section-node:nth-of-type(2n) {
1131 background-color: #f9f9f9;
1139 padding: 0rem 1rem !important;
1142 [data-tab-active="true"] {
1146 transition: opacity .25s ease-in;
1147 margin: inherit !important;
1150 .cbi-section[id] .cbi-section-remove:nth-of-type(4n+3),
1151 .cbi-section[id] .cbi-section-node:nth-of-type(4n+4) {
1152 background-color: #f9f9f9;
1155 .cbi-section-node-tabbed {
1158 border: thin solid #d4d4d4;
1162 .cbi-tabcontainer > .cbi-value:nth-of-type(2n) {
1163 background-color: #f9f9f9;
1167 .cbi-value-description {
1169 display: table-cell;
1172 .cbi-value-description {
1179 display: table-cell;
1182 padding-top: .35rem;
1183 padding-right: 2rem;
1185 word-wrap: break-word;
1189 display: inline-block;
1191 padding: .35rem 1rem .2rem 1rem;
1198 .cbi-value-field .cbi-dropdown,
1199 .cbi-value-field .cbi-input-select,
1200 .cbi-value input[type="text"],
1201 .cbi-value input[type="password"] {
1205 #cbi-firewall-zone .cbi-input-select,
1206 #cbi-network-switch_vlan .cbi-input-select {
1210 #cbi-network-switch_vlan .cbi-input-text {
1214 .cbi-input-invalid {
1216 border-bottom-color: #f00;
1219 .cbi-section-error {
1221 line-height: 1.42857143;
1224 border: thin solid #f00;
1226 background-color: #fce6e6;
1229 .cbi-section-error ul {
1233 .cbi-section-error ul li {
1238 .td[data-title]::before {
1242 content: attr(data-title) ":\20";
1244 white-space: nowrap;
1247 .tr.placeholder .td[data-title]::before {
1251 .tr[data-title]::before,
1252 .tr.cbi-section-table-titles.named::before {
1254 display: table-cell;
1258 content: attr(data-title) "\20";
1260 vertical-align: middle;
1261 white-space: normal;
1262 word-wrap: break-word;
1266 background-color: #f9f9f9;
1270 background-color: #eee;
1273 .cbi-rowstyle-2 .cbi-button-up,
1274 .cbi-rowstyle-2 .cbi-button-down,
1275 body:not(.Interfaces) .cbi-rowstyle-2:first-child {
1276 background-color: #fff !important;
1279 .cbi-section-table .cbi-section-table-titles .cbi-section-table-cell {
1280 width: auto !important;
1283 .td.cbi-section-actions {
1284 text-align: right !important;
1285 vertical-align: middle;
1288 .td.cbi-section-actions > * {
1289 display: inline-flex;
1292 .td.cbi-section-actions > * > *,
1293 .td.cbi-section-actions > * > form > * {
1297 .td.cbi-section-actions > * > form {
1298 display: inline-flex;
1305 flex-direction: column;
1310 .cbi-dynlist > .item {
1314 padding: .5em .25em .25em 0;
1315 pointer-events: none;
1317 border-bottom: 2px solid rgba(0, 0, 0, .26);
1321 .cbi-dynlist[name="sshkeys"] > .item {
1325 .cbi-dynlist > .item::after {
1330 display: inline-flex;
1334 pointer-events: auto;
1336 border: thin solid #d43f3a;
1337 background-color: #d9534f;
1340 .cbi-dynlist > .item > span {
1341 white-space: normal;
1342 word-break: break-word;
1345 .cbi-dynlist > .add-item {
1346 display: inline-flex;
1347 align-items: center;
1352 .cbi-dynlist > .add-item:not([ondrop]) > input {
1356 white-space: nowrap;
1357 text-overflow: ellipsis;
1360 .cbi-dynlist > .add-item[ondrop] > input {
1367 display: inline-flex;
1371 .cbi-dropdown[placeholder*="select"] {
1377 .cbi-dropdown > ul {
1382 margin: 0 !important;
1388 .cbi-dropdown > ul.preview {
1392 .cbi-dropdown > .open {
1396 .cbi-dropdown > .open,
1397 .cbi-dropdown > .more {
1402 flex-direction: column;
1405 justify-content: center;
1412 .cbi-dropdown > .more,
1413 .cbi-dropdown > ul > li[placeholder] {
1417 text-shadow: 1px 1px 0 #fff;
1420 .cbi-dropdown > ul > li {
1423 align-items: center;
1429 white-space: nowrap;
1430 text-overflow: ellipsis;
1433 .cbi-dropdown > ul > li .hide-open {
1437 .cbi-dropdown > ul > li .hide-close {
1441 .cbi-dropdown > ul > li[display]:not([display="0"]) {
1442 border-left: thin solid #ccc;
1445 .cbi-dropdown[empty] > ul {
1449 .cbi-dropdown > ul > li > form {
1453 pointer-events: none;
1456 .cbi-dropdown > ul > li img {
1457 margin-right: .25em;
1458 vertical-align: middle;
1461 .cbi-dropdown > ul > li > form > input[type="checkbox"] {
1466 .cbi-dropdown > ul > li input[type="text"] {
1470 .cbi-dropdown[open] > ul.dropdown {
1477 max-height: 200px !important;
1478 border: thin solid #918e8c;
1479 background: #f6f6f6;
1480 box-shadow: 0 0 4px #918e8c;
1483 .cbi-dropdown > ul > li[display],
1484 .cbi-dropdown[open] > ul.preview,
1485 .cbi-dropdown[open] > ul.dropdown > li,
1486 .cbi-dropdown[multiple] > ul > li > label,
1487 .cbi-dropdown[multiple][open] > ul.dropdown > li,
1488 .cbi-dropdown[multiple][more] > .more,
1489 .cbi-dropdown[multiple][empty] > .more {
1491 align-items: center;
1495 .cbi-dropdown[empty] > ul > li,
1496 .cbi-dropdown[optional][open] > ul.dropdown > li[placeholder],
1497 .cbi-dropdown[multiple][open] > ul.dropdown > li > form {
1501 .cbi-dropdown[open] > ul.dropdown > li .hide-open {
1505 .cbi-dropdown[open] > ul.dropdown > li .hide-close {
1509 .cbi-dropdown[open] > ul.dropdown > li {
1510 border-bottom: thin solid #ccc;
1513 .cbi-dropdown[open] > ul.dropdown > li[selected] {
1514 background: #b0d0f0;
1517 .cbi-dropdown[open] > ul.dropdown > li.focus {
1518 background: linear-gradient(90deg, #a3c2e8 0%, #84aad9 100%);
1521 .cbi-dropdown[open] > ul.dropdown > li:last-child {
1526 .cbi-dropdown[open] > ul.dropdown > li[unselectable] {
1530 .cbi-dropdown[open] > ul.dropdown > li > input.create-item-input:first-child:last-child {
1534 .cbi-dropdown[disabled] {
1535 pointer-events: none;
1539 .cbi-dropdown .zonebadge {
1543 .cbi-dropdown[open] .zonebadge {
1553 border: thin solid #999;
1557 .cbi-progressbar > div {
1560 transition: width .25s ease-in;
1561 background: #5bc0de;
1562 background: var(--bar-bg);
1565 .cbi-progressbar::after {
1566 font-family: monospace;
1569 font-size-adjust: .38;
1570 line-height: normal;
1577 content: attr(title);
1580 text-overflow: ellipsis;
1581 text-shadow: 0 0 2px #eee;
1592 transition: opacity .125s ease-in;
1594 background: rgba(0, 0, 0, .7);
1595 -webkit-overflow-scrolling: touch;
1600 align-items: center;
1609 border-radius: 3px !important;
1611 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1615 line-height: normal;
1617 margin-bottom: .5em;
1623 font-size-adjust: .35;
1625 margin-bottom: .5em;
1628 white-space: pre-wrap;
1631 background-color: #101010;
1632 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1644 list-style-type: square;
1649 padding-left: .25rem;
1650 word-break: break-word;
1655 font-weight: normal;
1656 padding: .1rem .3rem;
1662 .modal .label.warning {
1663 background-color: #f0ad4e !important;
1667 padding: .3rem .6rem;
1679 body.modal-overlay-active {
1684 body.modal-overlay-active #modal_overlay {
1692 padding-left: 32px !important;
1702 background: url(../resources/icons/loading.gif) no-repeat center;
1703 background-size: 16px;
1713 text-align: left !important;
1718 text-align: right !important;
1723 text-align: center !important;
1727 align-self: flex-start !important;
1728 vertical-align: top !important;
1732 align-self: flex-end !important;
1733 vertical-align: bottom !important;
1745 .cbi-page-actions > form[method="post"] {
1746 display: inline-block;
1749 .th[data-type="button"],
1750 .td[data-type="button"],
1751 .th[data-type="fvalue"],
1752 .td[data-type="fvalue"] {
1758 display: inline-flex;
1759 padding: .5rem .8rem;
1760 border-bottom: thin solid #ccc;
1762 box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
1768 background-color: #f0f0f0;
1773 display: inline-block;
1774 align-self: flex-start;
1778 .ifacebadge > img + img {
1779 margin: 0 .2rem 0 0;
1782 .network-status-table {
1787 .network-status-table .ifacebox {
1792 .network-status-table .ifacebox-body {
1794 flex-direction: column;
1798 .network-status-table .ifacebox-body > span {
1803 .network-status-table .ifacebox-body > div {
1808 .network-status-table .ifacebox-body .ifacebadge {
1809 align-items: center;
1812 margin: .5em .25em 0 .25em;
1814 background-color: #fff;
1818 .cbi-input-textarea {
1819 font-family: monospace;
1837 background-color: #101010;
1838 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1845 /* config changes */
1847 font-family: monospace;
1850 .uci-change-list ins,
1851 .uci-change-legend-label ins {
1854 text-decoration: none;
1855 border: thin solid #0f0;
1856 background-color: #cfc;
1859 .uci-change-list del,
1860 .uci-change-legend-label del {
1864 text-decoration: none;
1865 border: thin solid #f00;
1866 background-color: #fcc;
1869 .uci-change-list var,
1870 .uci-change-legend-label var {
1874 text-decoration: none;
1875 border: thin solid #ccc;
1876 background-color: #eee;
1879 .uci-change-list var ins,
1880 .uci-change-list var del {
1887 .uci-change-legend {
1891 .uci-change-legend-label {
1896 .uci-change-legend-label > ins,
1897 .uci-change-legend-label > del,
1898 .uci-change-legend-label > var {
1906 .uci-change-legend-label var ins,
1907 .uci-change-legend-label var del {
1912 .uci-change-list var,
1913 .uci-change-list del,
1914 .uci-change-list ins {
1922 border: thin solid #d4d4d4 !important;
1926 [data-page="admin-status-realtime-bandwidth"] #bwsvg {
1927 border-top: 0 !important;
1932 display: inline-flex;
1933 flex-direction: column;
1935 border-bottom: thin solid #ccc;
1936 background-color: #f9f9f9;
1937 box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 0, 0, .2);
1945 .ifacebox-head.active {
1946 background: #5bc0de;
1947 background: var(--bar-bg);
1959 display: inline-block;
1960 padding: .2rem .5rem;
1963 .zonebadge .ifacebadge {
1964 margin: .1rem .2rem;
1965 padding: .2rem .3rem;
1966 border: thin solid #6c6c6c;
1969 .zonebadge > input[type="text"] {
1972 padding: .16rem 1rem;
1976 .zonebadge > strong {
1977 display: inline-block;
1981 .cbi-value-field .cbi-input-checkbox,
1982 .cbi-value-field .cbi-input-radio {
1986 .cbi-value-field > ul > li {
1990 .cbi-value-field > ul > li > label {
1994 .cbi-value-field > ul > li .ifacebadge {
1997 background-color: #eee;
2000 .cbi-section-table-row > .cbi-value-field .cbi-dropdown {
2004 .cbi-section-create {
2005 display: inline-flex;
2006 align-items: center;
2010 .cbi-section-create > * {
2014 .cbi-section-remove {
2019 td.cbi-value-field var,
2020 .td.cbi-value-field var {
2026 padding: 1rem 1rem 0 1rem;
2027 border-top: thin solid #ccc;
2030 .cbi-dropdown-container {
2034 .cbi-tooltip-container,
2036 span[data-tooltip] .label {
2037 cursor: help !important;
2045 transition: opacity .25s ease-out;
2047 pointer-events: none;
2051 box-shadow: 0 0 2px #444;
2054 .cbi-tooltip-container:hover .cbi-tooltip {
2056 transition: opacity .25s ease-in;
2060 .zonebadge .cbi-tooltip {
2061 margin: -1.5rem 0 0 -.5rem;
2063 background: inherit;
2068 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);
2076 .zone-forwards > * {
2080 .zone-forwards > span {
2086 .zone-forwards .zone-src,
2087 .zone-forwards .zone-dest {
2089 flex-direction: column;
2095 padding: .3rem .8rem;
2096 white-space: nowrap;
2097 text-decoration: none;
2098 text-transform: uppercase;
2099 color: #fff !important;
2101 background-color: #bfbfbf;
2105 label > input[type="checkbox"],
2106 label > input[type="radio"] {
2111 vertical-align: bottom;
2114 label[data-index][data-depends] {
2129 background-color: rgba(0, 0, 0, .56);
2133 #diag-rc-output > pre,
2134 #command-rc-output > pre,
2135 [data-page="admin-services-wol"] .notice code {
2137 font-size-adjust: .35;
2138 line-height: normal;
2145 background-color: #101010;
2146 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2149 [data-page="admin-network-diagnostics"] .table {
2154 input[name="traceroute"],
2155 input[name="nslookup"] {
2159 /* fix Main Login */
2160 .node-main-login > .main > .main-left {
2164 .node-main-login > .main > .main-right {
2168 .node-main-login > .main fieldset {
2171 margin-bottom: 1rem;
2178 .node-main-login > .main .cbi-value-title {
2182 .node-main-login > .main #maincontent {
2186 .node-main-login > .main .container {
2187 display: inline-block;
2188 margin-top: 2rem !important;
2189 padding: 1rem 3.5rem 2rem;
2191 background-color: #fff;
2192 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2195 .node-main-login > .main form > div:last-child {
2199 .node-main-login > .main .cbi-value {
2203 .node-main-login > .main .cbi-value > * {
2204 display: inline-block !important;
2207 .node-main-login > .main .cbi-input-text {
2208 width: 100% !important;
2212 .node-main-login .cbi-section {
2216 @media screen and (min-height: 585px) {
2217 .node-main-login footer {
2225 .node-status-overview > .main fieldset:nth-child(4) .td:nth-child(2),
2226 .node-status-processes > .main .table .tr .td:nth-child(3) {
2227 white-space: normal;
2230 /* fix system reboot */
2231 [data-page="admin-system-reboot"] p {
2235 [data-page="admin-system-reboot"] p > span {
2242 #cbi-samba [data-tab="template"] .cbi-value-field {
2246 #cbi-samba [data-tab="template"] .cbi-value-title {
2248 padding-bottom: .6rem;
2252 .controls > * > .btn:not([aria-label$="page"]) {
2253 flex-grow: initial !important;
2257 .controls > #pager > .btn[aria-label$="page"] {
2262 .controls > * > label {
2263 margin-bottom: .2rem;
2266 [data-page="admin-system-opkg"] div.btn {
2269 padding: .3rem .6rem;
2272 [data-page^="admin-system-admin"]:not(.node-main-login) .cbi-map:not(#cbi-dropbear),
2273 [data-page="admin-system-opkg"] #maincontent > .container {
2278 [data-page="admin-system-opkg"] #maincontent > .container {
2280 margin-bottom: 1rem;
2285 white-space: normal !important;
2286 word-break: break-word;
2289 .cbi-tabmenu + .cbi-section {
2293 /* wireless overview */
2294 #cbi-wireless > #wifi_assoclist_table > .tr {
2295 box-shadow: inset 1px -1px 0 #ddd, inset -1px -1px 0 #ddd;
2298 #cbi-wireless > #wifi_assoclist_table > .tr.placeholder > .td {
2302 border-top: thin solid #ddd !important;
2305 #cbi-wireless > #wifi_assoclist_table > .tr.table-titles {
2306 box-shadow: inset 1px 0 0 #ddd, inset -1px 0 0 #ddd;
2309 #cbi-wireless > #wifi_assoclist_table > .tr.table-titles > .th {
2310 border-bottom: thin solid #ddd;
2311 box-shadow: 0 -1px 0 0 #ddd;
2314 #wifi_assoclist_table > .tr > .td[data-title="RX Rate / TX Rate"] {
2324 margin: 2rem 2rem 0 0;
2329 #cbi-firewall-redirect table *,
2330 #cbi-network-switch_vlan table *,
2331 #cbi-firewall-zone table * {
2335 #cbi-firewall-redirect table input[type="text"],
2336 #cbi-network-switch_vlan table input[type="text"],
2337 #cbi-firewall-zone table input[type="text"] {
2341 #cbi-firewall-redirect table select,
2342 #cbi-network-switch_vlan table select,
2343 #cbi-firewall-zone table select {
2347 #cbi-network-switch_vlan .th,
2348 #cbi-network-switch_vlan .td {
2352 #cbi-firewall-zone .table,
2353 #cbi-network-switch_vlan .table {
2357 #cbi-firewall-zone .td,
2358 #cbi-network-switch_vlan .td {
2362 /* applyreboot fix */
2363 #applyreboot-container {
2367 #applyreboot-section {
2372 /* openvpn bug fix */
2374 line-height: initial !important;
2377 /* custom commands */
2379 width: 24% !important;
2380 margin: 10px 0 0 10px !important;
2381 padding: .5rem 1rem;
2382 border-bottom: thin solid #ccc;
2384 box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
2388 line-height: normal !important;
2390 margin: 6px 0 !important;
2391 white-space: nowrap;
2392 text-overflow: ellipsis;
2396 left: auto !important;
2405 white-space: nowrap;
2406 text-overflow: ellipsis;
2409 .commandbox code:hover {
2412 white-space: normal;
2415 .commandbox p:first-of-type {
2419 .commandbox p:nth-of-type(2) {
2423 [data-page^="admin-system-commands"] .panel-title,
2424 [data-page^="command-cfg"] .mobile-hide,
2425 [data-page^="command-cfg"] .showSide {
2429 #command-rc-output .alert-message {
2430 line-height: 1.42857143;
2436 animation: anim-fade-in 1.5s forwards;
2437 word-break: break-word;
2441 @keyframes anim-fade-in {
2448 @media all and (-ms-high-contrast: none) {
2449 .main > .main-left > .nav > .slide > .menu::before {
2453 .main > .main-left > .nav > li:last-child::before {
2462 @media screen and (max-width: 1600px) {
2463 header > .fill > .container > #logo {
2464 margin: 0 2.5rem 0 .5rem;
2468 width: calc(0% + 13rem);
2472 width: calc(100% - 13rem);
2478 padding: .3rem .6rem;
2482 padding: .2rem .6rem;
2492 padding-right: .6rem;
2495 .cbi-value-field .cbi-dropdown,
2496 .cbi-value-field .cbi-input-select,
2497 .cbi-value input[type="text"],
2498 .cbi-value input[type="password"] {
2502 #cbi-firewall-zone .cbi-input-select {
2506 .cbi-input-textarea {
2510 .node-admin-status > .main fieldset li > a {
2511 padding: .3rem .6rem;
2515 @media screen and (max-width: 1366px) {
2520 header > .fill > .container {
2527 height: calc(100% - 3.5rem);
2532 width: calc(0% + 13rem);
2533 height: calc(100% - 3.5rem);
2537 width: calc(100% - 13rem);
2541 .cbi-tabmenu > li > a {
2542 padding: .2rem .5rem;
2547 padding-bottom: 1rem;
2551 font-size: .7rem !important;
2552 width: 100% !important;
2555 .table .cbi-input-text {
2559 .cbi-value-field .cbi-dropdown,
2560 .cbi-value-field .cbi-input-select,
2561 .cbi-value input[type="text"],
2562 .cbi-value input[type="password"] {
2566 #cbi-firewall-zone .cbi-input-select {
2570 .main > .main-left > .nav > li,
2571 .main > .main-left > .nav > li a,
2572 .main > .main-left > .nav > .slide > .menu,
2573 .main > .main-left > .nav > li > [data-title="Logout"] {
2577 .main > .main-left > .nav > .slide > .slide-menu > li > a {
2585 [data-page="admin-network-firewall-forwards"] .table:not(.cbi-section-table) {
2589 [data-page="admin-network-firewall-forwards"] .table:not(.cbi-section-table),
2590 [data-page="admin-network-firewall-rules"] .table:not(.cbi-section-table),
2591 [data-page="admin-network-hosts"] .table,
2592 [data-page="admin-network-routes"] .table {
2593 overflow-y: visible;
2597 width: 32% !important;
2601 @media screen and (max-width: 1152px) {
2602 header > .fill > .container > #logo {
2606 header > .fill > .container > .brand {
2612 overflow-y: visible;
2615 .main > .loading > span {
2632 display: inline-flex;
2633 align-items: center;
2636 margin-right: .7rem;
2646 background: url(./icons/menu.svg) no-repeat center;
2649 body:not(.logged-in) .showSide {
2655 .node-main-login > .main .cbi-value-title {
2661 padding-right: 1rem;
2664 .cbi-value-field .cbi-dropdown,
2665 .cbi-value-field .cbi-input-select,
2666 .cbi-value input[type="text"] {
2671 .cbi-value input[type="password"],
2672 .cbi-value input[name^="pw"],
2673 .cbi-value input[data-update="change"]:nth-child(2) {
2674 width: 13rem !important;
2678 #diag-rc-output > pre,
2679 #command-rc-output > pre,
2680 [data-page="admin-services-wol"] .notice code {
2688 .Interfaces .table {
2698 flex-direction: row;
2702 .Overview .table[width="100%"] > .tr {
2707 border-bottom: thin solid #ddd;
2710 .tr.placeholder > .td,
2711 #cbi-firewall .tr > .td,
2712 #cbi-network .tr:nth-child(2) > .td,
2713 .cbi-section #wifi_assoclist_table .tr > .td {
2719 display: inline-block;
2720 align-self: flex-start;
2722 text-overflow: ellipsis;
2723 word-wrap: break-word;
2727 .td input[type="text"] {
2732 .td [data-dynlist] > input,
2733 .td input.cbi-input-password {
2734 width: calc(100% - 1.5rem);
2737 .td[data-type="button"],
2738 .td[data-type="fvalue"] {
2743 .th.cbi-value-field,
2744 .td.cbi-value-field,
2745 .th.cbi-section-table-cell,
2746 .td.cbi-section-table-cell {
2751 .cbi-section-table-row {
2753 flex-direction: row;
2755 justify-content: space-between;
2756 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2759 .td.cbi-value-field,
2760 .cbi-section-table-cell {
2761 display: inline-block;
2767 .td.cbi-section-actions {
2768 vertical-align: bottom;
2772 .tr.cbi-section-table-titles,
2773 .tr.cbi-section-table-descr {
2777 .tr[data-title]::before,
2778 .tr.cbi-section-table-titles.named::before {
2782 border-bottom: thin solid rgba(0, 0, 0, .26);
2783 background: #90c0e0;
2787 [data-page^="admin-status-realtime"] .td[id] {
2791 .td[data-title]::before {
2795 .cbi-button + .cbi-button {
2799 .td.cbi-section-actions > * > *,
2800 .td.cbi-section-actions > * > form > * {
2805 position: static !important;
2808 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2811 .Firewall form input {
2812 width: 100% !important;
2818 .Firewall .center::before {
2819 text-align: left !important;
2823 width: 100% !important;
2824 margin-left: 0 !important;
2828 @media screen and (max-width: 600px) {
2833 .cbi-progressbar::after {
2847 #maincontent > .container {
2848 margin: 0 1rem 1.5rem 1rem;
2851 .main > .main-left > .nav > .slide > .menu,
2852 .main > .main-left > .nav > li > [data-title="Logout"] {
2856 .main > .main-left > .nav > .slide > .slide-menu > li > a {
2862 min-width: 0 !important;
2868 .cbi-value-description,
2870 .cbi-value-field .cbi-dropdown,
2871 .cbi-value-field .cbi-input-select,
2872 .cbi-value input[type="text"] {
2876 .cbi-value > .cbi-value-field {
2877 display: inline-block;
2881 .cbi-tabmenu > li > a {
2883 padding: .2rem .3rem;
2886 .cbi-page-actions > div > input {
2890 .cbi-page-actions > .cbi-button {
2894 .node-main-login > .main .container {
2895 margin: 2rem 1.2rem 1.5rem 1.2rem !important;
2896 padding: .3rem 1.7rem 2rem 1.6rem;
2899 .node-main-login > .main .cbi-value {
2903 .node-main-login > .main form > div:last-child {
2907 .node-main-login > .main .cbi-value-title {
2909 width: 100% !important;
2912 .node-main-login > .main fieldset {
2917 .commandbox p:first-of-type {
2922 #diag-rc-output > pre,
2923 #command-rc-output > pre,
2924 [data-page="admin-services-wol"] .notice code {
2925 font-size: .8rem !important;
2951 padding-bottom: 1rem;
2954 .node-system-packages > .main .cbi-value.cbi-value-last > div {
2955 width: 100% !important;
2958 .node-system-packages > .main .cbi-value .cbi-value-field input {
2967 .td.cbi-value-field {
2971 .td.cbi-value-field[data-type="button"],
2972 .td.cbi-value-field[data-type="fvalue"] {
2977 .tr[data-title]::before,
2978 .tr.cbi-section-table-titles.named::before {
2987 #cbi-wireless > #wifi_assoclist_table .td {
2991 #cbi-wireless > .cbi-section-node .td,
2992 .Interfaces .td.cbi-section-actions {
2993 text-align: center !important;
2996 [data-page="admin-status-processes"] .td[data-title="Hang Up"]::before,
2997 [data-page="admin-status-processes"] .td[data-title="Terminate"]::before,
2998 [data-page="admin-status-processes"] .td[data-title="Kill"]::before {
3003 .hide-xs:not([data-title="MAC-Address"]) {
3008 @media screen and (min-width: 600px) {
3009 ::-webkit-scrollbar {
3014 ::-webkit-scrollbar,
3015 ::-webkit-scrollbar-corner {
3016 background: transparent;
3019 ::-webkit-scrollbar-thumb {
3020 background: #9e9e9e;
3023 ::-webkit-scrollbar-thumb:hover {
3024 background: #757575;
3027 ::-webkit-scrollbar-thumb:active {
3028 background: #424242;