Files
ScheduleTaskManager/web/src/styles.css
T
2026-07-09 22:51:03 +02:00

334 lines
5.3 KiB
CSS

:root {
color-scheme: light dark;
--bg: #f5f6f8;
--surface: #ffffff;
--border: #dde1e6;
--text: #1c2126;
--text-muted: #5b6470;
--accent: #2f6fed;
--accent-contrast: #ffffff;
--danger: #d64545;
--stale-bg: #fff6e5;
--ok-bg: #e5f6ea;
--ok-text: #1f8a3d;
--disabled-bg: #eceff2;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #14171c;
--surface: #1c2128;
--border: #2c333c;
--text: #e6e9ed;
--text-muted: #9aa4b1;
--accent: #5b8dfc;
--accent-contrast: #0b1220;
--stale-bg: #332a12;
--ok-bg: #123321;
--ok-text: #4fd07a;
--disabled-bg: #232830;
}
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
}
.loading-screen,
.login-screen {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.login-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
padding: 2.5rem;
max-width: 380px;
text-align: center;
}
.login-card h1 {
margin-top: 0;
font-size: 1.4rem;
}
.login-card p {
color: var(--text-muted);
}
.app-shell {
min-height: 100vh;
}
.app-header {
display: flex;
align-items: center;
gap: 2rem;
padding: 0.75rem 1.5rem;
background: var(--surface);
border-bottom: 1px solid var(--border);
}
.app-header .brand {
font-weight: 600;
}
.app-header nav {
display: flex;
gap: 1rem;
flex: 1;
}
.app-header nav a {
color: var(--text-muted);
text-decoration: none;
padding: 0.25rem 0;
border-bottom: 2px solid transparent;
}
.app-header nav a.active,
.app-header nav a:hover {
color: var(--text);
border-bottom-color: var(--accent);
}
.user-info {
display: flex;
align-items: center;
gap: 1rem;
color: var(--text-muted);
font-size: 0.9rem;
}
.user-info a {
color: var(--accent);
}
main {
max-width: 1100px;
margin: 0 auto;
padding: 1.5rem;
}
.filter-bar {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-bottom: 1.5rem;
align-items: center;
}
.filter-bar select,
.filter-bar input[type="search"] {
padding: 0.4rem 0.6rem;
border-radius: 6px;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text);
}
.checkbox-label {
display: flex;
align-items: center;
gap: 0.4rem;
color: var(--text-muted);
font-size: 0.9rem;
}
.server-group {
margin-bottom: 2rem;
}
.server-group h2 {
border-bottom: 1px solid var(--border);
padding-bottom: 0.4rem;
}
.schedule-type-group {
margin-bottom: 1.25rem;
}
.schedule-type-group h3 {
color: var(--text-muted);
font-size: 0.95rem;
text-transform: uppercase;
letter-spacing: 0.03em;
margin-bottom: 0.5rem;
}
table {
width: 100%;
border-collapse: collapse;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
overflow: hidden;
}
th,
td {
text-align: left;
padding: 0.55rem 0.75rem;
border-bottom: 1px solid var(--border);
font-size: 0.9rem;
}
th {
color: var(--text-muted);
font-weight: 600;
font-size: 0.8rem;
text-transform: uppercase;
}
tr:last-child td {
border-bottom: none;
}
tr.stale {
opacity: 0.65;
}
.mono {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 0.85rem;
}
.schedule-human {
font-size: 0.85rem;
}
.schedule-raw {
display: block;
color: var(--text-muted);
}
.badge {
display: inline-block;
padding: 0.15rem 0.55rem;
border-radius: 999px;
font-size: 0.75rem;
font-weight: 600;
}
.badge-ok {
background: var(--ok-bg);
color: var(--ok-text);
}
.badge-disabled {
background: var(--disabled-bg);
color: var(--text-muted);
}
.badge-stale {
background: var(--stale-bg);
color: #a16207;
}
.empty-state,
.loading-inline {
color: var(--text-muted);
padding: 2rem 0;
text-align: center;
}
.error-banner {
background: #fdecec;
color: var(--danger);
border: 1px solid #f3b8b8;
padding: 0.6rem 0.9rem;
border-radius: 6px;
margin-bottom: 1rem;
}
.btn {
border: 1px solid var(--border);
background: var(--surface);
color: var(--text);
padding: 0.45rem 0.9rem;
border-radius: 6px;
cursor: pointer;
text-decoration: none;
display: inline-block;
font-size: 0.9rem;
}
.btn-primary {
background: var(--accent);
border-color: var(--accent);
color: var(--accent-contrast);
}
.btn-small {
padding: 0.3rem 0.6rem;
font-size: 0.8rem;
margin-right: 0.4rem;
}
.btn-danger {
color: var(--danger);
border-color: var(--danger);
}
.add-server form {
display: flex;
gap: 0.6rem;
flex-wrap: wrap;
margin-bottom: 1rem;
}
.add-server input {
padding: 0.45rem 0.6rem;
border-radius: 6px;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text);
flex: 1;
min-width: 160px;
}
.token-reveal {
background: var(--ok-bg);
border: 1px solid var(--ok-text);
border-radius: 8px;
padding: 1rem 1.25rem;
margin-bottom: 1.5rem;
}
.token-value {
display: block;
background: var(--surface);
padding: 0.5rem 0.75rem;
border-radius: 6px;
margin: 0.5rem 0;
word-break: break-all;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.install-command {
background: var(--surface);
padding: 0.75rem;
border-radius: 6px;
overflow-x: auto;
font-size: 0.8rem;
}
.servers-admin section {
margin-bottom: 2rem;
}
.actions {
white-space: nowrap;
}