Skip to content

Commit d400f90

Browse files
committed
Small bug fixes in the new navigation menu
1 parent 854e1ba commit d400f90

File tree

2 files changed

+42
-20
lines changed

2 files changed

+42
-20
lines changed

_includes/header.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<header class="scroll">
1+
<header>
22
<div class="logo">
33
<div class="appIconShadow">
44
<svg width="0" height="0">
@@ -16,13 +16,13 @@
1616
</div>
1717
<p class="headerName">{{ site.app_name }}</p>
1818
</div>
19-
</a>
20-
<nav>
19+
<nav class="scroll">
2120
<ul>
2221
{% if site.presskit_download_link %}
2322
<li><a href="{{ site.presskit_download_link }}">Press Kit</a></li>
2423
{% endif %}
25-
<li><a href="{{ page.url | relative_url }}">What's New</a></li>
24+
<li><a href="{{ page.url | relative_url }}">Changelog</a></li>
25+
<li><a href="{{ page.url | relative_url }}">Privacy Policy</a></li>
2626
</ul>
2727
</nav>
2828
</header>

_sass/layout.scss

Lines changed: 38 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,8 @@ header {
8383
display: flex;
8484
}
8585

86-
.scroll {
87-
white-space: nowrap;
88-
overflow-x: auto;
89-
-webkit-overflow-scrolling: touch;
90-
-ms-overflow-style: -ms-autohiding-scrollbar;
91-
}
92-
93-
.scroll::-webkit-scrollbar {
94-
display: none;
95-
}
96-
9786
.logo {
9887
display: flex;
99-
width: 100%;
10088
justify-content: flex-start;
10189
align-items: center;
10290
height: 115px;
@@ -105,11 +93,24 @@ header {
10593

10694
.logo > p {
10795
color: $header-title-color;
96+
white-space: nowrap;
10897
display: flex;
10998
font-weight: bold;
11099
padding-bottom: 0px;
111100
}
112101

102+
@media only screen and (max-width: 768px) {
103+
104+
.logo {
105+
margin-right: 0px;
106+
}
107+
108+
.logo > p {
109+
display: none;
110+
}
111+
112+
}
113+
113114
.headerIcon {
114115
width: 50px;
115116
height: 50px;
@@ -121,23 +122,44 @@ header {
121122

122123

123124
// Navigation Links
124-
nav {
125-
width: 100%;
125+
.scroll {
126126
display: flex;
127-
justify-content: flex-end;
127+
width: 100%;
128128
align-items: center;
129+
justify-content: flex-end;
130+
131+
margin-left: 15px;
129132
height: 115px;
133+
134+
white-space: nowrap;
135+
overflow-x: auto;
136+
overflow-y: hidden;
137+
-webkit-overflow-scrolling: touch;
138+
-ms-overflow-style: -ms-autohiding-scrollbar;
130139
}
131140

141+
@media only screen and (max-width: 768px) {
142+
143+
.scroll {
144+
justify-content: flex-start;
145+
}
146+
147+
}
148+
149+
.scroll::-webkit-scrollbar {
150+
display: none;
151+
}
152+
153+
132154
nav > ul {
133155
color: #fff;
134156
display: flex;
135157
list-style-type: none;
158+
136159
}
137160

138161
nav > ul li {
139162
padding-left: 30px;
140-
text-align: right;
141163
}
142164

143165
nav > ul li:first-child {

0 commit comments

Comments
 (0)