Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/amzrk2/hugo-theme-fuji.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDSRKafuU <amzrk2@outlook.com>2020-09-29 17:25:09 +0300
committerGitHub <noreply@github.com>2020-09-29 17:25:09 +0300
commit88f265ce15e063c52da2c0f213e4205f291e1963 (patch)
tree2ab7d8b1fea322a4a53b277c983908527398f112
parent92909aa4796fa83661652ec5e66655f394845ee9 (diff)
parente63f48a348f9de18cb3b75254f329fe2d2f66121 (diff)
merge: pull request #44 from Hyask/master
fuji.scss: let the user override both the variables and the CSS rules
-rw-r--r--README.md7
-rw-r--r--assets/scss/_custom.scss2
-rw-r--r--assets/scss/_custom_rules.scss1
-rw-r--r--assets/scss/_custom_var.scss2
-rw-r--r--assets/scss/fuji.scss3
5 files changed, 11 insertions, 4 deletions
diff --git a/README.md b/README.md
index 979e4e9..8e70f17 100644
--- a/README.md
+++ b/README.md
@@ -218,9 +218,9 @@ Use the `[SITEROOT]/layouts/partials/comment-*.html` to cover `themes/fuji/layou
> Hugo extended version needed.
-You can cover theme's internal SCSS variables with your own. Create `[SITEROOT]/assets/scss/_custom.scss` to cover variables in SCSS.
+You can override theme's internal SCSS variables with your own. Create `[SITEROOT]/assets/scss/_custom_var.scss` to cover variables in SCSS.
-Varibales available:
+Variables available:
```scss
$body-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Helvetica', 'Arial', 'PingFang SC',
@@ -248,6 +248,9 @@ $dark-color-bg: #2f3136; // Discord
$dark-color-codebg: #414449; // GitHub
```
+To override SCSS rules, create `[SITEROOT]/assets/scss/_custom_rules.scss`. This file will have priority over anything regarding CSS rules, but is useless for changing variables that are used elsewhere in the theme.
+
+
## ✏️ Issue und contributing
Feel free to use the [issue tracker](https://github.com/amzrk2/hugo-theme-fuji/issues). The theme has only been fully tested on Firefox, so if there are some problems when accessing with Chrome or others please also report an issue.
diff --git a/assets/scss/_custom.scss b/assets/scss/_custom.scss
index ca09079..d4b36a6 100644
--- a/assets/scss/_custom.scss
+++ b/assets/scss/_custom.scss
@@ -1 +1 @@
-// wtb covered
+// This file was used for overriding variables. Please use _custom_var.scss instead.
diff --git a/assets/scss/_custom_rules.scss b/assets/scss/_custom_rules.scss
new file mode 100644
index 0000000..7fc3ab1
--- /dev/null
+++ b/assets/scss/_custom_rules.scss
@@ -0,0 +1 @@
+// Override CSS rules with that file
diff --git a/assets/scss/_custom_var.scss b/assets/scss/_custom_var.scss
new file mode 100644
index 0000000..c2765c4
--- /dev/null
+++ b/assets/scss/_custom_var.scss
@@ -0,0 +1,2 @@
+// Override variables with that file
+@import '_custom'; // Keep that for back-compatibility. This shouldn't be used anymore.
diff --git a/assets/scss/fuji.scss b/assets/scss/fuji.scss
index 4d57aee..d88259b 100644
--- a/assets/scss/fuji.scss
+++ b/assets/scss/fuji.scss
@@ -1,5 +1,6 @@
// var & global
@import '_var';
+@import '_custom_var';
@import '_global';
// primer
@@ -28,4 +29,4 @@
@import '_image';
// let the user override the theme
-@import '_custom';
+@import '_custom_rules';