From 2c6b8edbea6ad9cec1382853896964dfaac7ccc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sun, 16 May 2021 12:34:46 +0200 Subject: [PATCH] Allow several custom stylesheets So other institutions customizing CONSUL can organize their custom code as they wish to. We're also updating the comments in the `custom.scss` file, since it was referencing files which no longer exist. --- app/assets/stylesheets/application.scss | 1 + app/assets/stylesheets/custom.scss | 7 +++---- app/assets/stylesheets/custom/.gitkeep | 0 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 app/assets/stylesheets/custom/.gitkeep diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 457eef2a87a..134f65ddc38 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -41,3 +41,4 @@ @import "widgets/**/*"; @import "custom"; +@import "custom/**/*"; diff --git a/app/assets/stylesheets/custom.scss b/app/assets/stylesheets/custom.scss index 090eb0342f6..d124a23424f 100644 --- a/app/assets/stylesheets/custom.scss +++ b/app/assets/stylesheets/custom.scss @@ -1,5 +1,4 @@ -// Overrides and adds customized styles in this file -// Read more on documentation: -// * English: https://github.com/consul/consul/blob/master/CUSTOMIZE_EN.md#css -// * Spanish: https://github.com/consul/consul/blob/master/CUSTOMIZE_ES.md#css +// Override and add customized styles in this file. // +// You can also create SCSS files in the app/assets/stylesheets/custom/ +// folder and they will be loaded automatically. diff --git a/app/assets/stylesheets/custom/.gitkeep b/app/assets/stylesheets/custom/.gitkeep new file mode 100644 index 00000000000..e69de29bb2d