Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

Commit 70f71c3

Browse files
committed
Enable small device menu.
1 parent f7511f8 commit 70f71c3

File tree

3 files changed

+118
-3
lines changed

3 files changed

+118
-3
lines changed

_includes/header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
</svg>
1111
</a>
1212
<div class="trigger">
13-
<a class="page-link" href="/">/home</a>
13+
<a class="page-link" href="/#">top</a>
1414
<a class="page-link" href="/#features">/features</a>
15-
<a class="page-link" href="/#features">/privacy</a>
15+
<a class="page-link" href="/#privacy">/privacy</a>
1616

1717
<a class="page-link" href="https://www.android.com/"><img class="on-line-logo" src="/static/img/android-logo.svg"></a>
1818
</div>

static/img/android-logo.svg

Lines changed: 66 additions & 1 deletion
Loading

static/main.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,53 @@ header {
8989
height: 2rem;
9090
vertical-align: middle;
9191
}
92+
93+
@media screen and (max-width: 750px) {
94+
.wrap {
95+
padding: 0 1em;
96+
}
97+
98+
.site-nav {
99+
position: fixed;
100+
z-index: 10;
101+
top: 1.5em;
102+
right: 1em;
103+
}
104+
105+
.site-nav .menu-icon {
106+
display: block;
107+
font-size: 1.5em;
108+
color: #505050;
109+
float: right;
110+
width: 2em;
111+
text-align: center;
112+
line-height: 1em;
113+
}
114+
115+
.site-nav .menu-icon svg {
116+
width: 1em;
117+
height: 1em;
118+
}
119+
120+
.site-nav .trigger {
121+
clear: both;
122+
margin-bottom: 5px;
123+
display: none;
124+
125+
background-color: darkgray;
126+
border-radius: 5px;
127+
box-shadow: 0.1em 0.1em #0E0E0E;
128+
}
129+
130+
.site-nav:hover .trigger {
131+
display: block;
132+
}
133+
134+
.site-nav .page-link {
135+
display: block;
136+
text-align: right;
137+
line-height: 1.25;
138+
padding: 5px 10px;
139+
margin: 0;
140+
}
141+
}

0 commit comments

Comments
 (0)