Skip to content

Commit af9e2fe

Browse files
committed
Fix slide preview styles might overwrite code block styles
1 parent c7a36da commit af9e2fe

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

public/css/slide-preview.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,17 @@
2424
text-align: center;
2525
}
2626

27+
.markdown-body.slides section[data-markdown] code {
28+
text-align: left;
29+
}
30+
2731
.markdown-body.slides section[data-markdown]::before {
2832
content: '';
2933
display: block;
3034
padding-bottom: 56.23%;
3135
}
3236

33-
.markdown-body.slides section[data-markdown] div:first-child {
37+
.markdown-body.slides section[data-markdown] > div:first-child {
3438
position: absolute;
3539
top: 50%;
3640
left: 1em;
@@ -40,7 +44,7 @@
4044
overflow: hidden;
4145
}
4246

43-
.markdown-body.slides section[data-markdown] ul {
47+
.markdown-body.slides section[data-markdown] > ul {
4448
display: inline-block;
4549
}
4650

0 commit comments

Comments
 (0)