refactor: reorganizing the App.css styles

This commit is contained in:
johannes-hernehult 2026-06-10 19:56:05 +02:00
parent 064a89ccda
commit e133c03409

View file

@ -1,17 +1,36 @@
html { /* ─── Design Tokens ─────────────────────────────────── */
font-family: Arial, sans-serif; :root {
--color-border: #ccc;
--color-bg-sidebar: #eee;
--sidebar-width: 250px;
--gap-nav: 1rem;
} }
/* ─── Base ───────────────────────────────────────────── */
html,
body {
font-family: system-ui, Arial, sans-serif;
}
/* ─── Layout ─────────────────────────────────────────── */
#root { #root {
min-height: 100vh;
display: flex; display: flex;
min-height: 100vh;
}
.app-body {
display: flex;
flex: 1;
} }
header { header {
flex-basis: 250px; flex: 0 0 var(--sidebar-width);
padding: 1rem; padding: 1rem;
border-right: 3px solid #ccc; display: flex;
background-color: #eee; flex-direction: column;
gap: var(--gap-nav);
border-right: 3px solid var(--color-border);
background-color: var(--color-bg-sidebar);
} }
main { main {
@ -20,16 +39,31 @@ main {
} }
footer { footer {
padding-block: 0.5rem;
position: absolute; position: absolute;
bottom: 0; bottom: 0;
left: 0; left: 0;
right: 0; right: 0;
margin: 0 auto;
display: flex; padding-block: 0.5rem;
justify-content: center; text-align: center;
} }
/* ─── Navigation ─────────────────────────────────────── */
nav {
display: flex;
flex-direction: column;
gap: var(--gap-nav);
}
ul {
padding: 0;
display: flex;
flex-direction: column;
gap: 0.125rem;
list-style: none;
}
/* ─── Form & Interactive Elements ────────────────────── */
a, a,
input, input,
button, button,
@ -39,8 +73,3 @@ textarea {
font-size: inherit; font-size: inherit;
color: inherit; color: inherit;
} }
ul {
list-style: none;
padding: 0;
}