diff --git a/package/lean/luci-theme-rosy/Makefile b/package/lean/luci-theme-rosy/Makefile index 11e8c9658..29a23345f 100755 --- a/package/lean/luci-theme-rosy/Makefile +++ b/package/lean/luci-theme-rosy/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk -LUCI_TITLE:=rosy Theme +LUCI_TITLE:=Rosy Theme LUCI_DEPENDS:= include $(TOPDIR)/feeds/luci/luci.mk diff --git a/package/lean/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css b/package/lean/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css index 7ede8bdf1..e874fe35f 100644 --- a/package/lean/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css +++ b/package/lean/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css @@ -1,2359 +1,2224 @@ -/** - * Rosy is a theme for LuCI. It is based on luci-theme-bootstrap - * - * luci-theme-rosy - * Copyright 2018 Rosy Song - * Copyright 2018 Yan Lan Shen - * - * Have a bug? Please create an issue here on GitHub! - * https://github.com/rosywrt/luci-theme-rosy/issues - * - * luci-theme-bootstrap: - * Copyright 2008 Steven Barth - * Copyright 2008 Jo-Philipp Wich - * Copyright 2012 David Menting - * - * Licensed to the public under the Apache License 2.0 - */ - @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; + 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: 400; + font-style: normal; } - -.table { display: table; position: relative; } -.tr { display: table-row; } -.thead { display: table-header-group; } -.tbody { display: table-row-group; } -.tfoot { display: table-footer-group; } -.td, .th { - vertical-align: middle; - text-align: center; - display: table-cell; - padding: .5em; +.table { + display: table; + position: relative; } - +.tr { + display: table-row; +} +.thead { + display: table-header-group; +} +.tbody { + display: table-row-group; +} +.tfoot { + display: table-footer-group; +} +.td, .th { - font-weight: bold; + vertical-align: middle; + text-align: center; + display: table-cell; + padding: 1em; +} +.th { + font-weight: 700; } - .tr.placeholder { - height: 4em; + height: 4em; } - .tr.placeholder > .td { - position: absolute; - left: 0; - right: 0; - bottom: 0; - text-align: center; - line-height: 3em; - background: inherit; + padding: 0 1em 1em 1em; + position: absolute; + left: 0; + right: 0; + bottom: 0; + text-align: center; + line-height: 3em; + background: inherit; +} +.table[width="33%"], +.td[width="33%"], +.th[width="33%"] { + width: 33%; +} +.table[width="100%"], +.td[width="100%"], +.th[width="100%"] { + width: 100%; +} +.col-1 { + flex: 1 1 30px !important; + -webkit-flex: 1 1 30px !important; +} +.col-2 { + flex: 2 2 60px !important; + -webkit-flex: 2 2 60px !important; +} +.col-3 { + flex: 3 3 90px !important; + -webkit-flex: 3 3 90px !important; +} +.col-4 { + flex: 4 4 120px !important; + -webkit-flex: 4 4 120px !important; +} +.col-5 { + flex: 5 5 150px !important; + -webkit-flex: 5 5 150px !important; +} +.col-6 { + flex: 6 6 180px !important; + -webkit-flex: 6 6 180px !important; +} +.col-7 { + flex: 7 7 210px !important; + -webkit-flex: 7 7 210px !important; +} +.col-8 { + flex: 8 8 240px !important; + -webkit-flex: 8 8 240px !important; +} +.col-9 { + flex: 9 9 270px !important; + -webkit-flex: 9 9 270px !important; +} +.col-10 { + flex: 10 10 300px !important; + -webkit-flex: 10 10 300px !important; } - -.table[width="33%"], .th[width="33%"], .td[width="33%"] { width: 33%; } -.table[width="100%"], .th[width="100%"], .td[width="100%"] { width: 100%; } - -.col-1 { flex: 1 1 30px !important; -webkit-flex: 1 1 30px !important; } -.col-2 { flex: 2 2 60px !important; -webkit-flex: 2 2 60px !important; } -.col-3 { flex: 3 3 90px !important; -webkit-flex: 3 3 90px !important; } -.col-4 { flex: 4 4 120px !important; -webkit-flex: 4 4 120px !important; } -.col-5 { flex: 5 5 150px !important; -webkit-flex: 5 5 150px !important; } -.col-6 { flex: 6 6 180px !important; -webkit-flex: 6 6 180px !important; } -.col-7 { flex: 7 7 210px !important; -webkit-flex: 7 7 210px !important; } -.col-8 { flex: 8 8 240px !important; -webkit-flex: 8 8 240px !important; } -.col-9 { flex: 9 9 270px !important; -webkit-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-button-up, .cbi-value-helpicon, -.showSide, -.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; +.main > .loading > span, +.showSide { + font-family: icomoon !important; + speak: none; + font-style: normal !important; + font-weight: 400 !important; + font-variant: normal !important; + text-transform: none !important; + line-height: 1; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +.ifacebox-body strong { + display: inline-block; + padding: 0.5rem 0; } - * { - margin: 0; - padding: 0; - box-sizing: border-box; + margin: 0; + padding: 0; + box-sizing: border-box; } - -.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 { - font-family: inherit; - font-weight: 400; - line-height: 1.1; - color: inherit; +.h1, +.h2, +.h3, +.h4, +.h5, +.h6, +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: inherit; + font-weight: 400; + line-height: 1.1; + color: inherit; } - html { - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; } - body { - font-size: 0.8rem; - background-color: #EEE; + font-size: 0.8rem; + background-color: #eee; } - -html, body { - margin: 0px; - padding: 0px; - height: 100%; - background-color: #BFC9D2; - font-family: Microsoft Yahei, WenQuanYi Micro Hei, sans-serif, "Helvetica Neue", Helvetica, Hiragino Sans GB; +body, +html { + margin: 0; + padding: 0; + height: 100%; + background-color: #b9c9c7; + font-family: Microsoft Yahei, WenQuanYi Micro Hei, sans-serif, + "Helvetica Neue", Helvetica, Hiragino Sans GB; } body.logged-in { - height: auto; + height: auto; } - select { - padding: 0.36rem 0.8rem; - color: #555; - background-color: #fff; - background-image: none; - border: 1px solid #ccc; + padding: 0.36rem 0.8rem; + color: #555; + background-color: #fff; + background-image: none; + border: 1px solid #ccc; } - -select, +.cbi-dropdown, 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; - border-radius: 0; - background-image: none; - height: 1.8rem; - font-size: 0.8rem; +select { + background-color: transparent; + color: rgba(0, 0, 0, 0.87); + border: none; + border-bottom: 2px solid rgba(0, 0, 0, 0.26); + outline: 0; + padding: 0; + border-radius: 0; + background-image: none; + height: 1.8rem; + font-size: 0.8rem; } - -select:not([multiple="multiple"]):focus, -input:focus { - border-color: #0099CC; +input:focus, +select:not([multiple="multiple"]):focus { + border-color: #354057; } - select[multiple="multiple"] { - height: auto; + height: auto; } - code { - color: #0099CC; + color: #09c; } - abbr { - color: #005470; - text-decoration: underline; - cursor: help; + color: #005470; + text-decoration: underline; + cursor: help; } - hr { - margin: 1rem 0; - border-color: #EEE; - opacity: 0.1; + margin: 1rem 0; + border-color: #eee; + opacity: 0.1; } - footer { - text-align: right; - padding: 1rem; - color: #aaa; - font-size: 0.8rem; - text-shadow: 0px 0px 2px #BBB; + text-align: right; + padding: 1rem; + color: #aaa; + font-size: 0.8rem; + text-shadow: 0 0 2px #bbb; } - footer > a { - color: #aaa; - text-decoration: none; + color: #aaa; + text-decoration: none; } - .main { - height: 100%; - overflow: hidden; + height: 100%; + overflow: hidden; } .logged-in .main { - height: auto; + height: auto; } - .main > .loading { - position: fixed; - width: 100%; - height: 100%; - z-index: 1000; - display: block; - background-color: #34414A; - top: 0; + position: fixed; + width: 100%; + height: 100%; + z-index: 1000; + display: block; + background-color: #354057; + top: 0; } - .main > .loading > span { - display: block; - text-align: center; - margin-top: 2rem; + display: block; + text-align: center; + margin-top: 2rem; } - .main > .loading > span::before { - content: ''; - display: inline-block; - vertical-align: middle; - height: 100%; + content: ""; + display: inline-block; + vertical-align: middle; + height: 100%; } - .main > .loading > span > .loading-img { - margin-right: 0.2rem; - display: inline-block; - vertical-align: middle; + margin-right: 0.2rem; + display: inline-block; + vertical-align: middle; } - .main > .loading > span p { - display: inline-block; - color: #fff; - font-size: 1.2rem; - vertical-align: middle; + display: inline-block; + color: #fff; + font-size: 1.2rem; + vertical-align: middle; } - .main-left { - float: left; - width: 15%; - height: 100%; - background-color: white; - position: fixed; + float: left; + width: 15%; + height: 100%; + background-color: #fff; + position: fixed; } - .main-right { - padding: 0 1% 0 4%; - float: right; - width: 85%; - height: 100%; - background-color: #EBF1F6; + padding: 0 1% 0 2.5%; + float: right; + width: 85%; + height: 100%; + background-color: #b9c9c7; } - .logged-in .main-right { - background-color: #BFC9D2; + background-color: #b9c9c7; } - .pull-right { - float: right; + float: right; } - .pull-left { - float: left; + float: left; } - header { - padding: 7% 0; - height: 100%; - background: #556270; - color: white; - text-align: center; + padding: 7% 0; + height: 100%; + background: #354057; + color: #fff; + text-align: center; } - header .brand { - font-size: 1.4rem; - color: white; - text-decoration: none; - cursor: default; + font-size: 1.4rem; + color: #fff; + text-decoration: none; + cursor: default; } - .danger { - background-color: #FA8072 !important; - color: black; + background-color: salmon !important; + color: #000; } - .warning { - background-color: #F0E68C; - color: black; + background-color: khaki; + color: #000; } - .success { - background-color: #90EE90 !important; - color: black; + background-color: #ff6670 !important; + color: #000; } - .alert-message { - margin: 2rem 0 0 0; - padding: 1rem; - border: 0; - font-weight: normal; - font-style: normal; - line-height: 1; - font-family: inherit; - min-width: inherit; - border-radius: 0; - background-color: #FFF; + margin: 2rem 0 0 0; + padding: 1rem; + border: 0; + font-weight: 400; + font-style: normal; + line-height: 1; + font-family: inherit; + min-width: inherit; + border-radius: 0; + background-color: #fff; } - - .error { - color: red; + color: red; } - .alert-message > h4 { - font-size: 110%; + font-size: 110%; } - .alert-message > * { - margin: .5rem 0; + margin: 0.5rem 0; } - #maincontent > .container > div:nth-child(1).alert-message.warning > a { - font: inherit; - overflow: visible; - text-transform: none; - display: inline-block; - margin-bottom: 0; - font-weight: 400; - text-align: center; - white-space: nowrap; - vertical-align: middle; - touch-action: manipulation; - cursor: pointer; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - background-image: none; - min-width: 6rem; - padding: 0.5rem 1rem; - font-size: 0.9rem; - line-height: 1.42857143; - color: #fff; - background-color: #5bc0de; - border-color: #46b8da; - margin-top: 2rem; - text-decoration: inherit; + font: inherit; + overflow: visible; + text-transform: none; + display: inline-block; + margin-bottom: 0; + font-weight: 400; + text-align: center; + white-space: nowrap; + vertical-align: middle; + touch-action: manipulation; + cursor: pointer; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + background-image: none; + min-width: 6rem; + padding: 0.5rem 1rem; + font-size: 0.9rem; + line-height: 1.42857143; + color: #fff; + background-color: #5bc0de; + border-color: #46b8da; + margin-top: 2rem; + text-decoration: inherit; } - -.main > .main-left > .nav { - padding-top: 14%; - width: 85%; - height: 64%; - position: absolute; - right: -10%; - top: 18%; - background-color: #fff; - border-radius: 5px; +.main > .main-left .nav-container { + padding: 14% 0; + width: 85%; + height: 64%; + position: absolute; + right: -10%; + top: 18%; + background-color: #fff; + border-radius: 10px; + overflow: hidden; } - -.main > .main-left > .nav > li a { - color: #556270; - display: block; +.main > .main-left .nav { + width: 110%; + height: 100%; + overflow-y: scroll; } - -.main > .main-left > .nav > li { - padding: 0.5rem 1rem; - cursor: pointer; +.main > .main-left .nav > li a { + color: #354057; + display: block; + text-decoration: none; } - -.main > .main-left > .nav > .slide { - padding: 0; +.main > .main-left .nav > li { + padding: 0.5rem 1rem; + cursor: pointer; } - -.main > .main-left > .nav > .slide > ul { - display: none; +.main > .main-left .nav > .slide { + padding: 0; } - -.main > .main-left > .nav > .slide > .menu { - display: block; - padding: 0.5rem 1rem; - text-decoration: none; - cursor: default; - font-size: 1.15rem; +.main > .main-left .nav > .slide > ul { + display: none; } - -.main > .main-left > .nav > .slide > .menu:hover { - background: #D4D4D4; +.main > .main-left .nav > .slide > .menu { + display: block; + padding: 0.5rem 1rem; + text-decoration: none; + cursor: default; + font-size: 1.15rem; } - -.main > .main-left > .nav > .slide:hover { - background: none; +.main > .main-left .nav > .slide > .menu:hover { + background: #b9c9c7; } - -.main > .main-left > .nav > .slide > .slide-menu > li { - padding: 0.4rem 2rem; +.main > .main-left .nav > .slide:hover { + background: 0 0; } - -.main > .main-left > .nav > .slide > .slide-menu > .active { - background-color: #556270; +.main > .main-left .nav > .slide > .slide-menu > li { + padding: 0.4rem 2rem; } - -.main > .main-left > .nav > .slide > .slide-menu > li > a { - text-decoration: none; - white-space: nowrap; +.main > .main-left .nav > .slide > .slide-menu > .active { + background-color: #354057; } - -.main > .main-left > .nav > .slide > .slide-menu > .active > a { - color: white; +.main > .main-left .nav > .slide > .slide-menu > li > a { + text-decoration: none; + white-space: nowrap; } - -.main > .main-left > .nav > .slide > .slide-menu > li:hover { - background: #D4D4D4; +.main > .main-left .nav > .slide > .slide-menu > .active > a { + color: #fff; } - -.main > .main-left > .nav > .slide > .slide-menu > .active:hover { - background-color: #556270; - cursor: hand; +.main > .main-left .nav > .slide > .slide-menu > li:hover { + background: #b9c9c7; } - -.main > .main-left > .nav > .logout { - position: absolute; - bottom: 2%; - left: 0; - right: 0; - text-align: center; - font-size: 16px; +.main > .main-left .nav > .slide > .slide-menu > .active:hover { + background-color: #556270; + cursor: hand; +} +.main > .main-left .logout { + position: absolute; + bottom: 2%; + left: 0; + right: 0; + text-align: center; +} +.main > .main-left .nav > .logout a { + padding-left: 22px; + font-size: 18px; + display: inline-block; + background: url(./logout-black.png) no-repeat center left; } - 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: 1px solid #eee; +} +.node-main-login h2 { + margin: 14% 0 0 0; } - h2 { - margin: 1rem 0 0 0; - padding: .5rem; - font-size: 30px; - padding-bottom: 10px; - background: #fff; - border-radius: 5px; + margin: 1rem 0 0 0; + padding: 0.5rem; + font-size: 30px; + padding-bottom: 10px; + background: #fff; + border-radius: 10px; } - h3 { - margin: 2rem 0 0 0; - font-size: 1.4rem; - padding-bottom: 10px; + margin: 2rem 0 0 0; + font-size: 1.4rem; + padding-bottom: 10px; } - h4 { - margin: 2rem 0 0 0; - font-size: 1.2rem; - padding-bottom: 10px; + margin: 2rem 0 0 0; + font-size: 1.2rem; + padding-bottom: 10px; } - .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; - background-color: #FFF; - -webkit-overflow-scrolling: touch; + margin: 1rem 0 0 0; + padding: 2rem; + border: 0; + font-weight: 400; + font-style: normal; + line-height: 1; + font-family: inherit; + min-width: inherit; + background-color: #fff; + -webkit-overflow-scrolling: touch; } - .logged-in .cbi-section { - border-radius: 5px; + border-radius: 10px; } - .cbi-map-descr + fieldset { - margin-top: 1rem; + margin-top: 1rem; } - .cbi-section > legend { - display: none !important; + display: none !important; } - fieldset > fieldset { - margin: 0; - padding: 0; - border: none; + margin: 0; + padding: 0; + border: none; } - .cbi-section > h3:first-child, .panel-title { - width: 100%; - display: block; - line-height: 1; - color: #404040; - font-size: 1.4rem; - padding-bottom: 1rem; - border-bottom: 1px solid #eee; - margin: 0; + width: 100%; + display: block; + line-height: 1; + color: #404040; + font-size: 1.4rem; + padding-bottom: 1rem; + border-bottom: 1px solid #eee; + margin: 0; +} +.cbi-section > h3:first-child { + margin: 0 0 0.5rem 0; } - .cbi-page-actions { - margin-top: 1rem; + margin-top: 1rem; } - table { - border-spacing: 0; - border-collapse: collapse; + border-spacing: 0; + border-collapse: collapse; } - -table, .table { - margin-top: 1rem; - width: 100%; - background: #fff; - border-radius: 5px; +.table, +table { + margin-top: 1rem; + width: 100%; + background: #fff; + border-radius: 10px; + overflow: hidden; } - -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 { - padding: .5rem; - border-top: 1px solid #ddd; - white-space: nowrap; +.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 { + padding: 0.5rem; + border-top: 1px solid #ddd; + white-space: nowrap; } - .cbi-section-table-cell { - white-space: nowrap; - align-self: flex-end; - flex: 1 1 auto; + white-space: nowrap; + align-self: flex-end; + flex: 1 1 auto; } - .cbi-section-table { - border: none; + border: none; } - .cbi-section-table-row { - text-align: center; - margin-bottom: 1rem; - background: #f4f4f4; + text-align: center; + margin-bottom: 1rem; + background: #f4f4f4; } - -.cbi-section-table-row:last-child { - margin-bottom: 0; +.node-system-admin .cbi-section-table-row:last-child { + margin-bottom: 0; + background-color: #fff; } - -.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-dropdown, .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 .cbi-input-select, +.cbi-section-table-row > .cbi-value-field .cbi-input-text { + 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); + width: calc(100% - 1.5rem); } - -div > table > tbody > tr:nth-of-type(2n), -div > .table > .tbody > .tr:nth-of-type(2n) { - background-color: #f9f9f9; +div > .table > .tbody > .tr:nth-of-type(2n), +div > table > tbody > tr:nth-of-type(2n) { + background-color: #f9f9f9; } - -div > table > tbody > tr:nth-of-type(2n), -div > .table > .tbody > .tr:nth-of-type(2n) { - background-color: #f9f9f9; +div > .table > .tbody > .tr:nth-of-type(2n), +div > table > tbody > tr:nth-of-type(2n) { + background-color: #f9f9f9; } - input:-webkit-autofill { - -webkit-box-shadow: 0 0 0 1000px #fff inset !important; + -webkit-box-shadow: 0 0 0 1000px #fff inset !important; } - -/* fix progress bar */ -#swaptotal > div, -#swapfree > div, -#memfree > div, -#membuff > div, #conns > div, -#memtotal > div { - width: 100% !important; - height: 1.2rem !important; +#membuff > div, +#memfree > div, +#memtotal > div, +#swapfree > div, +#swaptotal > div { + width: 100% !important; + height: 1.2rem !important; + border-radius: 10px; + overflow: hidden; } - -#swaptotal > div > div, -#swapfree > div > div, -#memfree > div > div, -#membuff > div > div, #conns > div > div, -#memtotal > div > div { - height: 100% !important; - background-color: #0099CC !important; +#membuff > div > div, +#memfree > div > div, +#memtotal > div > div, +#swapfree > div > div, +#swaptotal > div > div { + height: 100% !important; + background-color: #5bc0de !important; } - -/* fix multiple table */ - -table table, -.table .table { - border: none; +.table .table, +table table { + border: none; } - -.cbi-value-field table, -.cbi-value-field .table { - border: none; +.cbi-value-field .table, +.cbi-value-field table { + border: none; } - -td > table > tbody > tr > td, -.td > .table > .tbody > .tr > .td { - border: none; +.td > .table > .tbody > .tr > .td, +td > table > tbody > tr > td { + border: none; } - -.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: none; } - -/* button style */ - -.btn, .cbi-button { - -webkit-appearance: none; - text-transform: uppercase; - color: #333; - background-color: #46b8da; - transition: all 0.2s ease-in-out; - display: inline-block; - padding: 0 0.8rem; - border: none; - border-radius: 0.2rem; - 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; +.btn, +.cbi-button { + -webkit-appearance: none; + text-transform: uppercase; + color: #fff; + background-color: #619fcc; + transition: all 0.2s ease-in-out; + display: inline-block; + padding: 0 0.8rem; + border: none; + border-radius: 50px; + 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; } - .logged-in .alert-message.warning { - font-size: 14px; - margin: 2rem 0 0 0; - background: #F0E68C; - border-radius: 5px; + font-size: 14px; + margin: 2rem 0 0 0; + background: khaki; + border-radius: 10px; } - .logged-in .alert-message.warning a { - padding: .5rem 0 0; - background-color: transparent; - color: #5BC0DE; - font-size: 16px; + padding: 0.5rem 0 0; + background-color: transparent; + color: #5bc0de; + font-size: 16px; } - -.btn:hover, -.btn:focus, .btn:active, -.cbi-button:hover, -.cbi-button:focus, -.cbi-button:active, -.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 { - outline: 0; - text-decoration: none; -} - -.btn:hover, .btn:focus, +.btn:hover, +.cbi-button:active, +.cbi-button:focus, .cbi-button:hover, -.cbi-button:focus { +.cbi-page-actions .cbi-button-apply + .cbi-button-save:active, +.cbi-page-actions .cbi-button-apply + .cbi-button-save:focus, +.cbi-page-actions .cbi-button-apply + .cbi-button-save:hover { + outline: 0; + text-decoration: none; } - .btn:disabled, .cbi-button:disabled { - cursor: not-allowed; - pointer-events: none; - opacity: 0.60; + cursor: not-allowed; + pointer-events: none; + opacity: 0.6; } - -.cbi-page-actions .cbi-button-apply, -.cbi-section-actions .cbi-button-edit, -.cbi-button-edit.important, +.cbi-button-action.important, .cbi-button-apply.important, +.cbi-button-edit.important, .cbi-button-reload.important, -.cbi-button-action.important { - color: #fff; - background-color: #C73727; +.cbi-page-actions .cbi-button-apply, +.cbi-section-actions .cbi-button-edit { + color: #fff; + background-color: #669492; +} +.node-main-login .cbi-page-actions .cbi-button-apply { + background-color: #c73727; } - -.cbi-page-actions .cbi-button-save, .cbi-button-add.important, +.cbi-button-positive.important, .cbi-button-save.important, -.cbi-button-positive.important { - color: #fff; - background-color: #5bc0de; +.cbi-page-actions .cbi-button-save { + color: #fff; + background-color: #5bc0de; } - +.cbi-button-negative.important, .cbi-button-remove.important, -.cbi-button-reset.important, -.cbi-button-negative.important { - color: #fff; - background-color: #d9534f; +.cbi-button-reset.important { + color: #fff; + background-color: #d9534f; } - +.cbi-button-down, .cbi-button-find, .cbi-button-link, -.cbi-button-up, -.cbi-button-down, -.cbi-button-neutral { - background-color: #46b8da; - color: #fff; +.cbi-button-neutral, +.cbi-button-up { + background-color: #46b8da; + color: #fff; } - -.cbi-page-actions .cbi-button-apply + .cbi-button-save, .cbi-button-add, -.cbi-button-save, +.cbi-button-apply, .cbi-button-positive, -.cbi-button-apply { - color: #fff; - background-color: #46b8da; +.cbi-button-save, +.cbi-page-actions .cbi-button-apply + .cbi-button-save { + color: #fff; + background-color: #46b8da; } - -.cbi-section-remove > .cbi-button, +.cbi-button-negative, .cbi-button-remove, .cbi-button-reset, -.cbi-button-negative { - color: #fff; - background-color: #EB6B5D; +.cbi-section-remove > .cbi-button { + color: #fff; + background-color: #ff6670; } - -.cbi-page-actions .cbi-button-link:first-child { - float: left; +.node-main-login .cbi-button-reset { + background-color: #eb6b5d; } - .a-to-btn { - text-decoration: none; + text-decoration: none; } - -/* table */ - .tabs { - width: 100%; - margin: 1rem 0 0; - padding-left: 0.5rem; - border-radius: 5px; - background-color: #FFFFFF; + width: 100%; + margin: 1rem 0 0; + padding-left: 0.5rem; + border-radius: 10px; + background-color: #fff; } - .cbi-tabmenu > li, .tabs > li { - display: inline-block; - padding: 0.6rem 0rem; + display: inline-block; + padding: 0.6rem 0; } - .cbi-tabmenu > li > a, .tabs > li > a { - text-decoration: none; - color: #404040; - padding: 0.5rem 0.8rem; + text-decoration: none; + color: #404040; + padding: 0.5rem 0.8rem; } - -.tabs > li[class~="active"], -.tabs > li:hover { - cursor: pointer; - border-bottom: 0.2rem solid #0099CC; - color: #0099CC; - margin-bottom: -0.18751rem; +.tabs > li:hover, +.tabs > li[class~="active"] { + cursor: pointer; + border-bottom: 0.2rem solid #09c; + color: #09c; + margin-bottom: -0.18751rem; } - .tabs > li[class~="active"] > a { - color: #0099cc; + color: #09c; } - .tabs > li:hover { - border-bottom: 0.18751rem solid #C9C9C9; + border-bottom: 0.18751rem solid #c9c9c9; } - .cbi-tabmenu { - border-top: 1px solid #D4D4D4; - border-left: 1px solid #D4D4D4; - border-right: 1px solid #D4D4D4; + border-top: 1px solid #d4d4d4; + border-left: 1px solid #d4d4d4; + border-right: 1px solid #d4d4d4; } - .cbi-tabmenu > li:hover { - background-color: #F1F1F1; - border-radius: 5px; + background-color: #f1f1f1; + border-radius: 10px; } - .cbi-tabmenu > li[class~="cbi-tab"] { - background-color: #fff; - border-radius: 5px; + background-color: #fff; + border-radius: 10px; } - .cbi-tabmenu { - background-color: #D4D4D4; - border-radius: 5px; - margin-top: 1rem; + background-color: #d4d4d4; + border-radius: 10px; + margin-top: 1rem; } - .cbi-section-node { - margin-top: 1rem; + margin-top: 1rem; } - -.cbi-section-remove:nth-of-type(2n), -.cbi-section-node:nth-of-type(2n){ - background-color: #f9f9f9; +.cbi-section-remove:nth-of-type(2n) { + 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; + padding: 0; + margin-top: 0; + border: 1px solid #d4d4d4; + border-top: none; + border-bottom-left-radius: 10px; + border-bottom-right-radius: 10px; } - .cbi-tabcontainer > .cbi-value:nth-of-type(2n) { - background-color: #f9f9f9; + background-color: #f9f9f9; } - -.cbi-value-field, -.cbi-value-description { - display: table-cell; - line-height: 1.25; +.cbi-value-description, +.cbi-value-field { + display: table-cell; + line-height: 1.25; } - .cbi-value-helpicon > img { - display: none; + 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; + opacity: 0.5; + padding: 0.5rem 0 0 0; } - .cbi-value-title { - word-wrap: break-word; - padding-top: 0.6rem; - width: 23rem; - float: left; - text-align: right; - padding-right: 2rem; - display: table-cell; + word-wrap: break-word; + padding-top: 0.6rem; + width: 23rem; + float: left; + text-align: right; + padding-right: 2rem; + display: table-cell; } - .cbi-value { - padding: 0.3rem 1rem; - display: inline-block; - width: 100%; + padding: 0.3rem 1rem; + display: inline-block; + width: 100%; +} +.cbi-section-table-titles { + background-color: #ececec; } - .cbi-section-table-descr > .cbi-section-table-cell, .cbi-section-table-titles > .cbi-section-table-cell { - border: none; + border: none; +} +.node-network-routes .cbi-section-table-descr { + background-color: #efefef; +} +.node-network-firewall .cbi-section-table-row .td, +.node-network-routes .cbi-section-table-row .td { + padding-top: 1px; +} +.node-network-firewall .table > .tr { + background-color: #f4f4f4; +} +.node-network-firewall .table > .cbi-section-table-titles, +.node-network-firewall .table > .table-titles { + background-color: #ececec; +} +#cbi-firewall-redirect { + overflow: scroll; } - .td[data-title]::before { - content: attr(data-title) ":\20"; - font-weight: bold; - text-align: left; - display: none; - padding: .25rem 0; - white-space: nowrap; + content: attr(data-title) ":\20"; + font-weight: 700; + text-align: left; + display: none; + padding: 0.25rem 0; + 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; +.tr.cbi-section-table-titles.named::before, +.tr[data-title]::before { + content: attr(data-title) "\20"; + font-weight: 700; + text-align: center; + display: table-cell; + align-self: center; + flex: 1 1 5%; + padding: 0.25rem; + white-space: normal; + word-wrap: break-word; + vertical-align: middle; +} +.table-titles { + background-color: #f5f5f5; } - .cbi-rowstyle-1 { - background-color: #f9f9f9; + background-color: #f0f0f0; } - .cbi-rowstyle-2 { - background-color: #eee; + background-color: #eee; } - -.cbi-rowstyle-2 .cbi-button-up, -.cbi-rowstyle-2 .cbi-button-down { - background-color: #FFF !important; +.cbi-rowstyle-2 .cbi-button-down, +.cbi-rowstyle-2 .cbi-button-up { + background-color: #b5b5b5 !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; + vertical-align: middle; } - .td.cbi-section-actions > * { - display: flex; + display: flex; } - .td.cbi-section-actions > * > *, .td.cbi-section-actions > * > form > * { - flex: 1 1 4em; - margin: 0 1px; + flex: 1 1 4em; + margin: 0 1px; } - .td.cbi-section-actions > * > form { - display: inline-flex; - margin: 0; + display: inline-flex; + margin: 0; } - -/* desc */ -.cbi-section-descr, -.cbi-map-descr { - padding: 0.5rem; - color: #999; - font-size: small; +.cbi-map-descr, +.cbi-section-descr { + padding: 0.5rem; + color: #999; + font-size: small; } - - .cbi-dropdown { - display: inline-flex; - cursor: pointer; - position: relative; - padding: 0; - height: auto; + display: inline-flex; + cursor: pointer; + position: relative; + padding: 0; + height: auto; } - .cbi-dropdown:focus { - outline: 2px solid #4b6e9b; + outline: 2px solid #4b6e9b; } - .cbi-dropdown > ul { - margin: 0 !important; - padding: 0; - list-style: none; - overflow-x: hidden; - overflow-y: auto; - display: flex; - width: 100%; + margin: 0 !important; + padding: 0; + list-style: none; + overflow-x: hidden; + overflow-y: auto; + display: flex; + width: 100%; } - .cbi-dropdown > ul.preview { - display: none; + display: none; } - .cbi-dropdown > .open { - border: 2px outset #eee; - flex-basis: 15px; - background: #eee; + border: 2px outset #eee; + flex-basis: 15px; + background: #eee; } - -.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 > .more, +.cbi-dropdown > .open { + flex-grow: 0; + flex-shrink: 0; + display: flex; + flex-direction: column; + justify-content: center; + text-align: center; + line-height: 2em; + padding: 0 0.25em; } - .cbi-dropdown > .more, .cbi-dropdown > ul > li[placeholder] { - color: #777; - font-weight: bold; - text-shadow: 1px 1px 0px #fff; - display: none; + color: #777; + font-weight: 700; + text-shadow: 1px 1px 0 #fff; + display: none; } - .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; + display: none; + padding: 0.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 .hide-open { + display: initial; +} +.cbi-dropdown > ul > li .hide-close { + display: none; } - -.cbi-dropdown > ul > li .hide-open { display: initial; } -.cbi-dropdown > ul > li .hide-close { display: none; } - .cbi-dropdown > ul > li[display]:not([display="0"]) { - border-left: 1px solid #ccc; + border-left: 1px solid #ccc; } - .cbi-dropdown[empty] > ul { - max-width: 1px; + max-width: 1px; } - .cbi-dropdown > ul > li > form { - display: none; - margin: 0; - padding: 0; - pointer-events: none; + display: none; + margin: 0; + padding: 0; + pointer-events: none; } - .cbi-dropdown > ul > li img { - vertical-align: middle; - margin-right: .25em; + vertical-align: middle; + margin-right: 0.25em; } - .cbi-dropdown > ul > li > form > input[type="checkbox"] { - margin: 0; - height: auto; + margin: 0; + height: auto; } - .cbi-dropdown > ul > li input[type="text"] { - height: 20px; + 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; + 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][empty] > .more, .cbi-dropdown[multiple][more] > .more, -.cbi-dropdown[multiple][empty] > .more { - flex-grow: 1; - display: flex; - align-items: center; +.cbi-dropdown[multiple][open] > ul.dropdown > li, +.cbi-dropdown[open] > ul.dropdown > li, +.cbi-dropdown[open] > ul.preview { + 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[multiple][open] > ul.dropdown > li > form, +.cbi-dropdown[optional][open] > ul.dropdown > li[placeholder] { + display: block; +} +.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-open { display: none; } -.cbi-dropdown[open] > ul.dropdown > li .hide-close { display: initial; } - .cbi-dropdown[open] > ul.dropdown > li { - border-bottom: 1px solid #ccc; + border-bottom: 1px solid #ccc; } - .cbi-dropdown[open] > ul.dropdown > li[selected] { - background: #b0d0f0; + background: #b0d0f0; } - .cbi-dropdown[open] > ul.dropdown > li.focus { - background: linear-gradient(90deg, #a3c2e8 0%, #84aad9 100%); + background: linear-gradient(90deg, #a3c2e8 0, #84aad9 100%); } - .cbi-dropdown[open] > ul.dropdown > li:last-child { - margin-bottom: 0; - border-bottom: none; + margin-bottom: 0; + border-bottom: none; } - .cbi-dropdown[disabled] { - pointer-events: none; - opacity: .6; + pointer-events: none; + opacity: 0.6; } - .cbi-dropdown .zonebadge { - width: 100%; + width: 100%; } - .cbi-dropdown[open] .zonebadge { - width: auto; + width: auto; } - - -/* luci */ - .hidden { - display: none + display: none; } - -.left, .left::before { - text-align: left !important; +.left, +.left::before { + text-align: left !important; } - -.right, .right::before { - text-align: right !important; +.right, +.right::before { + text-align: right !important; } - -.center, .center::before { - text-align: center !important; +.center, +.center::before { + 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; } - -/* select */ .cbi-value-field .cbi-dropdown { - min-width: 15rem; + min-width: 15rem; } - .cbi-value-field .cbi-input-select { - width: 15rem; + width: 15rem; } - -.th[data-type="button"], .td[data-type="button"], -.th[data-type="fvalue"], .td[data-type="fvalue"] { - flex: 1 1 2em; - text-align: center; +.td[data-type="button"], +.td[data-type="fvalue"], +.th[data-type="button"], +.th[data-type="fvalue"] { + flex: 1 1 2em; + text-align: center; } - .ifacebadge { - display: inline-flex; - border-bottom: 1px solid #CCCCCC; - padding: 0.5rem 1rem; - background: #fff; + display: inline-flex; + border-bottom: 1px solid #ccc; + padding: 0.5rem 1rem; + background: #fff; } - -td > .ifacebadge, -.td > .ifacebadge { - background-color: #F0F0F0; - font-size: 0.9rem; +.td > .ifacebadge, +td > .ifacebadge { + background-color: #f0f0f0; + font-size: 0.9rem; } - .ifacebadge > em, .ifacebadge > img { - display: inline-block; - margin: 0 .2rem; - align-self: flex-start; + display: inline-block; + margin: 0 0.2rem; + align-self: flex-start; } - .ifacebadge > img + img { - margin: 0 .2rem 0 0; + margin: 0 0.2rem 0 0; } - .network-status-table { - display: flex; - flex-wrap: wrap; + display: flex; + flex-wrap: wrap; + border-radius: 10px; + overflow: hidden; } - .network-status-table .ifacebox { - margin: .5em; - flex-grow: 1; + flex-grow: 1; } - .network-status-table .ifacebox-body { - display: flex; - flex-direction: column; - height: 100%; + display: flex; + flex-direction: column; + height: 100%; } - .network-status-table .ifacebox-body > span { - flex: 10 10 auto; + flex: 10 10 auto; } - .network-status-table .ifacebox-body > div { - display: flex; - flex-wrap: wrap; + 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; + flex: 1 1 auto; + margin: 0.5em 0.25em 0 0.25em; + padding: 0.5em; + min-width: 220px; + background-color: #fff; + align-items: center; + border-radius: 10px; } - -/*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; + width: 100%; + min-height: 14rem; + padding: 0.8rem; + font-size: 0.8rem; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + color: #000; + resize: none; + border-radius: 10px; } - #content_syslog { - margin: 1rem 0 + margin: 1rem 0; } - #syslog { - width: 100%; - min-height: 15rem; - padding: 1rem; - font-size: small; - color: #5F5F5F; - border-radius: 5px; - resize: none; - margin-bottom: 20px; - background-color: #FFF; - border: none; + width: 100%; + min-height: 15rem; + padding: 1rem; + font-size: small; + color: #5f5f5f; + border-radius: 10px; + resize: none; + margin-bottom: 20px; + background-color: #fff; + border: none; } - -/* change */ - .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; -} - -.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; -} - -.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; -} - -.uci-change-list var ins, -.uci-change-list var del { - border: none; - white-space: pre; - font-style: normal; - padding: 0px; -} - -.uci-change-legend { - padding: 5px; -} - -.uci-change-legend-label { - width: 150px; - float: left; -} - -.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 var ins, -.uci-change-legend-label var del { - line-height: 6px; - border: none; -} - -.uci-change-list var, -.uci-change-list del, +.uci-change-legend-label ins, .uci-change-list ins { - padding: 0.5rem; + text-decoration: none; + border: 1px solid #0f0; + background-color: #cfc; + display: block; + padding: 2px; } - -/* other fix */ +.uci-change-legend-label del, +.uci-change-list del { + text-decoration: none; + border: 1px solid red; + background-color: #fcc; + display: block; + font-style: normal; + padding: 2px; +} +.uci-change-legend-label var, +.uci-change-list var { + text-decoration: none; + border: 1px solid #ccc; + background-color: #eee; + display: block; + font-style: normal; + padding: 2px; +} +.uci-change-list var del, +.uci-change-list var ins { + border: none; + white-space: pre; + font-style: normal; + padding: 0; +} +.uci-change-legend { + padding: 5px; +} +.uci-change-legend-label { + width: 150px; + float: left; +} +.uci-change-legend-label > del, +.uci-change-legend-label > ins, +.uci-change-legend-label > var { + float: left; + margin-right: 4px; + width: 10px; + height: 10px; + display: block; +} +.uci-change-legend-label var del, +.uci-change-legend-label var ins { + line-height: 6px; + border: none; +} +.uci-change-list del, +.uci-change-list ins, +.uci-change-list var { + padding: 0.5rem; +} +#bwsvg, #iwsvg, -#iwsvg2, -#bwsvg { - border: 1px solid #D4D4D4 !important; - border-top: none !important; - margin-top: 1rem; - border-radius: 5px; +#iwsvg2 { + border: 1px solid #d4d4d4 !important; + margin-top: 1rem; + border-radius: 10px; } - .ifacebox { - border-bottom: 1px solid #ccc; - background-color: #f9f9f9; - display: inline-flex; - flex-direction: column; - line-height: 1.2em; - min-width: 100px; + background-color: #f6f6f6; + display: inline-flex; + flex-direction: column; + line-height: 1.2em; + min-width: 100px; + padding-bottom: 0.5rem; + border-radius: 10px; + overflow: hidden; } - .ifacebox-head { - padding: .25em; - background: #eee; + padding: 0.25em; + background: #eee; } - .ifacebox-head.active { - background: #90c0e0; + background: #90c0e0; } - .ifacebox-body { - padding: .25em; + padding: 0.25em 0.8em; } - .cbi-image-button { - margin-left: 0.5rem; + margin-left: 0.5rem; } - .zonebadge { - padding: 0.2rem 0.5rem; - display: inline-block; + padding: 0.2rem 0.5rem; + display: inline-block; } - .zonebadge .ifacebadge { - padding: .2rem .3rem; - margin: 0.1rem 0.2rem; - border: 1px solid #6C6C6C; + padding: 0.2rem 0.3rem; + margin: 0.1rem 0.2rem; + border: 1px solid #6c6c6c; } - .zonebadge > input[type="text"] { - padding: 0.16rem 1rem; - min-width: 10rem; - margin-top: 0.3rem; + padding: 0.16rem 1rem; + min-width: 10rem; + margin-top: 0.3rem; } - .zonebadge > em, .zonebadge > strong { - margin: 0 0.2rem; - display: inline-block; + margin: 0 0.2rem; + display: inline-block; } - .cbi-value-field .cbi-input-checkbox, .cbi-value-field .cbi-input-radio { - margin-top: 0.5rem; - height: 1rem; + margin-top: 0.5rem; + height: 1rem; } - .td .cbi-input-checkbox, .td .cbi-input-radio { - margin-top: 0; + margin-top: 0; } - .cbi-value-field > input + .cbi-value-description { - padding: 0; + padding: 0; } - .cbi-value-field > ul > li { - display: flex; + display: flex; } - .cbi-value-field > ul > li > label { - margin-top: 0.5rem; + margin-top: 0.5rem; } - .cbi-value-field > ul > li .ifacebadge { - background-color: #eee; - margin-left: 0.4rem; - margin-top: -0.5rem; + background-color: #eee; + margin-left: 0.4rem; + margin-top: -0.5rem; } - .cbi-section-table-row > .cbi-value-field .cbi-dropdown { - min-width: 7rem; + min-width: 7rem; } - .cbi-section-create { - margin: .5rem -3px; - display: inline-flex; - align-items: center; + margin: 0.5rem -3px; + display: inline-flex; + align-items: center; } - .cbi-section-create > * { - margin: 0.5rem; + margin: 0.5rem; } - .cbi-section-remove { - padding: 0.5rem; + padding: 0.5rem; } - -div.cbi-value var, td.cbi-value-field var, .td.cbi-value-field var { - font-style: italic; - color: #0069D6; +.td.cbi-value-field var, +div.cbi-value var, +td.cbi-value-field var { + font-style: italic; + color: #0069d6; } - small { - font-size: 90%; - white-space: normal; - line-height: 1.42857143; + font-size: 90%; + white-space: normal; + line-height: 1.42857143; } - -.cbi-button-up, -.cbi-button-down { - display: inline-block; - min-width: 0; - padding: 0.2rem 0.3rem; - font-size: 1.2rem; +.cbi-button-down, +.cbi-button-up { + display: inline-block; + min-width: 0; + padding: 0.2rem 0.3rem; + font-size: 1.2rem; } - .cbi-optionals { - padding: 1rem 1rem 0 1rem; - border-top: 1px solid #CCC; + padding: 1rem 1rem 0 1rem; + border-top: 1px solid #ccc; } - .cbi-dropdown-container { - position: relative; + position: relative; } - .cbi-tooltip-container { - cursor: help; + cursor: help; } - .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; + opacity: 0; + transition: opacity 0.25s ease-out; + pointer-events: none; } - .cbi-tooltip-container:hover .cbi-tooltip { - left: auto; - opacity: 1; - transition: opacity .25s ease-in; + left: auto; + opacity: 1; + transition: opacity 0.25s ease-in; } - .zonebadge .cbi-tooltip { - padding: .25rem; - background: inherit; - margin: -1.5rem 0 0 -.5rem; + padding: 0.25rem; + background: inherit; + margin: -1.5rem 0 0 -0.5rem; } - .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; + 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; } - .zone-forwards { - display: flex; - min-width: 10rem; + display: flex; + min-width: 10rem; } - .zone-forwards > * { - flex: 1 1 45%; + flex: 1 1 45%; } - .zone-forwards > span { - flex-basis: 10%; - text-align: center; - padding: 0 .25rem; + flex-basis: 10%; + text-align: center; + padding: 0 0.25rem; } - -.zone-forwards .zone-src, -.zone-forwards .zone-dest { - display: flex; - flex-direction: column; +.zone-forwards .zone-dest, +.zone-forwards .zone-src { + 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; + background-color: #f5f5f5; + display: block; + padding: 8.5px; + margin: 0 0 18px; + line-height: 1.5rem; + -moz-border-radius: 10px; + white-space: pre-wrap; + word-wrap: break-word; + font-size: 1.4rem; + color: #404040; } - +input[name="nslookup"], input[name="ping"], -input[name="traceroute"], -input[name="nslookup"] { - width: 80%; +input[name="traceroute"] { + width: 80%; } - header .pull-right > * { - position: relative; - top: 0.45rem; - cursor: pointer; + position: relative; + top: 0.45rem; + cursor: pointer; } - .refresh { - position: absolute; - top: 8%; - left: 0; - text-align: left;; + position: absolute; + top: 8%; + left: 0; + text-align: left; } - #xhr_poll_status > .label.success { - background-color: #14CE14; + background-color: #14ce14; } - .label { - padding: 0.3rem 0.8rem; - font-size: 0.8rem; - font-weight: bold; - color: #ffffff !important; - text-transform: uppercase; - white-space: nowrap; - background-color: #bfbfbf; - -webkit-border-top-right-radius: 5px; - -webkit-border-bottom-right-radius: 5px; - -moz-border-top-right-radius: 5px; - -moz-border-bottom-right-radius: 5px; - text-shadow: none; - text-decoration: none; - border-top-right-radius: 5px; - border-bottom-right-radius: 5px; + padding: 0.3rem 0.8rem; + font-size: 0.8rem; + font-weight: 700; + color: #fff !important; + text-transform: uppercase; + white-space: nowrap; + background-color: #bfbfbf; + -webkit-border-top-right-radius: 50px; + -webkit-border-bottom-right-radius: 50px; + -moz-border-top-right-radius: 50px; + -moz-border-bottom-right-radius: 50px; + text-shadow: none; + text-decoration: none; + border-top-right-radius: 50px; + border-bottom-right-radius: 50px; } - .notice { - background-color: #5BC0DE; - margin-bottom: 16px; - display: block; + background-color: #669492; + margin-bottom: 16px; + display: block; } - #cbi_apply_overlay .alert-message.notice { - background-color: #556270; - color: #fff; - border-radius: 5px; + background-color: #556270; + color: #fff; + border-radius: 10px; } - .showSide { - display: none; + display: none; } - .darkMask { - width: 100%; - height: 100%; - position: fixed; - background-color: rgba(0, 0, 0, 0.56); - content: ""; - z-index: 99; - display: none; + width: 100%; + height: 100%; + position: fixed; + background-color: rgba(0, 0, 0, 0.56); + content: ""; + z-index: 99; + display: none; } - -/* fix Main Login*/ -.node-main-login form{ - width: 35%; - height: 130%; - background-color: #fff; - position: absolute; - top: 50%; - left: 7.5%; - transform: translateY(-50%); - border-radius: 5px; +.node-main-login form { + width: 35%; + height: 130%; + background-color: #fff; + position: absolute; + top: 50%; + left: 7.5%; + transform: translateY(-50%); + border-radius: 10px; } .node-main-login form .cbi-section { - padding: 0; - line-height: normal; - width: 100%; + padding: 0; + line-height: normal; + width: 100%; } - .node-main-login > .main .cbi-value-title { - padding: 0; - position: absolute; - top: -4px; - background: #fff; - font-size: 14px; - left: 12%; - width: auto; + padding: 0; + position: absolute; + top: -4px; + background: #fff; + font-size: 14px; + left: 12%; + width: auto; } - .node-main-login > .main .cbi-value-field { - width: 100%; - max-width: 330px; + width: 100%; + max-width: 330px; } - .node-main-login > .main .cbi-value-field input { - padding-left: 8px; - width: 100%; - height: 40px; - border: 1px solid #9D9D9D; - border-radius: 5px; + padding-left: 8px; + width: 100%; + height: 40px; + border: 1px solid #34414a; + border-radius: 50px; } - .node-main-login > .main #maincontent { - height: 100%; - text-align: center; - position: relative; + height: 100%; + text-align: center; + position: relative; } - .node-main-login > .main .container { - width: 80%; - height: 50%; - display: inline-block; - background-color: #34414A; - position: absolute; - right: 50%; - top: 18%; - transform: translateX(50%); - border-radius: 5px; + width: 80%; + height: 50%; + display: inline-block; + background-color: #354057; + position: absolute; + right: 50%; + top: 18%; + transform: translateX(50%); + border-radius: 10px; } - .node-main-login > .main .alert-message.warning { - padding: 0px 10%; - margin: 0; - width: 50%; - position: absolute; - right: 0; - top: 50%; - transform: translateY(-50%); - text-align: left; - font-size: 18px; - background-color: transparent; - color: #fff; + padding: 0 10%; + margin: 0; + width: 50%; + position: absolute; + right: 0; + top: 50%; + transform: translateY(-50%); + text-align: left; + font-size: 18px; + background-color: transparent; + color: #fff; } - .node-main-login > .main form .alert-message.warning { - right: -120%; - padding: 0 0%; - width: 100%; + right: -130%; + padding: 0 0; + width: 100%; } - .node-main-login > .main .alert-message > h4 { - margin-bottom: 0; - padding-bottom: 0; + margin-bottom: 0; + padding-bottom: 0; } - .node-main-login > .main .alert-message > p { - line-height: 1.5rem; + line-height: 1.5rem; } - .node-main-login > .main .alert-message a { - font-size: 16px; - padding: 8px; - background: transparent; - border: 1px solid #fff; - color: #fff; - text-transform: none; + font-size: 16px; + padding: 8px; + background: 0 0; + border: 1px solid #fff; + color: #fff; + text-transform: none; } - .node-main-login > .main .cbi-value { - display: block; - position: relative; - max-width: 330px; - margin: 6% auto; + display: block; + position: relative; + max-width: 330px; + margin: 6% auto; } - .node-main-login > .main .cbi-value > * { - display: inline-block !important; + display: inline-block !important; } .node-main-login > .main .cbi-page-actions input { - margin: 0 auto 6%; - display: block; - width: 90%; - max-width: 300px; - height: 40px; + margin: 0 auto 7%; + display: block; + width: 90%; + max-width: 300px; + height: 40px; } .node-main-login footer { - bottom: 0; - position: absolute; - width: 100%; - right: 0; + bottom: 0; + position: absolute; + width: 100%; + right: 0; } - -/* fix status overview */ - .node-status-overview > .main fieldset:nth-child(4) .td:nth-child(2) { - white-space: normal; + white-space: normal; } - -/* fix status firewall */ .lang_enFirewall .cbi-tabmenu { - border: none; - margin-top: 1rem; - border-top-left-radius: 5px; - border-top-right-radius: 5px; + border: none; + margin-top: 1rem; + border-radius: 0; + border-top-left-radius: 10px; + border-top-right-radius: 10px; } .lang_enFirewall .cbi-tabmenu .cbi-tab, .lang_enFirewall .cbi-tabmenu > li:hover, .node-network-network .cbi-section .cbi-tabmenu, .node-network-network .cbi-section .cbi-tabmenu .cbi-tab, .node-network-network .cbi-section .cbi-tabmenu .cbi-tab-disabled:hover { - border-radius: 0; - border-top-left-radius: 5px; - border-top-right-radius: 5px; + border-radius: 0; + border-top-left-radius: 10px; + border-top-right-radius: 10px; } .lang_enFirewall.logged-in .cbi-section { - margin: 0; - border-radius: 0; - border-bottom-left-radius: 5px; - border-bottom-right-radius: 5px; + margin: 0; + border-radius: 0; + border-bottom-left-radius: 10px; + border-bottom-right-radius: 10px; } - -/* fix status processes */ - .node-status-processes > .main .table .tr .td:nth-child(3) { - white-space: normal; + white-space: normal; } - .node-status-iptables > .main div > .cbi-map > form { - margin: 2rem 2rem 0 0; + margin: 2rem 2rem 0 0; +} +.node-network-network .cbi-section-node-tabbed, +.node-system-system .cbi-section-node-tabbed { + padding-left: 1px; } - -/* fix system system and fix Network DHCP*/ -.node-system-system .cbi-tabmenu, -.node-system-system .cbi-tabmenu > li[class~="cbi-tab"], -.node-system-system .cbi-tabmenu > li:hover, .node-network-dhcp .cbi-tabmenu, +.node-network-dhcp .cbi-tabmenu > li:hover, .node-network-dhcp .cbi-tabmenu > li[class~="cbi-tab"], -.node-network-dhcp .cbi-tabmenu > li:hover { - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; +.node-system-system .cbi-tabmenu, +.node-system-system .cbi-tabmenu > li:hover, +.node-system-system .cbi-tabmenu > li[class~="cbi-tab"] { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; } - -/* fix system reboot */ -.node-system-reboot > .main > .main-right p, -.node-system-reboot > .main > .main-right h3 { - padding-left: 2rem; +.node-system-reboot > .main > .main-right h3, +.node-system-reboot > .main > .main-right p { + padding-left: 2rem; } - -/* fix Services Network Shares*/ .node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-title { - margin-bottom: 1rem; - width: auto; + margin-bottom: 1rem; + width: auto; } - .node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-field { - display: list-item; + display: list-item; } - -.node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-description { - padding-top: 1rem; +.node-services-samba + > .main + .cbi-tabcontainer:nth-child(3) + .cbi-value-description { + padding-top: 1rem; } - -/* fix System Software*/ .node-system-packages > .main table tr td:nth-child(1) { - width: auto !important; + width: auto !important; } - .node-system-packages > .main table tr td:nth-last-child(1) { - white-space: normal; - font-size: small; - color: #404040; + 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-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; + background-color: #eee; + padding: 0.5rem; + overflow: auto; } - .node-status-iptables fieldset, -.node-system-packages fieldset, -.node-system-flashops fieldset { - margin-top: 0; +.node-system-flashops fieldset, +.node-system-packages fieldset { + margin-top: 0; } - .node-status-iptables .cbi-tabmenu, -.node-system-packages .cbi-tabmenu, .node-system-flashops .cbi-tabmenu { - border: none; + border: none; +} +.node-system-packages .cbi-tabmenu { + border: 1px solid #d4d4d4; +} +.node-system-packages .cbi-section .cbi-tabmenu { + overflow: hidden; + padding: .5rem 1rem; +} +.node-system-packages .cbi-section .cbi-tabmenu, +.node-system-packages .cbi-section .cbi-tabmenu > li:hover, +.node-system-packages .cbi-section .cbi-tabmenu > li[class~="cbi-tab"] { + border-radius: 50px; +} +.node-system-packages .cbi-section .cbi-section-node-tabbed { + border: none; + border-bottom: 1px solid #d4d4d4; } - .node-system-flashops form.inline + form.inline { - margin-left: 0; + margin-left: 0; } - #cbi-firewall-redirect table *, -#cbi-network-switch_vlan table *, -#cbi-firewall-zone table * { - font-size: small; +#cbi-firewall-zone table *, +#cbi-network-switch_vlan table * { + font-size: small; } - #cbi-firewall-redirect table input[type="text"], -#cbi-network-switch_vlan table input[type="text"], -#cbi-firewall-zone table input[type="text"] { - width: 5rem; +#cbi-firewall-zone table input[type="text"], +#cbi-network-switch_vlan table input[type="text"] { + width: 5rem; } - #cbi-firewall-redirect table select, -#cbi-network-switch_vlan table select, -#cbi-firewall-zone table select { - min-width: 3.5rem; +#cbi-firewall-zone table select, +#cbi-network-switch_vlan table select { + min-width: 3.5rem; } - -#cbi-network-switch_vlan .th, -#cbi-network-switch_vlan .td { - flex-basis: 12%; +#cbi-network-switch_vlan .td, +#cbi-network-switch_vlan .th { + flex-basis: 12%; } - -/* language fix */ body.lang_pl.node-main-login .cbi-value-title { - width: 12rem; + width: 12rem; } - -/* applyreboot fix */ - #applyreboot-container { - margin: 2rem; + margin: 2rem; } header .fill .container p.brand { - font-size: 40px; + font-size: 40px; } #applyreboot-section { - margin: 2rem; - line-height: 300%; + margin: 2rem; + line-height: 300%; } #maincontent.container { - position: absolute; - z-index: 99999; - left: 50%; - top: 20%; - transform: translateX(-50%); - color: #fff; + position: absolute; + z-index: 99999; + left: 50%; + top: 20%; + transform: translateX(-50%); + color: #fff; } #maincontent.container h2 { - color: #fff; - background: transparent; + color: #fff; + background: 0 0; } #maincontent.container #applyreboot-section { - background: transparent; - border: 1px solid #ffffff78; + background: 0 0; + border: 1px solid #ffffff78; + border-radius: 10px; } - -@media screen and (max-width: 1420px){ - .main > .main-left > .nav > .slide > .menu { - padding-left: .5rem; - font-size: 14px; - } - .main > .main-left > .nav > .slide > .slide-menu > li { - padding-left: 1rem; - font-size: 10px; - } +.node-main-login .main-left .nav-container { + display: none; +} +.node-main-login .line-draft { + width: 50%; + position: absolute; + right: 3%; + top: 50%; + transform: translateY(-50%); + max-height: 100%; + display: none; +} +.node-main-login .line-draft img { + width: 50%; +} +.logged-in .line-draft { + display: none; +} +@media screen and (max-width: 1420px) { + .main > .main-left .nav > .slide > .menu { + padding-left: 0.5rem; + font-size: 14px; + } + .main > .main-left .nav > .slide > .slide-menu > li { + padding-left: 1rem; + font-size: 10px; + } + .node-main-login h2 { + font-size: 20px; + } + .node-main-login > .main .cbi-value-field input { + height: 36px; + width: 90%; + } + .node-main-login > .main .cbi-page-actions input { + height: 36px; + width: 82%; + } } - @media screen and (max-width: 1024px) { - .node-main-login > .main #maincontent { - position: static; - } - .node-main-login .main { - max-width: 384px; - margin: 0 auto; - } - .node-main-login .main-left { - float: none; - position: static; - height: 14%; - width: 100%; - } - .node-main-login .main-left header, - .node-main-login { - background-color: #fff; - } - .node-main-login .main-left header .brand { - font-size: 36px; - } - .main-left header::before, - .logged-in header .refresh::before { - content: ''; - display: inline-block; - vertical-align: middle; - height: 100%; - } - .main-left header .brand { - display: inline-block; - vertical-align: middle; - position: relative; - } - .node-main-login .main-right { - padding: 0; - width: 100%; - float: none; - background-color: #fff; - height: auto; - } - .node-main-login > .main .container { - background-color: #fff; - width: 100%; - height: 100%; - position: static; - transform: none; - display: block; - } - .node-main-login > .main .alert-message.warning { - position: static; - color: #34414a; - width: 100%; - padding: 0; - transform: none; - text-align: center; - font-size: 14px; - } - .node-main-login > .main .alert-message a { - background-color: #6E99C9; - display: block; - } - .node-main-login form { - width: 100%; - height: auto; - position: static; - transform: none; - } - .node-main-login > .main .cbi-value { - width: 100%; - margin: 8% 0; - padding: 0; - max-width: 100%; - } - .node-main-login > .main .cbi-value-field { - max-width: 100%; - } - .node-main-login > .main .cbi-value-title { - top: -8px; - left: 4%; - } - .node-main-login > .main .cbi-page-actions input { - width: 100%; - max-width: none; - } - - .logged-in .main-left { - height: 64px; - top: 0; - width: 100%; - z-index: 999; - } - .logged-in header { - padding: 0 0 0 1rem; - text-align: left; - background: #fff; - } - .logged-in header .showSide { - display: inline-block; - height: 50px; - width: 50px; - background: url(./menu-logo.png) no-repeat center center / cover; - } - header .brand { - color: #34414A; - } - .logged-in header .refresh { - text-align: right; - top: 50%; - right: 2%; - transform: translateY(-50%); - left: auto; - } - .logged-in header .refresh > span, - .logged-in header .refresh > a { - margin: 0; - display: inline-block; - vertical-align: middle; - border-radius: 5px; - } - #xhr_poll_status > .label.success { - border-radius: 5px; - } - .logged-in .main-left .nav { - padding: 0; - right: 0; - top: 100%; - width: 100%; - height: 0; - border-radius: 0; - overflow: hidden; - background-color: #556270; - } - .main > .main-left > .nav > li a { - color: #fff; - font-size: 18px; - } - .main > .main-left > .nav > .slide > ul { - display: block; - } - .main > .main-left > .nav > .slide { - position: absolute; - text-align: center; - top: 30%; - } - .main > .main-left > .nav > .slide > .menu { - padding: 0; - pointer-events: none; - color: #ffffff7d; - } - .main > .main-left > .nav > .slide > .slide-menu > li { - padding: .5rem 0; - } - .main > .main-left > .nav > .slide > .menu:hover { - background: transparent; - } - - .logged-in .main-right { - padding: 0 1% 0 1%; - height: 100%; - width: 100%; - float: none; - margin-top: 88px; - } + .main > .main-left .nav > .slide > .slide-menu > li { + font-size: 20px; + } + .node-main-login > .main #maincontent { + position: static; + } + .node-main-login .main { + max-width: 384px; + margin: 0 auto; + } + .node-main-login .main-left { + float: none; + position: static; + height: 14%; + width: 100%; + } + .node-main-login, + .node-main-login .main-left header { + background-color: #fff; + } + .node-main-login .main-left header .brand { + font-size: 36px; + } + .logged-in header .refresh::before, + .main-left header::before { + content: ""; + display: inline-block; + vertical-align: middle; + height: 100%; + } + .main-left header .brand { + display: inline-block; + vertical-align: middle; + position: relative; + } + .node-main-login .main-right { + padding: 0; + width: 100%; + float: none; + background-color: #fff; + height: auto; + } + .node-main-login > .main .container { + background-color: #fff; + width: 100%; + height: 100%; + position: static; + transform: none; + display: block; + } + .node-main-login > .main .alert-message.warning { + position: static; + color: #34414a; + width: 100%; + padding: 0; + transform: none; + text-align: center; + font-size: 14px; + } + .node-main-login > .main .alert-message a { + background-color: #6e99c9; + display: block; + } + .node-main-login form { + width: 100%; + height: auto; + position: static; + transform: none; + } + .node-main-login > .main .cbi-value { + width: 100%; + margin: 8% 0; + padding: 0; + max-width: 100%; + } + .node-main-login > .main .cbi-value-field { + max-width: 100%; + } + .node-main-login > .main .cbi-value-title { + top: -8px; + left: 8%; + } + .node-main-login > .main .cbi-page-actions input { + width: 100%; + max-width: none; + } + .node-main-login .line-draft { + display: none; + } + .node-main-login > .main .cbi-page-actions input { + width: 90%; + } + .logged-in .main-left { + height: 64px; + top: 0; + width: 100%; + z-index: 999; + overflow: hidden; + } + .logged-in header { + padding: 0 0 0 1rem; + text-align: left; + background: #fff; + border-bottom: 1px solid #f5f5f5; + } + .logged-in header .showSide { + display: inline-block; + height: 50px; + width: 50px; + background: url(./menu-logo.png) no-repeat center center/cover; + } + header .brand { + color: #34414a; + } + .logged-in header .refresh { + text-align: right; + top: 50%; + right: 2%; + transform: translateY(-50%); + left: auto; + } + .logged-in header .refresh > a, + .logged-in header .refresh > span { + margin: 0; + display: inline-block; + vertical-align: middle; + border-radius: 10px; + } + #xhr_poll_status > .label.success { + border-radius: 10px; + } + .logged-in .main-left .nav-container { + padding: 0; + right: 0; + top: 100%; + width: 100%; + height: 0; + border-radius: 0; + background-color: #354057; + } + .main > .main-left .nav > .slide { + margin-bottom: 1.5rem; + display: block; + position: static; + text-align: left; + } + .main > .main-left .nav > .slide > .menu { + font-size: 26px; + padding-left: 1rem; + color: #fff; + } + .main > .main-left .nav > li a { + color: #fff; + } + .main > .main-left .nav > .slide > ul { + display: none; + } + .main > .main-left .nav > .slide > .slide-menu > li > a { + padding-left: 2rem; + } + .main > .main-left .nav > .slide > .active { + background-color: transparent !important; + } + .main > .main-left .nav > .slide > .slide-menu > .active { + background-color: #617080; + } + .logged-in .main-right { + padding: 0 1% 0 1%; + height: 100%; + width: 100%; + float: none; + margin-top: 88px; + } + .logged-in .main > .main-left .logout { + bottom: 1%; + } + .logged-in .main > .main-left .logout a { + font-size: 20px; + background-image: url(./logout-white.png); + } + .node-status-processes .cbi-section { + padding: 0; + } + .node-system-admin .cbi-value-field { + background-color: #fff; + } } - @media screen and (max-width: 992px) { - .main-left { - width: 0; - position: fixed; - z-index: 100; - } - - .main-right { - width: 100%; - } - - .cbi-value-title { - width: 9rem; - padding-right: 1rem; - } - - .node-network-diagnostics > .main .cbi-map fieldset > div * { - width: 100% !important; - } - - .node-network-diagnostics > .main .cbi-map fieldset > div input[type="text"] { - margin: 3rem 0 0 0 !important; - } - - .node-network-diagnostics > .main .cbi-map fieldset > div:nth-child(4) input[type="text"] { - margin: 0 !important; - } - - .node-network-diagnostics > .main .cbi-map fieldset > div select, - .node-network-diagnostics > .main .cbi-map fieldset > div input[type="button"] { - margin: 1rem 0 0 0; - } - - .node-network-diagnostics > .main .cbi-map fieldset > div { - width: 100% !important; - } - #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; - overflow: hidden; - 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; - } - - .td[data-title]::before { - display: block; - } - - .hide-sm, - .hide-xs { - display: none; - } + .main-left { + width: 0; + position: fixed; + z-index: 100; + } + .main-right { + width: 100%; + } + .cbi-value-title { + width: 9rem; + padding-right: 1rem; + } + .node-network-diagnostics > .main .cbi-map fieldset > div * { + width: 100% !important; + } + .node-network-diagnostics > .main .cbi-map fieldset > div input[type="text"] { + margin: 3rem 0 0 0 !important; + } + .node-network-diagnostics + > .main + .cbi-map + fieldset + > div:nth-child(4) + input[type="text"] { + margin: 0 !important; + } + .node-network-diagnostics + > .main + .cbi-map + fieldset + > div + input[type="button"], + .node-network-diagnostics > .main .cbi-map fieldset > div select { + margin: 1rem 0 0 0; + } + .node-network-diagnostics > .main .cbi-map fieldset > div { + width: 100% !important; + } + #diag-rc-output > pre { + font-size: 1rem; + } + .tr { + display: flex; + flex-direction: row; + flex-wrap: wrap; + } + .td, + .th { + flex: 2 2 25%; + align-self: flex-start; + overflow: hidden; + text-overflow: ellipsis; + word-wrap: break-word; + display: inline-block; + } + .td input[type="text"], + .td select { + 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; + } + .td.cbi-section-table-cell, + .td.cbi-value-field, + .th.cbi-section-table-cell, + .th.cbi-value-field { + flex-basis: auto; + } + .cbi-section-table-row { + display: flex; + flex-wrap: wrap; + flex-direction: row; + justify-content: space-between; + } + .cbi-section-table-cell, + .td.cbi-value-field { + 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.cbi-section-table-descr, + .tr.cbi-section-table-titles, + .tr.table-titles { + display: none; + } + .tr.cbi-section-table-titles.named::before, + .tr[data-title]::before { + display: block; + flex: 1 1 100%; + background: #eef; + font-size: 0.9rem; + border-bottom: 1px solid rgba(0, 0, 0, 0.26); + } + .td[data-title] { + text-align: left; + } + .td[data-title]::before { + display: block; + } + .hide-sm, + .hide-xs { + display: none; + } } - @media screen and (max-width: 880px) { - .main { - overflow: visible; - } - .main > .main-left > .nav > .slide { - margin-bottom: 1.5rem; - display: block; - position: static; - text-align: left; - } - .main > .main-left > .nav > .slide > .menu { - font-size: 26px; - padding-left: 1rem; - pointer-events: auto; - } - .main > .main-left > .nav > .slide > ul { - display: none; - } - .main > .main-left > .nav > .slide > .slide-menu > li > a { - padding-left: 2rem; - } - .main > .main-left > .nav > .slide > .active{ - background-color: transparent !important; - } - .main > .main-left > .nav > .slide > .slide-menu > .active { - background-color: #617080; - } + .main { + overflow: visible; + } } - @media screen and (max-width: 480px) { - body { - font-size: 1rem; - } - - .main > .main-left > .nav > .slide > .menu { - font-size: 1.3rem; - } - - .main > .main-left > .nav > .slide > .slide-menu > li > a { - font-size: 1.1rem; - } - - .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; - } - - .node-main-login > .main .container { - padding: 0.5rem 1rem 2rem 1rem; - } - - .node-main-login > .main .cbi-value { - padding: 0; - } - - .node-main-login > .main form > div:nth-last-child(1) { - margin-top: 2rem; - } - - .node-main-login > .main .cbi-value-title { - font-size: 1.2rem; - } - - h2 { - font-size: 1.5rem; - } - .node-main-login form h2, - .node-main-login form .cbi-map-descr { - display: none; - } - - .tabs > li > a { - font-size: 0.9rem; - } - - select, - input { - font-size: 0.9rem; - } - - .mobile-hide { - display: none; - } - - .panel-title { - font-size: 1rem; - padding-bottom: .5rem; - } - - .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; - border-radius: 0; - background-color: #FFF; - -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; - } - - .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; - } - - .logged-in .main-left { - height: 33px; - } - .logged-in header { - padding: 0 0 0 3px; - } - .main-left header .brand { - font-size: 18px; - } - .logged-in header .showSide { - height: 25px; - width: 25px; - } - .logged-in .main-right { - margin-top: 44px; - padding-bottom: 1rem; - } - .cbi-value { - padding: 0.3rem 1rem 0.3rem 0; - } - .logged-in .cbi-value-title { - font-size: 10px; - } - .cbi-section > h3:first-child, .panel-title { - font-size: 1rem; - } - .td[data-title]::before { - font-size: 6px; - } - .logged-in .cbi-section-error li { - font-size: 10px; - } - .node-main-login > .main .cbi-value-title { - top: -13px; - } + body { + font-size: 1rem; + } + .main > .main-left .nav > .slide > .menu { + font-size: 1.3rem; + } + .main > .main-left .nav > .slide > .slide-menu > li > a { + font-size: 1.1rem; + } + .cbi-value > .cbi-value-field { + display: inline-block; + } + .cbi-tabmenu > li, + .tabs > li { + padding: 0.6rem 0; + } + .cbi-tabmenu > li > a, + .tabs > li > a { + padding: 0.2rem 0.3rem; + font-size: 0.8rem; + } + .cbi-page-actions > div > input { + display: none; + } + .node-main-login > .main .container { + padding: 0.5rem 1rem 2rem 1rem; + } + .node-main-login > .main .cbi-value { + padding: 0; + } + .node-main-login > .main form > div:nth-last-child(1) { + margin-top: 2rem; + } + .node-main-login > .main .cbi-value-title { + font-size: 1.2rem; + } + h2 { + font-size: 1.5rem; + } + .node-main-login form .cbi-map-descr, + .node-main-login form h2 { + display: none; + } + .tabs > li > a { + font-size: 0.9rem; + } + input, + select { + font-size: 0.9rem; + } + .mobile-hide { + display: none; + } + .panel-title { + font-size: 1rem; + padding-bottom: 0.5rem; + } + .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: 400; + font-style: normal; + line-height: 1; + font-family: inherit; + min-width: inherit; + border-radius: 0; + background-color: #fff; + -webkit-overflow-scrolling: touch; + text-align: center; + } + .node-status-iptables > .main div > .cbi-map > form input[type="submit"] { + width: 70% !important; + margin: 0; + } + .node-status-iptables + > .main + div + > .cbi-map + > form + input[type="submit"] + + input[type="submit"] { + margin-top: 1rem; + } + .td, + .th { + 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.cbi-section-table-titles.named::before, + .tr[data-title]::before { + font-size: 1rem; + } + .hide-xs { + display: none; + } + .logged-in .main-left { + height: 33px; + } + .logged-in header { + padding: 0 0 0 3px; + } + .main-left header .brand { + font-size: 18px; + } + .logged-in header .showSide { + height: 25px; + width: 25px; + } + .logged-in .main-right { + margin-top: 44px; + padding-bottom: 1rem; + } + .cbi-value { + padding: 0.3rem 1rem 0.3rem 0; + } + .logged-in .cbi-value-title { + font-size: 10px; + } + .cbi-section > h3:first-child, + .panel-title { + font-size: 1rem; + } + .td[data-title]::before { + font-size: 6px; + } + .logged-in .cbi-section-error li { + font-size: 10px; + } + .node-main-login > .main .cbi-value-title { + top: 0; + } + .cbi-section { + padding: 0.5rem; + } + .cbi-section .cbi-section-node .cbi-value { + padding: 0.5rem; + } + .node-system-packages .cbi-tabmenu { + border: 1px solid #d4d4d4; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + } + .node-system-packages .cbi-map > .cbi-section > .cbi-section-node > .table { + margin-top: 0; + } + .node-system-packages > .main .cbi-value .cbi-value-field span input { + margin-bottom: 1rem; + } } - @media screen and (min-width: 992px) { - .cbi-value-field .cbi-dropdown { - min-width: 20rem; - } + .cbi-value-field .cbi-dropdown { + min-width: 20rem; + } } - -*:focus { - outline: 0; +:focus { + outline: 0; } diff --git a/package/lean/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js b/package/lean/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js index 11807d906..c13c5192c 100755 --- a/package/lean/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js +++ b/package/lean/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js @@ -59,7 +59,7 @@ return true; } - $(".main > .main-left > .nav > .slide > .menu").each(function () { + $(".main > .main-left .nav > .slide > .menu").each(function () { var ulNode = $(this); ulNode.next().find("a").each(function () { var that = $(this); @@ -81,30 +81,28 @@ /** * menu click */ - if($(window).width() > 1024 || $(window).width() <= 880){ - $(".main > .main-left .nav > .slide > .menu").click(function () { - var ul = $(this).next(".slide-menu"); - var menu = $(this); - if (!ul.is(":visible")) { - $(".main > .main-left .nav > .slide > .menu").next(".slide-menu").slideUp("fast"); - menu.addClass("active"); - ul.addClass("active"); - ul.stop(true).slideDown("fast"); - } else { - ul.stop(true).slideUp("fast", function () { - menu.removeClass("active"); - ul.removeClass("active"); - }); - } - return false; - }); - } + $(".main > .main-left .nav > .slide > .menu").click(function () { + var ul = $(this).next(".slide-menu"); + var menu = $(this); + if (!ul.is(":visible")) { + $(".main > .main-left .nav > .slide > .menu").next(".slide-menu").slideUp("fast"); + menu.addClass("active"); + ul.addClass("active"); + ul.stop(true).slideDown("fast"); + } else { + ul.stop(true).slideUp("fast", function () { + menu.removeClass("active"); + ul.removeClass("active"); + }); + } + return false; + }); /** * hook menu click and add the hash */ - $(".main > .main-left > .nav > .slide > .slide-menu > li > a").click(function () { + $(".main > .main-left .nav > .slide > .slide-menu > li > a").click(function () { if (lastNode != undefined) lastNode.removeClass("active"); $(this).parent().addClass("active"); $(".main > .loading").fadeIn("fast"); @@ -114,7 +112,7 @@ /** * fix menu click */ - $(".main > .main-left > .nav > .slide > .slide-menu > li").click(function () { + $(".main > .main-left .nav > .slide > .slide-menu > li").click(function () { if (lastNode != undefined) lastNode.removeClass("active"); $(this).addClass("active"); $(".main > .loading").fadeIn("fast"); @@ -158,16 +156,18 @@ $(".showSide").click(function () { if($(window).width() <= 1024){ if (showSide) { - $(".nav").stop(true).animate({ + $(".nav-container").stop(true).animate({ height: "0", padding: "0" }, "fast"); + $(".logged-in .main-left").css('overflow', "hidden"); showSide = false; } else { - $(".nav").stop(true).animate({ - height: $(window).height() - 64 + 'px', - padding: "2rem 1rem" + $(".nav-container").stop(true).animate({ + height: $(window).height() - $('.logged-in .main-left > header').height() + 'px', + padding: "3rem 1rem" }, "fast"); + $(".logged-in .main-left").css('overflow', "visible"); showSide = true; } } @@ -223,12 +223,25 @@ } } - if($(window).width() <= 1024 && $(window).width() >= 768){ - $('.main > .main-left .nav > .slide').each(function(index, elem){ - elem.style.width = $($('.main > .main-left .nav > .slide')[1]).width() + 'px'; - elem.style.left = 20 * (index+1) + '%'; - }); + function disnone() { + var mes = $('.node-main-login .alert-message.warning'); + var lineDraft = $('.node-main-login .line-draft'); + + if(mes.is(":visible")){ + lineDraft.css('display', 'none'); + mes.css('display', 'block'); + }else { + lineDraft.css('display', 'block'); + mes.css('display', 'none'); + } + } + + if($(window).width() > 1024){ + disnone(); + $('.node-main-login .cbi-button-apply').click(function(){disnone();}); } + + })(jQuery); diff --git a/package/lean/luci-theme-rosy/htdocs/luci-static/rosy/line-draft.png b/package/lean/luci-theme-rosy/htdocs/luci-static/rosy/line-draft.png new file mode 100644 index 000000000..57b2ea869 Binary files /dev/null and b/package/lean/luci-theme-rosy/htdocs/luci-static/rosy/line-draft.png differ diff --git a/package/lean/luci-theme-rosy/htdocs/luci-static/rosy/logout-black.png b/package/lean/luci-theme-rosy/htdocs/luci-static/rosy/logout-black.png new file mode 100644 index 000000000..a1c9687fb Binary files /dev/null and b/package/lean/luci-theme-rosy/htdocs/luci-static/rosy/logout-black.png differ diff --git a/package/lean/luci-theme-rosy/htdocs/luci-static/rosy/logout-white.png b/package/lean/luci-theme-rosy/htdocs/luci-static/rosy/logout-white.png new file mode 100644 index 000000000..861b1ea37 Binary files /dev/null and b/package/lean/luci-theme-rosy/htdocs/luci-static/rosy/logout-white.png differ diff --git a/package/lean/luci-theme-rosy/luasrc/view/themes/rosy/header.htm b/package/lean/luci-theme-rosy/luasrc/view/themes/rosy/header.htm index 2469639df..8e9d5ad62 100644 --- a/package/lean/luci-theme-rosy/luasrc/view/themes/rosy/header.htm +++ b/package/lean/luci-theme-rosy/luasrc/view/themes/rosy/header.htm @@ -120,38 +120,37 @@ end end - local function render_topmenu() + local function render_topmenu() local childs = disp.node_childs(cattree) + if #childs > 0 then - write('') + end end local function render_changes() @@ -176,11 +175,14 @@ -%> + - <%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI - - + + <%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - + LuCI + + @@ -191,63 +193,81 @@ - - LuCI"> - - LuCI"> - + - LuCI"> + - LuCI"> + <% if node and node.css then %> - + <% end -%> <% if css then %> - + <% end -%> + -
-
- -
-

Loading...

-
-
-
-
- <%=boardinfo.hostname or "?"%> -
- <% render_changes() %> - - +
+
+ +
+

Loading...

+
+
+
+
+ + <%=boardinfo.hostname or "?"%> +
+ <% render_changes() %> + + +
+
+ -
- <% render_topmenu() %> -
-
-
-
-
- <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%> +
+
+
+
+
+ <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>
-

<%:No password set!%>

-

<%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%>

- +

+ <%:No password set!%> +

+

+ <%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%> +

+
- <%- end -%> + <%- end -%> - + - <% if category then render_tabmenu(category, cattree) end %> + <% if category then render_tabmenu(category, cattree) end %> \ No newline at end of file diff --git a/package/lean/luci-theme-rosy/root/etc/uci-defaults/30_luci-theme-rosy b/package/lean/luci-theme-rosy/root/etc/uci-defaults/30_luci-theme-rosy index 9f976fd52..2657a2977 100755 --- a/package/lean/luci-theme-rosy/root/etc/uci-defaults/30_luci-theme-rosy +++ b/package/lean/luci-theme-rosy/root/etc/uci-defaults/30_luci-theme-rosy @@ -1,6 +1,6 @@ #!/bin/sh uci batch <<-EOF - set luci.themes.rosy=/luci-static/rosy + set luci.themes.Rosy=/luci-static/rosy set luci.main.mediaurlbase=/luci-static/rosy commit luci EOF