Skip to content

Commit 492696c

Browse files
committed
Add GitHub-style colors for ins/del/mark elements
1 parent 28b75f9 commit 492696c

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

assets/css/djot.css

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,25 @@
219219
font-weight: 600;
220220
}
221221

222-
/* Strikethrough */
222+
/* Strikethrough / Deleted - GitHub style red */
223223
.djot-content del,
224224
.djot-content s {
225225
text-decoration: line-through;
226+
background-color: #ffebe9;
227+
color: #82071e;
228+
}
229+
230+
/* Inserted - GitHub style green */
231+
.djot-content ins {
232+
text-decoration: none;
233+
background-color: #dafbe1;
234+
color: #116329;
235+
}
236+
237+
/* Highlighted / Mark - GitHub style yellow */
238+
.djot-content mark {
239+
background-color: #fff8c5;
240+
color: inherit;
226241
}
227242

228243
/* Superscript and Subscript */
@@ -476,4 +491,20 @@
476491
.djot-content .tip {
477492
background-color: rgba(46, 160, 67, 0.15);
478493
}
494+
495+
.djot-content del,
496+
.djot-content s {
497+
background-color: rgba(248, 81, 73, 0.2);
498+
color: #ff7b72;
499+
}
500+
501+
.djot-content ins {
502+
background-color: rgba(63, 185, 80, 0.2);
503+
color: #7ee787;
504+
}
505+
506+
.djot-content mark {
507+
background-color: rgba(187, 128, 9, 0.3);
508+
color: inherit;
509+
}
479510
}

0 commit comments

Comments
 (0)