Skip to content

Commit 35b875c

Browse files
honziephanan
authored andcommitted
fix: removing margins from nested ul/ol, top avoid awkward spacing. (vuejs#1761)
This is to address the margins in the hacker news example (vuejs#1308). By resetting the margins to 0, this undos the trick that allows for easier text highlighting and anchor positioning.
1 parent e9c3020 commit 35b875c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

themes/vue/source/css/page.styl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@
9999
padding-left: 1.5em
100100
// FIX: Some link click targets are covered without this
101101
position: inherit
102+
// FIX: For nested lists, the top margins on ul/ol
103+
// creates extra space at the top. (Issue: 1308)
104+
ul, ol
105+
margin: 0;
102106
a
103107
color: $green
104108
font-weight: 600

0 commit comments

Comments
 (0)