From 5b33b5a9862ec25daee14a4eb2b605d09635cb66 Mon Sep 17 00:00:00 2001 From: Ezri Zhu Date: Thu, 28 Dec 2023 16:19:58 -0500 Subject: [PATCH] minor css fixes --- css/main.css | 15 +++++++++++++-- src/css.rs | 1 + 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/css/main.css b/css/main.css index bbb67e1..da03a4f 100644 --- a/css/main.css +++ b/css/main.css @@ -91,7 +91,7 @@ body { } .pure-menu-list { - margin-bottom: 1rem; + margin-bottom: 0.5rem; } @media screen and (min-width:768px) { @@ -135,7 +135,18 @@ body { color: var(--nord15); text-align: center; font-style: italic; - margin: 0 0 1vw 0; + margin: 0 0 0.5vw 0; +} + +/* hero */ +.hero img { + margin-top: 2vw; +} + +@media screen and (min-width:768px) { + .hero img { + margin-top: 0; + } } /* footer */ diff --git a/src/css.rs b/src/css.rs index 0de30ee..1dbb503 100644 --- a/src/css.rs +++ b/src/css.rs @@ -65,6 +65,7 @@ pub async fn get(Path(name): Path, State(state): State match name.replace(".css", "").as_str() { "main" => resp_body = make_css(vec!["nord", "pure-min", "main"], &state.css), "home" => resp_body = make_css(vec!["grids-responsive-min", "home"], &state.css), + // contact is currently not being used "contact" => resp_body = make_css(vec!["grids-responsive-min", "contact"], &state.css), "news" => resp_body = make_css(vec!["news"], &state.css), "post-index" => resp_body = make_css(vec!["post-index"], &state.css),