fixed fonts; fixed relative url paths
All checks were successful
CSGOWTF/csgowtf/pipeline/pr-master This commit looks good
CSGOWTF/csgowtf/pipeline/head This commit looks good

This commit is contained in:
2022-11-14 01:05:49 +01:00
parent befc14d894
commit f65fc0a0ea
3 changed files with 8 additions and 30 deletions

View File

@@ -1,33 +1,19 @@
// Custom.scss // Custom.scss
@import "~@fontsource/orbitron/index.css"; @import "~@fontsource/orbitron/index.css";
@import "~@fontsource/open-sans/index.css"; @import "~@fontsource/open-sans/variable-full.css";
@import "~fork-awesome/css/fork-awesome.css";
@font-face {
font-family: "OpenSans";
font-display: swap;
}
@font-face {
font-family: "OpenSansItalic";
font-display: swap;
}
@font-face { @font-face {
font-family: "CSRegular"; font-family: "CSRegular";
src: local('CSRegular'), src: local('CSRegular'),
url("/fonts/cs_regular.woff2") format("woff2"), url("../../public/fonts/cs_regular.woff2") format("woff2"),
url("/fonts/cs_regular.ttf") format("truetype"); url("../../public/fonts/cs_regular.woff2") format("truetype");
font-display: swap;
}
@font-face {
font-family: "Orbitron";
font-display: swap; font-display: swap;
} }
// Default variable overrides // Default variable overrides
$font-family-base: 'OpenSans'; $font-family-base: 'Open Sans';
$body-color: white; $body-color: white;
$primary: #888f98; $primary: #888f98;
@@ -48,8 +34,7 @@ $success: #609926;
} }
// Bootstrap // Bootstrap
@import "../../node_modules/bootstrap/scss/bootstrap"; @import "~bootstrap/scss/bootstrap";
@import "../../node_modules/fork-awesome/css/fork-awesome.css";
:root { :root {
// CSGO COLORS // CSGO COLORS

View File

@@ -148,12 +148,12 @@ table {
.main-content { .main-content {
.head { .head {
// display jpg // display jpg
background-image: url("/images/map_screenshots/default.png"); background-image: url("../../public/images/map_screenshots/default.png");
} }
.head { .head {
// display webp if possible // display webp if possible
background-image: url("/images/map_screenshots/default.webp"); background-image: url("../../public/images/map_screenshots/default.png");
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: cover; background-size: cover;
background-position: center; background-position: center;

View File

@@ -6,12 +6,5 @@ module.exports = {
plugins: [ plugins: [
new Dotenv() new Dotenv()
], ],
},
css: {
loaderOptions: {
css: {
url: false
}
}
} }
} }