Files
hikos/static/css/main.css
2025-06-12 16:04:05 +02:00

189 lines
4.5 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* ---------- Local WebFonts ---------- */
@font-face {
font-family: "Fira Code";
src: url("/static/fonts/FiraCode-VariableFont.woff2") format("woff2");
font-weight: 400 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Inter";
src: url("/static/fonts/InterVariable.woff2") format("woff2");
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
/* ---------- Farbpalette ---------- */
:root {
/* Light theme */
--bg: #f5f7fa;
--bg-alt: #f5f7fa;
--card-bg: #f5f7fa;
--text: #000000;
--text-muted: #1f2933;
--accent: #2563eb; /* Indigo600 */
--accent-light: #3b82f6; /* Indigo500 */
--code-bg: #f1f5f9;
--code-border: #e2e8f0;
--radius: 0.25rem;
--gap: 2rem;
--shadow: 0 4px 16px rgba(0,0,0,.08);
font-size: 16px;
font-family: "Inter", system-ui, sans-serif;
color-scheme: light;
}
/* Dark mode (optional) */
/*@media (prefers-color-scheme: dark) {
:root {
--bg: #161b22;
--bg-alt: #161b22;
--card-bg: #161b22;
--text: #ffffff;
--text-muted: #e4e8ec;
--accent: #3b82f6;
--accent-light:#60a5fa;
--code-bg: #1e242c;
--code-border: #30363d;
--shadow: 0 4px 16px rgba(0,0,0,.32);
}
}*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body, html {
height: 100%;
width: 100%;
background: var(--bg);
color: var(--text);
}
.container {
display: flex;
flex-wrap: wrap;
height: 98%;
width: 98%;
margin-left: 1%;
margin-right: 1%;
}
#bereich-a {
width: 72.5%;
display: flex;
flex-direction: column;
height: 100%;
}
#bereich-b {
width: 27.5%;
display: flex;
flex-direction: column;
height: 100%;
}
.top {
display: grid;
gap: 0px;
grid-template-columns: 68.96% 6.92% 10.34% 13.79%;
margin-top: 10px;
}
.top > div {
background-color: var(--bg); /* Beispiel für Formularfelder */
}
.top input {
width: 100%; /* Vollständige Breite */
padding: 8px;
border: 1px solid #ddd;
border-radius: var(--radius); /* Abgerundete Ecken */
background-color: #fff;
font-size: 14px;
color: var(--text);
transition: all 0.3s ease;
}
.top input::placeholder {
color: #aaa; /* Platzhalter in einer helleren Farbe */
font-style: italic;
}
.top input:focus {
border-color: var(--accent); /* Die Rahmenfarbe beim Fokus */
outline: none; /* Entfernt den Standard-Fokusrahmen */
}
#bereich-a .bottom {
flex-grow: 1;
background-color: var(--bg-alt); /* Beispiel für unteren Bereich */
padding: 0px;
overflow: hidden; /* Verhindert, dass das untere Element aus dem Container herausragt */
}
#bereich-b .top {
margin-top: 10px;
/*height: 35px;*/
display: grid;
width: 100%;
grid-template-columns: 100%;
}
#bereich-b .top > div {
background-color: var(--bg); /* Beispiel für Formularfelder */
}
#bereich-b .top input {
width: 100%; /* Das Textfeld nimmt die gesamte Breite der Spalte ein */
padding: 8px;
border: 1px solid #ddd;
border-radius: var(--radius); /* Abgerundete Ecken */
background-color: #fff;
font-size: 14px;
color: var(--text);
transition: all 0.3s ease; /* Für weiche Übergänge */
}
#bereich-b .top input::placeholder {
color: #aaa; /* Platzhalter in einer helleren Farbe */
font-style: italic;
}
#bereich-b .top input:focus {
border-color: var(--accent); /* Die Rahmenfarbe beim Fokus */
outline: none; /* Entfernt den Standard-Fokusrahmen */
}
#bereich-b .bottom {
flex-grow: 1;
background-color: var(--bg-alt); /* Beispiel für unteren Bereich */
padding: 0px;
overflow-y: auto; /* Ermöglicht vertikales Scrollen im unteren Bereich von Bereich B */
/*margin-top: 10px;*/ /* Abstand zwischen Top und Bottom */
}
/* Tabelle */
table {
width: 100%;
border-collapse: collapse; /* Für eine saubere Darstellung */
table-layout: fixed; /* Die Breiten der Spalten werden strikt angewendet */
}
th, td {
border: 1px solid #ddd; /* Beispiel für einen Rahmen */
padding: 4px;
text-align: center; /* Beispiel für Textzentrierung */
}
colgroup col {
background-color: var(--bg); /* Hintergrundfarbe als Beispiel */
}
table th, table td {
text-align: left;
}