Skip to content

Commit 7fdc16f

Browse files
committed
Responsiveness fixes.
1 parent 0d0c9fd commit 7fdc16f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

_includes/partials/aside.njk

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ aside {
55
flex-direction: column;
66
align-items: flex-end;
77
justify-content: flex-end;
8-
margin-top: 5rem;
9-
margin-bottom: 2rem;
108
}
119
@media(max-width: 1024px) {
1210
aside {
@@ -16,11 +14,15 @@ aside {
1614

1715
.sticky-container {
1816
position: sticky;
19-
bottom: 5rem;
17+
bottom: 3rem;
2018
display: flex;
2119
flex-direction: column;
20+
gap: 2rem;
2221
justify-content: space-between;
23-
min-height: calc(100vh - 10rem);
22+
min-height: calc(100vh - 5rem);
23+
24+
padding-top: 5rem;
25+
padding-bottom: 2rem;
2426
}
2527

2628
.aside-content {

public/css/index.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ body {
5252
background-color: var(--bg-color);
5353
line-height: 1.5;
5454
transition: background-color 0.3s, color 0.3s;
55+
padding-bottom: 5rem;
5556
}
5657

5758
.flex {
@@ -131,11 +132,11 @@ blockquote {
131132
width: 100%;
132133
max-width: 70em;
133134
}
135+
134136
.bottom-content {
135137
display: flex;
136138
flex-wrap: wrap;
137139
margin: 0 auto;
138-
margin-bottom: 5rem;
139140
width: 100%;
140141
max-width: 70em;
141142
}

0 commit comments

Comments
 (0)