Skip to content

Commit 41a911e

Browse files
committed
optimize styles for nav
- apply list-style to ul instead of li - set color for all links in nav
1 parent df672a4 commit 41a911e

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/css/nav.css

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
6565
}
6666
}
6767

68+
.nav a {
69+
color: inherit;
70+
}
71+
6872
.nav .panels {
6973
display: flex;
7074
flex-direction: column;
@@ -133,11 +137,8 @@
133137
padding: 0;
134138
}
135139

136-
.nav-menu a {
137-
color: inherit;
138-
}
139-
140140
.nav-list {
141+
list-style: none;
141142
margin: 0 0 0 0.75rem;
142143
padding: 0;
143144
}
@@ -147,7 +148,6 @@
147148
}
148149

149150
.nav-item {
150-
list-style: none;
151151
margin-top: 0.5em;
152152
}
153153

@@ -172,6 +172,7 @@
172172
border: none;
173173
outline: none;
174174
line-height: inherit;
175+
padding: 0;
175176
position: absolute;
176177
height: calc(var(--nav-line-height) * 1em);
177178
width: calc(var(--nav-line-height) * 1em);
@@ -268,7 +269,6 @@
268269

269270
.nav-panel-explore .component .title {
270271
font-weight: var(--body-font-weight-bold);
271-
color: inherit;
272272
margin-top: 0.25rem;
273273
flex: none;
274274
}
@@ -281,9 +281,9 @@
281281
display: flex;
282282
justify-content: flex-end;
283283
flex-wrap: wrap;
284-
list-style: none;
285284
padding-left: 0;
286285
line-height: 1;
286+
list-style: none; /* required for Edge */
287287
}
288288

289289
.nav-panel-explore .component .version {
@@ -294,7 +294,6 @@
294294
.nav-panel-explore .component .version a {
295295
border: 1px solid var(--nav-border-color);
296296
border-radius: 0.25rem;
297-
color: inherit;
298297
opacity: 0.75;
299298
white-space: nowrap;
300299
padding: 0.125em 0.25em;

0 commit comments

Comments
 (0)