From 2dc334e3cb8932be07c9c7a03d10c93d0a5d9a6c Mon Sep 17 00:00:00 2001 From: bd Date: Sat, 21 Jun 2025 01:02:36 -0400 Subject: Partial rework of theme+css --- content/assets/raven.png | Bin 41709 -> 5178 bytes content/assets/site.css | 77 +++++++++++++++++++++++++++++++---------------- 2 files changed, 51 insertions(+), 26 deletions(-) (limited to 'content') diff --git a/content/assets/raven.png b/content/assets/raven.png index f103375..6366d8a 100644 Binary files a/content/assets/raven.png and b/content/assets/raven.png differ diff --git a/content/assets/site.css b/content/assets/site.css index accc03f..b5632ed 100644 --- a/content/assets/site.css +++ b/content/assets/site.css @@ -1,17 +1,42 @@ +html { + background: url(background.jpg) no-repeat center center fixed; + -webkit-background-size: cover; + -moz-background-size: cover; + -o-background-size: cover; + background-size: cover; +} + +.container { + display: flex; + flex-direction: column; + align-items: center; + height: 100%; + width: 100%; + margin: 40px auto; +} + body { + margin: 0; font-family: 'Open Sans', Helvetica, sans-serif; line-height: 1.5; font-size: 18px; - background: #000; color: #aaaabb; - margin: 0; - border-top: 3px solid #4101dc; } -@media (max-width: 799px) { - body { - padding: 15px; - font-size: .95em; +body intro, +body article, +body footer { + background: rgba(0, 0, 0, 0.6); + margin: 2px 0; + width: 100%; + padding: 20px; + border-radius: 8px; + box-sizing: border-box; +} + +@media (min-width: 800px) { + .container { + width: calc(100% - 480px); /* 240px each side */ } } @@ -108,6 +133,8 @@ body li { body img { border: 1px solid #ccc; height: auto; + width: auto; + flex: 0 0 auto; } @media (max-width: 800px) { @@ -133,33 +160,40 @@ blockquote { /* Header */ intro { + display: grid; + grid-template-columns: 1fr 2fr; color: #BBB; - text-align: center; + gap: 10px; } intro h1 { - font-size: 42px; + font-size: 32px; font-weight: bold; line-height: 1em; - margin: .3em; - padding: 0; + margin: 0; } intro p { color: #aaa; font-size: 14px !important; - text-align: center; + margin: 0; } intro img { + max-height: 100%; + width: auto; border-radius: 100%; - width: 100px; } +/* text is like this: */ +/* display: flex; flex-direction: column; margin-left: 10px; text-align: left; */ + +/* img wrapper like this: */ +/* contain: size; justify-self: end; */ + nav { - text-align: center; - margin-top: 30px; - border-bottom: 1px solid #e2e2e2; + flex: 0 0 auto; + text-align: left; font-size: 12px; } @@ -196,23 +230,14 @@ nav a:visited { /* Footer */ -@media (min-width: 800px) { - body article, - body footer { - margin: 0 auto; - max-width: 700px !important; - width: 700px !important; - } -} - footer { + flex: 0 0 auto; font-size: 0.8em; line-height: 1.8em; margin-top: 50px; text-align: center; color: #aaa; padding: 15px 0; - border-top: 1px solid #e2e2e2; } .fade-text { -- cgit v1.2.3