Skip to content

Commit 33a0c59

Browse files
committed
Resort to a CSS hack to fix the line numbers in Safari
See https://www.woltlab.com/community/thread/314404/
1 parent 49f9cba commit 33a0c59

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

wcfsetup/install/files/style/layout/layout.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,19 @@ html.iOS select {
200200
}
201201
}
202202

203+
/*
204+
CSS hack to target only Safari.
205+
Taken from https://browserstrangeness.github.io/css_hacks.html#safari
206+
*/
207+
@supports (font: -apple-system-body) {
208+
.sideBySide.templateDiff .nativeList {
209+
margin-block-start: 1em;
210+
margin-block-end: 1em;
211+
margin-inline-end: 0px;
212+
padding-inline-start: 40px;
213+
}
214+
}
215+
203216
html[data-color-scheme="dark"] .sideBySide.templateDiff {
204217
--templateDiff-added-background: #172810;
205218
--templateDiff-added-color: #4f9c51;

0 commit comments

Comments
 (0)