From 6eecb280c89dc61ebcecbe296739d682f8591bd6 Mon Sep 17 00:00:00 2001 From: Luka Stocker <67695434+lukastocker@users.noreply.github.com> Date: Wed, 6 Nov 2024 15:01:08 +0100 Subject: [PATCH] UI: adjust SCSS Coding Guidelines for ILIAS 10. To compile the SCSS files without running into conflicts the repo's sass.js (in './node_modules/sass/') has to be used instead of the 'sass' command. (#8352) --- templates/Guidelines_SCSS-Coding.md | 2 +- templates/Readme.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/Guidelines_SCSS-Coding.md b/templates/Guidelines_SCSS-Coding.md index 8bb43ae7821f..3b7ec4cc95af 100755 --- a/templates/Guidelines_SCSS-Coding.md +++ b/templates/Guidelines_SCSS-Coding.md @@ -456,7 +456,7 @@ Division with a slash (e.g. "10px / 2") outside of calc() is deprecated and MUST CSS is obtained by using the latest Dart Sass compiler on delos.scss, e.g. like so: ``` -sass templates/default/delos.scss templates/default/delos.css +./node_modules/sass/sass.js templates/default/delos.scss templates/default/delos.css ``` Note that the output heavily depends on the used sass version. You MUST use the latest release version of Dart Sass: https://github.com/sass/dart-sass/releases diff --git a/templates/Readme.md b/templates/Readme.md index 8e459605a9ae..3bf33beecb39 100755 --- a/templates/Readme.md +++ b/templates/Readme.md @@ -99,13 +99,13 @@ up-to-date for fixes from the main repo. Do not froget to re-compile the scss-file after each change. Switch to the delos scss folder and execute: ``` -sass delos.scss mystyle.css +./node_modules/sass/sass.js delos.scss mystyle.css ``` or ``` -sass --style=compressed delos.scss mystyle.css +./node_modules/sass/sass.js --style=compressed delos.scss mystyle.css ``` for a minified CSS version.