diff options
| author | winter | 2024-12-23 18:20:25 +0000 |
|---|---|---|
| committer | winter | 2024-12-23 18:20:25 +0000 |
| commit | bccad1118364427ea5c97c08d132fd128368760b (patch) | |
| tree | 449a4f5b36309e1e80694718f72ebc6e136e0140 /static | |
| parent | 094b1d010253f1a9a114303d823739e513834742 (diff) | |
make a crummy template system and use it for global timeline
Diffstat (limited to 'static')
| -rw-r--r-- | static/style.css | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..3ea07c0 --- /dev/null +++ b/static/style.css @@ -0,0 +1,53 @@ +html, +body { + background: white; + color: black; + margin: 0; + padding: 0; + font-family: sans-serif; + display: flex; + flex-direction: column; + align-items: center; +} + +header { + background: #3b005e; + color: white; + padding: 16px; + margin-bottom: 8px; + display: flex; + width: 100vw; + box-sizing: border-box; + + *:not(:last-child) { + margin-right: 8px; + } +} + +#siteTitle { + font-weight: bold; +} + +main { + width: min(800px, 100vw); +} + +article.note { + background: #eee; + color: black; + border-radius: 16px; + margin: 16px; + padding: 16px; + display: grid; + grid-template-columns: max-content 1fr; + gap: 8px; + + img.authorAvatar { + width: 64px; + aspect-ratio: 1; + } + + .authorName { + font-weight: bold; + } +} |
