Skip to content

Commit 951c236

Browse files
CopilotMiodec
andcommitted
Move fonts import to vendor.scss outside CSS layers
Co-authored-by: Miodec <13181393+Miodec@users.noreply.github.com>
1 parent 0c359e6 commit 951c236

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

frontend/src/styles/index.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
}
1616
}
1717

18-
// the screenshotting library has some issues with css layers
19-
@import "fonts";
20-
2118
@layer custom-styles {
2219
@import "buttons", "404", "ads", "account", "animations", "caret",
2320
"commandline", "core", "inputs", "keymap", "login", "monkey", "nav",

frontend/src/styles/vendor.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
@import "fontawesome-5"; // the screenshotting library has some issues with css layers
1+
// the screenshotting library has some issues with css layers
2+
// keep fontawesome and fonts outside of any layer to ensure they work in screenshots
3+
@import "fontawesome-5";
4+
@import "fonts";
25

36
/* fontawesome icon styles do not respect the hidden class from the hidden layer.
47
* By having these rules outside any layer we make sure that the display none is

0 commit comments

Comments
 (0)