Skip to content

Commit 8821844

Browse files
committed
Exports: Fixed CSS file BOM mark breaking CSS variables in exports
Adds a dummy CSS rule to break as the first rule, instead of our :root variables. Fixes #5576
1 parent fa566f1 commit 8821844

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

resources/sass/_vars.scss

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
// Variables
2-
///////////////
2+
// A range of SASS and plain CSS variables used in BookStack
3+
////////////////////////////////////////////////////////////
4+
5+
// This is simply placed here at the top to prevent parsing/rendering issues
6+
// where built CSS files may have a starting BOM mark which can break the first css rule
7+
// when used inline, so this is here as a sacrifice in such scenarios instead of an important rule.
8+
// Related: https://github.com/sass/dart-sass/issues/472
9+
.dummy-style {color: red;}
310

411
// Screen breakpoints
512
$bp-xxxl: 1700px;

0 commit comments

Comments
 (0)