Skip to content

Commit 81fb33e

Browse files
Fixed titles wrapping due to too large fonts.
Adjusted brand logo size for smallest screens.
1 parent b5ee438 commit 81fb33e

File tree

2 files changed

+67
-12
lines changed

2 files changed

+67
-12
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<!--Full screen navigation section-->
1818
<nav class="navigation navbar sticky-top navbar-light">
1919
<div class="navigation__brand">
20-
<a class="navbar-brand" href="index.html">
20+
<a class="navigation__brand-link navbar-brand" href="index.html">
2121
<img class="navigation__brand-img" src="static/images/site_logo/python_sprints_logo.png" alt="Python Sprints Logo">
2222
<span class="navigation__brand-name">Python Sprints</span>
2323
</a>

static/css/style.css

Lines changed: 66 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,20 @@
5050
border-radius: 6px;
5151
}
5252

53+
.navigation__brand-link {
54+
padding-top: 2px;
55+
padding-bottom: 2px;
56+
}
57+
5358
.navigation__brand-name {
54-
font-size: 1.2em;
59+
font-size: 0.8em;
5560
color: #ffffff;
5661
font-family: 'Share Tech Mono', monospace;
5762
}
5863

59-
@media (max-width: 450px) {
64+
@media (min-width: 450px) {
6065
.navigation__brand-name {
61-
font-size: 0.8em;
66+
font-size: 1.2em;
6267
}
6368
}
6469

@@ -83,20 +88,49 @@
8388
-o-user-select: none;
8489
}
8590

86-
.navigation__title {
91+
.navigation__title {
8792
font-family: 'Share Tech Mono', monospace;
8893
color: #ffffff;
89-
font-size: 6em;
94+
font-size: 3.5em;
9095
margin-top: 40vh;
9196
text-align: center;
97+
}
98+
.navigation__subtitle {
99+
font-size: 1.16em;
100+
font-family: 'Share Tech Mono', monospace;
101+
color: #818181;
102+
text-align: center;
103+
margin-bottom: 50%;
104+
}
105+
106+
@media (min-width: 450px) {
107+
.navigation__title {
108+
font-size: 4.3em;
109+
margin-top: 40vh;
110+
}
111+
.navigation__subtitle {
112+
font-size: 1.43em;
113+
}
92114
}
93115

94-
.navigation__subtitle {
95-
font-family: 'Share Tech Mono', monospace;
96-
color: #818181;
116+
@media (min-width: 650px) {
117+
.navigation__title {
118+
font-size: 5em;
119+
margin-top: 40vh;
120+
}
121+
.navigation__subtitle {
122+
font-size: 1.66em;
123+
}
124+
}
125+
126+
@media (min-width: 1200px) {
127+
.navigation__title {
128+
font-size: 6em;
129+
margin-top: 40vh;
130+
}
131+
.navigation__subtitle {
97132
font-size: 2em;
98-
text-align: center;
99-
margin-bottom: 50%;
133+
}
100134
}
101135

102136
.navigation__hamburger-bar {
@@ -157,14 +191,35 @@
157191
}
158192

159193
.section-title {
160-
font-size: 4em;
194+
font-size: 2.5em;
161195
color: #072948;
162196
text-align: center;
163197
font-family: 'Encode Sans Expanded', sans-serif;
164198
margin-top: 5%;
165199
margin-bottom: 2.5%;
166200
}
167201

202+
203+
@media (min-width: 376px) {
204+
.section-title {
205+
font-size: 3em;
206+
}
207+
}
208+
209+
@media (min-width: 500px) {
210+
.section-title {
211+
font-size: 4em;
212+
}
213+
}
214+
215+
216+
217+
218+
219+
220+
221+
222+
168223
.section-content {
169224
font-size: 1.1em;
170225
text-align: center;

0 commit comments

Comments
 (0)