Skip to content

Commit 281b5a7

Browse files
committed
Add ins/del/mark styling to editor preview
1 parent af9f37e commit 281b5a7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

assets/blocks/djot/editor.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,27 @@
112112
color: #666;
113113
}
114114

115+
/* Inserted - GitHub style green */
116+
.wp-djot-preview.djot-content ins {
117+
text-decoration: none;
118+
background-color: #dafbe1;
119+
color: #116329;
120+
}
121+
122+
/* Deleted - GitHub style red */
123+
.wp-djot-preview.djot-content del,
124+
.wp-djot-preview.djot-content s {
125+
text-decoration: line-through;
126+
background-color: #ffebe9;
127+
color: #82071e;
128+
}
129+
130+
/* Highlighted / Mark */
131+
.wp-djot-preview.djot-content mark {
132+
background-color: #fff8c5;
133+
color: inherit;
134+
}
135+
115136
/* Tables */
116137
.wp-djot-preview.djot-content table {
117138
border-collapse: collapse;

0 commit comments

Comments
 (0)