Files
desktop/custom/apps/pihole/assets/pihole.css
Lars Gebhardt-Kusche ac2d95fc56
All checks were successful
Deploy / deploy-staging (push) Successful in 25s
Deploy / deploy-production (push) Has been skipped
asdasd
2026-06-25 00:17:31 +02:00

420 lines
7.0 KiB
CSS

.pihole-frame {
height: 100%;
min-height: 0;
}
.pihole-panel-shell {
max-width: 1280px;
}
.pihole-content {
display: grid;
gap: 18px;
}
.pihole-card,
.module-box,
.module-box-soft {
border: 1px solid rgba(148, 163, 184, 0.24);
border-radius: 22px;
background: rgba(255, 255, 255, 0.92);
box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
padding: 20px;
}
.pihole-message {
padding: 14px 16px;
border-radius: 16px;
}
.pihole-message--error {
color: #991b1b;
background: rgba(254, 226, 226, 0.9);
border: 1px solid rgba(248, 113, 113, 0.3);
}
.pihole-message--success {
color: #166534;
background: rgba(220, 252, 231, 0.9);
border: 1px solid rgba(74, 222, 128, 0.3);
}
.pihole-grid,
.module-box-grid--stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 14px;
}
.pihole-stat {
padding: 16px;
}
.pihole-stat-value {
font-size: 1.6rem;
font-weight: 700;
margin-top: 6px;
}
.pihole-stat-sub {
margin-top: 4px;
color: #475569;
}
.pihole-section-header,
.module-box-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
}
.pihole-section-title,
.module-box-title {
margin: 0;
font-size: 1.2rem;
line-height: 1.2;
}
.pihole-actions,
.pihole-card-actions,
.pihole-modal-actions {
margin-top: 12px;
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.pihole-primary-action,
.cta-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 44px;
padding: 10px 16px;
border: 0;
border-radius: 14px;
background: linear-gradient(135deg, #14b8a6, #0f766e);
color: #fff;
font: inherit;
font-weight: 700;
cursor: pointer;
text-decoration: none;
}
.pihole-link-button,
.nav-link {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 40px;
padding: 8px 14px;
border: 1px solid rgba(148, 163, 184, 0.24);
border-radius: 14px;
background: rgba(255, 255, 255, 0.92);
color: inherit;
font: inherit;
font-weight: 600;
cursor: pointer;
text-decoration: none;
}
.pihole-inline {
display: inline-flex;
gap: 8px;
align-items: center;
}
.pihole-inline input {
width: 110px;
}
.pihole-instance-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 14px;
margin-top: 12px;
}
.pihole-instance,
.pihole-instance-card {
display: grid;
gap: 12px;
}
.pihole-instance-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
}
.pihole-instance-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 10px;
margin-top: 12px;
}
.pihole-instance-value {
font-weight: 700;
margin-top: 4px;
}
.pihole-status {
padding: 6px 10px;
border-radius: 999px;
font-size: 0.85rem;
font-weight: 600;
background: rgba(20, 184, 166, 0.15);
color: #0f766e;
}
.pihole-status.is-disabled {
background: rgba(239, 68, 68, 0.15);
color: #b91c1c;
}
.pihole-status.is-partial {
background: rgba(245, 158, 11, 0.18);
color: #92400e;
}
.pihole-split,
.module-box-grid--panels {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 14px;
}
.pihole-list,
.pihole-blocked {
display: grid;
gap: 8px;
margin-top: 12px;
}
.pihole-list-row,
.pihole-blocked-row {
display: flex;
justify-content: space-between;
gap: 12px;
padding: 8px 10px;
border-radius: 12px;
background: rgba(248, 250, 252, 0.95);
}
.pihole-blocked-row {
background: rgba(254, 242, 242, 0.9);
}
.pihole-update {
margin-top: 10px;
font-size: 0.95rem;
color: #475569;
}
.pihole-error {
margin-top: 8px;
font-size: 0.9rem;
color: #b91c1c;
}
.pihole-form,
.pihole-setup-form {
display: grid;
gap: 12px;
margin-top: 12px;
}
.pihole-form {
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
align-items: end;
}
.pihole-form label,
.pihole-field {
display: grid;
gap: 6px;
}
.pihole-field input,
.pihole-field select,
.pihole-form input,
.pihole-form select,
.pihole-form textarea,
.pihole-instance-form input {
width: 100%;
min-height: 44px;
padding: 10px 12px;
border: 1px solid rgba(148, 163, 184, 0.24);
border-radius: 14px;
background: #fff;
color: #0f172a;
font: inherit;
}
.pihole-setup-grid,
.pihole-instance-form-grid,
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 12px;
}
.pihole-form-field-wide {
grid-column: 1 / -1;
}
.pihole-checkbox-field {
display: inline-flex;
align-items: center;
gap: 10px;
}
.pihole-checkbox-field input {
width: 18px;
min-height: 18px;
}
.pihole-page.is-busy {
position: relative;
}
.modal {
position: fixed;
inset: 0;
display: none;
align-items: center;
justify-content: center;
padding: 24px;
background: rgba(15, 23, 42, 0.24);
z-index: 90;
}
.modal.is-open,
.modal[aria-hidden="false"] {
display: flex;
}
.modal-card {
width: min(720px, 96vw);
border-radius: 18px;
border: 1px solid rgba(148, 163, 184, 0.24);
background: rgba(255, 255, 255, 0.98);
box-shadow: 0 28px 64px rgba(15, 23, 42, 0.18);
padding: 20px;
color: #0f172a;
}
.modal-header {
display: flex;
justify-content: space-between;
gap: 16px;
align-items: flex-start;
}
.pihole-console-heading {
display: grid;
gap: 6px;
}
.pihole-console-heading strong {
font-size: 1.05rem;
color: #0f172a;
}
.icon-button {
border: 1px solid rgba(148, 163, 184, 0.24);
border-radius: 12px;
background: #fff;
color: #0f172a;
min-width: 110px;
height: 40px;
cursor: pointer;
font: inherit;
font-weight: 600;
}
.pihole-console-body {
margin-top: 16px;
display: grid;
gap: 10px;
max-height: 48vh;
overflow: auto;
padding: 4px;
}
.pihole-console-line {
display: grid;
gap: 4px;
padding: 12px 14px;
border-radius: 14px;
border: 1px solid rgba(148, 163, 184, 0.24);
background: rgba(255, 255, 255, 0.75);
color: #0f172a;
}
.pihole-console-meta {
display: flex;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.pihole-console-line span {
font-size: 0.8rem;
color: #475569;
}
.pihole-console-line strong {
font-weight: 600;
color: #0f172a;
}
.pihole-console-detail {
font-size: 0.92rem;
color: #334155;
}
.pihole-console-line.is-success {
border-color: rgba(20, 184, 166, 0.22);
background: rgba(20, 184, 166, 0.08);
}
.pihole-console-line.is-error {
border-color: rgba(239, 68, 68, 0.24);
background: rgba(239, 68, 68, 0.08);
}
.pihole-test-result {
margin-top: 6px;
font-size: 0.9rem;
color: #475569;
}
.pihole-test-result.is-ok { color: #0f766e; }
.pihole-test-result.is-auth,
.pihole-test-result.is-unreachable,
.pihole-test-result.is-error { color: #b91c1c; }
.pihole-test-result.is-invalid { color: #92400e; }
@media (max-width: 980px) {
.pihole-frame {
grid-template-columns: 1fr;
}
.pihole-actions,
.pihole-card-actions,
.pihole-modal-actions,
.pihole-inline {
flex-direction: column;
align-items: stretch;
}
.pihole-inline input {
width: 100%;
}
}