From 57c3a21bce3f4040eefdcc8b57bc86bdc59dacbf Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Tue, 17 Jan 2023 00:48:57 +0000 Subject: refacor css and html --- static/style.css | 340 ++++++++++++++++++-------------------- templates/base.html.tera | 52 +++--- templates/home.html.tera | 4 +- templates/latestblogs.html.tera | 11 -- templates/latestposts.html.tera | 11 ++ templates/latestskweets.html.tera | 14 +- 6 files changed, 202 insertions(+), 230 deletions(-) delete mode 100644 templates/latestblogs.html.tera create mode 100644 templates/latestposts.html.tera diff --git a/static/style.css b/static/style.css index 4313657..658197c 100644 --- a/static/style.css +++ b/static/style.css @@ -1,90 +1,34 @@ -body { - background-color: #80a7e3; - color: #311f20; - font-family: 'Go Mono'; - padding: 0; - margin: 0; +.panel { + pointer-events: all; } -.page { - padding: 6vw; - display: flex; - flex-direction: column; +.panel:hover { + z-index: 15 !important; + pointer-events: all; } -img { - max-width: 100%; - border: 4px solid #311f20; +#page, +body { + pointer-events: none; } -.label, -.label * { - display: inline; +body { + background-color: #80a7e3; + color: #311f20; + font-family: 'Go Mono'; padding: 0; - border-radius: 0; - border: 0; margin: 0; - background-color: #0000; } -header { +#page { + padding: 6vw; display: flex; - align-items: end; - flex-wrap: wrap; -} - -header>#stream, -header>#scrobble { - flex: 0 1 auto; - font-family: 'Terminal Grotesque Open'; - font-size: 1.5rem; -} - -#stream { - background-color: #b52f6a; - max-width: 100%; - width: 550px; - aspect-ratio: 550/350; -} - -.panel { - margin: 2vw; - border: 4px solid #311f20; - padding: 2rem 4rem; - position: relative; - pointer-events: all; -} - -header, -main, -body { - pointer-events: none; + flex-direction: column; } -#title { - z-index: 10; - display: inline-block; - font-family: 'kaeru kaeru'; +h2 { font-size: 2em; - padding: 0rem 4rem; - background-color: #d16a84; -} - -#scrobble { - background-color: #eb743b; - border-radius: 0; - color: #353070; -} - -iframe { - margin: 0; - padding: 0; -} - -ul { - list-style-type: none; - margin: rem 0; - padding: 0; + font-family: PicNic; } a { @@ -99,7 +43,6 @@ a { a:hover { font-style: italic; - // font-family: 'Avara'; } a.active { @@ -107,6 +50,24 @@ a.active { color: #311f20; } +img { + max-width: 100%; + border: 4px solid #311f20; +} + +ul { + list-style-type: none; + margin: rem 0; + padding: 0; +} + +.panel { + margin: 2vw; + border: 4px solid #311f20; + padding: 2rem 4rem; + position: relative; +} + nav { padding: 1rem 4rem; background-color: #5faf87; @@ -114,11 +75,7 @@ nav { font-family: 'Basteleur'; } -nav:hover { - z-index: 10; -} - -ul#nav { +#nav { display: flex; align-items: center; justify-content: start; @@ -127,6 +84,15 @@ ul#nav { font-size: 1.1rem; } +#nav img { + position: relative; + top: 0.2em; + border: none; + height: 1em; + width: 1em; + padding: 0; +} + #suscakke { margin: 0; padding: 0; @@ -140,21 +106,103 @@ ul#nav { font-style: normal; } -#nav img { - position: relative; - top: 0.2em; - border: none; - height: 1em; - width: 1em; +header { + display: flex; + align-items: end; + flex-wrap: wrap; +} + +main { + display: flex; + flex-wrap: wrap; + align-items: flex-start; +} + +.main-content { + flex: 12 1 0; + min-width: 50vw; + // z-index: 3; + z-index: 15; + overflow-wrap: break-word; +} + +.content { + background-color: #d1a2e7; +} + +aside { + flex: 1 1 30rem; +} + +footer { + z-index: -1; + background-color: #e8d2c5; +} + +.badge, +.badge * { + display: inline; + padding: 0; + border-radius: 0; + border: 0; + margin: 4px 0; + background-color: #0000; +} + +/* homepage css */ + +#title { + z-index: 10; + display: inline-block; + font-family: 'kaeru kaeru'; + font-size: 2em; + padding: 0rem 4rem; + background-color: #d16a84; +} + +#stream, +#scrobble { + flex: 0 1 auto; + font-size: 1.8rem; +} + +#scrobble { + background-color: #eb743b; + font-family: 'Terminal Grotesque Open'; + border-radius: 0; + color: #353070; +} + +#stream { + background-color: #b52f6a; + max-width: 100%; + width: 550px; + aspect-ratio: 550/350; +} + +iframe { + margin: 0; padding: 0; } -#blog-list { +/* posts sidebar widget */ + +#posts { + z-index: -1; + background-color: #7f99e6; + font-family: 'Steps Mono' +} + +#posts h2 { + font-family: 'Director'; +} + +#post-list { width: 100%; margin: 1em 0; } -.blog-entry { +.post-entry { height: 1.4em; display: flex; justify-content: space-between; @@ -165,25 +213,20 @@ ul#nav { font-size: 1.1rem; } -.blog-entry:hover { +.post-entry:hover { font-family: 'Steps-Mono'; } +/* skinnyverse sidebar widget */ + #skinnyverse { font-family: 'Karrik'; color: #e8c6e6; border-color: #bf42a0; background-color: #28446c; - flex: 1 1 15rem; z-index: -1; } -.post-content>div>h2, -.post-content>div>h3, -.post-content>div>h4 { - font-family: 'Cherry Bomb' !important; -} - #latest-skweets { font-family: 'Cherry Bomb' !important; background-color: #0000; @@ -193,135 +236,77 @@ ul#nav { color: #bf42a0; } -#blogs { - z-index: -1; - background-color: #7f99e6; - font-family: 'Steps Mono' -} - -h2 { - font-size: 2em; - font-family: PicNic; -} - -#blogs h2 { - font-family: 'Director'; -} - -#footer { - z-index: -1; - background-color: #e8d2c5; -} - -#footer>a { - border-radius: 0; - padding: 0; - background-color: #0000; -} - -aside { - flex: 1 1 30rem; -} - -#skinnyverse:hover, -.content:hover, -#blogs:hover, -#footer:hover { - z-index: 10; -} - -.post { +.skweet { display: flex; gap: 2em; margin: 2em 0; } -.post h4, -h5 { +.skweet h2, +.skweet h3, +.skweet h4, +.skweet h5 { + font-family: 'Cherry Bomb' !important; margin: 0; + padding: 0; } -.post>.profile { +.skweet .profile { border: 4px solid #bf42a0; width: 48px; height: 48px; } -.post-content { +.skweet-content { flex: 1 1 auto; } -.post>.post-content>div { +.skweet-info { display: flex; justify-content: space-between; } -.post>.post-content>.gallery { +.skweet-gallery { display: flex; max-width: 100%; gap: 1em; } -.post>.post-content>.gallery>img { +.skweet-gallery img { border: 4px solid #bf42a0; flex: 1 1 auto; width: 10px; } -.branch { - border: none; - width: 100vw; - position: absolute; - pointer-events: none; -} - -main { - display: flex; - flex-wrap: wrap; - align-items: flex-start; -} - -.main-content { - flex: 12 1 0; - min-width: 50vw; - z-index: 3; - overflow-wrap: break-word; -} - -.main-content:hover { - z-index: 10; -} +/* contact page */ .p-name { display: none; } -.content { - background-color: #d1a2e7; -} +/* branches */ -.content:hover { - z-index: 10; +.branch { + border: none; + width: 100vw; + position: absolute; + pointer-events: none; } #branch6 { top: 200vw; -webkit-transform: scaleX(-1); transform: scaleX(-1); - pointer-events: none; } #branch2 { top: 60vw; - z-index: -2; - pointer-events: none; } #branch3 { top: 100vw; z-index: -2; - pointer-events: none; } #branch4 { @@ -329,12 +314,10 @@ main { -webkit-transform: scaleX(-1); transform: scaleX(-1); z-index: 0; - pointer-events: none; } #branch5 { top: 0vw; - pointer-events: none; } #branch1 { @@ -342,17 +325,14 @@ main { -webkit-transform: scaleX(-1); transform: scaleX(-1); z-index: -1; - pointer-events: none; } #branch7 { top: 180vw; - pointer-events: none; } #branch8 { top: 260vw; - pointer-events: none; } #branch9 { @@ -360,31 +340,26 @@ main { -webkit-transform: scaleX(-1); transform: scaleX(-1); z-index: 4; - pointer-events: none; } #branch10 { top: 100vw; - pointer-events: none; } #branch11 { top: 145vw; -webkit-transform: scaleX(-1); transform: scaleX(-1); - pointer-events: none; } #branch12 { top: 180vw; - pointer-events: none; z-index: 4; } #branch13 { top: 15vw; z-index: -3; - pointer-events: none; } #branch14 { @@ -392,5 +367,4 @@ main { -webkit-transform: scaleX(-1); transform: scaleX(-1); z-index: 4; - pointer-events: none; } \ No newline at end of file diff --git a/templates/base.html.tera b/templates/base.html.tera index 06758ea..05f07cd 100644 --- a/templates/base.html.tera +++ b/templates/base.html.tera @@ -2,29 +2,29 @@ - - + + cel's garden - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch - cherry blossom branch + cherry blossom branch + cherry blossom branch + cherry blossom branch + cherry blossom branch + cherry blossom branch + cherry blossom branch + cherry blossom branch + cherry blossom branch + cherry blossom branch + cherry blossom branch + cherry blossom branch + cherry blossom branch + cherry blossom branch + cherry blossom branch -
+ diff --git a/templates/home.html.tera b/templates/home.html.tera index 3396894..1d5d7da 100644 --- a/templates/home.html.tera +++ b/templates/home.html.tera @@ -28,7 +28,7 @@ {% block content %} -
+

hallo i am celeste welcome 2 my site 🌟

this is where i dump everything

i wish u a wonderful day

@@ -44,7 +44,7 @@ diff --git a/templates/latestblogs.html.tera b/templates/latestblogs.html.tera deleted file mode 100644 index 966a728..0000000 --- a/templates/latestblogs.html.tera +++ /dev/null @@ -1,11 +0,0 @@ -
-

latest blogs rss newsfeed

- - - - - - - -
fedi2023-02-04
slaying2023-01-20
-
\ No newline at end of file diff --git a/templates/latestposts.html.tera b/templates/latestposts.html.tera new file mode 100644 index 0000000..101fbb9 --- /dev/null +++ b/templates/latestposts.html.tera @@ -0,0 +1,11 @@ +
+

latest posts rss newsfeed

+ + + + + + + +
fedi
slaying
+
\ No newline at end of file diff --git a/templates/latestskweets.html.tera b/templates/latestskweets.html.tera index 15a413c..bcdc2fa 100644 --- a/templates/latestskweets.html.tera +++ b/templates/latestskweets.html.tera @@ -1,19 +1,19 @@

latest skweets

-
+
-
-

@cel

2h ago
+
+

@cel

2h ago

@nyx @lain ikr? omg we have no choice but to stan our skinny legend

- +
-
+
-
+

@cel

2h ago

@nyx @lain ikr? omg we have no choice but to stan our skinny legend

- +
\ No newline at end of file -- cgit