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;
80 .td[width="33%"]~.td {
97 flex: 1 1 30px !important;
101 flex: 2 2 60px !important;
105 flex: 3 3 90px !important;
109 flex: 4 4 120px !important;
113 flex: 5 5 150px !important;
117 flex: 6 6 180px !important;
121 flex: 7 7 210px !important;
125 flex: 8 8 240px !important;
129 flex: 9 9 270px !important;
133 flex: 10 10 300px !important;
137 box-sizing: border-box;
154 font-family: inherit;
156 line-height: 1.1 !important;
162 -webkit-text-size-adjust: 100%;
163 -ms-text-size-adjust: 100%;
168 background-color: #eee;
173 font-family: "Microsoft Yahei", "WenQuanYi Micro Hei", "sans-serif", "Helvetica Neue", "Helvetica", "Hiragino Sans GB";
174 font-family: var(--font-body);
181 padding: .36rem .8rem;
183 border: thin solid #ccc;
184 background-color: #fff;
185 background-image: none;
195 color: rgba(0, 0, 0, .87);
197 border-bottom: 2px solid rgba(0, 0, 0, .26);
200 background-color: transparent;
201 background-image: none;
212 select:not([multiple="multiple"]):focus,
213 input:not(.cbi-button):focus,
214 .cbi-dropdown:focus {
216 border-color: var(--main-color);
220 select[multiple="multiple"] {
230 font-size-adjust: .35;
239 text-decoration: underline;
260 transition: box-shadow .2s;
261 box-shadow: 0 2px 5px rgba(0, 0, 0, .26);
271 text-shadow: 0 0 2px #bbb;
275 text-decoration: none;
281 line-height: 1.42857143;
291 height: calc(100% - 4rem);
302 pointer-events: none;
303 background-color: rgb(240, 240, 240);
304 transition: visibility 400ms, opacity 400ms;
307 .main > .loading > span {
308 font-family: monospace;
310 font-size-adjust: .35;
318 .main > .loading > span > .loading-img {
322 display: inline-block;
326 animation: anim-rotate 2s infinite linear;
327 background: url(./icons/spinner.svg) no-repeat center;
330 @keyframes anim-rotate {
332 -webkit-transform: rotate(0);
333 -ms-transform: rotate(0);
334 transform: rotate(0);
337 -webkit-transform: rotate(360deg);
338 -ms-transform: rotate(360deg);
339 transform: rotate(360deg);
349 width: calc(0% + 15rem);
351 height: calc(100% - 4rem);
352 background-color: #fff;
353 background-color: var(--menu-bg-color);
354 transition: visibility 400ms, width 400ms;
360 width: calc(100% - 15rem);
362 background-color: #eee;
365 .main-right > #maincontent {
366 background-color: #eee;
381 [disabled="disabled"] {
382 pointer-events: none;
387 color: var(--header-color);
389 background: var(--header-bg);
392 header > .fill > .container {
394 padding: .5rem 1rem 0 1rem;
395 -webkit-user-select: none;
396 -moz-user-select: none;
397 -ms-user-select: none;
401 header > .fill > .container > #logo {
402 margin: 0 3.5rem 0 1.5rem;
405 header > .fill > .container > #logo > img {
406 width: calc(0% + 10rem);
410 header > .fill > .container > .brand {
414 vertical-align: text-bottom;
415 text-decoration: none;
417 color: var(--header-color);
420 header > .fill > .container > .status {
427 header > .fill > .container > .status > * {
440 color: var(--header-color);
442 background: var(--header-bg);
444 transition: box-shadow .2s;
445 box-shadow: 0 2px 5px rgb(0 0 0 / 26%);
458 padding: .3rem .8rem;
460 text-decoration: none;
461 text-transform: uppercase;
462 color: #fff !important;
464 background-color: #bfbfbf;
468 #modemenu > li > a.active {
469 background-color: #002B49 !important;
472 #modemenu > li.divider {
474 margin-right: .25rem;
475 border: .5rem solid var(--submenu-bg-hover);
476 border-left: 1px solid var(--submenu-bg-hover);
477 border-right: 1px solid var(--submenu-bg-hover);
486 background-color: #ff7d60 !important;
490 background-color: #f0e68c !important;
494 background-color: #5cb85c !important;
498 [data-indicator]:not([data-style="inactive"]) {
499 background-color: #002B49 !important;
512 border-radius: 0 !important;
513 background-color: #fff;
514 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
515 text-shadow: 1px 1px rgba(0, 0, 0, .1);
518 .alert-message > h4 {
527 .alert-message .btn {
528 padding: .3rem .6rem;
532 .container .alert-message {
536 .main > .main-left > .nav {
540 .main > .main-left > .nav > li {
542 -webkit-user-select: none;
543 -moz-user-select: none;
544 -ms-user-select: none;
548 .main > .main-left > .nav > li:last-child {
551 margin: 2rem 0 1rem 0;
555 .main > .main-left > .nav > li a {
558 color: var(--menu-color);
561 .main > .main-left > .nav > li.active > a {
565 .main > .main-left > .nav > li.active {
566 background-color: #09c;
567 background-color: var(--submenu-bg-hover-active);
570 .main > .main-left > .nav > li.slide.active {
571 background-color: unset;
574 .main > .main-left > .nav > .slide {
578 .main > .main-left > .nav > .slide > ul {
582 .main > .main-left > .nav > .slide.active > ul {
586 .main > .main-left > .nav > .slide > .menu,
587 .main > .main-left > .nav > li > [data-title] {
594 text-decoration: none;
596 color: var(--main-menu-color);
599 .main > .main-left > .nav > .slide > .menu::before {
605 background: url(./icons/arrow.svg) no-repeat;
608 .main > .main-left > .nav > .slide > .menu.active::before {
609 transform: rotate(-180deg);
612 body[class*="node-"] > .main > .main-left > .nav > .slide > .menu::before {
613 transition: transform .1s ease-in-out;
616 body[class*="node-"] > .main > .main-left > .nav > .slide > .menu.active::before {
617 transition: transform .2s ease-in-out;
620 .main > .main-left[style*="overflow: hidden"] > .nav > .slide > .menu::before {
624 .main > .main-left > .nav > li:last-child::before {
629 content: url(./icons/logout.svg);
632 .main > .main-left > .nav > li:hover,
633 .main > .main-left > .nav > .slide > .menu:hover {
635 background: var(--submenu-bg-hover);
638 .main > .main-left > .nav > .slide:hover {
642 .main > .main-left > .nav > .slide > .slide-menu > .active {
643 background-color: #09c;
644 background-color: var(--submenu-bg-hover-active);
647 .main > .main-left > .nav > .slide > .slide-menu > li > a {
649 text-decoration: none;
653 .main > .main-left > .nav > .slide > .slide-menu > .active > a {
657 .main > .main-left > .nav > .slide > .slide-menu > li:hover {
659 background: var(--submenu-bg-hover);
662 .main > .main-left > .nav > .slide > .slide-menu > li:not(.active):hover > a {
664 color: var(--menu-color-hover);
667 .main > .main-left > .nav > .slide > .slide-menu > .active:hover {
668 background-color: #09c;
669 background-color: var(--main-color);
673 .main > .main-left > .nav > .slide > .menu,
674 .main > .main-left > .nav > .slide > .slide-menu > li,
675 .main > .main-left > .nav > li:last-child {
678 transform: translate3d(0, 0, 0);
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 {
691 transition: transform .5s, opacity 1s;
692 transform: scale(10, 10);
693 pointer-events: none;
695 background-image: radial-gradient(circle, #000 10%, transparent 10.01%);
696 background-repeat: no-repeat;
697 background-position: 50%;
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 {
704 transform: scale(0, 0);
708 #maincontent > .container {
709 margin: 0 2rem 1rem 2rem;
717 list-style-type: none;
722 padding-bottom: 10px;
723 border-bottom: thin solid #eee;
729 padding-bottom: 10px;
730 border-bottom: thin solid #eee;
736 padding-bottom: 10px;
742 padding-bottom: 10px;
748 padding-bottom: 10px;
755 #cbi-network > .cbi-section-node,
756 #cbi-wireless > .cbi-section-node,
757 #cbi-wireless > #wifi_assoclist_table,
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;
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);
774 .cbi-modal .cbi-section,
775 .cbi-section .cbi-section {
780 .cbi-modal .cbi-tabmenu {
787 line-height: 1.42857143;
792 .cbi-map-descr + fieldset {
796 .cbi-section > legend {
797 display: none !important;
801 .cbi-section > .cbi-section {
808 .cbi-section > h3:first-child,
815 margin-bottom: .5rem;
816 padding-bottom: 1rem;
818 border-bottom: thin solid #eee;
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 {
831 border-collapse: collapse;
838 box-shadow: 0 0 0 1px #ddd;
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 {
858 .container > .cbi-section:first-of-type > .table[width="100%"] > .tr > .td {
862 .cbi-section-table-cell {
864 align-self: flex-end;
872 .cbi-section-table-row::before,
873 #cbi-wireless > #wifi_assoclist_table > .tr:nth-child(2) {
874 border-top: thin solid #ddd;
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;
886 .table[width="100%"] > .tr:first-child > .td {
890 .cbi-section-table-row {
892 text-align: center !important;
896 .cbi-section-table-row:last-child {
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 {
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);
912 .cbi-section-table-row .td {
913 text-align: center !important;
916 div > table > tbody > tr:nth-of-type(2n),
917 div > .table > .tr:nth-of-type(2n) {
918 background-color: #f9f9f9;
921 /* fix multiple 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 {
938 display: inline-block;
939 width: auto !important;
942 -webkit-user-select: none;
943 -moz-user-select: none;
944 -ms-user-select: none;
946 transition: all .2s ease-in-out;
948 vertical-align: middle;
950 text-decoration: none;
951 text-transform: uppercase;
952 color: rgba(0, 0, 0, .87);
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;
965 display: inline-block;
967 padding: .2rem .3rem;
968 color: transparent !important;
969 background: url(./icons/arrow.svg) no-repeat center;
970 background-size: 12px 20px;
974 transform: scaleY(-1);
977 .cbi-button:not(select) {
978 -webkit-appearance: none !important;
981 .cbi-button + .cbi-button {
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;
1006 .item:focus::after {
1007 box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
1012 .item:active::after {
1013 box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .23);
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);
1021 .cbi-button-up:active {
1022 box-shadow: 0 -10px 20px rgba(0, 0, 0, .19), 0 -6px 6px rgba(0, 0, 0, .23);
1026 .cbi-button:disabled {
1027 cursor: not-allowed;
1028 pointer-events: none;
1034 .alert-message [class="btn"],
1035 .modal div[class="btn"],
1040 .cbi-button-neutral,
1041 .cbi-button[name="zero"],
1042 .cbi-button[name="restart"],
1043 .cbi-button[onclick="hide_empty(this)"] {
1045 border: thin solid #bfbfbf;
1046 background-color: #d4d4d4;
1051 .cbi-page-actions .cbi-button-save,
1052 .cbi-page-actions .cbi-button-apply + .cbi-button-save,
1055 .cbi-button-positive,
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;
1063 border: thin solid #2e6da4;
1064 background-color: #337ab7;
1068 .cbi-page-actions .cbi-button-apply,
1069 .cbi-section-actions .cbi-button-edit,
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;
1080 border: thin solid #46b8da;
1081 background-color: #5bc0de;
1086 .cbi-section-remove > .cbi-button,
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;
1096 border: thin solid #d43f3a;
1097 background-color: #d9534f;
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;
1110 border: thin solid #eea236;
1111 background-color: #f0ad4e;
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;
1122 border: thin solid #4cae4c;
1123 background-color: #5cb85c;
1126 .cbi-page-actions .cbi-button-link:first-child {
1131 text-decoration: none;
1134 .cbi-value-field .cbi-button-add {
1136 margin: 9px 0 4px 3px;
1142 padding-left: .5rem;
1143 background-color: #fff;
1148 display: inline-block;
1154 padding-bottom: .4rem;
1155 border-bottom: .2rem solid transparent;
1158 .tabs > li[class~="active"],
1160 border-bottom-color: #09c;
1161 border-bottom-color: var(--main-color);
1166 border-bottom-color: #c9c9c9;
1170 .cbi-tabmenu > li > a {
1171 padding: .6rem .9rem;
1172 text-decoration: none;
1176 .tabs > li[class~="active"] > a {
1178 color: var(--main-color);
1182 border: thin solid #d4d4d4;
1186 .cbi-tabmenu > li:hover {
1187 background-color: #f1f1f1;
1190 .cbi-tabmenu > li[class~="cbi-tab"] {
1191 background-color: #fff;
1195 background-color: #d4d4d4;
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;
1208 padding: 0rem 1rem !important;
1211 [data-tab-active="true"] {
1215 transition: opacity .25s ease-in;
1216 margin: inherit !important;
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;
1224 .cbi-section-node-tabbed {
1227 border: thin solid #d4d4d4;
1231 .cbi-tabcontainer > .cbi-value:nth-of-type(2n) {
1232 background-color: #f9f9f9;
1236 .cbi-value-description {
1238 display: table-cell;
1241 .cbi-value-description {
1248 display: table-cell;
1251 padding-top: .35rem;
1252 padding-right: 2rem;
1254 word-wrap: break-word;
1258 display: inline-block;
1260 padding: .35rem 1rem .2rem 1rem;
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"] {
1274 #cbi-firewall-zone .cbi-input-select,
1275 #cbi-network-switch_vlan .cbi-input-select {
1279 #cbi-network-switch_vlan .cbi-input-text {
1283 .cbi-input-invalid {
1285 border-bottom-color: #f00;
1288 .cbi-section-error {
1290 line-height: 1.42857143;
1293 border: thin solid #f00;
1295 background-color: #fce6e6;
1298 .cbi-section-error ul {
1302 .cbi-section-error ul li {
1307 .td[data-title]::before {
1311 content: attr(data-title) ":\20";
1313 white-space: nowrap;
1316 .tr.placeholder .td[data-title]::before {
1320 .tr[data-title]::before,
1321 .tr.cbi-section-table-titles.named::before {
1323 display: table-cell;
1327 content: attr(data-title) "\20";
1329 vertical-align: middle;
1330 white-space: normal;
1331 word-wrap: break-word;
1335 background-color: #f9f9f9;
1339 background-color: #eee;
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;
1348 .cbi-section-table .cbi-section-table-titles .cbi-section-table-cell {
1349 width: auto !important;
1352 .td.cbi-section-actions {
1353 text-align: right !important;
1354 vertical-align: middle;
1357 .td.cbi-section-actions > * {
1358 display: inline-flex;
1361 .td.cbi-section-actions > * > *,
1362 .td.cbi-section-actions > * > form > * {
1366 .td.cbi-section-actions > * > form {
1367 display: inline-flex;
1374 flex-direction: column;
1379 .cbi-dynlist > .item {
1383 padding: .5em .25em .25em 0;
1384 pointer-events: none;
1386 border-bottom: 2px solid rgba(0, 0, 0, .26);
1390 .cbi-dynlist[name="sshkeys"] > .item {
1394 .cbi-dynlist > .item::after {
1399 display: inline-flex;
1403 pointer-events: auto;
1405 border: thin solid #d43f3a;
1406 background-color: #d9534f;
1409 .cbi-dynlist > .item > span {
1410 white-space: normal;
1411 word-break: break-word;
1414 .cbi-dynlist > .add-item {
1415 display: inline-flex;
1416 align-items: center;
1421 .cbi-dynlist > .add-item:not([ondrop]) > input {
1425 white-space: nowrap;
1426 text-overflow: ellipsis;
1429 .cbi-dynlist > .add-item[ondrop] > input {
1436 display: inline-flex;
1440 .cbi-dropdown[placeholder*="select"] {
1446 .cbi-dropdown > ul {
1451 margin: 0 !important;
1457 .cbi-dropdown > ul.preview {
1461 .cbi-dropdown > .open {
1465 .cbi-dropdown > .open,
1466 .cbi-dropdown > .more {
1471 flex-direction: column;
1474 justify-content: center;
1484 padding-bottom: 0px;
1488 .cbi-dropdown.btn > .open {
1494 .cbi-dropdown.btn > div {
1498 .cbi-dropdown > .more,
1499 .cbi-dropdown > ul > li[placeholder] {
1503 text-shadow: 1px 1px 0 #fff;
1506 .cbi-dropdown > ul > li {
1509 align-items: center;
1515 white-space: nowrap;
1516 text-overflow: ellipsis;
1519 .cbi-dropdown > ul > li .hide-open {
1523 .cbi-dropdown > ul > li .hide-close {
1527 .cbi-dropdown > ul > li[display]:not([display="0"]) {
1528 border-left: thin solid #ccc;
1531 .cbi-dropdown[empty] > ul {
1535 .cbi-dropdown > ul > li > form {
1539 pointer-events: none;
1542 .cbi-dropdown > ul > li img {
1543 margin-right: .25em;
1544 vertical-align: middle;
1547 .cbi-dropdown > ul > li > form > input[type="checkbox"] {
1552 .cbi-dropdown > ul > li input[type="text"] {
1556 .cbi-dropdown[open] > ul.dropdown {
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);
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 {
1578 align-items: center;
1582 .cbi-dropdown[empty] > ul > li,
1583 .cbi-dropdown[optional][open] > ul.dropdown > li[placeholder],
1584 .cbi-dropdown[multiple][open] > ul.dropdown > li > form {
1588 .cbi-dropdown[open] > ul.dropdown > li .hide-open {
1592 .cbi-dropdown[open] > ul.dropdown > li .hide-close {
1596 .cbi-dropdown[open] > ul.dropdown > li {
1597 border-bottom: thin solid #ccc;
1600 .cbi-dropdown[open] > ul.dropdown > li[selected] {
1601 background: #b0d0f0;
1604 .cbi-dropdown[open] > ul.dropdown > li.focus {
1605 background: linear-gradient(90deg, #a3c2e8 0%, #84aad9 100%);
1608 .cbi-dropdown[open] > ul.dropdown > li:last-child {
1613 .cbi-dropdown[open] > ul.dropdown > li[unselectable] {
1617 .cbi-dropdown[open] > ul.dropdown > li > input.create-item-input:first-child:last-child {
1621 .cbi-dropdown[disabled] {
1622 pointer-events: none;
1626 .cbi-dropdown .zonebadge {
1630 .cbi-dropdown[open] .zonebadge {
1640 border: thin solid #999;
1644 .cbi-progressbar > div {
1647 transition: width .25s ease-in;
1648 background: #5bc0de;
1649 background: var(--bar-bg);
1652 .cbi-progressbar::after {
1653 font-family: monospace;
1655 font-size-adjust: .38;
1656 line-height: normal;
1663 content: attr(title);
1666 text-overflow: ellipsis;
1667 text-shadow: 0 0 2px #eee;
1678 transition: opacity .125s ease-in;
1680 background: rgba(0, 0, 0, .7);
1681 -webkit-overflow-scrolling: touch;
1686 align-items: center;
1694 border-radius: 3px !important;
1696 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1700 line-height: normal;
1702 margin-bottom: .5em;
1709 font-size-adjust: .35;
1711 margin-bottom: .5em;
1714 white-space: pre-wrap;
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);
1727 word-break: break-word;
1731 list-style-type: square;
1736 padding-left: .25rem;
1737 word-break: break-word;
1743 align-items: center;
1744 white-space: normal;
1746 text-transform: none;
1747 padding-bottom: 0.2rem;
1748 padding-top: 0.2rem;
1751 .modal label.warning {
1752 background-color: #f0ad4e !important;
1760 body.modal-overlay-active {
1765 body.modal-overlay-active #modal_overlay {
1773 padding-left: 32px !important;
1783 background: url(../resources/icons/loading.gif) no-repeat center;
1784 background-size: 16px;
1794 text-align: left !important;
1799 text-align: right !important;
1804 text-align: center !important;
1808 align-self: flex-start !important;
1809 vertical-align: top !important;
1813 align-self: flex-end !important;
1814 vertical-align: bottom !important;
1826 .cbi-page-actions > form[method="post"] {
1827 display: inline-block;
1830 .th[data-type="button"],
1831 .td[data-type="button"],
1832 .th[data-type="fvalue"],
1833 .td[data-type="fvalue"] {
1839 display: inline-flex;
1841 padding: .5rem .8rem;
1842 border-bottom: thin solid #ccc;
1844 box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
1850 background-color: #f0f0f0;
1855 display: inline-block;
1856 align-self: flex-start;
1859 .network-status-table {
1864 .network-status-table .ifacebox {
1869 .network-status-table .ifacebox-body {
1871 flex-direction: column;
1875 .network-status-table .ifacebox-body > span {
1880 .network-status-table .ifacebox-body > div {
1885 .network-status-table .ifacebox-body .ifacebadge {
1886 align-items: center;
1889 margin: .5em .25em 0 .25em;
1891 background-color: #fff;
1895 .cbi-input-textarea {
1896 font-family: monospace;
1913 background-color: #101010;
1914 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1921 /* config changes */
1923 font-family: monospace;
1926 .uci-change-list ins,
1927 .uci-change-legend-label ins {
1930 text-decoration: none;
1931 border: thin solid #0f0;
1932 background-color: #cfc;
1935 .uci-change-list del,
1936 .uci-change-legend-label del {
1940 text-decoration: none;
1941 border: thin solid #f00;
1942 background-color: #fcc;
1945 .uci-change-list var,
1946 .uci-change-legend-label var {
1950 text-decoration: none;
1951 border: thin solid #ccc;
1952 background-color: #eee;
1955 .uci-change-list var ins,
1956 .uci-change-list var del {
1963 .uci-change-legend {
1967 .uci-change-legend-label {
1972 .uci-change-legend-label > ins,
1973 .uci-change-legend-label > del,
1974 .uci-change-legend-label > var {
1982 .uci-change-legend-label var ins,
1983 .uci-change-legend-label var del {
1988 .uci-change-list var,
1989 .uci-change-list del,
1990 .uci-change-list ins {
1998 border: thin solid #d4d4d4 !important;
2002 [data-page="admin-status-realtime-bandwidth"] #bwsvg {
2003 border-top: 0 !important;
2008 display: inline-flex;
2009 flex-direction: column;
2011 border-bottom: thin solid #ccc;
2012 background-color: #f9f9f9;
2013 box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 0, 0, .2);
2021 .ifacebox-head.active {
2022 background: #5bc0de;
2023 background: var(--bar-bg);
2035 display: inline-block;
2036 padding: .2rem .5rem;
2039 .zonebadge .ifacebadge {
2040 margin: .1rem .2rem;
2041 padding: .2rem .3rem;
2042 border: thin solid #6c6c6c;
2045 .zonebadge > input[type="text"] {
2048 padding: .16rem 1rem;
2052 .zonebadge > strong {
2053 display: inline-block;
2057 .cbi-value-field .cbi-input-checkbox,
2058 .cbi-value-field .cbi-input-radio {
2062 .cbi-value-field > ul > li {
2066 .cbi-value-field > ul > li > label {
2070 .cbi-value-field > ul > li .ifacebadge {
2073 background-color: #eee;
2076 .cbi-section-table-row > .cbi-value-field .cbi-dropdown {
2080 .cbi-section-create {
2081 display: inline-flex;
2082 align-items: center;
2086 .cbi-section-create > * {
2090 .cbi-section-remove {
2095 td.cbi-value-field var,
2096 .td.cbi-value-field var {
2102 padding: 1rem 1rem 0 1rem;
2103 border-top: thin solid #ccc;
2106 .cbi-dropdown-container {
2110 .cbi-tooltip-container,
2112 span[data-tooltip] .label {
2113 cursor: help !important;
2121 transition: opacity .25s ease-out;
2123 pointer-events: none;
2127 box-shadow: 0 0 2px #444;
2130 .cbi-tooltip-container:hover .cbi-tooltip {
2132 transition: opacity .25s ease-in;
2136 .zonebadge .cbi-tooltip {
2137 margin: -1.5rem 0 0 -.5rem;
2139 background: inherit;
2144 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);
2152 .zone-forwards > * {
2156 .zone-forwards > span {
2162 .zone-forwards .zone-src,
2163 .zone-forwards .zone-dest {
2165 flex-direction: column;
2172 padding: .3rem .8rem;
2173 white-space: nowrap;
2174 text-decoration: none;
2175 text-transform: uppercase;
2176 color: #fff !important;
2178 background-color: #bfbfbf;
2182 label > input[type="checkbox"],
2183 label > input[type="radio"] {
2184 margin-right: 0.8rem;
2187 label[data-index][data-depends] {
2201 background-color: rgba(0, 0, 0, .56);
2202 transition: opacity 400ms, visibility 400ms;
2208 #diag-rc-output > pre,
2209 #command-rc-output > pre,
2210 [data-page="admin-services-wol"] .notice code {
2212 font-size-adjust: .35;
2213 line-height: normal;
2220 background-color: #101010;
2221 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2224 [data-page="admin-network-diagnostics"] .table {
2229 input[name="traceroute"],
2230 input[name="nslookup"] {
2234 /* fix Main Login */
2235 .node-main-login > .main > .main-left {
2239 .node-main-login > .main > .main-right {
2243 .node-main-login > .main fieldset {
2246 margin-bottom: 1rem;
2253 .node-main-login > .main .cbi-value-title {
2257 .node-main-login > .main #maincontent {
2261 .node-main-login > .main .container {
2262 display: inline-block;
2263 margin-top: 2rem !important;
2264 padding: 1rem 3.5rem 2rem;
2266 background-color: #fff;
2267 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2270 .node-main-login > .main form > div:last-child {
2274 .node-main-login > .main .cbi-value {
2278 .node-main-login > .main .cbi-value > * {
2279 display: inline-block !important;
2282 .node-main-login > .main .cbi-input-text {
2283 width: 100% !important;
2287 .node-main-login .cbi-section {
2291 @media screen and (min-height: 585px) {
2292 .node-main-login footer {
2300 .node-status-overview > .main fieldset:nth-child(4) .td:nth-child(2),
2301 .node-status-processes > .main .table .tr .td:nth-child(3) {
2302 white-space: normal;
2305 /* fix system reboot */
2306 [data-page="admin-system-reboot"] p {
2310 [data-page="admin-system-reboot"] p > span {
2317 #cbi-samba [data-tab="template"] .cbi-value-field {
2321 #cbi-samba [data-tab="template"] .cbi-value-title {
2323 padding-bottom: .6rem;
2327 .controls > * > .btn:not([aria-label$="page"]) {
2328 flex-grow: initial !important;
2332 .controls > #pager > .btn[aria-label$="page"] {
2337 .controls > * > label {
2338 margin-bottom: .2rem;
2347 [data-page="admin-system-opkg"] div.btn {
2350 padding: .3rem .6rem;
2353 [data-page^="admin-system-admin"]:not(.node-main-login) .cbi-map:not(#cbi-dropbear),
2354 [data-page="admin-system-opkg"] #maincontent > .container {
2359 [data-page="admin-system-opkg"] #maincontent > .container {
2361 margin-bottom: 1rem;
2366 white-space: normal !important;
2367 word-break: break-word;
2370 .cbi-tabmenu + .cbi-section {
2374 /* wireless overview */
2375 #cbi-wireless > #wifi_assoclist_table > .tr {
2376 box-shadow: inset 1px -1px 0 #ddd, inset -1px -1px 0 #ddd;
2379 #cbi-wireless > #wifi_assoclist_table > .tr.placeholder > .td {
2383 border-top: thin solid #ddd !important;
2386 #cbi-wireless > #wifi_assoclist_table > .tr.table-titles {
2387 box-shadow: inset 1px 0 0 #ddd, inset -1px 0 0 #ddd;
2390 #cbi-wireless > #wifi_assoclist_table > .tr.table-titles > .th {
2391 border-bottom: thin solid #ddd;
2392 box-shadow: 0 -1px 0 0 #ddd;
2395 #wifi_assoclist_table > .tr > .td[data-title="RX Rate / TX Rate"] {
2405 margin: 2rem 2rem 0 0;
2410 #cbi-firewall-redirect table *,
2411 #cbi-network-switch_vlan table *,
2412 #cbi-firewall-zone table * {
2416 #cbi-firewall-redirect table input[type="text"],
2417 #cbi-network-switch_vlan table input[type="text"],
2418 #cbi-firewall-zone table input[type="text"] {
2422 #cbi-firewall-redirect table select,
2423 #cbi-network-switch_vlan table select,
2424 #cbi-firewall-zone table select {
2428 #cbi-network-switch_vlan .th,
2429 #cbi-network-switch_vlan .td {
2433 #cbi-firewall-zone .table,
2434 #cbi-network-switch_vlan .table {
2438 #cbi-firewall-zone .td,
2439 #cbi-network-switch_vlan .td {
2443 /* applyreboot fix */
2444 #applyreboot-container {
2448 #applyreboot-section {
2453 /* openvpn bug fix */
2455 line-height: initial !important;
2458 /* custom commands */
2460 width: 24% !important;
2461 margin: 10px 0 0 10px !important;
2462 padding: .5rem 1rem;
2463 border-bottom: thin solid #ccc;
2465 box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
2469 line-height: normal !important;
2471 margin: 6px 0 !important;
2472 white-space: nowrap;
2473 text-overflow: ellipsis;
2477 left: auto !important;
2486 white-space: nowrap;
2487 text-overflow: ellipsis;
2490 .commandbox code:hover {
2493 white-space: normal;
2496 .commandbox p:first-of-type {
2500 .commandbox p:nth-of-type(2) {
2504 [data-page^="admin-system-commands"] .panel-title,
2505 [data-page^="command-cfg"] .mobile-hide,
2506 [data-page^="command-cfg"] .showSide {
2510 #command-rc-output .alert-message {
2511 line-height: 1.42857143;
2517 animation: anim-fade-in 1.5s forwards;
2518 word-break: break-word;
2522 @keyframes anim-fade-in {
2529 @media all and (-ms-high-contrast: none) {
2530 .main > .main-left > .nav > .slide > .menu::before {
2534 .main > .main-left > .nav > li:last-child::before {
2543 @media screen and (max-width: 1600px) {
2544 header > .fill > .container > #logo {
2545 margin: 0 2.5rem 0 .5rem;
2549 width: calc(0% + 13rem);
2553 width: calc(100% - 13rem);
2559 padding: .3rem .6rem;
2564 padding: .2rem .6rem;
2574 padding-right: .6rem;
2577 .cbi-value-field .cbi-dropdown,
2578 .cbi-value-field .cbi-input-select,
2579 .cbi-value input[type="text"],
2580 .cbi-value input[type="password"] {
2584 #cbi-firewall-zone .cbi-input-select {
2588 .cbi-input-textarea {
2592 .node-admin-status > .main fieldset li > a {
2593 padding: .3rem .6rem;
2597 @media screen and (max-width: 1366px) {
2602 header > .fill > .container {
2609 height: calc(100% - 3.5rem);
2614 width: calc(0% + 13rem);
2615 height: calc(100% - 3.5rem);
2619 width: calc(100% - 13rem);
2623 .cbi-tabmenu > li > a {
2624 padding: .2rem .5rem;
2627 .cbi-section > h3:first-child,
2630 padding-bottom: 1rem;
2634 font-size: .7rem !important;
2635 width: 100% !important;
2638 .table .cbi-input-text {
2642 .cbi-value-field .cbi-dropdown,
2643 .cbi-value-field .cbi-input-select,
2644 .cbi-value input[type="text"],
2645 .cbi-value input[type="password"] {
2649 #cbi-firewall-zone .cbi-input-select {
2653 .main > .main-left > .nav > li,
2654 .main > .main-left > .nav > li a,
2655 .main > .main-left > .nav > .slide > .menu,
2656 .main > .main-left > .nav > li > [data-title] {
2660 .main > .main-left > .nav > .slide > .slide-menu > li > a {
2668 [data-page="admin-network-firewall-forwards"] .table:not(.cbi-section-table) {
2672 [data-page="admin-network-firewall-forwards"] .table:not(.cbi-section-table),
2673 [data-page="admin-network-firewall-rules"] .table:not(.cbi-section-table),
2674 [data-page="admin-network-hosts"] .table,
2675 [data-page="admin-network-routes"] .table {
2676 overflow-y: visible;
2680 width: 32% !important;
2684 @media screen and (max-width: 1152px) {
2685 header > .fill > .container > #logo {
2689 header > .fill > .container > .brand {
2695 overflow-y: visible;
2698 .main > .loading > span {
2715 display: inline-flex;
2716 align-items: center;
2719 margin-right: .7rem;
2729 background: url(./icons/menu.svg) no-repeat center;
2732 body:not(.logged-in) .showSide {
2738 .node-main-login > .main .cbi-value-title {
2744 padding-right: 1rem;
2747 .cbi-value-field .cbi-dropdown,
2748 .cbi-value-field .cbi-input-select,
2749 .cbi-value input[type="text"] {
2754 .cbi-value input[type="password"],
2755 .cbi-value input[name^="pw"],
2756 .cbi-value input[data-update="change"]:nth-child(2) {
2757 width: 13rem !important;
2761 #diag-rc-output > pre,
2762 #command-rc-output > pre,
2763 [data-page="admin-services-wol"] .notice code {
2771 .Interfaces .table {
2781 flex-direction: row;
2785 .Overview .table[width="100%"] > .tr {
2790 border-bottom: thin solid #ddd;
2793 .tr.placeholder > .td,
2794 #cbi-firewall .tr > .td,
2795 #cbi-network .tr:nth-child(2) > .td,
2796 .cbi-section #wifi_assoclist_table .tr > .td {
2802 display: inline-block;
2803 align-self: flex-start;
2805 text-overflow: ellipsis;
2806 word-wrap: break-word;
2810 .td input[type="text"] {
2815 .td [data-dynlist] > input,
2816 .td input.cbi-input-password {
2817 width: calc(100% - 1.5rem);
2820 .td[data-type="button"],
2821 .td[data-type="fvalue"] {
2826 .th.cbi-value-field,
2827 .td.cbi-value-field,
2828 .th.cbi-section-table-cell,
2829 .td.cbi-section-table-cell {
2834 .cbi-section-table-row {
2836 flex-direction: row;
2838 justify-content: space-between;
2839 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2842 .td.cbi-value-field,
2843 .cbi-section-table-cell {
2844 display: inline-block;
2850 .td.cbi-section-actions {
2851 vertical-align: bottom;
2855 .tr.cbi-section-table-titles,
2856 .tr.cbi-section-table-descr {
2860 .tr[data-title]::before,
2861 .tr.cbi-section-table-titles.named::before {
2865 border-bottom: thin solid rgba(0, 0, 0, .26);
2866 background: #90c0e0;
2870 [data-page^="admin-status-realtime"] .td[id] {
2874 .td[data-title]::before {
2878 .cbi-button + .cbi-button {
2882 .td.cbi-section-actions > * > *,
2883 .td.cbi-section-actions > * > form > * {
2888 position: static !important;
2891 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2894 .Firewall form input {
2895 width: 100% !important;
2901 .Firewall .center::before {
2902 text-align: left !important;
2906 width: 100% !important;
2907 margin-left: 0 !important;
2911 @media screen and (max-width: 600px) {
2916 .cbi-progressbar::after {
2930 #maincontent > .container {
2931 margin: 0 .5rem 1.5rem .5rem;
2934 .main > .main-left > .nav > .slide > .menu,
2935 .main > .main-left > .nav > li > [data-title] {
2939 .main > .main-left > .nav > .slide > .slide-menu > li > a {
2945 min-width: 0 !important;
2951 .cbi-value-description,
2953 .cbi-value-field .cbi-dropdown,
2954 .cbi-value-field .cbi-input-select,
2955 .cbi-value input[type="text"] {
2959 .cbi-value > .cbi-value-field {
2960 display: inline-block;
2964 .cbi-tabmenu > li > a {
2966 padding: .2rem .3rem;
2969 .cbi-page-actions > div > input {
2973 .cbi-page-actions > .cbi-button {
2977 .node-main-login > .main .container {
2978 margin: 2rem 1.2rem 1.5rem 1.2rem !important;
2979 padding: .3rem 1.7rem 2rem 1.6rem;
2982 .node-main-login > .main .cbi-value {
2986 .node-main-login > .main form > div:last-child {
2990 .node-main-login > .main .cbi-value-title {
2992 width: 100% !important;
2995 .node-main-login > .main fieldset {
3000 .commandbox p:first-of-type {
3005 #diag-rc-output > pre,
3006 #command-rc-output > pre,
3007 [data-page="admin-services-wol"] .notice code {
3008 font-size: .8rem !important;
3032 .cbi-section > h3:first-child,
3035 padding-bottom: 1rem;
3038 .node-system-packages > .main .cbi-value.cbi-value-last > div {
3039 width: 100% !important;
3042 .node-system-packages > .main .cbi-value .cbi-value-field input {
3051 .td.cbi-value-field {
3055 .td.cbi-value-field[data-type="button"],
3056 .td.cbi-value-field[data-type="fvalue"] {
3061 .tr[data-title]::before,
3062 .tr.cbi-section-table-titles.named::before {
3071 #cbi-wireless > #wifi_assoclist_table .td {
3075 #cbi-wireless > .cbi-section-node .td,
3076 .Interfaces .td.cbi-section-actions {
3077 text-align: center !important;
3080 [data-page="admin-status-processes"] .td[data-title="Hang Up"]::before,
3081 [data-page="admin-status-processes"] .td[data-title="Terminate"]::before,
3082 [data-page="admin-status-processes"] .td[data-title="Kill"]::before {
3087 .hide-xs:not([data-title="MAC-Address"]) {
3095 .cbi-modal .cbi-value {
3096 padding: 0 0 .25rem 0;
3099 .cbi-modal [data-tab-title] {
3100 padding: 0 .25rem !important;
3104 padding: 0 .5rem !important;
3108 @media screen and (min-width: 600px) {
3109 ::-webkit-scrollbar {
3114 ::-webkit-scrollbar,
3115 ::-webkit-scrollbar-corner {
3116 background: transparent;
3119 ::-webkit-scrollbar-thumb {
3120 background: #9e9e9e;
3123 ::-webkit-scrollbar-thumb:hover {
3124 background: #757575;
3127 ::-webkit-scrollbar-thumb:active {
3128 background: #424242;