-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It fails to compile the SCSS files with variable #95
Comments
Thank you for filing issue 🚀 I tested the following code, then I could build without failure. index.html:
style.scss:
variable.scss:
|
Thank you for checking! You can check the code from here https://github.com/oxo-yuta/oxo-tech-site-spear/tree/scss |
Thanks! I changed the bellow code. In this case, I used the I'm not sure the diff --git a/src/assets/scss/header.scss b/src/assets/scss/header.scss
index 2044f59..a19fb39 100644
--- a/src/assets/scss/header.scss
+++ b/src/assets/scss/header.scss
@@ -1,3 +1,5 @@
+@import "./variable.scss";
+
.navbar {
$navbar: &; // 親要素を変数に定義
// padding: 48px;
diff --git a/src/assets/scss/index.scss b/src/assets/scss/index.scss
index f98659f..09ebcf1 100644
--- a/src/assets/scss/index.scss
+++ b/src/assets/scss/index.scss
@@ -1,3 +1,9 @@
+@import "./variable.scss";
+@mixin until ($bk) {
+ @media screen and (max-width: #{$bk}) {
+ @content
+ }
+}
.article {
font-family: 'Murecho', sans-serif;
display: flex;
diff --git a/src/assets/scss/myBulma.scss b/src/assets/scss/myBulma.scss
index 2397713..d75f641 100644
--- a/src/assets/scss/myBulma.scss
+++ b/src/assets/scss/myBulma.scss
@@ -1,3 +1,4 @@
+@import "./variable.scss";
// Update some of Bulma's component variables
$scheme-main: $background;
$link: $accent; |
Describe the bug
It fails to compile the SCSS files with variable.
To Reproduce
Steps to reproduce the behavior:
style.scss
andvariable.scss
variables.scss
style.scss
Expected behavior
The text was updated successfully, but these errors were encountered: