Skip to content

Commit cb4ea61

Browse files
committed
Diff-style ins and del elements
1 parent 6c53ffb commit cb4ea61

1 file changed

Lines changed: 26 additions & 3 deletions

File tree

‎css/_elements.type.scss‎

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,34 @@ mark {
268268
/**
269269
* Inserted and deleted text.
270270
*/
271+
s, del, ins {
272+
text-decoration: none;
273+
border-bottom: none;
274+
background-color: transparent;
275+
}
276+
271277
s, del {
272-
opacity: 0.75;
278+
color: var(--color-negative);
279+
280+
&::before {
281+
content: "[-\FEFF";
282+
}
283+
284+
&::after {
285+
content: "\FEFF-]";
286+
}
287+
273288
}
274289

275290
ins {
276-
border-bottom: none;
277-
background-color: var(--color-hilite);
291+
color: var(--color-positive);
292+
293+
&::before {
294+
content: "{+\FEFF";
295+
}
296+
297+
&::after {
298+
content: "\FEFF+}";
299+
}
300+
278301
}

0 commit comments

Comments
 (0)