Skip to content

Commit

Permalink
fixed responsive layout (again!)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-preston committed Nov 15, 2024
1 parent 9f50dc9 commit dfeaed8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
5 changes: 0 additions & 5 deletions style/_display.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
body {
width: 95%;
margin-inline: auto;
}

p, time {
margin-top: 1ex;
}
Expand Down
4 changes: 0 additions & 4 deletions style/_front-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ h1 span, p.tag-line span {
display: inline-block;
}

.front-page h1 {
margin-top: 1em;
}

#cover-pic {
margin-top: 1lh;
margin-bottom: 1lh;
Expand Down
19 changes: 16 additions & 3 deletions style/_section_article_aside.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
body {
margin-left: 3vw;
margin-right: 3vw;
margin-top: 10px;
margin-bottom: 10px;
}

section, header, footer {
display: grid;
column-gap: 5em;
grid-template-columns: repeat(2, min(45vw, 70ch));
column-gap: 6vw;
justify-self: center;
grid-template-columns: min(41vw, 70ch) min(41vw, 70ch);

@media (width < 1000px) {
grid-template-columns: min(94vw, 70ch);
}
}

& h1, & time {
@media (width >= 1000px) {
h1, time {
grid-column: span 2;
}
}
Expand Down

0 comments on commit dfeaed8

Please sign in to comment.