Skip to content

Commit ca089d7

Browse files
authored
Merge pull request #86 from nditcommunity/82-scroll-bug
82 scroll bug
2 parents cc18e04 + dd2f540 commit ca089d7

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

src/styles/style.css

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
--light-orange: #f69e45;
5959
6060
/* sizing */
61-
--max-footer-height: 69px;
61+
--footer-height: 50px;
6262
--light-orange: #f69e45;
6363
}
6464

@@ -114,8 +114,8 @@ body {
114114

115115
main {
116116
max-width: 33rem; /* Aim for 33–38 rem for readability. 33rem results in around 70 chars per line. */
117-
margin-inline: auto;
118-
margin-bottom: calc(var(--max-footer-height) + 25px);
117+
padding-bottom: var(--footer-height);
118+
overflow-y: hidden;
119119
}
120120

121121
main p {
@@ -203,6 +203,17 @@ header nav ul {
203203
font-weight: bold;
204204
}
205205

206+
@media (max-height: 450px) {
207+
div.home {
208+
height: 30px;
209+
padding-top: 10px;
210+
}
211+
212+
.tagline {
213+
display: none;
214+
}
215+
}
216+
206217
/* about */
207218

208219
.bio {
@@ -223,8 +234,7 @@ footer {
223234
bottom: 0;
224235
width: 100%;
225236
z-index: 10;
226-
min-height: 45px;
227-
max-height: var(--max-footer-height);
237+
height: var(--footer-height);
228238
background-color: var(--purple);
229239
padding: 0.1rem;
230240
display: flex;
@@ -510,17 +520,14 @@ h6 {
510520
.home {
511521
display: flex;
512522
flex-direction: column;
513-
justify-content: center;
514523
align-items: center;
515-
height: 60vh;
524+
height: calc(300px - var(--footer-height));
525+
padding-top: 30px;
516526
}
517527

518528
.tagline {
519-
margin: 1rem;
520529
font-size: 1.3rem;
521530
font-weight: bold;
522-
margin-block-start: 1em;
523-
margin-block-end: 0.67em;
524531
text-align: center;
525532
}
526533

0 commit comments

Comments
 (0)