Skip to content

Commit 5625943

Browse files
authored
fix: note style (#2194)
1 parent 3a34a18 commit 5625943

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages/client/styles/code.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,19 @@ html:not(.dark) .shiki span {
123123
}
124124

125125
/* Inline Code */
126+
.slidev-note :not(pre) > code,
126127
.slidev-layout :not(pre) > code {
127128
font-size: 0.9em;
128129
background: var(--slidev-code-background);
129130
border-radius: var(--slidev-code-radius);
130131
--uno: font-light py-0.5 px-1.5;
131132
}
132133

134+
.slidev-note :not(pre) > code:after,
135+
.slidev-note :not(pre) > code:before {
136+
content: '';
137+
}
138+
133139
.slidev-layout :not(pre) > code:before {
134140
margin-right: -0.08em;
135141
}

packages/client/styles/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,7 @@ html {
144144
transform: scale(calc(1 * var(--slidev-slide-scale)));
145145
transform-origin: 30px top;
146146
}
147+
148+
.slidev-note ul {
149+
margin: 0;
150+
}

0 commit comments

Comments
 (0)