Skip to content

Commit

Permalink
minor css fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Dec 28, 2023
1 parent 05e9bce commit 5b33b5a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 13 additions & 2 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ body {
}

.pure-menu-list {
margin-bottom: 1rem;
margin-bottom: 0.5rem;
}

@media screen and (min-width:768px) {
Expand Down Expand Up @@ -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 */
Expand Down
1 change: 1 addition & 0 deletions src/css.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ pub async fn get(Path(name): Path<String>, State(state): State<super::SiteState>
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),
Expand Down

0 comments on commit 5b33b5a

Please sign in to comment.