update 2026-11-17 10:44:34

This commit is contained in:
action committed 2026-11-17 10:44:34 +08:00
1 parent 88be815b56
commit fd79ac91b4
38 files changed
+4297 -637

No files matched your search

@@ -0,0 +1,413 @@
/* luci-app-netdata – modern card UI, theme neutral (light/dark) */
.nd {
--nd-accent: #2f7ef7;
--nd-accent-2: #18a058;
--nd-danger: #d03050;
--nd-surface: rgba(127, 127, 127, 0.055);
--nd-surface-2: rgba(127, 127, 127, 0.09);
--nd-border: rgba(127, 127, 127, 0.22);
--nd-muted: rgba(127, 127, 127, 0.95);
--nd-radius: 16px;
color: inherit;
}
.nd * {
box-sizing: border-box;
}
.nd-hero {
position: relative;
overflow: hidden;
border: 1px solid var(--nd-border);
border-radius: var(--nd-radius);
padding: 18px 20px;
margin: 0 0 14px;
background:
radial-gradient(120% 140% at 0% 0%, rgba(47, 126, 247, 0.14), transparent 55%),
radial-gradient(120% 140% at 100% 0%, rgba(24, 160, 88, 0.10), transparent 55%),
var(--nd-surface);
}
.nd-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
flex-wrap: wrap;
}
.nd-title {
display: flex;
align-items: center;
gap: 10px;
font-size: 20px;
font-weight: 650;
letter-spacing: 0.2px;
line-height: 1.2;
}
.nd-logo {
width: 36px;
height: 36px;
border-radius: 11px;
display: grid;
place-items: center;
background: linear-gradient(135deg, var(--nd-accent), var(--nd-accent-2));
color: #fff;
font-size: 18px;
font-weight: 700;
box-shadow: 0 6px 16px rgba(47, 126, 247, 0.28);
}
.nd-sub {
margin: 3px 0 0;
font-size: 12px;
color: var(--nd-muted);
}
.nd-pill {
display: inline-flex;
align-items: center;
gap: 6px;
border: 1px solid var(--nd-border);
border-radius: 999px;
padding: 3px 10px;
font-size: 12px;
font-weight: 600;
white-space: nowrap;
}
.nd-pill.running {
color: var(--nd-accent-2);
border-color: rgba(24, 160, 88, 0.35);
background: rgba(24, 160, 88, 0.10);
}
.nd-pill.stopped {
color: var(--nd-danger);
border-color: rgba(208, 48, 80, 0.35);
background: rgba(208, 48, 80, 0.10);
}
.nd-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--nd-danger);
flex: none;
}
.nd-pill.running .nd-dot {
background: var(--nd-accent-2);
animation: nd-pulse 2s ease-out infinite;
}
@keyframes nd-pulse {
0% { box-shadow: 0 0 0 0 rgba(24, 160, 88, 0.45); }
70% { box-shadow: 0 0 0 7px rgba(24, 160, 88, 0); }
100% { box-shadow: 0 0 0 0 rgba(24, 160, 88, 0); }
}
.nd-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.nd-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
min-height: 34px;
padding: 7px 12px;
border: 1px solid var(--nd-border);
border-radius: 10px;
background: var(--nd-surface);
color: inherit;
font-size: 13px;
line-height: 1.2;
text-decoration: none;
cursor: pointer;
transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.nd-btn:hover {
transform: translateY(-1px);
border-color: var(--nd-accent);
background: var(--nd-surface-2);
text-decoration: none;
}
.nd-btn:active {
transform: translateY(0);
}
.nd-btn.primary {
background: linear-gradient(135deg, var(--nd-accent), #1f6fe0);
border-color: transparent;
color: #fff;
}
.nd-btn.primary:hover {
filter: brightness(1.05);
}
.nd-btn.danger:hover {
border-color: var(--nd-danger);
color: var(--nd-danger);
}
.nd-btn[disabled] {
opacity: 0.55;
cursor: not-allowed;
transform: none;
}
.nd-meta {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 14px;
}
.nd-chip {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 9px;
border: 1px solid var(--nd-border);
border-radius: 9px;
background: var(--nd-surface);
font-size: 12px;
color: var(--nd-muted);
white-space: nowrap;
}
.nd-chip b {
color: inherit;
font-weight: 600;
}
.nd-body {
border: 1px solid var(--nd-border);
border-radius: var(--nd-radius);
overflow: hidden;
background: var(--nd-surface);
}
.nd-frame-wrap {
position: relative;
background: var(--nd-surface);
}
.nd-frame {
display: block;
width: 100%;
border: 0;
background: #fff;
}
.nd-frame-wrap:fullscreen {
border-radius: 0;
padding: 0;
background: #000;
}
.nd-frame-wrap:fullscreen .nd-frame {
height: 100vh !important;
}
.nd-loading {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
background: var(--nd-surface);
color: var(--nd-muted);
font-size: 13px;
z-index: 2;
}
.nd-spinner {
width: 18px;
height: 18px;
border-radius: 50%;
border: 2px solid var(--nd-border);
border-top-color: var(--nd-accent);
animation: nd-spin 0.8s linear infinite;
}
@keyframes nd-spin {
to { transform: rotate(360deg); }
}
.nd-empty {
padding: 34px 22px;
text-align: center;
}
.nd-empty-icon {
width: 56px;
height: 56px;
margin: 0 auto 12px;
border-radius: 16px;
display: grid;
place-items: center;
font-size: 26px;
background: var(--nd-surface-2);
border: 1px solid var(--nd-border);
}
.nd-empty h4 {
margin: 0 0 6px;
font-size: 16px;
font-weight: 650;
}
.nd-empty p {
margin: 0 auto 10px;
max-width: 620px;
color: var(--nd-muted);
font-size: 13px;
line-height: 1.6;
}
.nd-empty .nd-actions {
justify-content: center;
margin-top: 14px;
}
.nd-note {
margin: 0 0 14px;
padding: 11px 14px;
border: 1px solid rgba(230, 160, 30, 0.35);
border-radius: 12px;
background: rgba(230, 160, 30, 0.10);
font-size: 13px;
line-height: 1.55;
}
.nd-note.ok {
border-color: rgba(24, 160, 88, 0.35);
background: rgba(24, 160, 88, 0.08);
}
.nd-note.error {
border-color: rgba(208, 48, 80, 0.35);
background: rgba(208, 48, 80, 0.08);
}
.nd-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
gap: 10px;
margin: 0 0 14px;
}
.nd-card {
border: 1px solid var(--nd-border);
border-radius: 14px;
background: var(--nd-surface);
padding: 13px 15px;
}
.nd-card-title {
margin: 0 0 4px;
font-size: 12px;
color: var(--nd-muted);
}
.nd-card-value {
margin: 0;
font-size: 15px;
font-weight: 650;
word-break: break-word;
}
.nd-card-value small {
font-weight: 400;
color: var(--nd-muted);
font-size: 12px;
}
/* Configuration page */
.nd-config .cbi-section {
border: 1px solid var(--nd-border);
border-radius: var(--nd-radius);
background: var(--nd-surface);
padding: 16px 18px;
margin: 0 0 14px;
}
.nd-config .cbi-section h3 {
margin: 0 0 12px;
font-size: 15px;
font-weight: 650;
}
.nd-config .cbi-value-title {
font-weight: 500;
}
.nd-config .cbi-value-description {
line-height: 1.55;
}
.nd-config .cbi-input-text,
.nd-config .cbi-input-select {
border-radius: 9px;
}
.nd-link {
color: var(--nd-accent);
text-decoration: none;
}
.nd-link:hover {
text-decoration: underline;
}
.nd-advanced {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
border: 1px dashed var(--nd-border);
border-radius: var(--nd-radius);
padding: 14px 18px;
margin-top: 14px;
font-size: 13px;
color: var(--nd-muted);
}
@media (max-width: 640px) {
.nd-hero {
padding: 15px;
}
.nd-head {
flex-direction: column;
align-items: flex-start;
}
.nd-title {
font-size: 18px;
}
.nd-actions {
width: 100%;
}
.nd-btn {
flex: 1 1 auto;
}
.nd-meta {
margin-top: 12px;
}
}