Update cascade.css

This commit is contained in:
Bard 2023-05-27 15:07:43 +08:00 committed by GitHub
parent d46e932fc9
commit c950f8c4c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,14 +20,11 @@
*
* Licensed to the public under the Apache License 2.0
*/
/*
* Include base and custom css
*/
@import url("pure-min.css?v=1");
@import url("fonts.css?v=3");
@import url("pure-min.css?v=1");
:root {
--primary: #5e72e4;
--dark-primary: #483d8b;
@ -67,7 +64,7 @@
--neutral: #fff;
--darker: black;
--background-color: #f4f5f7;
--login-form-bg-color: rgba(244,245,247,0.8);
--login-form-bg-color: rgba(244, 245, 247, 0.8);
--breakpoint-xs: 0;
--breakpoint-sm: 576px;
--breakpoint-md: 768px;
@ -79,122 +76,99 @@
--blur-opacity-dark: 0.5;
--font-family-sans-serif: -apple-system,BlinkMacSystemFont, "Google Sans", "Microsoft Yahei", "WenQuanYi Micro Hei", "sans-serif", "Helvetica Neue", "Helvetica", "Hiragino Sans GB";
--font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
--font-family-normal: Open Sans, PingFangSC-Regular, Microsoft Yahei, WenQuanYi Micro Hei, "Helvetica Neue", Helvetica, Hiragino Sans GB, sans-serif
--font-family-normal: Open Sans, PingFangSC-Regular, Microsoft Yahei, WenQuanYi Micro Hei, "Helvetica Neue", Helvetica, Hiragino Sans GB, sans-serif;
}
* {
margin: 0px;
padding: 0px;
box-sizing: border-box
}
html,body {
html,
body {
margin: 0px;
padding: 0px;
height: 100%;
font-size: 16px;
font-family: var(--font-family-sans-serif)
font-family: var(--font-family-sans-serif);
}
html {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%
-ms-text-size-adjust: 100%;
}
body {
font-size: 0.975rem;
background-color: #f4f5f7;
background-color: var(--background-color);
color: #32325d;
color: var(--gray-dark);
-webkit-tap-highlight-color: transparent
}
textarea {
padding: .2rem
span {
cursor: pointer;
}
textarea:focus-visible {
outline: none;
border: 1px solid var(--primary)
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
::selection {
background-color: #5e72e4;
background-color: var(--primary);
color: #ffffff;
color: var(--white)
color: var(--white);
}
::placeholder {
color: var(--lighter)
}
a:link,a:visited,a:active {
a:link,
a:visited,
a:active {
color: #5e72e4;
color: var(--primary);
text-decoration: none
text-decoration: none;
}
a:hover {
text-decoration: underline
text-decoration: underline;
}
li {
list-style-type: none
list-style-type: none;
}
.table {
position: relative;
display: table
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 {
.td,
.th {
line-height: normal;
display: table-cell;
padding: .5em;
padding: 0.5em;
text-align: center;
vertical-align: middle
vertical-align: middle;
max-width: 375px;
word-wrap: break-word;
}
.th {
font-weight: bold;
white-space: nowrap
white-space: nowrap;
}
.tr.placeholder {
height: 4em
height: 4em;
}
.tr.placeholder>.td {
.tr.placeholder > .td {
line-height: 3;
position: absolute;
right: 0;
bottom: 0;
left: 0;
padding: .4rem 0 !important;
padding: 0.4rem 0 !important;
text-align: center !important;
background: inherit
background: inherit;
}
.td[width="33%"] {
padding: 1.1em 1.5rem
padding: 1.1em 1.5rem;
}
.table[width="33%"],
.th[width="33%"],
@ -206,119 +180,118 @@ li {
.td[width="100%"] {
width: 100%;
}
.col-1 {
flex: 1 1 30px !important
flex: 1 1 30px !important;
}
.col-2 {
flex: 2 2 60px !important
flex: 2 2 60px !important;
}
.col-3 {
flex: 3 3 90px !important
flex: 3 3 90px !important;
}
.col-4 {
flex: 4 4 120px !important
flex: 4 4 120px !important;
}
.col-5 {
flex: 5 5 150px !important
flex: 5 5 150px !important;
}
.col-6 {
flex: 6 6 180px !important
flex: 6 6 180px !important;
}
.col-7 {
flex: 7 7 210px !important
flex: 7 7 210px !important;
}
.col-8 {
flex: 8 8 240px !important
flex: 8 8 240px !important;
}
.col-9 {
flex: 9 9 270px !important
flex: 9 9 270px !important;
}
.col-10 {
flex: 10 10 300px !important
flex: 10 10 300px !important;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0
padding: 0;
}
.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6 {
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: inherit;
font-weight: normal;
line-height: 1.1 !important;
color: inherit
color: inherit;
}
select {
padding: .36rem .8rem;
padding: 0.36rem 0.8rem;
color: #555;
border: thin solid #ccc;
background-color: #fff;
background-image: none
background-image: none;
}
.btn,button,select,input,.cbi-dropdown {
line-height: 1.5em;
padding: .5rem .75rem;
.btn,
button,
select,
input,
.cbi-dropdown {
line-height: 1.5rem;
padding: 0.5rem 0.75rem;
margin: 0.25rem 0.1rem;
color: #8898aa;
border: 1px solid #dee2e6;
border-radius: .25rem;
border-radius: 0.25rem;
outline: 0;
background-image: none;
box-shadow: none;
transition: box-shadow .15s ease
transition: box-shadow 0.15s ease;
}
select,.cbi-dropdown {
select,
.cbi-dropdown {
width: inherit;
cursor: default
cursor: default;
}
select:not([multiple="multiple"]):focus,input:not(.cbi-button):focus,.cbi-dropdown:focus {
select:not([multiple="multiple"]):focus,
input:not(.cbi-button):focus,
.cbi-dropdown:focus {
border-color: #5e72e4;
border-color: var(--primary);
box-shadow: 0 3px 9px rgba(50,50,9,0),3px 4px 8px rgba(94,114,228,0.1)
box-shadow: 0 3px 9px rgba(50, 50, 9, 0), 3px 4px 8px rgba(94, 114, 228, 0.1);
}
.cbi-dropdown,select[multiple="multiple"] {
height: auto
.cbi-dropdown,
select[multiple="multiple"] {
height: auto;
}
pre {
overflow: auto
overflow: auto;
}
code {
font-size: 1rem;
font-size-adjust: 0.35;
padding: 1px 3px;
color: #101010;
border-radius: 2px;
background: #ddd
background: #ddd;
}
abbr {
cursor: help;
text-decoration: underline;
color: #5e72e4;
color: var(--primary)
color: var(--primary);
}
hr {
margin: 1rem 0;
opacity: .1;
border-color: #eee
opacity: 0.1;
border-color: #eee;
}
ul {
@ -2382,28 +2355,27 @@ body:not(.Interfaces) .cbi-rowstyle-2:first-child {
padding: 1em;
border-radius: 10px !important;
background: #fff;
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16),0 0 2px 0 rgba(0,0,0,0.12)
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.12);
}
.modal>* {
.modal > * {
line-height: normal;
flex-basis: 100%;
margin-bottom: .5em;
max-width: 100%
margin-bottom: 0.5em;
max-width: 100%;
}
.modal>pre,.modal>textarea {
font-size: 1rem;
font-size-adjust: .35;
.modal > pre,
.modal > textarea {
font-size: 0.8rem;
font-size-adjust: 0.35;
overflow: auto;
margin-bottom: .5em;
margin-bottom: 0.5em;
padding: 8.5px;
cursor: auto;
white-space: pre-wrap;
color: #eee;
color: #ffc100;
outline: 0;
background-color: #101010;
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16),0 0 2px 0 rgba(0,0,0,0.12)
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.12);
}
.modal>h4 {
@ -3213,19 +3185,20 @@ input[name="ping"],input[name="traceroute"],input[name="nslookup"] {
opacity: 1
}
}
/* other fix */
input[type="checkbox"] {
appearance: none !important;
-webkit-appearance: none !important;
border: 1px solid var(--primary);
border: 1px solid #dee2e6;
width: 16px !important;
height: 16px !important;
padding: 0;
cursor: pointer;
transition: all .2s;
margin: .75rem 0 0 0
transition: all 0.2s;
margin: 0 auto;
margin-bottom: -3px;
margin-right: 3px;
}
input[type="checkbox"]:checked {
border: 1px solid #5e72e4;
border: 1px solid var(--primary);
@ -3234,43 +3207,40 @@ input[type="checkbox"]:checked {
background-color: var(--primary);
background-size: 70%;
background-repeat: no-repeat;
background-position: center
background-position: center;
}
.fb-container .cbi-button {
height: auto !important
height: auto !important;
}
#cbi-usb_printer-printer em {
display: block;
padding: 1rem;
text-align: center
text-align: center;
}
pre.command-output {
padding: 1.5rem
}[data-page="admin-nlbw-display"] .cbi-section[data-tab="export"] {
padding: 1.5rem !important
}[data-page="admin-nlbw-backup"] form {
padding-left: 1.5rem
}[data-page="admin-status-iptables"] .right {
margin-bottom: 0 !important
padding: 1.5rem;
}
@media all and (-ms-high-contrast:none) {
.main>.main-left>.nav>.slide>.menu::before {
top: 30.25%
[data-page="admin-nlbw-display"] .cbi-section[data-tab="export"] {
padding: 1.5rem !important;
}
[data-page="admin-nlbw-backup"] form {
padding-left: 1.5rem;
}
[data-page="admin-status-iptables"] .right {
margin-bottom: 0 !important;
}
/* IE hacks */
@media all and (-ms-high-contrast: none) {
.main > .main-left > .nav > .slide > .menu::before {
top: 30.25%;
}
.main>.main-left>.nav>li:last-child::before {
top: 20%
.main > .main-left > .nav > li:last-child::before {
top: 20%;
}
.showSide::before {
top: -12px
top: -12px;
}
}
@media screen and (max-width: 1600px) {
header > .fill > .container > #logo {
margin: 0 2.5rem 0 0.5rem;
@ -3298,45 +3268,40 @@ pre.command-output {
.cbi-value input[type="password"] {
min-width: 18rem;
}
#cbi-firewall-zone .cbi-input-select {
min-width: 9rem
min-width: 9rem;
}
.cbi-input-textarea {
font-size: small
font-size: small;
}
.node-admin-status>.main fieldset li>a {
padding: .3rem .6rem
.node-admin-status > .main fieldset li > a {
padding: 0.3rem 0.6rem;
}
}
@media screen and (max-width:1366px) {
header>.fill>.container {
cursor: default
@media screen and (max-width: 1366px) {
header > .fill > .container {
cursor: default;
}
.main-left {
width: calc(0% + 13rem)
width: calc(0% + 13rem);
}
.tabs>li>a,.cbi-tabmenu>li>a {
padding: .2rem .8rem
.main-right {
width: calc(100% - 13rem);
}
.tabs > li > a,
.cbi-tabmenu > li > a {
padding: 0.2rem 0.8rem;
}
.panel-title {
font-size: 1.1rem;
padding-bottom: 1rem
padding-bottom: 1rem;
}
table {
font-size: .7rem !important;
width: 100% !important
font-size: 0.78rem !important;
width: 100% !important;
}
.table .cbi-input-text {
width: 100%
width: 100%;
}
.cbi-value-field .cbi-dropdown,
.cbi-value-field .cbi-input-select,
@ -3344,19 +3309,19 @@ pre.command-output {
.cbi-value input[type="password"] {
min-width: 16rem;
}
#cbi-firewall-zone .cbi-input-select {
min-width: 4rem
min-width: 4rem;
}
.main>.main-left>.nav>li,.main>.main-left>.nav>li>a,.main .main-left .nav>li>a:first-child,.main>.main-left>.nav>.slide>.menu,.main>.main-left>.nav>li>[data-title="Logout"] {
font-size: .9rem
.main > .main-left > .nav > li,
.main > .main-left > .nav > li > a,
.main .main-left .nav > li > a:first-child,
.main > .main-left > .nav > .slide > .menu,
.main > .main-left > .nav > li > [data-title="Logout"] {
font-size: 0.9rem;
}
.main>.main-left>.nav>.slide>.slide-menu>li>a {
font-size: .7rem
.main > .main-left > .nav > .slide > .slide-menu > li > a {
font-size: 0.7rem;
}
#modal_overlay {
top: 0rem;
}
@ -3369,55 +3334,51 @@ pre.command-output {
[data-page="admin-network-routes"] .table {
overflow-y: visible;
}
.commandbox {
width: 32% !important
width: 32% !important;
}
.btn:not(button),.cbi-button {
font-size: .8rem
.btn:not(button),
.cbi-button {
font-size: 0.8rem;
}
}
@media screen and (max-width:1152px) {
header>.fill>.container>#logo {
display: none
@media screen and (max-width: 1280px) {
header > .fill > .container > #logo {
display: none;
}
header>.fill>.container>.brand {
position: relative
header > .fill > .container > .brand {
position: relative;
}
html,.main {
overflow-y: visible
html,
.main {
overflow-y: visible;
}
.main>.loading>span {
top: 25%
.main > .loading > span {
top: 25%;
}
.main-left {
width: calc(0% + 13rem)
width: calc(0% + 13rem);
}
.main-right {
width: calc(100% - 13rem);
}
body:not(.logged-in) .showSide {
visibility: hidden;
width: 0;
margin: 0
margin: 0;
}
.node-main-login>.main .cbi-value-title {
text-align: left
.node-main-login > .main .cbi-value-title {
text-align: left;
}
.cbi-value-title {
width: 12rem;
padding-right: 1rem
padding-right: 1rem;
}
.cbi-value-field .cbi-dropdown,.cbi-value-field .cbi-input-select,.cbi-value input[type="text"] {
.cbi-value-field .cbi-dropdown,
.cbi-value-field .cbi-input-select,
.cbi-value input[type="text"] {
width: 16rem;
min-width: 16rem
min-width: 16rem;
}
/*.cbi-value input[type="password"],*/
.cbi-value input[name^="pw"],
@ -3430,7 +3391,6 @@ pre.command-output {
[data-page="admin-services-wol"] .notice code {
font-size: 1rem;
}
.table {
display: block;
border-radius: 0.375rem;
@ -3442,23 +3402,19 @@ pre.command-output {
.Interfaces .table {
overflow-x: hidden;
}
#packages.table {
display: grid
display: grid;
}
.tr {
display: flex;
flex-direction: row;
flex-wrap: wrap
flex-wrap: wrap;
}
.Overview .table[width="100%"]>.tr {
flex-wrap: nowrap
.Overview .table[width="100%"] > .tr {
flex-wrap: nowrap;
}
.tr.placeholder {
border-bottom: thin solid #ddd
border-bottom: thin solid #ddd;
}
.tr.placeholder > .td,
#cbi-firewall .tr > .td,
@ -3613,70 +3569,65 @@ pre.command-output {
font-size: 1.7rem
}
header>.fill>.container>.flex1>.brand {
display: inline-block
header > .fill > .container > .brand {
display: inline-block;
}
.main>.main-left>.nav>.slide>.slide-menu>li>a {
font-size: .8rem
.main > .main-left > .nav > .slide > .slide-menu > li > a {
font-size: 0.8rem;
}
}
@media screen and (max-width:600px) {
@media screen and (max-width: 600px) {
.mobile-hide {
display: none
display: none;
}
#maincontent>.container {
margin: 0 1rem 1rem 1rem
#maincontent > .container {
margin: 0 1rem 1rem 1rem;
}
.cbi-value-title {
text-align: left
}[ data-page="admin-system-flash"] legend {
padding: 1rem 0 1rem 1rem
}[ data-page="admin-system-flash"] .cbi-section-descr {
padding: 1rem 0 1rem 1rem
}[ data-page="admin-system-flash"] .cbi-value {
padding: 0 1rem
}[ data-page="admin-network-dhcp"] [data-tab-active="true"] {
padding: 1rem 1rem !important
text-align: left;
}
[data-page="admin-system-flash"] legend {
padding: 1rem 0 1rem 1rem;
}
[data-page="admin-system-flash"] .cbi-section-descr {
padding: 1rem 0 1rem 1rem;
}
[data-page="admin-system-flash"] .cbi-value {
padding: 0 1rem;
}
[data-page="admin-network-dhcp"] [data-tab-active="true"] {
padding: 1rem 1rem !important;
}
.cbi-dynlist p {
padding: .5rem 1rem
padding: 0.5rem 1rem;
}
body {
overflow-x: hidden
overflow-x: hidden;
}
.node-main-login .main .main-right #maincontent .container .cbi-map .cbi-section .cbi-section-node .cbi-value .cbi-value-field {
width: 16rem
width: 16rem;
}
.node-main-login footer {
display: none
display: none;
}
.tabs::-webkit-scrollbar,.cbi-tabmenu::-webkit-scrollbar {
.tabs::-webkit-scrollbar,
.cbi-tabmenu::-webkit-scrollbar {
width: 0px;
height: 0px
height: 0px;
}
.cbi-value-field,.cbi-value-description {
.cbi-value-field,
.cbi-value-description {
display: block !important;
padding-left: 0 !important;
padding-right: 0 !important
}[ data-page="admin-system-admin-password"] .cbi-value-field {
display: table-cell !important
padding-right: 0 !important;
}
[data-page="admin-system-admin-password"] .cbi-value-field {
display: table-cell !important;
}
.modal.cbi-modal {
max-width: 95%;
max-height: none;
}
.modal {
display: flex;
align-items: center;
@ -3689,62 +3640,48 @@ pre.command-output {
padding: 1em;
border-radius: 15px !important;
background: #fff;
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16),0 0 2px 0 rgba(0,0,0,0.12)
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.12);
}
.cbi-dropdown[open]>ul.dropdown {
left: .2rem !important;
.cbi-dropdown[open] > ul.dropdown {
left: 0.2rem !important;
right: 0 !important;
margin-bottom: 1rem
}
.login-page .login-container footer {
display: none
margin-bottom: 1rem;
}
}
@media screen and (min-width:600px) {
@media screen and (min-width: 600px) {
::-webkit-scrollbar {
width: 10px;
height: 10px
height: 10px;
}
::-webkit-scrollbar,::-webkit-scrollbar-corner {
background: transparent
::-webkit-scrollbar,
::-webkit-scrollbar-corner {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--primary);
border-radius: 10px
background: #9e9e9e;
}
::-webkit-scrollbar-thumb:hover {
background: var(--primary)
background: #757575;
}
::-webkit-scrollbar-thumb:active {
background: var(--primary)
background: #424242;
}
}
@media screen and (max-width:480px) {
@media screen and (max-width: 480px) {
.mobile-hide {
display: none
display: none;
}
.login-page .login-container {
margin-left: 0rem !important;
width: 100%
width: 100%;
}
.login-page .login-container .login-form .form-login .input-group::before {
color: #525461
color: #525461;
}
.login-page .login-container .login-form .form-login .input-group input {
color: #525461;
border-bottom: white 1px solid;
border-bottom: var(--white) 1px solid;
border-radius: 0
border-radius: 0;
}
}