From 2bb4f5355c71f891edd9c164cdf2ef85579ed341 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Tue, 3 Jan 2023 14:06:56 +0100 Subject: [PATCH] Fix asset root paths --- app/assets/stylesheets/_variables.scss | 4 ++-- app/assets/stylesheets/application.sass.scss | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/_variables.scss b/app/assets/stylesheets/_variables.scss index 7c950fbf..137298d6 100644 --- a/app/assets/stylesheets/_variables.scss +++ b/app/assets/stylesheets/_variables.scss @@ -1,7 +1,7 @@ // Font settings -$lexend-font-path: "/assets"; +$lexend-font-path: "."; $lexend-weights: 500, 600; -$fa-font-path: "/assets"; +$fa-font-path: "."; $font-family-sans-serif: "Lexend", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; $font-family-serif: Georgia, "DejaVu Serif", "Times New Roman", Times, serif; diff --git a/app/assets/stylesheets/application.sass.scss b/app/assets/stylesheets/application.sass.scss index 1990b4fc..359569e0 100644 --- a/app/assets/stylesheets/application.sass.scss +++ b/app/assets/stylesheets/application.sass.scss @@ -25,7 +25,7 @@ @each $weight in $lexend-weights { @include Lexend.fontFace($weight: $weight, $display: fallback, - $fontDir: "/assets" + $fontDir: "." ); } @@ -37,8 +37,8 @@ $unicodeRangeValues in Lexend.$unicodeMap { font-style: normal; font-display: swap; font-weight: 400; - src: url("/assets/lexend-#{$subset}-300-normal.woff2") format("woff2"), - url("/assets/lexend-all-300-normal.woff") format("woff"); + src: url("lexend-#{$subset}-300-normal.woff2") format("woff2"), + url("lexend-all-300-normal.woff") format("woff"); unicode-range: $unicodeRangeValues; } }