Files
pi-kit/pikit-web/assets/css/layout.css
2025-12-13 17:04:32 -05:00

380 lines
6.4 KiB
CSS

.host-chip {
border-radius: 10px;
background: rgba(255, 255, 255, 0.04);
color: var(--text);
}
.layout {
max-width: 1200px;
margin: 0 auto;
padding: 32px 18px 80px;
}
.hero {
display: grid;
grid-template-columns: 1.1fr 0.9fr;
gap: 20px;
align-items: center;
margin-bottom: 24px;
}
.eyebrow {
text-transform: uppercase;
font-size: 0.75rem;
letter-spacing: 0.12rem;
color: var(--muted);
margin: 0 0 6px;
font-family: var(--font-heading);
}
.eyebrow.warning {
color: var(--warning);
}
h1 {
margin: 0 0 10px;
line-height: 1.2;
font-family: var(--font-heading);
font-weight: 700;
}
h2 {
margin: 0 0 6px;
line-height: 1.2;
font-family: var(--font-heading);
font-weight: 600;
}
.lede {
color: var(--muted);
margin: 0 0 14px;
}
.hint {
color: var(--muted);
margin: 0;
font-size: 0.95rem;
}
.hint.quiet {
opacity: 0.8;
font-size: 0.85rem;
}
.actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.hero-stats {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 14px;
padding: 14px;
box-shadow: var(--shadow);
display: grid;
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
gap: 12px;
}
.stat {
background: var(--card-overlay);
border: 1px solid var(--border);
border-radius: 12px;
padding: 9px;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.stat .label {
color: var(--muted);
font-size: 0.85rem;
}
.stat .value {
font-size: 1.15rem;
font-weight: 700;
line-height: 1.25;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.panel {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 16px;
padding: 18px;
margin-bottom: 18px;
box-shadow: var(--shadow);
}
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 12px;
font-family: var(--font-heading);
}
.panel-actions {
display: flex;
gap: 8px;
align-items: center;
margin-left: auto;
}
.panel-actions .icon-btn {
font-size: 1.15rem;
width: 38px;
height: 38px;
padding: 0;
}
.panel-header.small-gap {
margin-top: 12px;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 12px;
}
.grid.empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 220px;
width: 100%;
}
.empty-state {
text-align: center;
color: var(--muted);
padding: 16px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
width: 100%;
height: 100%;
}
.empty-state button {
margin-top: 6px;
box-shadow: none;
}
.card {
border: 1px solid var(--border);
background: var(--card-overlay);
padding: 12px;
padding-right: 48px; /* reserve room for stacked action buttons */
padding-bottom: 34px; /* reserve room for bottom badges */
border-radius: 12px;
display: flex;
flex-direction: column;
gap: 6px;
position: relative;
}
.card.clickable {
cursor: pointer;
}
.card.offline {
border-color: rgba(225, 29, 72, 0.45);
}
.card a {
color: var(--accent);
text-decoration: none;
word-break: break-all;
}
.service-url {
color: var(--text);
font-weight: 600;
word-break: break-all;
}
.pill {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 8px;
border-radius: 999px;
background: color-mix(in srgb, var(--accent) 18%, var(--panel) 82%);
border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border) 65%);
color: var(--text);
font-size: 0.85rem;
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pill-small {
font-size: 0.8rem;
}
.notice-pill {
display: inline-flex;
align-items: center;
padding: 2px 8px;
border-radius: 999px;
border: 1px dashed #6b7280;
color: #6b7280;
font-size: 0.78rem;
margin-left: 6px;
}
.self-signed-pill {
position: absolute;
right: 10px;
bottom: 10px;
margin-left: 0;
}
.notice-link {
display: inline-block;
margin-top: 8px;
color: var(--accent);
text-decoration: underline;
}
.info-btn {
width: 30px;
height: 30px;
padding: 0;
border: 1px solid color-mix(in srgb, var(--border) 60%, var(--text) 20%);
border-radius: 10px;
font-size: 1rem;
color: var(--text);
background: var(--card-overlay);
line-height: 1;
}
.status-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: #e11d48;
box-shadow: 0 0 8px rgba(225, 29, 72, 0.5);
}
.status-dot.on {
background: #22c55e;
box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}
html[data-anim="on"] .status-dot.on {
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35);
}
70% {
box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
}
}
.status-dot.off {
background: #f87171;
box-shadow: 0 0 8px rgba(248, 113, 113, 0.5);
}
.service-header {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto auto;
align-items: center;
gap: 8px;
width: 100%;
}
.service-header .pill {
min-width: 0;
max-width: 100%;
}
.service-header .status-dot,
.service-header .menu-btn,
.service-header .notice-pill {
justify-self: start;
}
.service-header .menu-btn {
justify-self: end;
}
#servicesGrid {
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.log-card {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 10px;
padding: 10px;
margin-top: 12px;
}
.log-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
}
.log-actions {
display: flex;
align-items: center;
gap: 8px;
}
.log-actions .icon-btn {
width: 32px;
height: 32px;
padding: 0;
font-size: 0.9rem;
background: var(--card-overlay);
border: 1px solid var(--border);
}
.log-box {
max-height: 140px;
overflow-y: auto;
background: rgba(0, 0, 0, 0.08);
border-radius: 6px;
padding: 10px;
font-family: "DM Sans", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 0.9rem;
border: 1px dashed var(--border);
color: var(--muted);
white-space: pre-wrap;
}
:root[data-theme="light"] .log-box {
background: rgba(12, 18, 32, 0.04);
}
.codeblock {
background: var(--input-bg);
padding: 10px;
border-radius: 10px;
max-width: 440px;
min-width: 260px;
border: 1px solid var(--border);
white-space: pre-wrap;
word-break: break-all;
}