diff options
author | YanlanShen <yanlan.Shen@rosinson.com> | 2019-01-28 10:39:06 +0800 |
---|---|---|
committer | YanlanShen <yanlan.Shen@rosinson.com> | 2019-01-28 10:39:06 +0800 |
commit | c11e4cf659bc61929bb4877f09a0a28cf72d5765 (patch) | |
tree | 227ec3567adff89208ab74079d8b206ebbb97a20 /themes/luci-theme-rosy | |
parent | d6ae36353b355600057fa81ffbf15a29acd6059e (diff) |
luci-theme-rosy:
htdocs: Modify scrollbar styles, and most interface style changes and bug fixes
Signed-off-by: YanlanShen <yanlan.Shen@rosinson.com>
Diffstat (limited to 'themes/luci-theme-rosy')
-rw-r--r-- | themes/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css | 4255 | ||||
-rwxr-xr-x | themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js | 160 |
2 files changed, 2368 insertions, 2047 deletions
diff --git a/themes/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css b/themes/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css index ab7cac626..449f9d4cf 100644 --- a/themes/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css +++ b/themes/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css @@ -16,149 +16,129 @@ * Licensed to the public under the Apache License 2.0 */ +/* + * Font generate by Icomoon<icomoon.io> + */ @font-face { - font-family: 'icomoon'; - src: url('fonts/font.eot'); - src: url('fonts/font.eot') format('embedded-opentype'), url('fonts/font.ttf') format('truetype'), url('fonts/font.woff') format('woff'), url('fonts/font.svg') format('svg'); - font-weight: normal; - font-style: normal; -} - -strong { - font-weight: normal; + font-family: "icomoon"; + font-weight: normal; + font-style: normal; + src: url("fonts/font.eot"); + src: url("fonts/font.eot") format("embedded-opentype"), url("fonts/font.ttf") format("truetype"), + url("fonts/font.woff") format("woff"), url("fonts/font.svg") format("svg"); } +/* Table correlation 表格 */ .table { - display: table; - position: relative; + position: relative; + display: table; } .tr { - display: table-row; + display: table-row; } .thead { - display: table-header-group; + display: table-header-group; } .tbody { - display: table-row-group; + display: table-row-group; } .tfoot { - display: table-footer-group; + display: table-footer-group; } .td, .th { - vertical-align: middle; - text-align: center; - display: table-cell; - padding: .8em; + line-height: normal; + display: table-cell; + padding: .5em; + text-align: center; + vertical-align: middle; } .th { - font-weight: normal; + color: #333; +} + +.td { + color: #777; } .tr.placeholder { - height: 4em; - background-color: #f9f9f9; + height: 4em; } -.tr.placeholder>.td { - position: absolute; - left: 0; - right: 0; - bottom: 0; - text-align: center; - line-height: 3em; - background: #f9f9f9; +.tr.placeholder > .td { + line-height: 3; + position: absolute; + right: 0; + bottom: 0; + left: 0; + text-align: center !important; + background: inherit; +} + +.td[width="33%"] { + padding: 1.1em; } .table[width="33%"], .th[width="33%"], .td[width="33%"] { - width: 33%; + width: 33%; } .table[width="100%"], .th[width="100%"], .td[width="100%"] { - width: 100%; + width: 100%; } +/* grid 栅格 */ .col-1 { - flex: 1 1 30px !important; - -webkit-flex: 1 1 30px !important; + flex: 1 1 30px !important; } .col-2 { - flex: 2 2 60px !important; - -webkit-flex: 2 2 60px !important; + flex: 2 2 60px !important; } .col-3 { - flex: 3 3 90px !important; - -webkit-flex: 3 3 90px !important; + flex: 3 3 90px !important; } .col-4 { - flex: 4 4 120px !important; - -webkit-flex: 4 4 120px !important; + flex: 4 4 120px !important; } .col-5 { - flex: 5 5 150px !important; - -webkit-flex: 5 5 150px !important; + flex: 5 5 150px !important; } .col-6 { - flex: 6 6 180px !important; - -webkit-flex: 6 6 180px !important; + flex: 6 6 180px !important; } .col-7 { - flex: 7 7 210px !important; - -webkit-flex: 7 7 210px !important; + flex: 7 7 210px !important; } .col-8 { - flex: 8 8 240px !important; - -webkit-flex: 8 8 240px !important; + flex: 8 8 240px !important; } .col-9 { - flex: 9 9 270px !important; - -webkit-flex: 9 9 270px !important; + flex: 9 9 270px !important; } .col-10 { - flex: 10 10 300px !important; - -webkit-flex: 10 10 300px !important; -} - -.cbi-button-up, -.cbi-button-down, -.cbi-value-helpicon, -.main>.loading>span { - font-family: 'icomoon' !important; - speak: none; - font-style: normal !important; - font-weight: normal !important; - font-variant: normal !important; - text-transform: none !important; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -* { - margin: 0; - padding: 0; - box-sizing: border-box; + flex: 10 10 300px !important; } +/* dom 元素 */ .h1, .h2, .h3, @@ -171,2583 +151,2962 @@ h3, h4, h5, h6 { - font-family: inherit; - font-weight: normal; - line-height: 1.1; - color: inherit; + font-family: inherit; + font-weight: normal; + line-height: 1.1 !important; + color: inherit; } html { - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; - position: relative; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; + height: 100%; } body { - font-size: 0.8rem; - background-color: #EEE; + font-size: .8rem; + background-color: #eee; + height: auto; } html, body { - margin: 0px; - padding: 0px; - height: auto; - min-height: 100%; - font-family: Microsoft Yahei, WenQuanYi Micro Hei, sans-serif, "Helvetica Neue", Helvetica, Hiragino Sans GB; + font-family: "Microsoft Yahei", "WenQuanYi Micro Hei", "sans-serif", "Helvetica Neue", "Helvetica", + "Hiragino Sans GB"; + margin: 0; + padding: 0; + background-color: #EBF1F6; } -select { - padding: 0.36rem 0.8rem; - color: #555; - background-color: #fff; - background-image: none; - border: 1px solid #ccc; -} - -select, -input, -.cbi-dropdown { - background-color: transparent; - color: rgba(0, 0, 0, .87); - border: none; - border-bottom: 2px solid rgba(0, 0, 0, .26); - outline: 0; - padding: 0; - box-shadow: none; - border-radius: 0; - background-image: none; - height: auto; - font-size: 0.8rem; +header { + display: none; } -select:not([multiple="multiple"]):focus, -input:focus { - border-color: #0099CC; +select { + padding: .36rem .8rem; + color: #555; + border: thin solid #ccc; + background-color: #fff; + background-image: none; } -select[multiple="multiple"] { - height: auto; +pre { + overflow: auto; } code { - color: #0099CC; + font-size: 1rem; + font-size-adjust: .35; + padding: 1px 3px; + color: #101010; + border: thin solid #999; + border-radius: 2px; + background: #ddd; } abbr { - color: #005470; - text-decoration: underline; - cursor: help; + cursor: help; + text-decoration: underline; + color: #005470; } hr { - margin: 1rem 0; - border-color: #EEE; - opacity: 0.1; + margin: 1rem 0; + opacity: .1; + border-color: #eee; } -footer>a { - color: #aaa; - text-decoration: none; +textarea { + resize: none; + border-radius: 20px; } -.main>.loading { - position: fixed; - width: 100%; - height: 100%; - z-index: 2000; - display: block; - background-color: #354057; - top: 0; +.pull-right { + float: right; } -.main>.loading>span { - display: block; - text-align: center; - margin-top: 2rem; - color: #888; - font-size: 1.2rem; - line-height: 45px; +.pull-left { + float: left; } -.main>.loading>span>.loading-img { - margin-right: 0.2rem; - display: inline-block; +.nowrap:not(.td) { + white-space: nowrap; } -.main>.loading>span>.loading-img img { - vertical-align: middle; +[disabled="disabled"] { + pointer-events: none; } -.pull-right { - float: right; +#xhr_poll_status { + display: flex; } -.pull-left { - float: left; +.danger { + background-color: #f794b0 !important; +} + +.warning { + background-color: #f0e68c !important; +} + +.success { + background-color: #f24c7c !important; +} + +.notice { + background-color: #468ea4 !important; +} + +.error { + color: #f00; +} + +ul { + line-height: normal; } li { - list-style-type: none; + list-style-type: none; } h1 { - font-size: 2rem; - padding-bottom: 10px; - border-bottom: 1px solid #eee; + font-size: 2rem; + padding-bottom: 10px; + border-bottom: thin solid #eee; } h2 { - margin: 2rem 0 0 0; - color: #354057; - font-size: 1.8rem; - padding-bottom: 10px; - border-bottom: 1px solid #eee; + font-size: 1.8rem; + margin: 2rem 0 0 0; + padding-bottom: 10px; + color: #354057; } h3 { - margin: 2rem 0 0 0; - font-size: 1.4rem; - padding-bottom: 10px; + font-size: 1.4rem; + margin: 2rem 0 0 0; + padding-bottom: 10px; } h4 { - margin: 2rem 0 0 0; - font-size: 1.2rem; - padding-bottom: 10px; + font-size: 1.2rem; + margin: 2rem 0 0 0; + padding-bottom: 10px; } -.mobile-hide { - display: inline-block; +h5 { + font-size: 1rem; + margin: 2rem 0 0 0; + padding-bottom: 10px; } -.PC-hide { - width: 100%; - display: none; +.cbi-section, +.cbi-section-error, +#cbi-network > .cbi-section-node, +#cbi-wireless > .cbi-section-node, +#cbi-wireless > #wifi_assoclist_table, +[data-page^="admin-system-admin"]:not(.login) .cbi-map:not(#cbi-dropbear), +[data-page="admin-system-opkg"] #maincontent > .container { + font-family: inherit; + font-weight: normal; + font-style: normal; + line-height: normal; + min-width: inherit; + margin: 1rem 0 0 0; + padding: 2rem; + border-radius: 20px; + background-color: #fff; } -.cbi-section { - margin: 1rem 0 0 0; - padding: 2rem; - border: 0; - font-weight: normal; - font-style: normal; - line-height: 1; - font-family: inherit; - min-width: inherit; - border-radius: 20px; - background-color: #FFF; - -webkit-overflow-scrolling: touch; +fieldset { + border: none; +} + +.cbi-map-descr + fieldset { + margin-top: 1rem; + border: none; +} + +.cbi-section > legend { + display: none !important; } -.cbi-section>legend { - display: none !important; +fieldset > fieldset, +.cbi-section > .cbi-section { + margin: 0; + padding: 0; + border: 0; + box-shadow: none; } -.cbi-section>h3:first-child, +.cbi-section > h3:first-child, .panel-title { - width: 100%; - display: block; - line-height: 1; - color: #354057; - font-size: 1.4rem; - padding-bottom: 1rem; - margin: 0; + font-size: 1.4rem; + line-height: 1; + display: block; + width: 100%; + margin: 0; + margin-bottom: .5rem; + color: #354057; } -.table { - width: 100%; - border-radius: 20px; +/* btn 按钮 */ +.cbi-button-up, +.cbi-button-down, +.cbi-value-helpicon, +.showSide { + font-family: "icomoon" !important; + font-weight: normal; + font-style: normal; + font-variant: normal; + line-height: 1; + text-transform: none; + -webkit-font-smoothing: antialiased; + speak: none; } -.table>.tbody>.tr>.td, -.table>.tbody>.tr>.th, -.table>.tfoot>.tr>.td, -.table>.tfoot>.tr>.th, -.table>.thead>.tr>.td, -.table>.thead>.tr>.th { - padding: .5rem; - border-top: 1px solid #ddd; - white-space: nowrap; +* { + box-sizing: border-box; + margin: 0; + padding: 0; } -.cbi-section-table-cell { - white-space: nowrap; - align-self: flex-end; - flex: 1 1 auto; +.btn, +button, +select, +input, +.cbi-dropdown { + height: 1.8rem; + padding: 0; + color: rgba(0, 0, 0, .87); + border: 0; + border-bottom: 2px solid rgba(0, 0, 0, .26); + border-radius: 0; + outline: 0; + background-color: transparent; + background-image: none; + box-shadow: none; + vertical-align: bottom; } -.cbi-section-table { - border: none; +select, +.cbi-dropdown { + width: inherit; } -.cbi-section-table-row { - text-align: center; - margin-bottom: 1rem; - background: #f4f4f4; +select:not([multiple="multiple"]):focus, +input:not(.cbi-button):focus, +.cbi-dropdown:focus, +.cbi-dynlist > .item:focus { + border-color: #09c; } -.cbi-section-table-row:last-child { - margin-bottom: 0; +select[multiple="multiple"] { + height: auto; } -.cbi-section-table-row>.cbi-value-field .cbi-input-select, -.cbi-section-table-row>.cbi-value-field .cbi-input-text, -.cbi-section-table-row>.cbi-value-field .cbi-input-password, -.cbi-section-table-row>.cbi-value-field .cbi-dropdown { - width: 100%; +/* footer 尾部 */ +footer { + font-size: .8rem; + overflow: hidden; + padding: 1rem; + text-align: right; + color: #aaa; + width: 100%; + float: right; +} + +footer > a { + text-decoration: none; + color: #aaa; +} + +/* Main interface 主界面 */ +.loading { + position: fixed; + z-index: 3000; + top: 0; + display: block; + width: 100%; + height: 100%; + pointer-events: none; + background-color: #354057; +} + +.loading > span { + font-family: monospace; + font-size: 2.0rem; + font-size-adjust: .35; + position: relative; + top: 12.5%; + display: block; + text-align: center; + color: #888; +} + +.loading > span > .loading-img { + font-family: "icomoon" !important; + font-size: 1.0rem; + display: inline-block; + margin-right: 1rem; + animation: anim-rotate 2s infinite linear; + vertical-align: middle; +} + +@keyframes anim-rotate { + 0% { + -webkit-transform: rotate(0); + -ms-transform: rotate(0); + transform: rotate(0); + } + + 100% { + -webkit-transform: rotate(360deg); + -ms-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +.Processes #maincontent > .container { + margin-right: 0; +} + +/* Main interface left 左主界面 */ +.main-left { + position: fixed; + top: 10px; + bottom: 10px; + left: 10px; + width: 15%; + border-radius: 20px; + background-color: #7f8ba5; + z-index: 2000; + min-width: 210px; } -.cbi-section-table-row>.cbi-value-field [data-dynlist]>input, -.cbi-section-table-row>.cbi-value-field input.cbi-input-password { - width: calc(100% - 1.5rem); +.main-left .nav-container { + position: absolute; + top: 10px; + left: 10px; + bottom: 10px; + background-color: #354057; + width: 100%; + border-radius: 20px; } -.table .tr:first-child .td:first-child, -.table .tr:first-child::before, -.table .tr:first-child .th:first-child { - border-top-left-radius: 10px; +.main-left .nav-container .navbar-container { + position: absolute; + overflow: hidden; + bottom: 10px; + top: 82px; + width: 100%; + height: calc(100% - 92px); } -.table .tr:first-child .td:last-child, -.table .tr:first-child .th:last-child { - border-top-right-radius: 10px; +.main-left .nav-container .brand { + color: #fff; + text-decoration: none; + font-size: 18px; + display: block; + text-align: center; + padding: 36px 0 24px; + border-bottom: 1px solid #fff; + margin: 0 15px; } -.table .tr:last-child .td:first-child, -.table .tr:last-child::before { - border-bottom-left-radius: 10px; +.main-left .nav { + margin-top: .5rem; } -.table .tr:last-child .td:last-child { - border-bottom-right-radius: 10px; +.main-left .nav > li { + padding: .5rem 1rem; + cursor: pointer; } -.table .tr.placeholder:last-child { - background-color: transparent; +.main-left .nav > li a { + display: block; + color: #fff; } -/* fix progress bar */ -.cbi-progressbar { - background-color: #9bc1cc; - border-radius: 20px; - overflow: hidden; - position: relative; +.main-left .nav > .slide { + padding: 0; } -.cbi-progressbar div { - background-color: #468ea4; - height: 20px; - border-radius: 20px; +.main-left .nav > .slide > ul { + display: none; } -.cbi-progressbar::after { - content: attr(title); - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - text-align: center; - line-height: 1.2rem; - color: #fff; +.main-left .nav > .slide > .menu { + font-size: 1.15rem; + display: block; + padding: .5rem 1rem; + text-decoration: none; + color: #fff; + width: 90%; + border-radius: 0 25px 25px 0; +} + +.main-left .nav > .slide > .menu.active { + background: #485267; +} + +.main-left .nav > li:hover, +.main-left .nav > .slide > .menu:hover, +.main-left .nav > .slide > .slide-menu > li:hover { + background: #485267; +} + +.main-left .nav > .slide:hover { + background: none; +} + +.main-left .nav > .slide > .slide-menu > li { + margin: 5px 0; + padding: 10px 2rem; + width: 90%; + border-radius: 0 25px 25px 0; +} + +.main-left .nav > .slide > .slide-menu > .active { + background-color: #f24c7c !important; + width: 80%; + border-radius: 0 25px 25px 0; +} + +.main-left .nav > .slide > .slide-menu > li > a { + white-space: nowrap; + text-decoration: none; +} + +.main-left .nav > .slide > .slide-menu > .active > a { + color: #fff; +} + +.main-left .nav > .slide > .slide-menu > .active:hover { + cursor: hand; +} + +/* Main interface right 右主界面 */ +.main-right { + width: 84%; + height: 100%; +} + +.main-right .container .alert, +.main-right .container .alert-message { + margin-top: 1rem; +} + +.main-right .container .alert-message { + padding: 1rem; + margin-top: 1rem; + border-radius: 20px; + background-color: #fff !important; +} + +.main-right .container .alert-message h4 { + margin-top: 1rem; + background: url(./no-pwd.png) no-repeat left 1px / 28px; + padding: 7px 0 0 32px; +} + +.main-right .container .alert-message .btn { + margin-top: .8rem; + padding: 7px 6px; + background-color: #468ea4; + border-radius: 20px; + color: #fff; +} + +/* table 表格 */ +table { + border-spacing: 0; + border-collapse: collapse; +} + +table, +.table { + overflow: hidden; + width: 100%; + border: 1px solid #ddd; + border-radius: 10px; +} + +table > tbody > tr > td, +table > tbody > tr > th, +table > tfoot > tr > td, +table > tfoot > tr > th, +table > thead > tr > td, +table > thead > tr > th, +.table > .tbody > .tr > .td, +.table > .tbody > .tr > .th, +.table > .tfoot > .tr > .td, +.table > .tfoot > .tr > .th, +.table > .thead > .tr > .td, +.table > .thead > .tr > .th, +.table > .tr > .td.cbi-value-field, +.table > .tr > .th.cbi-section-table-cell { + padding: .5rem; +} + +.container > .cbi-section:first-of-type > .table[width="100%"] > .tr > .td { + padding: .6rem; +} + +.cbi-section-table-cell { + line-height: 1.1; + align-self: flex-end; + flex: 1 1 auto; +} + +tr > td, +tr > th, +.tr > .td, +.tr > .th, +.cbi-section-table-row::before, +#cbi-wireless > #wifi_assoclist_table > .tr:nth-child(2) { + border-top: thin solid #ddd; +} + +tr:first-child > td .tr:first-child > .td, +#cbi-wireless .td, +#cbi-network .tr:first-child > .td, +.table[width="100%"] > .tr:first-child > .td, +[data-page="admin-network-diagnostics"] .tr > .td, +.tr.table-titles > .th, +.tr.cbi-section-table-titles > .th { + border-top: 0 !important; +} + +.cbi-section-table-row { + margin-bottom: 1rem; + text-align: center !important; + background: #f4f4f4; +} + +.cbi-section-table-row:last-child { + margin-bottom: 0; +} + +.cbi-section-table-row > .cbi-value-field .cbi-input-select, +.cbi-section-table-row > .cbi-value-field .cbi-input-text, +.cbi-section-table-row > .cbi-value-field .cbi-input-password, +.cbi-section-table-row > .cbi-value-field .cbi-dropdown { + width: 100%; +} + +.cbi-section-table-row > .cbi-value-field [data-dynlist] > input, +.cbi-section-table-row > .cbi-value-field input.cbi-input-password { + width: calc(100% - 1.5rem); +} + +.cbi-section-table-row .td { + text-align: center !important; +} + +div > table > tbody > tr:nth-of-type(2n), +div > .table > .tr:nth-of-type(2n) { + background-color: #f9f9f9; } /* fix multiple table */ table table, .table .table { - border: none; + border: 0; } .cbi-value-field table, .cbi-value-field .table { - border: none; + border: 0; } -td>table>tbody>tr>td, -.td>.table>.tbody>.tr>.td { - border: none; +td > table > tbody > tr > td, +.td > .table > .tbody > .tr > .td { + border: 0; } -.cbi-value-field>table>tbody>tr>td, -.cbi-value-field>.table>.tbody>.tr>.td { - border: none; +.cbi-value-field > table > tbody > tr > td, +.cbi-value-field > .table > .tbody > .tr > .td { + border: 0; } /* button style */ .btn, -.cbi-button { - margin: 0 .8rem .5rem 0; - -webkit-appearance: none; - color: rgba(0, 0, 0, 0.87); - background-color: #F0F0F0; - transition: all 0.2s ease-in-out; - display: inline-block; - padding: .5rem .8rem; - border: none; - border-radius: 25px; - cursor: pointer; - -ms-touch-action: manipulation; - touch-action: manipulation; - background-image: none; - text-align: center; - vertical-align: middle; - white-space: nowrap; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - font-size: 0.8rem; - width: auto; - display: inline-block; - text-decoration: none; +.cbi-button, +.item::after { + font-size: .8rem; + display: inline-block; + width: auto !important; + padding: 0 .8rem; + cursor: pointer; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + transition: all .2s ease-in-out; + text-align: center; + vertical-align: middle; + white-space: nowrap; + text-decoration: none; + color: rgba(0, 0, 0, .87); + border: 0; + border-radius: 20px; + background-color: #f0f0f0; + background-image: none; + -webkit-appearance: none; + -ms-touch-action: manipulation; + touch-action: manipulation; +} + +.cbi-button:not(select) { + -webkit-appearance: none !important; +} + +form[method="post"] + form[method="post"], +.cbi-button + .cbi-button { + margin-left: .6rem; +} + +.btn:hover, +.btn:focus, +.btn:active, +.cbi-button:hover, +.cbi-button:focus, +.cbi-button:active, +.item:hover::after, +.item:focus::after, +.item:active::after, +.cbi-page-actions .cbi-button-apply + .cbi-button-save:hover, +.cbi-page-actions .cbi-button-apply + .cbi-button-save:focus, +.cbi-page-actions .cbi-button-apply + .cbi-button-save:active { + text-decoration: none; + outline: 0; } .btn:disabled, .cbi-button:disabled { - cursor: not-allowed; - pointer-events: none; - opacity: 0.60; - box-shadow: none; -} - -.cbi-page-actions .cbi-button-apply, -.cbi-section-actions .cbi-button-edit, -.cbi-button-edit.important, -.cbi-button-apply.important, -.cbi-button-reload.important, -.cbi-button-apply, -.cbi-page-actions .cbi-button-save { - color: #fff; - background-color: #337ab7; - border: none; -} - -.cbi-button-add.important, -.cbi-button-save.important, -.cbi-button-positive.important, -.cbi-button-action.important, -.cbi-section-actions .cbi-button-edit { - color: #337ab7; - background-color: transparent; - border: 1px solid #337ab7; -} - -.cbi-button-remove.important, -.cbi-button-reset.important, -.cbi-button-negative.important { - color: #fff; - background-color: #d9534f; - border: none; + cursor: not-allowed; + pointer-events: none; + opacity: .5; + box-shadow: none; } +/* gray */ +.modal div[class="btn"], .cbi-button-find, .cbi-button-link, .cbi-button-up, .cbi-button-down, -.cbi-button-neutral { - color: #468ea4; - background-color: transparent; - border: 1px solid #468ea4; +.cbi-button-neutral, +.cbi-button[name="zero"], +.cbi-button[name="restart"], +.cbi-button[onclick="hide_empty(this)"] { + border: 1px solid; +} + +/* dark blue */ +.btn.primary, +.cbi-page-actions .cbi-button-save, +.cbi-page-actions .cbi-button-apply + .cbi-button-save, +.cbi-button-add, +.cbi-button-save, +.cbi-button-positive, +.cbi-button-link, +.cbi-button[value="Enable"], +.cbi-button[value="Scan"], +.cbi-button[value^="Back"], +.cbi-button-neutral[onclick="handleConfig(event)"] { + font-weight: normal; + color: #2e6da4; + border: thin solid #2e6da4; + background-color: transparent; } +/* light blue */ +.cbi-page-actions .cbi-button-apply, +.cbi-section-actions .cbi-button-edit, .cbi-button-edit, +.cbi-button-apply, .cbi-button-reload, -.cbi-button-action { - color: #468ea4; - background-color: transparent; +.cbi-button-action, +.cbi-button[value="Submit"], +.cbi-button[value$="Apply"], +.cbi-button[onclick="addKey(event)"] { + font-weight: normal; + color: #fff; border: 1px solid #468ea4; + background-color: #468ea4; } -.cbi-page-actions .cbi-button-apply+.cbi-button-save, -.cbi-button-add, -.cbi-button-save, -.cbi-button-positive { - color: #354057; - background-color: transparent; - border: 1px solid #354057; -} - -.cbi-section-remove>.cbi-button, +/* red */ +.btn.danger, +.cbi-section-remove > .cbi-button, .cbi-button-remove, .cbi-button-reset, -.cbi-button-negative { - color: #F24C7C; +.cbi-button-negative, +.cbi-button[value="Stop"], +.cbi-button[value="Kill"], +.cbi-button[onclick="reboot(this)"], +.cbi-button-neutral[value="Restart"] { + padding: 5px .8rem; + font-weight: 100; + color: #f24b7c; + background-color: transparent; + border: 1px solid #f24b7c; +} + +/* yellow */ +.btn[value="Dismiss"], +.cbi-button[value="Terminate"], +.cbi-button[value="Reset"], +.cbi-button[value="Disabled"], +.cbi-button[onclick^="iface_reconnect"], +.cbi-button[onclick="handleReset(event)"], +.cbi-button-neutral[value="Disable"] { + font-weight: normal; + color: #9a4569; + border: 1px solid #9a4569; + background-color: transparent; +} + +/* green */ +.cbi-button-success, +.cbi-button-download, +.cbi-button[name="backup"], +.cbi-button[value="Upload"], +.cbi-button[value="Save mtdblock"] { + font-weight: normal; + color: #468ea4; + border: thin solid #468ea4; background-color: transparent; - border: 1px solid #F24C7C; } .cbi-page-actions .cbi-button-link:first-child { - float: left; + float: left; } .a-to-btn { - text-decoration: none; + text-decoration: none; } -/* table */ -.container>.tabs, -.container>.tabs>li[class~="active"], -.container>.tabs>li:hover, -.container>.cbi-tabmenu, -.container>.cbi-tabmenu>li[class~="cbi-tab"], -.container>.cbi-tabmenu>li:hover { - border-radius: 20px; +.cbi-value-field .cbi-button-add { + padding: 1px 6px; } -.container .cbi-map .cbi-tabmenu, -.container .cbi-map .cbi-tabmenu>li[class~="cbi-tab"], -.container .cbi-map .cbi-tabmenu>li:hover { - border-top-left-radius: 10px; - border-top-right-radius: 10px; +.cbi-value-field .cbi-button-neutral { + padding: 1px 8px; } -.container .cbi-map .cbi-tabmenu, -.container>.tabs, -.container>.cbi-tabmenu { - overflow: hidden; +/* tabs & menu 选项卡 & 菜单栏 */ +.tabs { + margin-top: 1rem; + background-color: #fff; + border-radius: 20px; } -.container .cbi-map .cbi-tabmenu+div { - border-radius: 0; - border-bottom-left-radius: 10px; - border-bottom-right-radius: 10px; +.cbi-tabmenu > li, +.tabs > li { + display: inline-block; + padding: .6rem 0; } -.tabs { - background-color: #FFFFFF; - margin-top: 1rem; +.cbi-tabmenu > li > a, +.tabs > li > a { + padding: .5rem .8rem; + text-decoration: none; + color: #404040; } -.cbi-tabmenu>li, -.tabs>li { - margin-right: .4rem; - display: inline-block; - padding: 0.6rem 0rem; +.tabs > li[class~="active"], +.tabs > li:hover { + cursor: pointer; + background-color: #468ea4; + border-radius: 20px; } -.cbi-tabmenu>li>a, -.tabs>li>a { - text-decoration: none; - color: #404040; - padding: 0.5rem 0.8rem; +.tabs > li[class~="active"], +.tabs > li:hover a { + color: #fff; } -.tabs>li[class~="active"], -.tabs>li:hover { - cursor: pointer; - background-color: #337ab7; +.tabs > li[class~="active"] > a { + color: #fff; } -.tabs>li[class~="active"]>a, -.tabs>li:hover>a { - color: #fff; +.cbi-tabmenu { + border: thin solid #d4d4d4; + border-bottom: 0; +} + +.cbi-tabmenu > li:hover { + background-color: #f1f1f1; + border-radius: 10px 10px 0 0; +} + +.cbi-tabmenu > li[class~="cbi-tab"] { + background-color: #fff; + border-radius: 10px 10px 0 0; } .cbi-tabmenu { - border-top: 1px solid #D4D4D4; - border-left: 1px solid #D4D4D4; - border-right: 1px solid #D4D4D4; + background-color: #d4d4d4; + border-radius: 10px 10px 0 0; + overflow: hidden; } -.cbi-tabmenu>li:hover { - background-color: #F1F1F1; +.cbi-section .cbi-section-remove:nth-of-type(2n), +.container > .cbi-section .cbi-section-node:nth-of-type(2n) { + background-color: #f9f9f9; } -.cbi-tabmenu>li[class~="cbi-tab"] { - background-color: #fff; +.cbi-tabmenu + div { + border-radius: 0 0 10px 10px; } -.cbi-tabmenu { - background-color: #D4D4D4; +.cbi-tabmenu + div.controls { + margin: 0; + padding: .5em 0 1em 0; + background: #fff; + border: 1px solid #d4d4d4; + border-top: none; + border-bottom: none; + border-radius: 0; +} + +.cbi-tabmenu + div.controls + .table { + border-radius: 0 0 25px 25px; + background: #fff; } [data-tab-title] { - height: 0; - opacity: 0; - overflow: hidden; + height: 0; + opacity: 0; + overflow: hidden; } [data-tab-active="true"] { - opacity: 1; - height: auto; - overflow: visible; - transition: opacity .25s ease-in; + opacity: 1; + height: auto; + overflow: visible; + transition: opacity .25s ease-in; } -.cbi-section-remove:nth-of-type(2n) { - background-color: #f9f9f9; +.cbi-section[id] .cbi-section-remove:nth-of-type(4n + 3), +.cbi-section[id] .cbi-section-node:nth-of-type(4n + 4) { + background-color: #f9f9f9; } .cbi-section-node-tabbed { - padding: 0; - margin-top: 0; - border-bottom: 1px solid #D4D4D4; - border-left: 1px solid #D4D4D4; - border-right: 1px solid #D4D4D4; + margin-top: 0; + padding: 0; + border: thin solid #d4d4d4; + border-top: 0; } -.cbi-tabcontainer>.cbi-value:nth-of-type(2n) { - background-color: #f9f9f9; +.cbi-tabcontainer > .cbi-value:nth-of-type(2n) { + background-color: #f9f9f9; } .cbi-value-field, .cbi-value-description { - display: table-cell; - line-height: 1.25; + line-height: 1.25; + display: table-cell; +} + +.cbi-input-invalid { + color: #f00; + border-color: #f00; +} + +.cbi-section-error { + font-weight: bold; + line-height: 1.42857143; + margin: 18px; + padding: 6px; + border: 1px solid #f24b7c; + border-radius: 3px; + background-color: #fce6e6; } -.cbi-value-helpicon>img { - display: none; +.cbi-section-error ul { + margin: 0 0 0 20px; +} + +.cbi-section-error ul li { + font-weight: bold; + color: #f24b7c; +} + +.cbi-value-helpicon > img { + display: none; } .cbi-value-helpicon:before { - content: "\f059"; + content: "\f059"; } .cbi-value-description { - font-size: small; - opacity: 0.5; - padding: 0.5rem 0 0 0; + font-size: small; + padding: .5rem 0 0 0; + opacity: .5; } .cbi-value-title { - word-wrap: break-word; - padding: 0.6rem 2rem .6rem 0; - width: 23rem; - float: left; - text-align: right; - display: table-cell; + display: table-cell; + float: left; + width: 23rem; + padding-top: .4rem; + padding-right: 2rem; + text-align: right; + word-wrap: break-word; } .cbi-value { - padding: 6px 0; - display: inline-block; - width: 100%; + display: inline-block; + width: 100%; + padding: .3rem 1rem; } -.cbi-section-table-descr>.cbi-section-table-cell, -.cbi-section-table-titles>.cbi-section-table-cell { - border: none; +.cbi-value ul { + line-height: 1.25; } .td[data-title]::before { - content: attr(data-title) ":\20"; - font-weight: bold; - text-align: left; - display: none; - padding: .25rem 0; - white-space: nowrap; + font-weight: bold; + display: none; + padding: .25rem 0; + content: attr(data-title) ":\20"; + text-align: left; + white-space: nowrap; } .tr.placeholder .td[data-title]::before { - display: none; + display: none; } .tr[data-title]::before, .tr.cbi-section-table-titles.named::before { - content: attr(data-title) "\20"; - font-weight: bold; - text-align: center; - display: table-cell; - align-self: center; - flex: 1 1 5%; - padding: .25rem; - white-space: normal; - word-wrap: break-word; - vertical-align: middle; + font-weight: bold; + display: table-cell; + align-self: center; + flex: 1 1 5%; + padding: .25rem; + content: attr(data-title) "\20"; + text-align: center; + vertical-align: middle; + white-space: normal; + word-wrap: break-word; } -.table .tr.cbi-rowstyle-2, -.table .tr:nth-child(n) { - background-color: #eee; +.cbi-rowstyle-1 { + background-color: #f9f9f9; } -.table .tr.cbi-rowstyle-1, -.table .tr:nth-child(2n) { - background-color: #f9f9f9; +.cbi-rowstyle-2 { + background-color: #eee; } -.table .tr.table-titles, -.table .tr.cbi-section-table-titles { - background-color: #ddd; +.cbi-rowstyle-2 .cbi-button-up, +.cbi-rowstyle-2 .cbi-button-down { + background-color: #fff !important; } .cbi-section-table .cbi-section-table-titles .cbi-section-table-cell { - width: auto !important; + width: auto !important; } .td.cbi-section-actions { - text-align: right; - vertical-align: middle; + text-align: right !important; + vertical-align: middle; } -.td.cbi-section-actions>* { - display: flex; +.td.cbi-section-actions > * { + display: inline-flex; } -.td.cbi-section-actions>*>*, -.td.cbi-section-actions>*>form>* { - flex: 1 1 4em; - margin: 0 1px; +.td.cbi-section-actions > * > *, +.td.cbi-section-actions > * > form > * { + margin: 0 5px; } -.td.cbi-section-actions>*>form { - display: inline-flex; - margin: 0; +.td.cbi-section-actions > * > form { + display: inline-flex; + margin: 0; } /* desc */ - .cbi-section-descr, .cbi-map-descr { - padding: 0.5rem; - color: #999; - font-size: small; + font-size: small; + line-height: 1.42857143; + color: #999; } -.cbi-dropdown { +.cbi-dynlist { + line-height: 1.3; + flex-direction: column; + min-height: 30px; +} + +.cbi-dynlist > .item { + position: relative; + max-width: 24.9rem; + margin: 0 2em 4px 0; + padding: 2px 4px; + cursor: default; + pointer-events: none; + color: #666; + border-bottom: 2px solid rgba(0, 0, 0, .26); +} + +.cbi-dynlist[name="sshkeys"] > .item { + max-width: none; +} + +.cbi-dynlist > .item::after { + position: absolute; + right: -2em; + bottom: 0; display: inline-flex; - cursor: pointer; - position: relative; - padding: 0; - height: auto; + min-height: 17px; + padding: 0 6px; + content: "\00D7"; + pointer-events: auto; + color: #f24b7c; + border: thin solid #f24b7c; + background-color: transparent; +} + +.cbi-dynlist > .item > span { + white-space: normal; + word-break: break-word; } -.cbi-dropdown:focus { - outline: 2px solid #4b6e9b; +.cbi-dynlist, +.cbi-dropdown { + position: relative; + display: inline-flex; + height: auto; + padding: 0; + cursor: default; } -.cbi-dropdown>ul { - margin: 0 !important; - padding: 0; - list-style: none; - overflow-x: hidden; - overflow-y: auto; - display: flex; - width: 100%; +.cbi-dropdown > ul { + display: flex; + overflow-x: hidden; + overflow-y: auto; + width: 100%; + margin: 0 !important; + padding: 0; + list-style: none; } -.cbi-dropdown>ul.preview { - display: none; +.cbi-dropdown > ul.preview { + display: none; } -.cbi-dropdown>.open { - border: 2px outset #eee; - flex-basis: 15px; - background: #eee; +.cbi-dropdown > .open { + flex-basis: 15px; } -.cbi-dropdown>.open, -.cbi-dropdown>.more { - flex-grow: 0; - flex-shrink: 0; - display: flex; - flex-direction: column; - justify-content: center; - text-align: center; - line-height: 2em; - padding: 0 .25em; +.cbi-dropdown > .open, +.cbi-dropdown > .more { + font-size: 1rem; + font-weight: 900; + line-height: 2; + display: flex; + flex-direction: column; + flex-grow: 0; + flex-shrink: 0; + justify-content: center; + padding: 0 .25em; + text-align: center; + background: #d4d4d4; + border-radius: 5px; + margin-bottom: 1px; } -.cbi-dropdown>.more, -.cbi-dropdown>ul>li[placeholder] { - color: #777; - font-weight: bold; - text-shadow: 1px 1px 0px #fff; - display: none; +.cbi-dropdown > .more, +.cbi-dropdown > ul > li[placeholder] { + font-weight: bold; + display: none; + color: #777; + text-shadow: 1px 1px 0 #fff; } -.cbi-dropdown>ul>li { - display: none; - padding: .25em; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - flex-shrink: 1; - flex-grow: 1; - align-items: center; - align-self: center; - min-height: 20px; +.cbi-dropdown > ul > li { + display: none; + overflow: hidden; + align-items: center; + align-self: center; + flex-grow: 1; + flex-shrink: 1; + min-height: 20px; + padding: .25em; + white-space: nowrap; + text-overflow: ellipsis; } -.cbi-dropdown>ul>li .hide-open { - display: initial; +.cbi-dropdown > ul > li .hide-open { + display: initial; } -.cbi-dropdown>ul>li .hide-close { - display: none; +.cbi-dropdown > ul > li .hide-close { + display: none; } -.cbi-dropdown>ul>li[display]:not([display="0"]) { - border-left: 1px solid #ccc; +.cbi-dropdown > ul > li[display]:not([display="0"]) { + border-left: thin solid #ccc; } -.cbi-dropdown[empty]>ul { - max-width: 1px; +.cbi-dropdown[empty] > ul { + max-width: 1px; } -.cbi-dropdown>ul>li>form { - display: none; - margin: 0; - padding: 0; - pointer-events: none; +.cbi-dropdown > ul > li > form { + display: none; + margin: 0; + padding: 0; + pointer-events: none; } -.cbi-dropdown>ul>li img { - vertical-align: middle; - margin-right: .25em; +.cbi-dropdown > ul > li img { + margin-right: .25em; + vertical-align: middle; } -.cbi-dropdown>ul>li>form>input[type="checkbox"] { - margin: 0; - height: auto; +.cbi-dropdown > ul > li > form > input[type="checkbox"] { + height: auto; + margin: 0; } -.cbi-dropdown>ul>li input[type="text"] { - height: 20px; +.cbi-dropdown > ul > li input[type="text"] { + height: 20px; } .cbi-dropdown[open] { - position: relative; + position: relative; } -.cbi-dropdown[open]>ul.dropdown { - display: block; - background: #f6f6f5; - border: 1px solid #918e8c; - position: absolute; - z-index: 1000; - max-width: none; - min-width: 100%; - width: auto; -} - -.cbi-dropdown>ul>li[display], -.cbi-dropdown[open]>ul.preview, -.cbi-dropdown[open]>ul.dropdown>li, -.cbi-dropdown[multiple]>ul>li>label, -.cbi-dropdown[multiple][open]>ul.dropdown>li, -.cbi-dropdown[multiple][more]>.more, -.cbi-dropdown[multiple][empty]>.more { - flex-grow: 1; - display: flex; - align-items: center; -} - -.cbi-dropdown[empty]>ul>li, -.cbi-dropdown[optional][open]>ul.dropdown>li[placeholder], -.cbi-dropdown[multiple][open]>ul.dropdown>li>form { - display: block; +.cbi-dropdown[open] > ul.dropdown { + position: absolute; + z-index: 1100; + display: block; + width: auto; + min-width: 100%; + max-width: none; + max-height: 200px !important; + border: thin solid #918e8c; + background: #f6f6f6; +} + +.cbi-dropdown > ul > li[display], +.cbi-dropdown[open] > ul.preview, +.cbi-dropdown[open] > ul.dropdown > li, +.cbi-dropdown[multiple] > ul > li > label, +.cbi-dropdown[multiple][open] > ul.dropdown > li, +.cbi-dropdown[multiple][more] > .more, +.cbi-dropdown[multiple][empty] > .more { + display: flex; + align-items: center; + flex-grow: 1; +} + +.cbi-dropdown[empty] > ul > li, +.cbi-dropdown[optional][open] > ul.dropdown > li[placeholder], +.cbi-dropdown[multiple][open] > ul.dropdown > li > form { + display: block; } -.cbi-dropdown[open]>ul.dropdown>li .hide-open { - display: none; +.cbi-dropdown[open] > ul.dropdown > li .hide-open { + display: none; } -.cbi-dropdown[open]>ul.dropdown>li .hide-close { - display: initial; +.cbi-dropdown[open] > ul.dropdown > li .hide-close { + display: initial; } -.cbi-dropdown[open]>ul.dropdown>li { - border-bottom: 1px solid #ccc; +.cbi-dropdown[open] > ul.dropdown > li { + border-bottom: thin solid #ccc; } -.cbi-dropdown[open]>ul.dropdown>li[selected] { - background: #b0d0f0; +.cbi-dropdown[open] > ul.dropdown > li[selected] { + background: #b0d0f0; } -.cbi-dropdown[open]>ul.dropdown>li.focus { - background: linear-gradient(90deg, #a3c2e8 0%, #84aad9 100%); +.cbi-dropdown[open] > ul.dropdown > li.focus { + background: linear-gradient(90deg, #a3c2e8 0%, #84aad9 100%); } -.cbi-dropdown[open]>ul.dropdown>li:last-child { - margin-bottom: 0; - border-bottom: none; +.cbi-dropdown[open] > ul.dropdown > li:last-child { + margin-bottom: 0; + border-bottom: 0; +} + +.cbi-dropdown[open] > ul.dropdown > li[unselectable] { + opacity: .7; +} + +.cbi-dropdown[open] > ul.dropdown > li > input.create-item-input:first-child:last-child { + width: 100%; } .cbi-dropdown[disabled] { - pointer-events: none; - opacity: .6; + pointer-events: none; + opacity: .6; } .cbi-dropdown .zonebadge { - width: 100%; - border-radius: 20px; - background-color: #468ea4 !important; + width: 100%; } .cbi-dropdown[open] .zonebadge { - width: auto; + width: auto; } -/* luci */ +#modal_overlay { + position: fixed; + z-index: 3000; + top: 0; + right: 10000px; + bottom: 0; + left: -10000px; + overflow-y: scroll; + transition: opacity .125s ease-in; + opacity: 0; + background: rgba(0, 0, 0, .7); + -webkit-overflow-scrolling: touch; +} + +.modal { + display: flex; + align-items: center; + flex-wrap: wrap; + width: 90%; + min-width: 270px; + max-width: 600px; + min-height: 80px; + max-height: 2400px; + margin: 5em auto; + padding: 1em; + border-radius: 20px !important; + background: #fff; +} +.modal > * { + line-height: normal; + flex-basis: 100%; +} + +.modal > pre, +.modal > textarea { + font-size: 1rem; + font-size-adjust: .35; + overflow: auto; + margin-bottom: .5em; + padding: 8.5px; + white-space: pre-wrap; + color: #fff; + outline: 0; + background-color: #354057; +} + +.modal > h4 { + margin: .5em 0; +} + +.modal ul { + margin-left: 2.2em; +} + +.modal li { + list-style-type: square; + color: #808080; +} + +.modal p { + padding-left: .25rem; + word-break: break-word; +} + +.modal .label { + font-size: .6rem; + font-weight: normal; + padding: .1rem .3rem; + padding-bottom: 0; + cursor: default; + border-radius: 0; +} + +.modal .label.warning { + background-color: #f0ad4e !important; +} + +.modal .btn { + padding: .3rem .6rem; +} + +.modal .spinning { + margin-bottom: 2em; +} + +body.modal-overlay-active { + overflow: hidden; + height: 100vh; +} + +body.modal-overlay-active #modal_overlay { + right: 0; + left: 0; + opacity: 1; +} + +.spinning { + position: relative; + padding-left: 32px !important; +} + +.spinning::before { + position: absolute; + top: 0; + bottom: 0; + left: .2em; + width: 32px; + content: " "; + background: url(../resources/icons/loading.gif) no-repeat center; + background-size: 16px; +} + +/* luci */ .hidden { - display: none + display: none; } .left, .left::before { - text-align: left !important; + text-align: left !important; } .right, .right::before { - text-align: right !important; + text-align: right !important; } .center, .center::before { - text-align: center !important; + text-align: center !important; } .top { - align-self: flex-start !important; - vertical-align: top !important; + align-self: flex-start !important; + vertical-align: top !important; } .bottom { - align-self: flex-end !important; - vertical-align: bottom !important; + align-self: flex-end !important; + vertical-align: bottom !important; } .inline { - display: inline; + display: inline; } .cbi-page-actions { - border-top: 1px solid #eee; - padding-top: 1rem; - text-align: right; + padding-top: 1rem; + text-align: right; } -/* select */ +.cbi-page-actions > form[method="post"] { + display: inline-block; +} -.cbi-value-field .cbi-dropdown { - min-width: 15rem; +/* input */ +.cbi-value input[type="password"], +.cbi-value input[type="text"] { + min-width: 15rem; } +/* select */ +.cbi-value-field .cbi-dropdown, .cbi-value-field .cbi-input-select { - width: 15rem; + min-width: 15rem; +} + +.cbi-value-field .cbi-input-invalid { + color: #f00; + border-bottom-color: #f00; +} + +/* progressbar */ +.cbi-progressbar { + position: relative; + min-width: 170px; + height: 20px; + margin: 4px 0; + background: #a9cad4; + color: #fff; + border-radius: 20px; + overflow: hidden; +} + +.cbi-progressbar > div { + width: 0; + height: 100%; + background: #468ea4; + border-radius: 20px; +} + +.cbi-progressbar::after { + font-family: monospace; + font-size: 10px; + font-size-adjust: .38; + line-height: normal; + position: absolute; + top: 50%; + right: 0; + bottom: 2px; + left: 0; + content: attr(title); + text-align: center; + white-space: pre; + transform: translateY(-50%); } .th[data-type="button"], .td[data-type="button"], .th[data-type="fvalue"], .td[data-type="fvalue"] { - flex: 1 1 2em; - text-align: center; + flex: 1 1 2em; + text-align: center; } .ifacebadge { - display: inline-flex; - border: 1px solid #CCCCCC; - padding: 0.5rem 1rem; - background: #fff; - border-radius: 20px; + display: inline-flex; + padding: .5rem .8rem; + background: #eee; + border-radius: 20px; } -td>.ifacebadge, -.td>.ifacebadge { - background-color: #F0F0F0; - font-size: 0.9rem; +td > .ifacebadge, +.td > .ifacebadge { + font-size: .8rem; + background-color: #d4d4d4; + border-radius: 20px; } -.ifacebadge>em, -.ifacebadge>img { - display: inline-block; - margin: 0 .2rem; - align-self: flex-start; +.ifacebadge > em, +.ifacebadge > img { + display: inline-block; + align-self: flex-start; + margin: 0 .2rem; } -.ifacebadge>img+img { - margin: 0 .2rem 0 0; +.ifacebadge > img + img { + margin: 0 .2rem 0 0; } .network-status-table { - display: flex; - flex-wrap: wrap; + display: flex; + flex-wrap: wrap; } .network-status-table .ifacebox { - margin: .5em .8rem; - flex-grow: 1; + flex-grow: 1; + margin: .5em; + border-radius: 20px; + overflow: hidden; } .network-status-table .ifacebox-body { - display: flex; - flex-direction: column; - height: 100%; + display: flex; + flex-direction: column; + height: 100%; + background: #f5f5f5; } -.network-status-table .ifacebox-body>span { - flex: 10 10 auto; +.network-status-table .ifacebox-body > span { + flex: 10 10 auto; + font-size: 12px; } -.network-status-table .ifacebox-body>div { - display: flex; - flex-wrap: wrap; +.network-status-table .ifacebox-body > div { + display: flex; + flex-wrap: wrap; } .network-status-table .ifacebox-body .ifacebadge { - flex: 1 1 auto; - margin: .5em .25em 0 .25em; - padding: .5em; - min-width: 220px; - background-color: #fff; - align-items: center; + align-items: center; + flex: 1 1 auto; + min-width: 220px; + margin: .5em .25em 0 .25em; + padding: .5em; + background-color: #fff; + border-radius: 20px; } -/*textarea*/ - +/* textarea */ .cbi-input-textarea { - width: 100%; - min-height: 14rem; - padding: 0.8rem; - font-size: 0.8rem; - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - color: black; - resize: unset; - border-radius: 20px; + font-family: monospace; + width: 100%; + min-height: 14rem; + padding: .8rem; + color: #000; } #syslog { - width: 100%; - min-height: 15rem; - padding: 1rem; - font-size: small; - color: #5F5F5F; - margin-bottom: 20px; - border-radius: 20px; - background-color: #FFF; - border: none; - resize: unset; + font-size: small; + width: 100%; + min-height: 15rem; + margin-bottom: 20px; + padding: 1rem; + resize: none; + color: #333; + border: 0; + border-radius: 20px; + background-color: #fff; } -/* change */ +#syslog:focus { + outline: 0; +} +/* config changes */ .uci-change-list { - font-family: monospace; + font-family: monospace; } .uci-change-list ins, .uci-change-legend-label ins { - text-decoration: none; - border: 1px solid #00FF00; - background-color: #CCFFCC; - display: block; - padding: 2px; + display: block; + padding: 2px; + text-decoration: none; + border: thin solid #0f0; + background-color: #cfc; } .uci-change-list del, .uci-change-legend-label del { - text-decoration: none; - border: 1px solid #FF0000; - background-color: #FFCCCC; - display: block; - font-style: normal; - padding: 2px; + font-style: normal; + display: block; + padding: 2px; + text-decoration: none; + border: thin solid #f00; + background-color: #fcc; } .uci-change-list var, .uci-change-legend-label var { - text-decoration: none; - border: 1px solid #CCCCCC; - background-color: #EEEEEE; - display: block; - font-style: normal; - padding: 2px; + font-style: normal; + display: block; + padding: 2px; + text-decoration: none; + border: thin solid #ccc; + background-color: #eee; } .uci-change-list var ins, .uci-change-list var del { - border: none; - white-space: pre; - font-style: normal; - padding: 0px; + font-style: normal; + padding: 0; + white-space: pre; + border: 0; } .uci-change-legend { - padding: 5px; + padding: 5px; } .uci-change-legend-label { - width: 150px; - float: left; + float: left; + width: 150px; } -.uci-change-legend-label>ins, -.uci-change-legend-label>del, -.uci-change-legend-label>var { - float: left; - margin-right: 4px; - width: 10px; - height: 10px; - display: block; +.uci-change-legend-label > ins, +.uci-change-legend-label > del, +.uci-change-legend-label > var { + display: block; + float: left; + width: 10px; + height: 10px; + margin-right: 4px; } .uci-change-legend-label var ins, .uci-change-legend-label var del { - line-height: 6px; - border: none; + line-height: .4; + border: 0; } .uci-change-list var, .uci-change-list del, .uci-change-list ins { - padding: 0.5rem; + padding: .5rem; } /* other fix */ - #iwsvg, #iwsvg2, #bwsvg { - border: 1px solid #D4D4D4 !important; - overflow: hidden; - border-radius: 20px; + border: 1px solid #d4d4d4 !important; + border-radius: 20px; +} + +.lang_enTraffic #bwsvg, +.lang_enWireless #iwsvg { + border: 1px solid #d4d4d4 !important; + border-radius: 0 0 20px 20px; } #iwsvg, -#bwsvg { - margin-top: 1rem; +[data-page="admin-status-realtime-bandwidth"] #bwsvg { + border-top: 0 !important; } .ifacebox { - background-color: #f9f9f9; - display: inline-flex; - flex-direction: column; - line-height: 1.2em; - min-width: 100px; - border-radius: 20px; - overflow: hidden; + line-height: 1.25; + display: inline-flex; + flex-direction: column; + min-width: 100px; + background-color: #f9f9f9; + border-radius: 10px; } .ifacebox-head { - padding: .5em .8em; - background: #eee; + padding: .5em; + background: #eee; + color: #333; + font-size: 14px; + border-radius: 10px 10px 0 0; +} + +strong { + font-weight: 100; } .ifacebox-head.active { - background: #eee; + background: #5bc0de; } .ifacebox-body { - padding: .5em .8em; + padding: .8em; + border-radius: 0 0 10px 10px; } .cbi-image-button { - margin-left: 0.5rem; + margin-left: .5rem; } .zonebadge { - padding: 0.2rem 0.5rem; - display: inline-block; - border-radius: 20px; + display: inline-block; + padding: .2rem .5rem; + border-radius: 20px; } .zonebadge .ifacebadge { - padding: .2rem .3rem; - margin: 0.1rem 0.2rem; - border: none; + margin: .1rem .2rem; + padding: .2rem .3rem; + border: thin solid #6c6c6c; + height: 26px; } -.zonebadge>input[type="text"] { - padding: 0.16rem 1rem; - min-width: 10rem; - margin-top: 0.3rem; +.zonebadge > input[type="text"] { + min-width: 10rem; + margin-top: .3rem; + padding: .16rem 1rem; } -.zonebadge>em, -.zonebadge>strong { - margin: 0 0.2rem; - display: inline-block; +.zonebadge > em, +.zonebadge > strong { + display: inline-block; + margin: 0 .2rem; } .cbi-value-field .cbi-input-checkbox, .cbi-value-field .cbi-input-radio { - margin-top: 0.5rem; - height: 1rem; -} - -.td .cbi-input-checkbox, -.td .cbi-input-radio { - margin-top: 0; + margin-top: .15rem; } -.cbi-value-field>input+.cbi-value-description { - padding: 0; +.cbi-value-field > ul > li { + display: flex; } -.cbi-value-field>ul>li { - display: flex; +.cbi-value-field > ul > li > label { + margin-top: .5rem; } -.cbi-value-field>ul>li>label { - margin-top: 0.5rem; +.cbi-value-field > ul > li .ifacebadge { + margin-top: -.5rem; + margin-left: .4rem; + background-color: #eee; } -.cbi-value-field>ul>li .ifacebadge { - background-color: #eee; - margin-left: 0.4rem; - margin-top: -0.5rem; -} - -.cbi-section-table-row>.cbi-value-field .cbi-dropdown { - min-width: 7rem; +.cbi-section-table-row > .cbi-value-field .cbi-dropdown { + min-width: 7rem; } .cbi-section-create { - margin: .5rem -3px; - display: inline-flex; - align-items: center; + display: inline-flex; + align-items: center; + margin: .5rem -3px; } -.cbi-section-create>* { - margin: 0.5rem; +.cbi-section-create > * { + margin: .5rem; } .cbi-section-remove { - padding: 0.5rem; + padding: .5rem; } div.cbi-value var, td.cbi-value-field var, .td.cbi-value-field var { - font-style: italic; - color: #0069D6; + font-style: italic; + color: #0069d6; } small { - font-size: 90%; - white-space: normal; - line-height: 1.42857143; + font-size: 90%; + line-height: 1.42857143; + white-space: normal; } .cbi-button-up, .cbi-button-down { - display: inline-block; - min-width: 0; - padding: 0.2rem 0.3rem; - font-size: 1.2rem; + font-size: 1.2rem; + display: inline-block; + min-width: 0; + padding: .2rem .3rem; } .cbi-optionals { - padding: 1rem 1rem 0 1rem; - border-top: 1px solid #CCC; + padding: 1rem 1rem 0 1rem; + border-top: thin solid #ccc; } .cbi-dropdown-container { - position: relative; + position: relative; } -.cbi-tooltip-container { - cursor: help; +.cbi-tooltip-container, +span[data-tooltip], +span[data-tooltip] .label { + cursor: help !important; } .cbi-tooltip { - position: absolute; - z-index: 1000; - left: -1000px; - opacity: 0; - transition: opacity .25s ease-out; - pointer-events: none; + position: absolute; + z-index: 1000; + left: -1000px; + padding: 2px 5px; + transition: opacity .25s ease-out; + white-space: pre; + pointer-events: none; + opacity: 0; + border-radius: 3px; + background: #fff; } .cbi-tooltip-container:hover .cbi-tooltip { - left: auto; - opacity: 1; - transition: opacity .25s ease-in; - border-radius: 20px; + left: auto; + transition: opacity .25s ease-in; + opacity: 1; + height: 38px; } .zonebadge .cbi-tooltip { - padding: .25rem; - background: inherit; - margin: -1.5rem 0 0 -.5rem; + margin: -1.5rem 0 0 -.5rem; + padding: .25rem; + background: inherit; } .zonebadge-empty { - background: repeating-linear-gradient(45deg, rgba(204, 204, 204, 0.5), rgba(204, 204, 204, 0.5) 5px, rgba(255, 255, 255, 0.5) 5px, rgba(255, 255, 255, 0.5) 10px); - color: #404040; + color: #404040; + 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 + ); } .zone-forwards { - display: flex; - min-width: 10rem; + display: flex; + min-width: 10rem; } -.zone-forwards>* { - flex: 1 1 45%; +.zone-forwards > * { + flex: 1 1 45%; } -.zone-forwards>span { - flex-basis: 10%; - text-align: center; - padding: 0 .25rem; +.zone-forwards > span { + flex-basis: 10%; + padding: 0 .25rem; + text-align: center; } .zone-forwards .zone-src, .zone-forwards .zone-dest { - display: flex; - flex-direction: column; -} - -#diag-rc-output>pre { - background-color: #f5f5f5; - display: block; - padding: 8.5px; - margin: 0 0 18px; - line-height: 1.5rem; - -moz-border-radius: 3px; - white-space: pre-wrap; - word-wrap: break-word; - font-size: 1.4rem; - color: #404040; -} - -input[name="ping"], -input[name="traceroute"], -input[name="nslookup"] { - width: 80%; -} - -header>.container>.pull-right>* { - position: relative; - top: 0.45rem; - cursor: pointer; -} - -#xhr_poll_status>.label.success { - background-color: #F24C7C; + display: flex; + flex-direction: column; } .label { - padding: 0.3rem 0.8rem; - font-size: 0.8rem; - font-weight: bold; - color: #ffffff !important; - white-space: nowrap; - background-color: #bfbfbf; - -webkit-border-radius: 3px; - -moz-border-radius: 3px; - border-radius: 50px; - text-shadow: none; - text-decoration: none; + font-size: .8rem; + padding: .3rem .8rem; + white-space: nowrap; + text-decoration: none; + color: #fff !important; + -moz-border-radius: 3px; + border-radius: 20px; + background-color: #bfbfbf; } -.notice { - background-color: #468EA4; +label > input[type="checkbox"], +label > input[type="radio"] { + position: relative; + top: .4rem; + right: .2rem; + margin: 0; + vertical-align: bottom; } .showSide { - background: url(./menu-logo.png) no-repeat center center / 100%; - display: none; - height: 26px; - width: 26px; + display: none; } .darkMask { - width: 100%; - height: 100%; - position: fixed; - background-color: rgba(0, 0, 0, 0.56); - content: ""; - z-index: 99; - display: none; -} - -/* fix status processes */ - -.node-status-processes>.main .table .tr .td:nth-child(3) { - white-space: normal; -} - -.node-status-iptables>.main div>.cbi-map>form { - margin: 2rem 2rem 0 0; -} - -.node-status-iptables>.main div>.cbi-map>form input { - padding: .8em; - border-radius: 20px; -} - -.node-status-processes .cbi-section { - overflow-x: scroll; -} - -/* fix status realtime traffic and wireless */ - -.node-status-realtime.lang_enTraffic .cbi-tabmenu, -.node-status-realtime.lang_enWireless .cbi-tabmenu { - background-color: #d4d4d4; -} - -.node-status-realtime.lang_enTraffic .cbi-tabmenu>li[class~="cbi-tab"], -.node-status-realtime.lang_enTraffic .cbi-tabmenu>li:hover, -.node-status-realtime.lang_enWireless .cbi-tabmenu>li[class~="cbi-tab"], -.node-status-realtime.lang_enWireless .cbi-tabmenu>li:hover { - background-color: #F1F1F1; -} - -.node-status-realtime.lang_enTraffic #bwsvg, -.node-status-realtime.lang_enWireless #iwsvg, -.node-system-packages .cbi-map>.cbi-section, -.node-system-packages form .cbi-section { - border-top-right-radius: 0; - border-top-left-radius: 0; -} - -/* fix system system */ - -.node-system-system .cbi-tabmenu { - background-color: #d4d4d4; -} - -.node-system-system .cbi-tabmenu>li[class~="cbi-tab"] { - background-color: #fff; -} - -/* fix system reboot */ - -.node-system-reboot>.main>.main-right p, -.node-system-reboot>.main>.main-right h3 { - padding-left: 2rem; -} - -/* fix Services Network Shares*/ -.node-services-samba.lang_enNetwork #cbi-samba-sambashare .table-container { - overflow-x: scroll; -} - -.node-services-samba>.main .cbi-tabcontainer:nth-child(3) .cbi-value-title { - margin-bottom: 1rem; - width: auto; -} - -.node-services-samba>.main .cbi-tabcontainer:nth-child(3) .cbi-value-field { - display: list-item; -} - -.node-services-samba>.main .cbi-tabcontainer:nth-child(3) .cbi-value-description { - padding-top: 1rem; -} - -/* fix System Software*/ - -.node-system-packages #swfreespace { - background-color: #468ea4 !important; - border: none !important; - border-radius: 20px -} - -.node-system-packages #swfreespace>div { - background-color: #f24c7c !important; - border: none !important; - border-radius: 20px -} - -.node-system-packages>.main table tr td:nth-child(1) { - width: auto !important; -} - -.node-system-packages>.main table tr td:nth-last-child(1) { - white-space: normal; - font-size: small; - color: #404040; -} - -.node-system-packages>.main .cbi-tabmenu>li>a, -.tabs>li>a { - padding: 0.5rem 0.8rem; -} - -.node-system-packages>.main .cbi-value>pre { - background-color: #eee; - padding: 0.5rem; - overflow: auto; -} - -.node-system-packages .cbi-section .cbi-section-node-tabbed { - border: none; + position: fixed; + z-index: 99; + display: none; + width: 100%; + height: 100%; + content: ""; + background-color: rgba(0, 0, 0, .56); } -.node-system-packages form .cbi-section { - margin: 0; +/* diagnostics */ +#diag-rc-output > pre, +#command-rc-output > pre { + font-size: 1.2rem; + font-size-adjust: .35; + line-height: normal; + display: block; + width: 100%; + padding: 8.5px; + white-space: pre; + color: #eee; + background-color: #101010; } -.cbi-tabmenu+.cbi-section { - margin-top: 0; +[data-page="admin-network-diagnostics"] .table { + box-shadow: none; } -.node-status-iptables .cbi-tabmenu, -.node-system-flashops .cbi-tabmenu { - border: none; +input[name="ping"], +input[name="traceroute"], +input[name="nslookup"] { + width: 80%; } -.node-system-flashops form.inline+form.inline { - margin-left: 0; +/* fix Main Login 登录界面*/ +body.login { + background: #fff url(./loginBG.png) no-repeat center center; + height: 100%; } -.lang_zh-cnBackup .cbi-tabmenu { - margin-bottom: 1rem; +.login header { + margin-top: 10px; } -#cbi-firewall-redirect table *, -#cbi-network-switch_vlan table *, -#cbi-firewall-zone table * { - font-size: small; +.login > .main { + position: relative; + height: 100%; } -#cbi-firewall-redirect table input[type="text"], -#cbi-network-switch_vlan table input[type="text"], -#cbi-firewall-zone table input[type="text"] { - width: 5rem; +.login > .main .main-left { + display: none; } -#cbi-firewall-redirect table select, -#cbi-network-switch_vlan table select, -#cbi-firewall-zone table select { - min-width: 3.5rem; +.login > .main > .main-right { + width: 100%; + text-align: center; + background-color: transparent; } -#cbi-network-switch_vlan .th, -#cbi-network-switch_vlan .td { - flex-basis: 12%; +.login .brand { + display: block; + color: #fff; + font-size: 24px; + text-decoration: none; } -/* fix Network Network*/ - -.node-network-network .cbi-rowstyle-2 .ifacebox-body { - background-color: #fff; +.login > .main .cbi-value-title { + display: none; } -.lang_zh-cnInterfaces .container .cbi-map .cbi-tabmenu+div { - overflow: inherit; +.login > .main #maincontent { + margin-top: 5rem; + display: inline-block; + background-color: transparent; + width: 39%; + color: #fff; + max-width: 493px; } -/* fix Network Wireless*/ - -.node-network-wireless .cbi-section-node { - margin-bottom: 1rem; +.login > .main .container { + display: block; + margin-top: 2rem !important; } -/* applyreboot fix */ - -#maincontainer { - text-align: center; +.login .alert, +.login .main-right .container .alert-message { + margin-bottom: 1em; + padding: 1rem; + background-color: #4a5368 !important; + border: 1px solid #3e4a62; + border-radius: 20px; } -#maincontainer>#maincontent { - padding: 1rem; - margin: 0 auto; - border-radius: 10px; +.login .alert-message > h4 { + padding: 7px 0 0 32px; + font-size: 18px; + background: url(./no-pwd.png) no-repeat left 0 / 28px; display: inline-block; - max-width: 800px; - width: 40%; } -#applyreboot-container { - margin-bottom: 1rem; +.login .alert-message > p { + line-height: 25px; + font-size: 14px; } -#applyreboot-section { - text-align: left; - background: #fff; - padding: 1rem; - border-radius: 10px; +.login .alert-message > * { + margin: .5rem 0; } -#applyreboot-section>div { - margin: 1rem 0; - line-height: 1.5rem; +.login .main-right .container .alert-message .btn { + border: 1px solid #fff; + background-color: transparent; + color: #fff; + border-radius: 20px; + padding: .6rem; + height: auto; } -#applyreboot-container { - margin: 90px 2rem 2rem 2rem; +.login > .main form h2 { + font-size: 1.8rem; + margin: 17px 0; + padding-bottom: 0; + color: #fff; } -#applyreboot-section { - margin: 2rem; - line-height: 300%; +.login > .main form .cbi-map-descr { + margin-bottom: 17px; + display: block; } -/* Shared style */ - -header { - height: 0; - position: fixed; - top: 0; - left: 0; - right: 0; - z-index: 100; - overflow: hidden; +.login > .main form > .cbi-page-actions { + padding: 0; + display: block; } -header { - padding-right: 1rem; - background: #fff; - color: white; - border-bottom: 1px solid #dadada; +.login > .main form > .cbi-page-actions .cbi-button { + margin: 0; + width: 50% !important; + height: 42px; + float: left; } -header .fill, -header .container { - height: 100%; +.login > .main form > .cbi-page-actions .cbi-button-apply { + border-radius: 25px 0 0 25px; } -header .brand { - padding-left: .8rem; - color: #354057; - font-size: 24px; - text-decoration: none; - display: inline-block; - height: 100%; - line-height: 70px; - width: 10%; - text-align: center; +.login > .main form > .cbi-page-actions .cbi-button-reset { + border-radius: 0 25px 25px 0; } -header .btn-con { - line-height: 70px; +.login > .main .cbi-value { + margin: 17px 0; + padding: 0; + display: block; } -header .logout { - background-color: #354057; +.login > .main .cbi-value > .cbi-value-field { + display: block; + position: relative; } -header .logout a { - text-decoration: none; - color: #fff; +.login > .main .cbi-value-last > .cbi-value-field > div { + content: ''; + height: 24px; + width: 24px; + position: absolute; + top: 9px; + right: 12px; + background: no-repeat center center / cover; } -.main { - height: auto; - min-height: 100%; +.login > .main .cbi-value-last > .cbi-value-field .eye { + background-image: url(./op-eye.png); } -.main-right { - height: auto; +.login > .main .cbi-value-last > .cbi-value-field .op-eye { + background-image: url(./cl-eye.png); } -.main-left { - top: 10px; - bottom: 10px; - left: 10px; - width: 15%; - background-color: #636569; - position: fixed; - z-index: 1000; - border-radius: 20px; - min-width: 170px; +.login > .main .cbi-input-text { + width: 100%; + height: 42px; + background: #fff no-repeat 12px center; + border-radius: 20px; + padding-left: 42px; + font-size: 18px; + border: none; } -.main>.main-left .navbar-container { - margin-top: 0.5rem; - float: right; - width: calc(100% + 10px); - height: calc(100% - 110px); - overflow: hidden; +.login > .main .cbi-value .cbi-input-text { + background-image: url(./user.png); } -.main>.main-left .nav { - height: auto; +.login > .main .cbi-value-last .cbi-input-text { + background-image: url(./pwd.png); } -.main>.main-left .nav>li a { - color: #fff; - display: block; +.login .cbi-section { + padding: 0; + box-shadow: none; + background-color: transparent; } -.main>.main-left .nav>li { - padding: 0.5rem 1.7rem; - cursor: pointer; +.login .cbi-page-actions .cbi-button-apply, +.login .cbi-button-apply { + border: 1px solid #f24b7c; + background-color: #f24b7c; } -.main>.main-left .nav>.slide { - padding: 0 15px 0 0; - margin-bottom: 8px; - overflow: hidden; +.login .cbi-button[value="Reset"] { + color: #fff; + border: 1px solid #9a4569; + background-color: #9a4569; } -.main>.main-left .nav>.slide>ul { - display: none; - float: right; - width: calc(100% - 10px); +@media screen and (min-height: 585px) { + .login footer { + position: absolute; + bottom: 0; + width: 100%; + } } -.main>.main-left .nav>.slide>.menu { - display: block; - padding: 0.5rem 1.7rem; - text-decoration: none; - cursor: default; - font-size: 1.15rem; - width: 100%; - float: right; +/* logged 已登录界面 */ +/* header 头部 */ +.logged-in { + min-height: 100%; + background-color: #ebf1f6; } -.main>.main-left .nav>li>a.active, -.main>.main-left .nav>.slide>.menu:hover, -.main>.main-left .nav>.slide>.menu.active { - background: #485267; - float: right; - border-top-right-radius: 50px; - border-bottom-right-radius: 50px; +.logged-in header { + padding: 0 1rem; + height: 4rem; + width: 100%; + position: fixed; + top: 0; + background: #fff; + color: #fff; + z-index: 1000; + border-bottom: 1px solid #f5f5f5; + display: block; } -.main>.main-left .nav>.slide:hover { - background: none; +.logged-in .main { + overflow: hidden; } -.main>.main-left .nav>.slide>.slide-menu>li { - padding: 0.6rem 2rem; - margin: 8px 0; +.logged-in header .container { + height: 100%; } -.main>.main-left .nav>.slide>.slide-menu>.active { - background-color: #F24C7C; - border-top-right-radius: 50px; - border-bottom-right-radius: 50px; +.logged-in header .container .btn-con { + height: 4rem; + line-height: 4rem; } -.main>.main-left .nav>.slide>.slide-menu>li>a { - text-decoration: none; - white-space: nowrap; +.logged-in header .container .btn-con #xhr_poll_status { + display: inline-block; } -.main>.main-left .nav>.slide>.slide-menu>.active>a { - color: white; +.logged-in header .container .btn-con .logout { + background-color: #354057; } -.main>.main-left .nav>.slide>.slide-menu>li:hover { - background: #F24C7C; - border-top-right-radius: 50px; - border-bottom-right-radius: 50px; +.logged-in header .container .btn-con .logout a { + color: #fff; + text-decoration: none; } -.main>.main-left .nav>.slide>.slide-menu>.active:hover { - background-color: #F24C7C; - cursor: hand; +.logged-in .logoImg, +.login-info .logoImg { + display: none; } -/* The scroll bar of the navigation bar is compatible with each browser. */ - -/* Google */ - -.main>.main-left .navbar-container::-webkit-scrollbar { - width: 6px; - background: transparent; +.logged-in .main-right { + float: right; } -.main>.main-left .navbar-container::-webkit-scrollbar-button { - display: none; +.logged-in .main-right .container { + margin: 5rem 1rem 1rem; } -.main>.main-left .navbar-container::-webkit-scrollbar-thumb { - background-color: #ffffff61; - border-radius: 10px; +/* node main login */ +.login-info .main { + margin: 0 auto; + width: 80%; + max-width: 1170px; } -.main>.main-left .navbar-container::-webkit-scrollbar-thumb { - background-color: #839dd67a; - border-radius: 10px; +.login-info .main-left { + display: none; } -.main>.main-left .navbar-container:hover::-webkit-scrollbar-thumb { - background-color: #839dd67a; +.login-info .main-right { + width: 100%; } -/* IE */ - -.main>.main-left .navbar-container { - scrollbar-track-color: transparent; - scrollbar-face-color: #839dd67a; - scrollbar-arrow-color: transparent; - scrollbar-3dlight-color: transparent; - scrollbar-highlight-color: transparent; - scrollbar-shadow-color: transparent; - scrollbar-darkshadow-color: transparent; - scrollbar-base-color: transparent; +/* fix status overview */ +.node-status-overview > .main fieldset:nth-child(4) .td:nth-child(2) { + white-space: normal; } -.main>.main-left .navbar-container:hover { - scrollbar-face-color: #839dd67a; +/* fix status processes */ +.node-status-processes > .main .table .tr .td:nth-child(3) { + white-space: normal; } -footer { - text-align: right; - padding-right: 1rem; - color: #aaa; - font-size: 0.8rem; - text-shadow: 0px 0px 2px #BBB; - position: absolute; - bottom: 0; - right: 0; +.node-admin-status form { + margin: 2rem 2rem 0 0; } -.modal-overlay-active #modal_overlay { - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - width: 100%; - background-color: #000000b8; - z-index: 2000; +/* fix system reboot */ +[data-page="admin-system-reboot"] p { + padding-left: 2rem; } -.modal-overlay-active #modal_overlay .modal { - width: 50%; - background-color: #fff; - margin: 150px auto; - border-radius: 20px; - color: #333; +/* fix network diagnostics */ +.lang_enDiagnostics .tr .td, +.lang_enLoad .tr .td, +.lang_enTraffic.node-admin-status .tr .td, +.lang_enWireless .tr .td, +.lang_enConnections .tr .td { + border: none; } -/* The style of the prompt message */ - -.alert-message { - padding: 13px 11%; - border-radius: 10px; - background-color: #FFF; +[data-page="admin-system-reboot"] p > span { + position: relative; + top: .1rem; + left: 1rem; } -.danger { - background-color: #FA8072; - color: black; +.lang_enInterfaces .ifacebox-body { + border-width: 1px; + border-style: solid; } -.success { - background-color: #90EE90; - color: black; +/* samba */ +#cbi-samba .cbi-value-last .cbi-value-field { + display: block; } -.error { - color: red; +#cbi-samba .cbi-value-last .cbi-value-title { + width: auto; + padding-bottom: .6rem; } -.alert-message>h4 { - padding: 7px 0 7px 36px; - margin: 0; - font-weight: normal; - font-size: 18px; - background: url(./no-pwd.png) no-repeat left 43%/ 28px; - display: inline-block; +/* software */ +.controls > * > .btn:not([aria-label$="page"]) { + flex-grow: initial !important; + margin-top: .1rem; } -.alert-message>p { - font-size: 14px; - line-height: 1.5rem; +.controls > #pager > .btn[aria-label$="page"] { + font-size: 1.4rem; } -.alert-message a { - padding: 4px 0; - margin-top: 12px; - width: 100%; - background-color: transparent; - color: #fff; - font-size: 16px; - border: 1px solid #fff; - border-radius: 50px; +.controls > * > label { + margin-bottom: .2rem; } -/* All styles of the login interface */ -.node-main-login { - height: auto; - min-height: 100%; - background: #fff url(./loginBG.png) no-repeat center center / cover; +[data-page="admin-system-opkg"] div.btn { + line-height: 3; + display: inline; + padding: .3rem .6rem; } -.node-main-login header { - display: none; +[data-page^="admin-system-admin"]:not(.login) .cbi-map:not(#cbi-dropbear), +[data-page="admin-system-opkg"] #maincontent > .container { + margin-top: 2rem; + padding-top: .1rem; } -.node-main-login .main { - height: auto; +[data-page="admin-system-opkg"] #maincontent > .container { + margin: 2rem; + margin-bottom: 1rem; } -.node-main-login>.main>.main-left { - display: none; +.td.version, +.td.size { + white-space: normal !important; + word-break: break-word; } -.node-main-login>.main>.main-right { - width: 100%; - height: auto; - min-height: 100%; +.cbi-tabmenu + .cbi-section { + margin-top: 0; + border: 1px solid #d4d4d4; + border-top: none; } -.node-main-login>.main #maincontent { - position: absolute; - min-width: 492px; - width: 100%; - top: 47%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - height: auto; - text-align: center; -} - -.node-main-login>.main .container { - padding: 0; - width: 30%; - max-width: 492px; - display: inline-block; -} - -.node-main-login>.main .logoImg a { - margin: 0 0 18px 0; - display: block; - font-size: 30px; - color: #fff; - text-decoration: none; -} - -.node-main-login>.main .logoImg img:first-child { - width: 72px; +/* wireless overview */ +#cbi-wireless > #wifi_assoclist_table > .tr { } -.node-main-login .warning { - background-color: #3E4A62; - color: #fff; +#cbi-wireless > #wifi_assoclist_table > .tr.placeholder > .td { + right: 33px; + bottom: 33px; + left: 33px; + border-top: thin solid #ddd !important; } -.node-main-login>.main form h2 { - margin: 17px 0; - padding: 0; - font-size: 24px; - color: #fff; - font-weight: normal; - border: 0; +#cbi-wireless > #wifi_assoclist_table > .tr.table-titles { + border-radius: 20px 20px 0 0; } -.node-main-login>.main form .cbi-map-descr { - margin: 0 0 12px; - padding: 0; - font-size: 12px; - color: #B1B6BB; +#cbi-wireless > #wifi_assoclist_table > .tr.placeholder, +#cbi-wireless > #wifi_assoclist_table > .tr.placeholder .td { + border-radius: 0 0 20px 20px; + overflow: hidden; } -.node-main-login>.main form .cbi-section { - margin: 0; - padding: 0; - background-color: transparent; - box-shadow: none; +#cbi-wireless > #wifi_assoclist_table > .tr.table-titles .th:first-child { + border-top-left-radius: 20px; } -.node-main-login>.main form .cbi-value { - display: block; +#cbi-wireless > #wifi_assoclist_table > .tr.table-titles .th:last-child { + border-top-right-radius: 20px; } -.node-main-login>.main form .cbi-value-title { - margin: 0; - padding: 0; - display: none; +#cbi-wireless > #wifi_assoclist_table > .tr.table-titles > .th { + border-bottom: thin solid #ddd; } -.node-main-login>.main form .cbi-value .cbi-value-field { - margin-bottom: 16px; - display: block; - width: 100%; - position: relative; +#wifi_assoclist_table > .tr > .td[data-title="RX Rate / TX Rate"] { + width: 23rem; } -.node-main-login>.main form .cbi-value-field input { - padding-left: 48px; - width: 100%; - border: 1px solid #556270; - height: 42px; - border-radius: 50px; - font-size: 20px; - color: #9c9fa1; +/* firewall */ +#iptables { + font-family: inherit; + font-weight: normal; + font-style: normal; + line-height: 1; + min-width: inherit; + margin: 0 0 2rem 0; + padding: 2rem; + border: 1px solid #d4d4d4; + border-radius: 0; + background-color: #fff; + border-top: none; } -.node-main-login form .cbi-value-field .iconpwd, -.node-main-login form .cbi-value-field .iconuser, -.node-main-login form .cbi-value-field .iconeye { - height: 24px; - width: 20px; - position: absolute; - top: 50%; - left: 16px; - transform: translateY(-50%); -} - -.node-main-login form .cbi-value-field .iconpwd { - background: transparent url(./pwd.png) no-repeat center center / 100%; +#cbi-firewall-redirect table *, +#cbi-network-switch_vlan table *, +#cbi-firewall-zone table * { + font-size: small; } -.node-main-login form .cbi-value-field .iconuser { - background: transparent url(./user.png) no-repeat center center / 100%; +#cbi-firewall-redirect table input[type="text"], +#cbi-network-switch_vlan table input[type="text"], +#cbi-firewall-zone table input[type="text"] { + width: 5rem; } -.node-main-login form .cbi-value-field .iconeye { - left: auto; - right: 16px; - background: transparent url(./op-eye.png) no-repeat center center / 100%; +#cbi-firewall-redirect table select, +#cbi-network-switch_vlan table select, +#cbi-firewall-zone table select { + min-width: 3.5rem; } -.node-main-login form .cbi-value-field .cleye { - background-image: url(./cl-eye.png); +#cbi-network-switch_vlan .th, +#cbi-network-switch_vlan .td { + flex-basis: 12%; } -.node-main-login form .cbi-value-field .opeye { - background-image: url(./op-eye.png); +#cbi-firewall-zone .table, +#cbi-network-switch_vlan .table { + display: table; } -.node-main-login form .cbi-page-actions { - padding: 0; - border: 0; - text-align: center; +#cbi-firewall-zone .td.cbi-section-actions { + width: 100%; } -.node-main-login form .cbi-page-actions input { - margin: 0 0 0 -4px; - padding: 9px 0; - border: 0; - display: inline-block; - border-radius: 0; - width: 50%; - font-size: 18px; +/* applyreboot fix */ +#applyreboot-container { + margin: 2rem; } -.node-main-login form .cbi-page-actions .cbi-button-apply { - background-color: #F24C7C; - border-top-left-radius: 50px; - border-bottom-left-radius: 50px; +#applyreboot-section { + line-height: 300%; + margin: 2rem; } -.node-main-login form .cbi-page-actions .cbi-button-reset { - background-color: #8a4568; - color: #fff; - border-top-right-radius: 50px; - border-bottom-right-radius: 50px; +/* openvpn bug fix */ +.OpenVPN a { + line-height: initial !important; } -.node-main-login input.cbi-input-text { - box-shadow: 0 0 0 1000px white inset; +/* custom commands */ +.commandbox { + width: 24% !important; + padding: .5rem 1rem; + border-bottom: thin solid #ccc; + background: #eee; } -/* Interface after login */ -.logged-in { - background-color: #EBF1F6; +.commandbox h3 { + line-height: normal !important; + overflow: hidden; + margin: 6px 0 !important; + white-space: nowrap; + text-overflow: ellipsis; } -.logged-in header { - height: 70px; +.commandbox div { + left: auto !important; } -.logged-in .main { - overflow: hidden; +.commandbox code { + position: absolute; + overflow-x: hidden; + overflow-y: auto; + max-width: 60%; + max-height: 55px; + margin-top: -3px; + margin-left: 4px; + padding: 2px 3px; + text-overflow: ellipsis; } -.logged-in .main-right { - padding: 0 1rem 3rem 0; - margin-top: 90px; - float: right; +.commandbox p:first-of-type { + margin-top: -6px; } -.logged-in .main .logoImg { - display: none; +.commandbox p:nth-of-type(2) { + margin-top: 2px; } -.logged-in .main .main-left .nav-container { - background-color: #354057; - border-radius: 20px; - position: absolute; - top: 10px; - left: 10px; - right: -10px; - bottom: 10px; +[data-page^="admin-system-commands"] .panel-title, +[data-page^="command-cfg"] .mobile-hide, +[data-page^="command-cfg"] header .container > #logo { + display: none; } -.logged-in .main .main-left .brand { - margin: 0 auto; - padding: 44px 0 23px; - width: 85%; - color: #fff; - display: block; - font-size: 18px; - text-align: center; - text-decoration: none; - border-bottom: 2px solid #ffffff42; - /* Single line text omitted */ - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - -webkit-text-overflow: ellipsis; - -o-text-overflow: ellipsis; -} - -.logged-in .alert-message { - padding: 20px 2rem; - border: none; - background-color: #fff; -} - -.logged-in .alert-message a { - padding: 8px 2rem; - width: auto; - border: none; - background-color: #468EA4; - color: #fff; +.PC-hide { + display: none; } @media screen and (max-width: 1600px) { - .main-left { - width: calc(0% + 13rem); - } - - .btn, - .cbi-button { - padding: 0.3rem 0.6rem; - font-size: 0.8rem; - } - - header>.container>.pull-right>* { - top: 0.35rem; - } - - .label { - padding: 0.2rem 0.6rem; - } - - .cbi-value-title { - width: 15rem; - padding-right: 0.6rem; - } - - .cbi-input-textarea { - font-size: small; - } + header .container > #logo { + margin: 0 2.5rem 0 .5rem; + } + + .cbi-dynlist > .item { + max-width: 21.9rem; + } + + .btn:not(button), + .cbi-button { + font-size: .8rem; + padding: .3rem .6rem; + } + + .label { + padding: .2rem .6rem; + } + + .cbi-value-title { + width: 15rem; + padding-right: .6rem; + } + + fieldset, + .cbi-section { + padding: 1rem; + } + + .cbi-input-textarea { + font-size: small; + } + + .node-admin-status > .main fieldset li > a { + padding: .3rem .6rem; + } + + #cbi-firewall-zone > .table { + display: block; + } +} + +@media screen and (max-width: 1400px) { + .logged-in .main-right { + width: calc(100% - 230px); + } + + .cbi-dynlist > .item { + max-width: 19.9rem; + } + + .cbi-tabmenu > li > a, + .tabs > li > a { + padding: .2rem .5rem; + } + + .panel-title { + font-size: 1.1rem; + padding-bottom: 1rem; + } + + table { + font-size: .7rem !important; + width: 100% !important; + } + + .table .cbi-input-text { + width: 100%; + } + + .main .main-left > .nav > li, + .main .main-left > .nav > li a, + .main .main-left > .nav > .slide > .menu { + font-size: .9rem; + } + + .main .main-left > .nav > .slide > .slide-menu > li > a { + font-size: .7rem; + } + + #modal_overlay { + top: 3.5rem; + } + + [data-page="admin-network-firewall-forwards"] .table:not(.cbi-section-table) { + display: block; + } + + [data-page="admin-network-firewall-forwards"] .table:not(.cbi-section-table), + [data-page="admin-network-firewall-rules"] .table:not(.cbi-section-table), + [data-page="admin-network-hosts"] .table { + overflow-y: visible; + } + + .commandbox { + width: 32% !important; + } } -@media screen and (max-width: 1280px) { - .node-main-login>.main .container { - width: 50%; - } - - .cbi-tabmenu>li>a, - .tabs>li>a { - padding: 0.2rem 0.5rem; - } - - .panel-title { - font-size: 1.1rem; - padding-bottom: 1rem; - } +@media screen and (max-width: 992px) { + .login > .main #maincontent { + margin-top: 2rem; + width: 90%; + } + + .login-info .main { + width: 100%; + } + + .login > .main .container { + width: 100%; + } + + .logged-in header { + height: 3rem; + z-index: 2000; + } + + .showSide, + .logged-in header .container .btn-con { + height: 3rem; + line-height: 3rem; + } + + .logged-in .main-left { + display: none; + z-index: 1000; + position: fixed; + top: 3rem; + bottom: 0; + left: 0; + right: 0; + border-radius: 0; + background-color: rgba(0, 0, 0, .3); + height: calc(100% - 3rem); + } + + .main-left .nav-container { + top: 0; + left: 0; + width: 50%; + border-radius: 0; + bottom: 0; + height: 100%; + } + + .main-left .nav-container .navbar-container { + overflow-y: scroll; + } + + .logged-in .main-right { + width: 100%; + } + + body.login { + background: #354057; + } + + [data-page^="command-cfg"] header .container > .brand { + display: block; + margin-top: -1.75rem; + } + + .cbi-dynlist > .item { + max-width: 14.9rem; + } + + .showSide { + display: inline-block; + cursor: pointer; + width: 30px; + } + + .showSide::before { + content: ''; + display: inline-block; + height: 24px; + width: 30px; + background: url(./menu-logo.png) no-repeat center center / 100%; + vertical-align: middle; + } + + .login > .main .cbi-value-title { + text-align: left; + } + + .cbi-value-title { + width: 9rem; + padding-right: 1rem; + } + + #diag-rc-output > pre, + #command-rc-output > pre { + font-size: 1rem; + } + + .table { + display: block; + } + + #packages.table { + display: grid; + } + + .tr { + display: flex; + flex-direction: row; + flex-wrap: wrap; + } + + .Overview .table[width="100%"] > .tr { + flex-wrap: nowrap; + } + + .tr.placeholder { + border-bottom: thin solid #ddd; + } + + .tr.placeholder > .td, + #cbi-firewall .tr > .td, + #iptables .tr:nth-child(2) > .td, + #cbi-network .tr:nth-child(2) > .td, + .cbi-section #wifi_assoclist_table .tr > .td { + border-top: 0; + } + + .th, + .td { + display: inline-block; + align-self: flex-start; + flex: 2 2 25%; + text-overflow: ellipsis; + word-wrap: break-word; + } + + .td select, + .td input[type="text"] { + width: 100%; + word-wrap: normal; + } + + .td [data-dynlist] > input, + .td input.cbi-input-password { + width: calc(100% - 1.5rem); + } + + .td[data-type="button"], + .td[data-type="fvalue"] { + flex: 1 1 12.5%; + text-align: left; + } + + .th.cbi-value-field, + .td.cbi-value-field, + .th.cbi-section-table-cell, + .td.cbi-section-table-cell { + flex-basis: auto; + padding-top: 1rem; + } + + .cbi-section-table-row { + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: space-between; + } + + .td.cbi-value-field, + .cbi-section-table-cell { + display: inline-block; + flex: 10 10 auto; + flex-basis: 50%; + text-align: center; + } + + .td.cbi-section-actions { + vertical-align: bottom; + } + + .tr.table-titles, + .tr.cbi-section-table-titles, + .tr.cbi-section-table-descr { + display: none; + } + + .tr[data-title]::before, + .tr.cbi-section-table-titles.named::before { + font-size: .9rem; + display: block; + flex: 1 1 100%; + border-bottom: thin solid rgba(0, 0, 0, .26); + background: #90c0e0; + } + + .td[data-title], + [data-page^="admin-status-realtime"] .td[id] { + text-align: left; + } + + .td[data-title]::before { + display: block; + } + + .cbi-button + .cbi-button { + margin-left: 0; + } + + .td.cbi-section-actions > * > *, + .td.cbi-section-actions > * > form > * { + margin: 2.1px 3px; + } + + .Firewall form { + font-family: inherit; + font-weight: normal; + font-style: normal; + line-height: normal; + position: static !important; + min-width: inherit; + margin: 0 0 2rem 0; + padding: 2rem; + border: 0; + border-radius: 0; + background-color: #fff; + } + + .Firewall form input { + width: 100% !important; + margin: 0; + margin-top: 1rem; + } + + .Firewall .center, + .Firewall .center::before { + text-align: left !important; + } + + .commandbox { + width: 100% !important; + } + + /* The scroll bar of the navigation bar is compatible with each browser. */ + /* Google */ + .main-left .navbar-container::-webkit-scrollbar { + width: 6px; + background: transparent; + } + + .main-left .navbar-container::-webkit-scrollbar-button { + display: none; + } + + .main-left .navbar-container::-webkit-scrollbar-thumb { + background-color: #ffffff61; + border-radius: 10px; + } + + .main-left .navbar-container::-webkit-scrollbar-thumb { + background-color: #839dd67a; + border-radius: 10px; + } + + .main-left .navbar-container:hover::-webkit-scrollbar-thumb { + background-color: #839dd67a; + } + + /* IE */ + .main-left .navbar-container { + scrollbar-track-color: transparent; + scrollbar-face-color: #839dd67a; + scrollbar-arrow-color: transparent; + scrollbar-3dlight-color: transparent; + scrollbar-highlight-color: transparent; + scrollbar-shadow-color: transparent; + scrollbar-darkshadow-color: transparent; + scrollbar-base-color: transparent; + } + + .main-left .navbar-container:hover { + scrollbar-face-color: #839dd67a; + } +} + +@media screen and (max-width: 600px) { + body { + font-size: .8rem; + } + + .cbi-progressbar::after { + font-size: .95em; + line-height: 1.5; + } + + fieldset, + .cbi-section { + margin: 1rem 0 0 0; + padding: 1rem; + } + + .tabs { + margin: 0 -1rem; + } + + .main-left .nav-container { + width: 70%; + } + + .main .main-left > .nav > .slide > .menu { + font-size: 1.2rem; + } + + .main .main-left > .nav > .slide > .slide-menu > li > a { + font-size: 1rem; + } + + .cbi-value-title { + display: block; + width: 100%; + min-width: 0 !important; + margin-top: 1rem; + margin-bottom: .5rem; + text-align: left; + } + + .cbi-value-field, + .cbi-value-description { + width: 100%; + } + + .cbi-value > .cbi-value-field { + display: inline-block; + } + + .cbi-tabmenu > li, + .tabs > li { + padding: .6rem 0; + } + + .cbi-tabmenu > li > a, + .tabs > li > a { + font-size: .9rem; + padding: .2rem .3rem; + } + + .cbi-page-actions > div > input { + display: none; + } + + .cbi-page-actions > .cbi-button { + margin-top: .2rem; + } + + .login > .main .cbi-value { + padding: 0; + } + + .login > .main form > div:nth-last-child(1) { + margin-top: 2rem; + } + + .login > .main .cbi-value-title { + font-size: 1.2rem; + width: 100% !important; + } + + .login > .main fieldset { + margin: 0; + padding: .5rem; + } + + .commandbox p:first-of-type { + margin-top: -8px; + } + + #diag-rc-output > pre, + #command-rc-output > pre { + font-size: .8rem; + } + + h2 { + font-size: 2rem; + } + + .tabs > li > a { + font-size: .9rem; + } + + select, + input { + font-size: .9rem; + } + + code { + font-size: .8rem; + } + + .panel-title { + font-size: 1.4rem; + padding-bottom: 1rem; + } + + .node-system-packages > .main .cbi-value.cbi-value-last > div { + width: 100% !important; + } + + .node-system-packages > .main .cbi-value .cbi-value-field input { + width: 100%; + } + + .th, + .td { + flex-basis: 50%; + } + + .td.cbi-value-field { + flex-basis: 100%; + } + + .td.cbi-value-field[data-type="button"], + .td.cbi-value-field[data-type="fvalue"] { + flex-basis: 25%; + text-align: left; + } + + .tr[data-title]::before, + .tr.cbi-section-table-titles.named::before { + font-size: 1rem; + } + + td > .ifacebadge, + .td > .ifacebadge { + font-size: .62rem; + } + + #cbi-wireless .td { + overflow: hidden; + } + + .hide-sm, + .hide-xs:not([data-title="MAC-Address"]) { + display: none; + } + + .mobile-hide { + display: none; + } +} - table { - font-size: 0.7rem !important; - width: 100% !important; - } +@media screen and (min-width: 1152px) { + .cbi-value input[type="password"], + .cbi-value input[type="text"] { + min-width: 20rem; + } + + .cbi-value-field .cbi-input-select { + width: 20rem; + } + + .cbi-value-field .cbi-dropdown { + min-width: 20rem; + } + + .cbi-section-node .tr { + overflow: hidden; + } +} + +@media screen and (min-width: 1366px) { + .cbi-value input[type="password"], + .cbi-value input[type="text"] { + min-width: 22rem; + } - .main>.main-left .nav>li, - .main>.main-left .nav>li a, - .main>.main-left .nav>.slide>.menu { - font-size: 0.9rem; - } + .cbi-value-field .cbi-input-select { + width: 22rem; + } - .main>.main-left .nav>.slide>.slide-menu>li>a { - font-size: 0.7rem; - } -} - -@media screen and (max-width: 992px) { - .logged-in header { - padding: 0 .8rem; - height: 45px; - } - - header .brand { - display: none; - } - - header .btn-con { - line-height: 45px; - } - - .main-left { - width: auto; - height: auto; - position: fixed; - z-index: 100; - right: 100%; - left: 0; - top: 0; - bottom: 0; - background: #0000007d; - border-radius: 0; - min-width: 0; - overflow: hidden; - } - - .main>.main-left .navbar-container { - overflow-y: scroll; - overflow-x: hidden; - } - - .main>.main-left .nav>.slide>.slide-menu>li { - width: 90%; - } - - header .container { - line-height: 43px; - } - - .main-right { - width: 100%; - } - - .node-main-login>.main .container { - width: 60%; - } - - .showSide { - padding: 0.1rem; - display: inline-block; - vertical-align: middle; - } - - .cbi-value-title { - width: 9rem; - padding-right: 1rem; - } - - #diag-rc-output>pre { - font-size: 1rem; - } - - .tr { - display: flex; - flex-direction: row; - flex-wrap: wrap; - } - - .th, - .td { - flex: 2 2 25%; - align-self: flex-start; - text-overflow: ellipsis; - word-wrap: break-word; - display: inline-block; - } - - .td select, - .td input[type="text"] { - word-wrap: normal; - width: 100%; - } - - .td [data-dynlist]>input, - .td input.cbi-input-password { - width: calc(100% - 1.5rem); - } - - .td[data-type="button"], - .td[data-type="fvalue"] { - flex: 1 1 12.5%; - text-align: left; - } - - .th.cbi-value-field, - .td.cbi-value-field, - .th.cbi-section-table-cell, - .td.cbi-section-table-cell { - flex-basis: auto; - } - - .cbi-section-table-row { - display: flex; - flex-wrap: wrap; - flex-direction: row; - justify-content: space-between; - } - - .td.cbi-value-field, - .cbi-section-table-cell { - text-align: center; - display: inline-block; - flex: 10 10 auto; - } - - .td.cbi-section-actions { - text-align: right; - align-self: flex-end; - vertical-align: bottom; - } - - .tr.table-titles, - .tr.cbi-section-table-titles, - .tr.cbi-section-table-descr { - display: none; - } - - .tr[data-title]::before, - .tr.cbi-section-table-titles.named::before { - display: block; - flex: 1 1 100%; - background: #eef; - font-size: .9rem; - border-bottom: 1px solid rgba(0, 0, 0, .26); - } - - .td[data-title] { - text-align: left; - font-size: 12px; - } - - .td[data-title]::before { - display: block; - } - - .hide-sm, - .hide-xs { - display: none; - } - - /* All styles of the login interface */ - .node-main-login .showSide { - display: none !important; - } - - .logged-in .main { - padding-bottom: .8rem; - } - - .logged-in .main .main-left .nav-container { - background-color: #354057; - border-radius: 0; - position: absolute; - top: 0; - left: 0; - right: 20%; - bottom: 0; - } - - .logged-in .main-right { - padding: 0 .8rem; - margin-top: calc(45px + .8rem); - width: 100%; - max-width: unset; - float: unset; - } - - .logged-in .alert-message { - padding: 8px .8rem; - } - - .cbi-section { - margin: .8rem 0 0 0; - padding: .8rem; - } - - small { - font-size: 10px; - line-height: 0; - } - - .cbi-section>h3:first-child, - .panel-title { - font-size: 1rem; - } - - .network-status-table .ifacebox-body>span { - font-size: 12px; - } - - .cbi-section .ifacebox-body .ifacebadge>span { - font-size: 12px; - } - - .table .tr.cbi-rowstyle-1:nth-child(n), - .table .tr:nth-child(n) { - font-size: 12px; - } - - .node-network-firewall .table .tr.cbi-rowstyle-1:nth-child(n), - .node-network-firewall .table .tr:nth-child(n) { - border-radius: 20px; - overflow: hidden; - } - - h2 { - margin: 1rem 0 0 0; - font-size: 1.4rem; - padding-bottom: 0; - border-bottom: none; - } - - h4 { - font-size: 1rem; - } - - .cbi-section-node-tabbed { - padding: 0 .5rem; - } - - .cbi-button, - .cbi-button-action.important { - margin-right: .3rem; - } - - select { - border-bottom: 1px solid rgba(0, 0, 0, .26); - } - - .node-status-processes .table .tr.cbi-rowstyle-1:nth-child(n), - .node-status-processes .table .tr:nth-child(n) { - border-radius: 20px; - } -} - -@media screen and (max-width: 768px) { - .node-main-login { - background: none; - } - - .node-main-login>.main .logoImg a { - font-size: 30px; - margin: 12px 0 22px 0; - color: #354057; - } - - .node-main-login>.main #maincontent { - padding-top: 0; - padding-bottom: 1rem; - min-width: 100%; - top: 0; - transform: translateY(0) translateX(-50%); - } - - .alert-message { - padding: 8px 15%; - } - - .alert-message>h4 { - font-size: 14px; - } - - .alert-message>p, - .alert-message a { - font-size: 12px; - } - - .a lert-message>h4 { - padding: 8px 0 8px 36px; - } - - .alert-message a { - padding: 8px 0; - margin-top: 8px; - } - - .node-main-login .warning { - background-color: #F5F5F6; - color: #354057; - } - - .alert-message a { - color: #f24c7c; - background: #fff; - } - - .node-main-login>.main form h2 { - font-size: 16px; - margin: 20px 0 16px; - color: #354057; - } - - .node-main-login>.main form .cbi-value-field input { - padding-left: 34px; - height: 36px; - background-size: 16px; - font-size: 16px; - } - - .node-main-login>.main form .cbi-value-field { - margin-bottom: 20px; - } - - .node-main-login form .cbi-page-actions input { - padding: 6px 0; - font-size: 16px; - } - - .node-main-login form .cbi-value-field .iconpwd, - .node-main-login form .cbi-value-field .iconuser, - .node-main-login form .cbi-value-field .iconeye { - height: 20px; - width: 16px; - left: 12px; - } - - .node-main-login form .cbi-value-field .iconeye { - left: auto; - right: 12px; - } - - .mobile-hide { - display: none; - } - - .PC-hide { - display: inline-block; - } -} - -@media screen and (max-width: 480px) { - body { - font-size: 1rem; - } - - .cbi-value-title { - width: 100%; - min-width: 0rem !important; - display: block; - margin-top: 1rem; - margin-bottom: 0.5rem; - text-align: left; - } - - .cbi-value-field, - .cbi-value-description { - width: 100%; - } - - .cbi-value>.cbi-value-field { - display: inline-block; - } - - .cbi-tabmenu>li, - .tabs>li { - padding: 0.6rem 0rem; - } - - .cbi-tabmenu>li>a, - .tabs>li>a { - padding: 0.2rem 0.3rem; - font-size: 0.9rem; - } - - .cbi-page-actions>div>input { - display: none; - } - - .tabs>li>a { - font-size: 0.9rem; - } - - select, - input { - font-size: 10px; - } - - .panel-title { - font-size: 1.4rem; - padding-bottom: 1rem; - } - - .node-system-packages>.main .cbi-value.cbi-value-last>div { - width: 100% !important; - } - - .node-system-packages>.main .cbi-value .cbi-value-field input { - width: 100%; - } - - .node-status-iptables>.main div>.cbi-map>form { - position: static !important; - margin: 0 0 2rem 0; - padding: 2rem; - border: 0; - font-weight: normal; - font-style: normal; - line-height: 1; - font-family: inherit; - min-width: inherit; - background-color: #FFF; - border-radius: 20px; - -webkit-overflow-scrolling: touch; - } - - .node-status-iptables>.main div>.cbi-map>form input[type="submit"] { - width: 100% !important; - margin: 0; - } - - .node-status-iptables>.main div>.cbi-map>form input[type="submit"]+input[type="submit"] { - margin-top: 1rem; - } - - .node-main-login>.main .container { - min-width: 90%; - } - - .th, - .td { - flex-basis: 50%; - } - - .td.cbi-value-field { - flex-basis: 100%; - } - - .td.cbi-value-field[data-type="dvalue"] { - flex-basis: 50%; - } - - .td.cbi-value-field[data-type="button"], - .td.cbi-value-field[data-type="fvalue"] { - flex-basis: 25%; - text-align: left; - } - - .tr[data-title]::before, - .tr.cbi-section-table-titles.named::before { - font-size: 1rem; - } - - .hide-xs { - display: none; - } - - /* All styles of the login interface */ - .node-main-login>.main .cbi-value { - padding: 0; - } - - .alert-message { - padding: 8px 10%; - } -} - -@media screen and (min-width: 992px) { - .cbi-value-field .cbi-input-select { - width: 20rem; - } - - .cbi-value-field .cbi-dropdown { - min-width: 20rem; - } -} - -@media screen and (min-width: 1280px) { - .cbi-value-field .cbi-input-select { - width: 22rem; - } - - .cbi-value-field .cbi-dropdown { - min-width: 22rem; - } + .cbi-value-field .cbi-dropdown { + min-width: 22rem; + } } @media screen and (min-width: 1600px) { - .cbi-value-field .cbi-input-select { - width: 25rem; - } - - .cbi-value-field .cbi-dropdown { - min-width: 25rem; - } + .cbi-value input[type="password"], + .cbi-value input[type="text"] { + min-width: 25rem; + } + + .cbi-value-field .cbi-input-select { + width: 25rem; + } + + .cbi-value-field .cbi-dropdown { + min-width: 25rem; + } } diff --git a/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js b/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js index c1a3dcd00..e8424411d 100755 --- a/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js +++ b/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js @@ -16,8 +16,8 @@ * Licensed to the public under the Apache License 2.0 */ -(function ($) { - $(".main > .loading").fadeOut(); +(function (win, $) { + $(".loading").fadeOut(); /** * trim text, Remove spaces, wrap @@ -33,16 +33,17 @@ var mainNodeName = undefined; var nodeUrl = ""; - (function(node){ - if (node[0] == "admin"){ + (function (node) { + var luciLocation; + if (node[0] == "admin") { luciLocation = [node[1], node[2]]; - }else{ + } else { luciLocation = node; } - for(var i in luciLocation){ + for (var i in luciLocation) { nodeUrl += luciLocation[i]; - if (i != luciLocation.length - 1){ + if (i != luciLocation.length - 1) { nodeUrl += "/"; } } @@ -59,7 +60,7 @@ return true; } - $(".main > .main-left .nav > .slide > .menu").each(function () { + $(".main-left .nav > .slide > .menu").each(function () { var ulNode = $(this); ulNode.next().find("a").each(function () { var that = $(this); @@ -91,8 +92,7 @@ enterShow: false }); } - - $(".main > .main-left .nav > .slide > .menu").click(function () { + $(".main-left .nav > .slide > .menu").click(function () { var ul = $(this).next(".slide-menu"); var menu = $(this); if (!ul.is(":visible")) { @@ -108,33 +108,32 @@ if ($('.nav').length > 0 && $(window).width() > 992) { oScroll.setSize(200); } - setInterval(function(){ - if($('.nav').height() < $('.navbar-container').height()){ - $('.nav').css('transform', 'translate(0px, 0px)'); + setInterval(function () { + if ($('.nav').height() < $('.navbar-container').height()) { + $('.nav').css('transform', 'translate(0px, 0px)'); } }, 300); return false; }); - /** * hook menu click and add the hash */ - $(".main > .main-left .nav > .slide > .slide-menu > li > a").click(function () { + $(".main-left .nav > .slide > .slide-menu > li > a").click(function () { if (lastNode != undefined) lastNode.removeClass("active"); $(this).parent().addClass("active"); - $(".main > .loading").fadeIn("fast"); + $(".loading").fadeIn("fast"); return true; }); /** * fix menu click */ - $(".main > .main-left .nav > .slide > .slide-menu > li").click(function () { + $(".main-left .nav > .slide > .slide-menu > li").click(function () { if (lastNode != undefined) lastNode.removeClass("active"); $(this).addClass("active"); - $(".main > .loading").fadeIn("fast"); - window.location = $($(this).find("a")[0]).attr("href"); + $(".loading").fadeIn("fast"); + win.location = $($(this).find("a")[0]).attr("href"); return false; }); @@ -160,7 +159,7 @@ that.click(function () { var href = that.attr("href"); if (href.indexOf("#") == -1) { - $(".main > .loading").fadeIn("fast"); + $(".loading").fadeIn("fast"); return true; } }); @@ -171,54 +170,50 @@ * Sidebar expand */ var showSide = false; - $(".showSide").click(function () { - if (showSide) { - $(".main-left").stop(true).animate({ - right: '100%' - }, "fast"); - $(".main-right").css("overflow-y", "auto"); + if ($(win).height() == 992) { + $(".showSide").click(function () { + if (showSide) { + $(".darkMask").stop(true).fadeOut("fast"); + $(".main-left").stop(true).fadeOut("fast"); + $(".main-right").css("overflow-y", "visible"); + showSide = false; + } else { + $(".darkMask").stop(true).fadeIn("fast"); + $(".main-left").stop(true).animate({ + width: "100%" + }, "fast").fadeIn("fast"); + $(".main-right").css("overflow-y", "hidden"); + showSide = true; + } + }); + $(".main-left").click(function(e) { + e.preventDefault(); + $(".main-left").stop(true).fadeOut("fast"); showSide = false; - } else { - $(".main-left").stop(true).animate({ - right: '0' - }, "fast"); - $(".main-right").css("overflow-y", "hidden"); - showSide = true; - } - }); + }); + } - $(".logged-in .main-left").click(function () { + $(".darkMask").click(function () { if (showSide) { showSide = false; - - $(this).stop(true).fadeOut("fast"); + $(".darkMask").stop(true).fadeOut("fast"); $(".main-left").stop(true).animate({ - right: '100%' + width: "0" }, "fast"); - $(".main-right").css("overflow-y", "auto"); - } - }); - - $(".logged-in .main-left > *").click(function () { - event.stopPropagation(); - if ((navigator.userAgent.indexOf('MSIE') >= 0)&& (navigator.userAgent.indexOf('Opera') < 0)){ - event.cancelBubble = true; - }else{ - event.stopPropagation(); + $(".main-right").css("overflow-y", "visible"); } }); - $(window).resize(function () { - if ($(window).width() > 921) { + $(win).resize(function () { + if ($(win).width() > 921) { $(".main-left").css("width", ""); $(".darkMask").stop(true); $(".darkMask").css("display", "none"); showSide = false; } - if( $(window).width() > 992 ){ - $('.logged-in .main-right').width( $(window).width() - $('.logged-in .main-left').width() - 50 ); - } + + $('body.login').height($(win).height()); }); /** @@ -231,7 +226,7 @@ $(".cbi-section-table-titles, .cbi-section-table-descr, .cbi-section-descr").each(function () { var that = $(this); - if (that.text().trim() == ""){ + if (that.text().trim() == "") { that.css("display", "none"); } }); @@ -263,53 +258,20 @@ } } - $('<div class="iconpwd"></div>').appendTo($('.node-main-login form .cbi-value input[type="password"]').parent()[0]); - - $('<div class="iconuser"></div>').appendTo($('.node-main-login form .cbi-value input[type="text"]').parent()[0]); - - $('<div class="iconeye"></div>').appendTo($('.node-main-login form .cbi-value input[type="password"]').parent()[0]); - - var num = true; - $('.cbi-value-field .iconeye').click(function(){ - if(num){ - $('.node-main-login form .cbi-value-last input[type="password"]').prop('type', 'text'); - $('.node-main-login form .cbi-value-field .iconeye').removeClass('opeye').addClass('cleye'); - num = false; - }else { - $('.node-main-login form .cbi-value-last input[type="text"]').prop('type', 'password'); - $('.node-main-login form .cbi-value-field .iconeye').removeClass('cleye').addClass('opeye'); - num = true; - } - + $('.lang_enInterfaces .ifacebox-head').each(function () { + $(this).next().css('border-color', $(this).css('background-color')); }); - $('body.logged-in').css('min-height', $(window).height()); - - $(function(){ - if( $(window).width() > 992 ){ - $('.logged-in .main-right').outerWidth( $(window).width() - $('.logged-in .main-left').width() - 50 ); + $('<div class="eye"></div>').appendTo('.login > .main .cbi-value-last > .cbi-value-field'); + $('.login > .main .cbi-value-last > .cbi-value-field .eye').click(function () { + var className = $(this).attr('class'); + if (className.indexOf('op-eye') > (-1)) { + $('.login > .main .cbi-value-last > .cbi-value-field').children().prop('type', 'text'); + $(this).addClass('eye').removeClass('op-eye'); + } else { + $('.login > .main .cbi-value-last > .cbi-value-field').children().prop('type', 'password'); + $(this).addClass('op-eye').removeClass('eye'); } - - $('.cbi-section .table').each(function () { - var firTr = $(this).children('.tr').get(0); - var firTd = $(firTr).children('.td').get(0); - var th = $(firTr).children('.th').get(0); - - var laTr = $(this).children('.tr').get($(this).children('.tr').length - 1); - var laTd = $(laTr).children('.td').get(0); - var a = window.getComputedStyle(firTr, ':before').getPropertyValue('content'); - - if (th && a != 'none') { - $(th).css('border-top-left-radius', '0'); - } else if (firTd && a != 'none') { - $(firTd).css('border-top-left-radius', '0'); - } - if (laTd && a != 'none') { - $(laTd).css('border-bottom-left-radius', '0'); - } - }); }); - $('#iptables').prev().css('margin-top', '10px'); - -})(jQuery); +})(window, jQuery);
\ No newline at end of file |