Skip to content

Commit

Permalink
feat(styles): Improve sidebar width
Browse files Browse the repository at this point in the history
  • Loading branch information
bahlo committed Apr 8, 2024
1 parent 36726e3 commit fbcc19d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/templates/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ impl Layout {
main #main {
(context.content)
}
br; // Looks better in HTML-only
br.hidden; // Looks better in HTML-only
aside {
(PreEscaped(include_str!("../../static/arne.svg")))
h1.hero__heading { (smart_quotes("Hej, I'm Arne—")) }
Expand Down Expand Up @@ -185,7 +185,7 @@ impl Layout {
}
}
}
br; // Looks better in HTML-only
br.hidden; // Looks better in HTML-only
footer.footer {
span.footer_copyright {
(PreEscaped("© 2013 – ")) (Utc::now().format("%Y")) " Arne Bahlo"
Expand Down
2 changes: 2 additions & 0 deletions styles/_aside.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
aside {
width: 256px;

nav ul {
list-style: none;
padding: 0;
Expand Down
11 changes: 8 additions & 3 deletions styles/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ img {

.top-part {
display: flex;
gap: 2rem;
margin-bottom: 2rem;
}

main {
width: 768px;
padding-right: 2rem;
width: 500px;
flex-grow: 1;
}

@media (max-width: 960px) {
Expand All @@ -76,11 +78,14 @@ main {

main {
width: 100%;
padding-right: 0;
}
}

footer {
display: flex;
justify-content: space-between;
}

.hidden {
display: none;
}

0 comments on commit fbcc19d

Please sign in to comment.