-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested lists have huge fontsize #198
Comments
Are there font-sizes for |
No font sizes are defined for ol: {
fontSize: '16px',
textAlign: 'center',
'@media screen and (min-width:64em)': {
fontSize: '32px',
},
},
ul: {
fontSize: '16px',
textAlign: 'center',
'@media screen and (min-width:64em)': {
fontSize: '32px',
},
},
p: {
fontSize: '16px',
textAlign: 'center',
'@media screen and (min-width:64em)': {
fontSize: '32px',
},
}, |
I added the values for in every list that has a sublist so it's picking the 1.5em value too. |
For me, this was caused both by * item 1
* item 2
* item 2a
* item 2b
* item 3 given the following markdown, css: {
...theme.css,
'li ul, li ol': {
fontSize: '1em',
},
'li > p': {
fontSize: '1em',
margin: 0
}
} |
The following markdown :
is displayed as follows :
Using version 1.7.7 and default theme.
Can anyone reproduce it ?
Edit: It's from the font sizes defined in
em
in the theme. Theem
unit is relative to the parent element, so each childul
will be 1.5 times bigger than its parent, since the font size is1.5em
for it.The text was updated successfully, but these errors were encountered: