CIS Enhanced: FastAPI-App für LV-Plan, Studiengangs-Pläne und Namenslisten des FH-Burgenland-CIS
- Studentenplan (eigene/fremde Matrikelnummer) mit Wochenansicht, Semesterübersicht, iCal/CSV-Export - Studiengangs-Pläne nach StG/Semester/Verband mit Gruppen-Filter - Namenslisten mit Suche, Matrikel-Decode und CSV-Export - Studiennummer-Decoder auf der Startseite - Docker (Dockerfile, Compose) und Caddy-Beispiel für Deploy
This commit is contained in:
@@ -0,0 +1,199 @@
|
||||
:root {
|
||||
--blue: #0a5c99;
|
||||
--blue-dark: #083f6b;
|
||||
--blue-light: #e8f1f9;
|
||||
--ink: #1c2733;
|
||||
--muted: #64748b;
|
||||
--line: #e2e8f0;
|
||||
--bg: #f5f7fa;
|
||||
--card: #ffffff;
|
||||
--green: #15803d;
|
||||
--red: #b91c1c;
|
||||
--radius: 10px;
|
||||
--shadow: 0 1px 3px rgba(16, 42, 67, .08), 0 4px 14px rgba(16, 42, 67, .06);
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--ink);
|
||||
font-size: 15px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
a { color: var(--blue); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
|
||||
|
||||
/* ---------- top bar ---------- */
|
||||
.topbar { background: var(--blue-dark); color: #fff; position: sticky; top: 0; z-index: 50; }
|
||||
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
|
||||
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
|
||||
.brand:hover { text-decoration: none; }
|
||||
.brand-badge {
|
||||
background: #fff; color: var(--blue-dark); font-weight: 800;
|
||||
padding: 3px 8px; border-radius: 6px; font-size: 14px; letter-spacing: .5px;
|
||||
}
|
||||
.brand-text { font-weight: 700; font-size: 17px; }
|
||||
.brand-text small { font-weight: 400; opacity: .75; margin-left: 6px; font-size: 12px; }
|
||||
.topbar nav { display: flex; gap: 4px; }
|
||||
.topbar nav a {
|
||||
color: rgba(255,255,255,.85); padding: 7px 12px; border-radius: 8px; font-size: 14px;
|
||||
}
|
||||
.topbar nav a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
|
||||
.topbar nav a.active { background: rgba(255,255,255,.18); color: #fff; font-weight: 600; }
|
||||
|
||||
main.container { padding-top: 24px; padding-bottom: 48px; min-height: calc(100vh - 130px); }
|
||||
|
||||
/* ---------- cards / panels ---------- */
|
||||
.card {
|
||||
background: var(--card); border: 1px solid var(--line);
|
||||
border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
|
||||
}
|
||||
.card + .card { margin-top: 16px; }
|
||||
.card h2 { margin: 0 0 12px; font-size: 17px; }
|
||||
.card h3 { margin: 16px 0 8px; font-size: 15px; }
|
||||
.page-title { font-size: 24px; margin: 4px 0 20px; font-weight: 700; }
|
||||
.page-sub { color: var(--muted); margin-top: -14px; margin-bottom: 20px; }
|
||||
|
||||
/* ---------- forms ---------- */
|
||||
.form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
|
||||
.field { display: flex; flex-direction: column; gap: 4px; }
|
||||
.field label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
|
||||
.field input, .field select {
|
||||
padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
|
||||
font-size: 14px; background: #fff; min-width: 130px; color: var(--ink);
|
||||
}
|
||||
.field input:focus, .field select:focus { outline: 2px solid var(--blue-light); border-color: var(--blue); }
|
||||
.btn {
|
||||
display: inline-block; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line);
|
||||
background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer;
|
||||
}
|
||||
.btn:hover { background: var(--blue-light); text-decoration: none; border-color: var(--blue); }
|
||||
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
|
||||
.btn-primary:hover { background: var(--blue-dark); }
|
||||
.btn-sm { padding: 5px 10px; font-size: 13px; }
|
||||
|
||||
/* ---------- tables ---------- */
|
||||
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
|
||||
table.data th {
|
||||
text-align: left; padding: 9px 10px; background: var(--blue-light);
|
||||
color: var(--blue-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .4px;
|
||||
border-bottom: 2px solid var(--blue);
|
||||
}
|
||||
table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
|
||||
table.data tr:hover td { background: #f8fafc; }
|
||||
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
|
||||
.badge {
|
||||
display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px;
|
||||
font-weight: 600; background: var(--blue-light); color: var(--blue-dark);
|
||||
}
|
||||
.badge-muted { background: #eef2f7; color: var(--muted); }
|
||||
.count-pill {
|
||||
display: inline-block; background: var(--blue); color: #fff; border-radius: 99px;
|
||||
padding: 1px 10px; font-size: 13px; font-weight: 700; margin-left: 8px;
|
||||
}
|
||||
|
||||
/* ---------- week grid ---------- */
|
||||
.weekbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
|
||||
.weekbar .week-label { font-weight: 700; font-size: 17px; }
|
||||
.weekbar .week-range { color: var(--muted); font-size: 14px; }
|
||||
.weekbar .nav-btns { display: flex; gap: 6px; }
|
||||
.week-scroll { overflow-x: auto; }
|
||||
.week-grid {
|
||||
display: grid; min-width: 860px;
|
||||
grid-template-columns: 56px repeat(7, 1fr);
|
||||
border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
|
||||
background: #fff;
|
||||
}
|
||||
.wg-corner { background: var(--blue-light); }
|
||||
.wg-dayhead {
|
||||
padding: 8px 4px; text-align: center; font-size: 12px; font-weight: 700;
|
||||
background: var(--blue-light); color: var(--blue-dark); border-left: 1px solid var(--line);
|
||||
}
|
||||
.wg-dayhead .d { display: block; font-size: 15px; }
|
||||
.wg-dayhead.today { background: var(--blue); color: #fff; }
|
||||
.wg-dayhead.weekend { background: #f1f5f9; color: var(--muted); }
|
||||
.wg-dayhead.today.weekend { background: var(--blue); color: #fff; }
|
||||
.wg-time {
|
||||
font-size: 11px; color: var(--muted); text-align: right; padding-right: 6px;
|
||||
border-top: 1px solid var(--line); height: 48px; position: relative;
|
||||
}
|
||||
.wg-time span { position: absolute; top: -7px; background: #fff; padding-right: 4px; }
|
||||
.wg-col { position: relative; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
|
||||
.wg-col.weekend { background: #fafbfc; }
|
||||
.wg-slotline { position: absolute; left: 0; right: 0; border-top: 1px dashed #eef1f5; }
|
||||
.ev {
|
||||
position: absolute; left: 2px; right: 2px; border-radius: 6px; color: #fff;
|
||||
font-size: 11.5px; padding: 3px 6px; overflow: hidden; cursor: pointer;
|
||||
border: none; text-align: left; line-height: 1.25; min-height: 14px;
|
||||
}
|
||||
.ev:hover { filter: brightness(1.12); z-index: 5; }
|
||||
.ev .t { font-weight: 700; display: block; }
|
||||
.ev .sub { opacity: .9; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
|
||||
/* ---------- legend ---------- */
|
||||
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
|
||||
.legend .item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
|
||||
.legend .dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
|
||||
|
||||
/* ---------- tabs ---------- */
|
||||
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
|
||||
.tabs button {
|
||||
background: none; border: none; padding: 10px 16px; font-size: 14px; font-weight: 600;
|
||||
color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
|
||||
}
|
||||
.tabs button.active { color: var(--blue); border-bottom-color: var(--blue); }
|
||||
.tabpane { display: none; }
|
||||
.tabpane.active { display: block; }
|
||||
|
||||
/* ---------- misc ---------- */
|
||||
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
|
||||
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
|
||||
.kv .item { background: var(--blue-light); border-radius: 8px; padding: 10px 14px; }
|
||||
.kv .item .k { font-size: 11px; text-transform: uppercase; color: var(--blue-dark); font-weight: 700; letter-spacing: .4px; }
|
||||
.kv .item .v { font-size: 15px; font-weight: 600; }
|
||||
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
|
||||
|
||||
/* ---------- modal ---------- */
|
||||
.modal-back {
|
||||
position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 100;
|
||||
display: none; align-items: center; justify-content: center; padding: 20px;
|
||||
}
|
||||
.modal-back.open { display: flex; }
|
||||
.modal {
|
||||
background: #fff; border-radius: 12px; max-width: 520px; width: 100%;
|
||||
padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.25);
|
||||
}
|
||||
.modal h3 { margin: 0 0 12px; font-size: 18px; }
|
||||
.modal .close { float: right; border: none; background: none; font-size: 22px; cursor: pointer; color: var(--muted); }
|
||||
.modal table { width: 100%; font-size: 14px; border-collapse: collapse; }
|
||||
.modal table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
|
||||
.modal table td:first-child { color: var(--muted); width: 35%; }
|
||||
|
||||
/* ---------- home ---------- */
|
||||
.hero { margin-bottom: 24px; }
|
||||
.hero h1 { font-size: 28px; margin: 0 0 6px; }
|
||||
.hero p { color: var(--muted); margin: 0; max-width: 720px; }
|
||||
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
|
||||
.tile {
|
||||
background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
|
||||
box-shadow: var(--shadow); padding: 22px; display: block; color: var(--ink);
|
||||
transition: transform .08s ease, border-color .08s ease;
|
||||
}
|
||||
.tile:hover { text-decoration: none; border-color: var(--blue); transform: translateY(-2px); }
|
||||
.tile .icon { font-size: 26px; margin-bottom: 10px; }
|
||||
.tile h3 { margin: 0 0 6px; font-size: 17px; color: var(--blue-dark); }
|
||||
.tile p { margin: 0; color: var(--muted); font-size: 13.5px; }
|
||||
|
||||
.decoder-result { margin-top: 14px; display: none; }
|
||||
.decoder-result.show { display: block; }
|
||||
|
||||
.footer { border-top: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: 13px; background: #fff; }
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.topbar-inner { flex-direction: column; height: auto; padding: 8px 0; gap: 6px; }
|
||||
.topbar nav { flex-wrap: wrap; justify-content: center; }
|
||||
.form-row { flex-direction: column; align-items: stretch; }
|
||||
.field input, .field select { min-width: 0; width: 100%; }
|
||||
}
|
||||
Reference in New Issue
Block a user