Skip to content

Commit e3d9bbc

Browse files
committed
Scope checkbox styles to .edra-editor
1 parent 8b4516f commit e3d9bbc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib/edra/editor.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ ul[data-type='taskList'] li[data-checked='true'] div {
179179
text-decoration: line-through;
180180
}
181181

182-
input[type='checkbox'] {
182+
.edra-editor input[type='checkbox'] {
183183
position: relative;
184184
top: 0rem;
185185
display: grid;
@@ -195,15 +195,15 @@ input[type='checkbox'] {
195195
border-radius: 0.25rem;
196196
}
197197

198-
input[type='checkbox']:hover {
198+
.edra-editor input[type='checkbox']:hover {
199199
background-color: color-mix(in srgb, var(--muted) 50%, transparent);
200200
}
201201

202-
input[type='checkbox']:active {
202+
.edra-editor input[type='checkbox']:active {
203203
background-color: var(--muted);
204204
}
205205

206-
input[type='checkbox']::before {
206+
.edra-editor input[type='checkbox']::before {
207207
width: 0.75rem;
208208
height: 0.75rem;
209209
padding: 0.25rem;
@@ -216,11 +216,11 @@ input[type='checkbox']::before {
216216
transition: 200ms transform ease-in-out;
217217
}
218218

219-
input[type='checkbox']:checked {
219+
.edra-editor input[type='checkbox']:checked {
220220
background-color: var(--secondary-foreground);
221221
}
222222

223-
input[type='checkbox']:checked::before {
223+
.edra-editor input[type='checkbox']:checked::before {
224224
transform: scale(1);
225225
}
226226

0 commit comments

Comments
 (0)