Frontend: roher Oldschool-Look, CSS auf 6 Zeilen
- Dark-Theme, Farbvariablen, Border-Radius, custom Form-Controls und Layout-Zentrierung entfernt -> natives Browser-Default-Rendering - nur noch: 1px-Rahmen um Beitraege (eckig), graue Nebentexte, rote Fehler, fett fuer gewaehlte Stimme - Textarea-Hoehe via rows-Attribut, <details> nativ (Danger-Klasse weg) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+6
-82
@@ -1,82 +1,6 @@
|
||||
:root {
|
||||
--bg: #15171a;
|
||||
--card: #1e2126;
|
||||
--fg: #e8e8e8;
|
||||
--muted: #9aa0a6;
|
||||
--accent: #4a9eff;
|
||||
--border: #2a2e35;
|
||||
--danger: #c0392b;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: system-ui, sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
}
|
||||
|
||||
a { color: var(--accent); }
|
||||
h1 { margin: 0; font-size: 1.4rem; }
|
||||
h2 { margin: 0 0 0.8rem; font-size: 1.1rem; }
|
||||
|
||||
header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 1rem 1.5rem;
|
||||
background: var(--bg);
|
||||
border-bottom: 1px solid var(--border);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
main { max-width: 600px; margin: 0 auto; padding: 1rem; }
|
||||
section { margin-bottom: 1.5rem; }
|
||||
|
||||
input, textarea, button {
|
||||
font: inherit;
|
||||
padding: 0.6rem 0.8rem;
|
||||
color: var(--fg);
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
}
|
||||
input, textarea { width: 100%; margin-bottom: 0.6rem; }
|
||||
textarea { min-height: 80px; resize: vertical; }
|
||||
button {
|
||||
width: auto;
|
||||
cursor: pointer;
|
||||
color: #fff;
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
button:hover { opacity: 0.9; }
|
||||
|
||||
.card {
|
||||
padding: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
}
|
||||
.card img { max-width: 100%; margin-top: 0.6rem; border-radius: 6px; }
|
||||
|
||||
.muted { color: var(--muted); font-size: 0.9rem; }
|
||||
.content { margin-top: 0.5rem; white-space: pre-wrap; word-wrap: break-word; }
|
||||
.msg { min-height: 1.2em; font-size: 0.9rem; color: #ff6b6b; }
|
||||
.end { text-align: center; padding: 2rem 0; }
|
||||
|
||||
.row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.8rem; }
|
||||
.ghost {
|
||||
color: var(--fg);
|
||||
background: transparent;
|
||||
border-color: var(--border);
|
||||
padding: 0.3rem 0.7rem;
|
||||
}
|
||||
.ghost:hover { border-color: var(--accent); }
|
||||
.ghost.selected { color: #fff; background: var(--accent); border-color: var(--accent); }
|
||||
|
||||
.danger summary { cursor: pointer; color: #ff6b6b; }
|
||||
.danger button { background: var(--danger); border-color: var(--danger); }
|
||||
.card { border: 1px solid; padding: 0.5em; margin-bottom: 1em; }
|
||||
.card img { max-width: 100%; }
|
||||
.content { overflow-wrap: break-word; }
|
||||
.muted { color: gray; }
|
||||
.ghost.selected { font-weight: bold; }
|
||||
.msg { color: red; }
|
||||
|
||||
+2
-2
@@ -39,7 +39,7 @@
|
||||
<!-- Neuer Beitrag -->
|
||||
<section id="compose" hidden>
|
||||
<form id="entry-form">
|
||||
<textarea name="content" maxlength="1000" placeholder="Was gibt's Neues?"></textarea>
|
||||
<textarea name="content" rows="4" maxlength="1000" placeholder="Was gibt's Neues?"></textarea>
|
||||
<input name="file" type="file" accept="image/*">
|
||||
<button type="submit">Posten</button>
|
||||
</form>
|
||||
@@ -49,7 +49,7 @@
|
||||
<!-- Konto -->
|
||||
<section id="account" hidden>
|
||||
<p id="account-info" class="muted"></p>
|
||||
<details class="danger">
|
||||
<details>
|
||||
<summary>Konto löschen</summary>
|
||||
<form id="delete-form">
|
||||
<p class="muted">Löscht dein Konto samt Beiträgen und Votes unwiderruflich.</p>
|
||||
|
||||
+1
-1
@@ -190,7 +190,7 @@ async function loadMore() {
|
||||
if (!entries.length) {
|
||||
done = true;
|
||||
const end = document.createElement("p");
|
||||
end.className = "muted end";
|
||||
end.className = "muted";
|
||||
end.textContent = "YOU REACHED THE END!";
|
||||
feed.appendChild(end);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user