vertical-align: top;
}
+.control-group {
+ display: inline-flex;
+ gap: .2em;
+}
+
+.control-group > input + :not(input):not(select),
+.control-group > select + :not(input):not(select) {
+ margin-left: calc(-.2em + -2px);
+ border-radius: 0 3px 3px 0;
+ padding: 0 6px;
+}
+
/*
* Scaffolding
* Basic and global styles for generating a grid system, structural layout, and page templates
margin-bottom: 4px;
box-shadow: 0 0 2px var(--border-color-high);
background: var(--background-color-high);
- padding: 2px 2em 2px 4px;
+ padding: 6px 2em 6px 4px;
border: 1px solid var(--border-color-high);
border-radius: 3px;
color: var(--text-color-high);
width: 100%;
}
-input[type="text"] + .cbi-button,
-input[type="password"] + .cbi-button,
-select + .cbi-button,
-.cbi-select + .cbi-button {
- border-radius: 0 3px 3px 0;
- border-color: var(--border-color-high);
- margin-left: -2px;
- padding: 0 6px;
- vertical-align: top;
- height: 30px;
- font-size: 14px;
- line-height: 28px;
-}
-
-select + .cbi-button,
-.cbi-select + .cbi-button {
- position: relative;
-}
-
.cbi-title-ref {
color: #37c;
}
[data-darkmode="true"] [data-page="admin-statistics-graphs"] [data-plugin] img {
filter: invert(100%) hue-rotate(150deg);
}
+
+[data-page="admin-system-admin-sshkeys"] .cbi-dynlist {
+ max-width: none;
+}
}
@media screen and (max-device-width: 600px) {
+ .modal {
+ margin: 1.5em auto;
+ }
+
.tabs, .cbi-tabmenu {
background: linear-gradient(var(--background-color-high) 20%, var(--border-color-medium) 100%);
background-size: 1px 34px;
.table .th,
.table .td,
.table .tr::before {
- flex: 2 2 33%;
+ flex: 1 1 50%;
align-self: flex-start;
overflow: hidden;
text-overflow: ellipsis;
.td.cbi-value-field {
align-self: flex-start;
+ flex-basis: 100%;
+ margin-bottom: .3em;
}
.td.cbi-value-field .cbi-button {
border-bottom: 1px solid var(--border-color-medium);
}
- .td[data-title]::before,
+ .td[data-title]::before {
+ content: attr(data-title);
+ font-weight: bold;
+ display: block;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: pre-line;
+ }
+
.td[data-description]::after {
display: block;
}
align-self: flex-start;
}
- .td[data-title] ~ .td.cbi-section-actions::before {
- display: block;
- content: "\a0";
- }
-
.td.cbi-section-actions {
overflow: initial;
max-width: 100%;
padding: 3px 2px;
+ flex-basis: 100%;
}
.hide-sm,
display: none !important;
}
- .td.cbi-value-field {
- flex-basis: 100%;
- }
-
- .td.cbi-value-field[data-widget="dvalue"] {
- flex-basis: 50%;
- }
-
+ .td.cbi-value-field[data-widget="CBI.DummyValue"],
+ .td.cbi-value-field[data-widget="CBI.Button"],
+ .td.cbi-value-field[data-widget="CBI.FlagValue"],
+ .td.cbi-value-field[data-widget="dvalue"],
.td.cbi-value-field[data-widget="button"],
.td.cbi-value-field[data-widget="fvalue"] {
- flex-basis: 25%;
+ flex-basis: 50%;
text-align: left;
}
background-color: transparent;
}
+ .cbi-tab-descr {
+ margin: 0 0 .5em 0;
+ }
+
.cbi-value {
padding-bottom: .5em;
border-bottom: 1px solid var(--border-color-high);
font-weight: bold;
}
- .cbi-value-field, .cbi-select, .cbi-dropdown:not(.btn):not(.cbi-button) {
+ .cbi-value-field, .cbi-select, .cbi-dynlist, .cbi-dropdown:not(.btn):not(.cbi-button) {
width: 100%;
margin: 0;
}
+ .cbi-dynlist > .item {
+ min-height: 30px;
+ display: flex;
+ align-items: center;
+ }
+
input, textarea, select,
.cbi-dropdown > ul > li {
font-size: 16px !important;
}
select, input[type="text"], input[type="password"],
- .cbi-dropdown > ul > li input[type="text"] {
+ .cbi-dropdown > ul > li input[type="text"],
+ .cbi-value-field .control-group {
width: 100%;
height: 30px;
}
width: calc(100% - 25px);
}
- [data-dynlist] {
- display: block;
- }
-
- [data-dynlist] > .add-item > input {
- width: calc(100% - 21px);
- }
-
- [data-dynlist] > .add-item > .cbi-button {
- margin-right: -1px;
- }
-
input[type="text"] + .cbi-button,
input[type="password"] + .cbi-button,
select + .cbi-button {
- font-size: 14px !important;
- line-height: 28px;
- height: 30px;
- box-sizing: border-box;
overflow: hidden;
text-overflow: ellipsis;
}
padding: 8px;
}
- [data-page="admin-status-overview"] .cbi-section:nth-of-type(1) .td:first-child,
- [data-page="admin-status-overview"] .cbi-section:nth-of-type(2) .td:first-child {
- flex-grow: 1;
+ [data-page="admin-status-overview"] .td[width="33%"] {
+ flex-basis: 33%;
}
header .pull-right .label {
flex-basis: 12%;
}
- #cbi-network-switch_vlan .td.cbi-section-actions {
- flex-basis: 100%;
- }
-
- #cbi-network-switch_vlan .td.cbi-section-actions::before {
- display: none;
- }
-
#cbi-network-switch_vlan .td.cbi-section-actions > * {
width: auto;
display: block;
[data-name="bridge-vlan"] .td[data-title]::before {
content: attr(data-title);
}
+
+ [data-page="admin-network-network"] .td[data-name="_ifacebox"] {
+ flex-basis: 40%;
+ }
+
+ [data-page="admin-network-network"] .td[data-name="_ifacestat"] {
+ flex-basis: 60%;
+ }
}
@media screen and (max-device-width: 375px) {
body[data-page="admin-network-wireless"] .td.cbi-section-actions::before {
content: none !important;
}
-}
-@media screen and (max-width: 375px) {
+ [data-page="admin-network-network"] .td[data-name="_ifacebox"],
+ [data-page="admin-network-network"] .td[data-name="_ifacestat"] {
+ flex-basis: 100%;
+ }
+
.td .ifacebox {
width: 100%;
margin: 0 !important;