Foxnouns.NET/Foxnouns.Frontend/src/app.scss

43 lines
1.1 KiB
SCSS
Raw Normal View History

@use "bootstrap/scss/bootstrap" with (
$color-mode-type: media-query,
$font-family-sans-serif: (
"FiraGO",
system-ui,
-apple-system,
"Segoe UI",
Roboto,
"Helvetica Neue",
"Noto Sans",
"Liberation Sans",
Arial,
sans-serif,
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol",
"Noto Color Emoji",
)
);
@import "bootstrap-icons/font/bootstrap-icons.css";
@import "@fontsource/firago/400.css";
@import "@fontsource/firago/400-italic.css";
@import "@fontsource/firago/700.css";
@import "@fontsource/firago/700-italic.css";
2024-11-24 17:36:02 +01:00
// This is necessary for line breaks in translation strings to show up. Don't ask me why
.text-has-newline {
white-space: pre-line;
}
// Add breakpoint-dependent w-{size} utilities
// Source: https://stackoverflow.com/questions/47760132/any-way-to-get-breakpoint-specific-width-classes
@each $breakpoint in map-keys(bootstrap.$grid-breakpoints) {
@each $size, $length in (25: 25%, 50: 50%, 75: 75%, 100: 100%) {
@include bootstrap.media-breakpoint-up($breakpoint) {
.w-#{$breakpoint}-#{$size} {
width: $length !important;
}
}
}
}