From bccad1118364427ea5c97c08d132fd128368760b Mon Sep 17 00:00:00 2001 From: winter Date: Mon, 23 Dec 2024 18:20:25 +0000 Subject: make a crummy template system and use it for global timeline --- static/style.css | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 static/style.css (limited to 'static') 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; + } +} -- cgit v1.3