mirror of
https://github.com/alexhopeoconnor/dnsmasq-webui.git
synced 2026-10-04 04:18:13 +10:00
- Split effective-config session into Draft + Ui (IEffectiveConfigDraft, IEffectiveConfigUiState) - Hosts: managed overlay, edit mode from table, validation deferred to blur/Escape/Enter - Managed hosts save modal: line-level diff (add/remove/modify/order) - Hosts group headers: editable/read-only badges, empty-group row, Effective names help - hosts-ui.js for touch vs hover help; table inline bind oninput for live preview - HostsEntryEditValidator and ManagedHostsPendingChangeDiff with tests
217 lines
4.1 KiB
CSS
217 lines
4.1 KiB
CSS
.page-title {
|
|
font-size: 1.75rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
@media (min-width: 641px) {
|
|
.page-title {
|
|
font-size: 2rem;
|
|
}
|
|
}
|
|
|
|
::deep .page-section {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
::deep .table-responsive-cards {
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
::deep .table {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
::deep .table th,
|
|
::deep .table td {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.hosts-page {
|
|
display: block;
|
|
}
|
|
|
|
@media (max-width: 640.98px) {
|
|
::deep .table {
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
::deep .table th,
|
|
::deep .table td {
|
|
padding: 0.5rem;
|
|
}
|
|
}
|
|
|
|
/* Toolbar */
|
|
.hosts-controls-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
margin-bottom: 1rem;
|
|
padding: 0.875rem 1rem;
|
|
background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 100%);
|
|
border: 1px solid #e7ebf0;
|
|
border-radius: 14px;
|
|
box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.35);
|
|
}
|
|
|
|
.hosts-toolbar-search {
|
|
min-width: 14rem;
|
|
max-width: 24rem;
|
|
}
|
|
|
|
.hosts-toolbar-select {
|
|
min-width: 9rem;
|
|
max-width: 14rem;
|
|
}
|
|
|
|
.hosts-summary-strip {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.hosts-summary-stat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.15rem;
|
|
padding: 0.85rem 0.95rem;
|
|
background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
|
|
border: 1px solid #e7ebf0;
|
|
border-radius: 14px;
|
|
box-shadow: 0 8px 20px -18px rgba(15, 23, 42, 0.45);
|
|
}
|
|
|
|
.hosts-summary-stat__value {
|
|
font-size: 1.15rem;
|
|
font-weight: 700;
|
|
line-height: 1.1;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.hosts-summary-stat__label {
|
|
font-size: 0.78rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.03em;
|
|
text-transform: uppercase;
|
|
color: #64748b;
|
|
}
|
|
|
|
/* Group header row (colspan, not rowspan) */
|
|
::deep .hosts-table .hosts-effective-names-th {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
::deep .hosts-table .hosts-effective-names-help {
|
|
vertical-align: middle;
|
|
text-decoration: none;
|
|
line-height: 1;
|
|
}
|
|
|
|
::deep .hosts-table .hosts-effective-names-help:hover,
|
|
::deep .hosts-table .hosts-effective-names-help:focus-visible {
|
|
color: var(--bs-primary) !important;
|
|
}
|
|
|
|
::deep .hosts-table .hosts-group-header-cell {
|
|
background: linear-gradient(180deg, #f8fafc 0%, #f6f8fb 100%);
|
|
border-top: 1px solid #dbe3ec;
|
|
border-bottom: 1px solid #dbe3ec;
|
|
font-weight: 600;
|
|
vertical-align: middle;
|
|
padding-top: 0.6rem;
|
|
padding-bottom: 0.6rem;
|
|
}
|
|
|
|
.hosts-group-header__content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 0.35rem;
|
|
width: 100%;
|
|
}
|
|
|
|
.hosts-group-header__title {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
color: #0f172a;
|
|
min-width: 0;
|
|
}
|
|
|
|
.hosts-group-header__path {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
min-width: 0;
|
|
width: 100%;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.hosts-group-header__badge {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.hosts-group-header__subtitle {
|
|
display: inline-block;
|
|
line-height: 1.2;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: min(38rem, 50vw);
|
|
}
|
|
|
|
::deep .hosts-row--inactive {
|
|
opacity: 0.72;
|
|
}
|
|
|
|
::deep .hosts-row--editable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
::deep .hosts-row--editable:hover {
|
|
background-color: rgba(13, 110, 253, 0.06);
|
|
}
|
|
|
|
::deep .hosts-table .hosts-row--empty td.hosts-empty-group-message {
|
|
background: #fafbfc;
|
|
font-style: italic;
|
|
}
|
|
|
|
::deep .hosts-row code {
|
|
font-size: 0.93em;
|
|
color: #0f172a;
|
|
background: #f8fafc;
|
|
padding: 0.15rem 0.35rem;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
::deep .hosts-row--editing td {
|
|
background: #f0f7ff;
|
|
}
|
|
|
|
@media (max-width: 991.98px) {
|
|
.hosts-controls-bar {
|
|
padding: 0.75rem;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.hosts-toolbar-search,
|
|
.hosts-toolbar-select {
|
|
min-width: 0;
|
|
max-width: none;
|
|
width: 100%;
|
|
}
|
|
|
|
.hosts-group-header__subtitle {
|
|
max-width: 100%;
|
|
margin-left: 0;
|
|
}
|
|
}
|