Skip to content

Commit 76fcbd3

Browse files
committed
Removed default anchor CSS filtering in dark mode
Due to causing content images to be rendered in unexpected ways. - Also removed CSS filters from other image usage. - Tweaked header CSS filtering to not be so aggressive. - Forced WYSIWYG editor to be on its own layer since that would allow massive larger performance increases in Safari, especially when using dark mode. Closes BookStackApp#2045. Closes BookStackApp#2154.
1 parent 6e41321 commit 76fcbd3

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

resources/sass/_colors.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,3 @@
9595
.bg-shelf {
9696
background-color: var(--color-bookshelf);
9797
}
98-
99-
.bg-shelf, .bg-book {
100-
@include whenDark {
101-
filter: brightness(67%) saturate(80%);
102-
}
103-
}

resources/sass/_header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ header {
2424
padding: $-xxs 0;
2525
@include lightDark(border-bottom-color, #DDD, #000);
2626
@include whenDark {
27-
filter: saturate(0.6) brightness(0.8);
27+
filter: saturate(0.8) brightness(0.8);
2828
}
2929
.links {
3030
display: inline-block;

resources/sass/_text.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ a {
9696
text-decoration: none;
9797
transition: filter ease-in-out 80ms;
9898
line-height: 1.6;
99-
@include whenDark {
100-
filter: brightness(1.3) saturate(0.7);
101-
}
10299
&:hover {
103100
text-decoration: underline;
104101
}

resources/sass/_tinymce.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
overflow:auto;
5252
iframe {
5353
flex: 1;
54+
// Force TinyMCE iframe to render on its own layer
55+
// for much greater performance in Safari
56+
will-change: transform;
5457
}
5558
}
5659
}

0 commit comments

Comments
 (0)