Skip to content

Commit 673668e

Browse files
Fixed navigation links overflowing the navigation overlay on landscape mobile devices.
Changed navigation links color on focus to distinguish focused link from hovered. Made overlay transition faster to make interface snappier.
1 parent d971bc5 commit 673668e

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

static/css/style.css

+16-14
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
background-color: rgb(0,0,0);
147147
background-color: rgba(0, 0, 0, 0.9);
148148
overflow-x: hidden;
149-
transition: 0.5s;
149+
transition: 0.3s;
150150
}
151151

152152
.navigation__overlay-content {
@@ -157,19 +157,30 @@
157157
margin-top: 30px;
158158
}
159159

160+
@media screen and (max-width: 850px) and (orientation: landscape) {
161+
.navigation__overlay-content {
162+
top: 15%;
163+
}
164+
}
165+
160166
.navigation__overlay .navigation__link {
161-
padding: 8px;
167+
padding: 0.25em;
162168
text-decoration: none;
163-
font-size: 36px;
169+
font-size: 2em;
170+
font-family: 'Encode Sans Expanded', sans-serif;
164171
color: #818181;
165172
display: block;
166-
transition: 0.3s;
173+
transition: 0.4s;
167174
}
168175

169-
.navigation__link:hover, .navigation__link:focus {
176+
.navigation__link:hover {
170177
color: #f1f1f1;
171178
}
172179

180+
.navigation__link:focus {
181+
color: #035e9a;
182+
}
183+
173184
.navigation__button-close-container {
174185
display: none;
175186
}
@@ -194,7 +205,6 @@
194205
margin-bottom: 2.5%;
195206
}
196207

197-
198208
@media (min-width: 376px) {
199209
.section-title {
200210
font-size: 3em;
@@ -207,14 +217,6 @@
207217
}
208218
}
209219

210-
211-
212-
213-
214-
215-
216-
217-
218220
.section-content {
219221
font-size: 1.1em;
220222
text-align: center;

0 commit comments

Comments
 (0)