Skip to content

Commit dd71efd

Browse files
committed
Clean up UI for mobile navigation menu
1 parent a976a74 commit dd71efd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/static/a/main-mobile.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,15 @@ header.main-page #mobile-nav {
5050
}
5151
nav {
5252
background-color: rgba(64,64,64,1);
53+
box-sizing: border-box;
5354
cursor: default;
5455
display: none;
5556
font: 16pt source sans pro, verdana, arial, sans-serif;
57+
height: calc(100% - 48px);
5658
line-height: 28px;
59+
max-width: 240px;
5760
overflow: auto;
58-
padding: 4px;
61+
padding: 12px;
5962
position: fixed;
6063
right: 0px;
6164
top: 48px;
@@ -78,13 +81,12 @@ nav > a:hover {
7881
text-decoration: none;
7982
}
8083
nav > a[href] {
81-
border: 1px solid rgba(128,128,128,0.15);
8284
cursor: pointer;
83-
display: inline-block;
85+
display: block;
8486
font-family: source sans pro, verdana, arial, sans-serif;
8587
font-size: 13pt;
8688
font-weight: inherit;
87-
padding-top: 0px;
89+
padding: 0px 8px;
8890
}
8991
nav > a[href]:hover {
9092
background-color: rgba(128,128,128,0.15);

0 commit comments

Comments
 (0)