style(webui): apply strict modular ui redesign
This commit is contained in:
1 parent
cc4caef6e1
commit
dbf9b14fac
10 files changed
+2056
-363
No files matched your search
@@ -0,0 +1,299 @@
|
||||
/* Strict UI panel cards, form controls, rows, stats, and tables. */
|
||||
.panel,
|
||||
.card[data-panel],
|
||||
.card {
|
||||
border: 1px solid var(--strict-border);
|
||||
border-radius: var(--strict-radius);
|
||||
background: var(--strict-surface);
|
||||
box-shadow: var(--strict-shadow-soft);
|
||||
}
|
||||
|
||||
.panel,
|
||||
.card[data-panel] {
|
||||
width: 100%;
|
||||
padding: 24px 28px;
|
||||
}
|
||||
|
||||
.panel[hidden],
|
||||
.card[data-panel][hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.panel.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.sectionTitle,
|
||||
.cardTitle,
|
||||
.logTitle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
color: var(--strict-text);
|
||||
font-size: 22px;
|
||||
font-weight: 800;
|
||||
line-height: 1.22;
|
||||
}
|
||||
|
||||
.sectionTitle {
|
||||
margin: 0 0 24px;
|
||||
}
|
||||
|
||||
.sectionTitle:not(:first-child) {
|
||||
margin-top: 30px;
|
||||
padding-top: 24px;
|
||||
border-top: 1px solid var(--strict-border);
|
||||
}
|
||||
|
||||
.sectionIcon {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: 16px 28px;
|
||||
margin: 0;
|
||||
padding: 10px 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.row + .row {
|
||||
border-top: 1px solid #eef2f7;
|
||||
}
|
||||
|
||||
.row.grid2 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 18px 36px;
|
||||
}
|
||||
|
||||
.row.grid3 {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 18px 28px;
|
||||
}
|
||||
|
||||
.row.grid2 > div,
|
||||
.row.grid3 > div {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.row.grid2 .label,
|
||||
.row.grid3 .label {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.label {
|
||||
color: #263241;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.hint {
|
||||
color: var(--strict-muted);
|
||||
font-size: 13px;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.input,
|
||||
.small,
|
||||
.logSearchBox,
|
||||
input[type="text"],
|
||||
input[type="number"],
|
||||
input[type="search"],
|
||||
select,
|
||||
textarea {
|
||||
min-width: 0;
|
||||
min-height: 38px;
|
||||
border: 1px solid var(--strict-border-strong);
|
||||
border-radius: 6px;
|
||||
color: var(--strict-text);
|
||||
background: #ffffff;
|
||||
box-shadow: none;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.input,
|
||||
.logSearchBox,
|
||||
input[type="text"],
|
||||
input[type="number"],
|
||||
input[type="search"],
|
||||
select {
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
.textarea,
|
||||
textarea {
|
||||
min-height: 110px;
|
||||
padding: 12px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.check {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
color: #334155;
|
||||
font-size: 14px;
|
||||
font-weight: 650;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.check input[type="checkbox"] {
|
||||
appearance: none;
|
||||
position: relative;
|
||||
width: 42px;
|
||||
height: 24px;
|
||||
flex: 0 0 42px;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
background: #cbd5e1;
|
||||
cursor: pointer;
|
||||
transition: background 140ms ease;
|
||||
}
|
||||
|
||||
.check input[type="checkbox"]::after {
|
||||
position: absolute;
|
||||
left: 3px;
|
||||
top: 3px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
content: "";
|
||||
border-radius: 50%;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
|
||||
transition: transform 140ms ease;
|
||||
}
|
||||
|
||||
.check input[type="checkbox"]:checked {
|
||||
background: var(--strict-teal);
|
||||
}
|
||||
|
||||
.check input[type="checkbox"]:checked::after {
|
||||
transform: translateX(18px);
|
||||
}
|
||||
|
||||
.inline2 {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.inline2:not(:has(span)) {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.rowActions {
|
||||
margin: 16px 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.btnGroup {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.btnGroup .btn:first-child,
|
||||
.rowActions .btnPrimary {
|
||||
color: #ffffff;
|
||||
border-color: var(--strict-primary);
|
||||
background: var(--strict-primary);
|
||||
}
|
||||
|
||||
#btnWifiDisconnect {
|
||||
color: var(--strict-danger);
|
||||
border-color: #fecdd3;
|
||||
}
|
||||
|
||||
#wifiStatus {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
#wifiScanResults {
|
||||
display: block;
|
||||
min-height: 112px;
|
||||
margin-top: 22px !important;
|
||||
padding: 42px 16px;
|
||||
border: 1px solid var(--strict-border);
|
||||
border-radius: var(--strict-radius);
|
||||
color: var(--strict-muted);
|
||||
text-align: center;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.statsGrid,
|
||||
.chartsGrid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 18px 22px;
|
||||
}
|
||||
|
||||
.statsGridHero {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.stat,
|
||||
.chartBlock,
|
||||
.table {
|
||||
border: 1px solid var(--strict-border);
|
||||
border-radius: var(--strict-radius);
|
||||
background: var(--strict-surface);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.stat {
|
||||
min-height: 86px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.statLabel {
|
||||
color: var(--strict-muted);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.statValue {
|
||||
margin-top: 8px;
|
||||
color: var(--strict-text);
|
||||
font-size: 24px;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.statHint {
|
||||
color: var(--strict-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.chartBlock {
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.chartTitle {
|
||||
color: var(--strict-text);
|
||||
font-size: 16px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.chart {
|
||||
min-height: 220px;
|
||||
}
|
||||
|
||||
.table {
|
||||
min-height: 180px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.tableRow {
|
||||
border-color: #eef2f7;
|
||||
}
|
||||
Reference in new issue
Block a user