Skip to content

Commit 510da11

Browse files
committed
Allow top nav to receive keyboard focus
Fix #530
1 parent 817a764 commit 510da11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/themes/basic/_layout.styl

+3-3
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,13 @@ li input[type='checkbox']
139139
border-bottom-color #ccc
140140
border-radius 4px
141141
box-sizing border-box
142-
display none
143142
max-height calc(100vh - 61px)
144143
overflow-y auto
145144
padding 10px 0
146145
position absolute
147146
right -15px
148147
text-align left
149-
top 100%
148+
top -100vh
150149
white-space nowrap
151150

152151
li
@@ -166,8 +165,9 @@ li input[type='checkbox']
166165
&.active
167166
border-bottom 0
168167

168+
&:focus-within ul,
169169
&:hover ul
170-
display block
170+
top: 100%;
171171

172172
/* github corner */
173173
.github-corner

0 commit comments

Comments
 (0)