Skip to content

Commit 305179b

Browse files
committed
New mobile scrollable navigation bar for small devices with many navigation items
1 parent 12d8ea8 commit 305179b

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

_sass/layout.scss

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
}
5555

56-
@media only screen and (max-width: 1070px) {
56+
@media only screen and (max-width: 768px) {
5757

5858
.container { // Set up the container for the site content
5959
grid-template-rows: 80px 811px auto auto;
@@ -65,7 +65,7 @@
6565
.container {
6666
grid-column-gap: 0px;
6767
grid-template-columns: 1;
68-
grid-template-rows: 80px auto auto auto auto;
68+
grid-template-rows: 115px auto auto auto auto;
6969
grid-template-areas:
7070
"h h h h h h h h h h h h"
7171
"i i i i i i i i i i i i"
@@ -94,6 +94,9 @@
9494
header {
9595
grid-area: h;
9696
display: flex;
97+
overflow-y: hidden;
98+
overflow-x: visible;
99+
margin-right: -15px;
97100
}
98101

99102
.logo {
@@ -153,8 +156,8 @@ header {
153156
align-items: center;
154157
justify-content: flex-end;
155158

156-
margin-left: 15px;
157159
height: 115px;
160+
//margin-left: 15px;
158161

159162
white-space: nowrap;
160163
overflow-x: auto;
@@ -167,6 +170,9 @@ header {
167170

168171
.scroll {
169172
height: 80px;
173+
padding-top: 100px;
174+
padding-bottom: 100px;
175+
margin-top: -60px;
170176
justify-content: flex-start;
171177
}
172178

@@ -198,6 +204,11 @@ nav > ul li {
198204

199205
nav > ul li:first-child {
200206
padding-left: 0px;
207+
padding-left: 15px;
208+
}
209+
210+
nav > ul li:last-child {
211+
padding-right: 15px;
201212
}
202213

203214
nav > ul li a:link,

0 commit comments

Comments
 (0)