1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-01-03 23:42:28 +03:00

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
This commit is contained in:
Dan Brown
2025-05-05 12:21:32 +01:00
parent fa566f156a
commit 8821844c4a

View File

@@ -1,5 +1,12 @@
// Variables
///////////////
// A range of SASS and plain CSS variables used in BookStack
////////////////////////////////////////////////////////////
// This is simply placed here at the top to prevent parsing/rendering issues
// where built CSS files may have a starting BOM mark which can break the first css rule
// when used inline, so this is here as a sacrifice in such scenarios instead of an important rule.
// Related: https://github.com/sass/dart-sass/issues/472
.dummy-style {color: red;}
// Screen breakpoints
$bp-xxxl: 1700px;