From 782387bb774fc6e9fa2fa7070c2fa6a08f2451ee Mon Sep 17 00:00:00 2001 From: Dmitry Fedyuk Date: Sun, 14 Aug 2022 09:18:11 +0300 Subject: [PATCH] no message --- assets/stylesheets/_admin.scss | 9 ++++++--- assets/stylesheets/main.scss | 7 ++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/assets/stylesheets/_admin.scss b/assets/stylesheets/_admin.scss index 4c9ea80..cb47e6a 100644 --- a/assets/stylesheets/_admin.scss +++ b/assets/stylesheets/_admin.scss @@ -1,6 +1,9 @@ // 2015-07-06 Обратите внимание, что такой синтаксис не поддерживает звёздочку на конце: надо явно указывать имя файла. // 2022-08-14 -// SASS looks for the file in all load paths: https://sass-lang.com/documentation/at-rules/import#load-paths. -// The root folder is within load paths. -@import 'plugins/df-core/assets/stylesheets/admin-lib/settings'; +// 1) A stylesheet included via `register_asset` should import other stylesheets using full paths, +// otherwise Discourse will import all stylesheets with the specified base name found withing all load paths: +// https://sass-lang.com/documentation/at-rules/import#load-paths. +// 2) Other side, sub-imports should import other stylesheets only with relative paths: full paths do not work there. +// 3) SASS does not allow variables in @import paths: https://stackoverflow.com/a/37569018 +@import '../../../df-core/assets/stylesheets/admin-lib/settings'; .row.setting.df-textarea {textarea {width: 90%;}} \ No newline at end of file diff --git a/assets/stylesheets/main.scss b/assets/stylesheets/main.scss index 8965229..558358f 100644 --- a/assets/stylesheets/main.scss +++ b/assets/stylesheets/main.scss @@ -1,7 +1,8 @@ // 2022-08-14 -// 1) If not specify the full path, -// then Discourse will include all stylesheets with the base name withing all load paths: +// 1) A stylesheet included via `register_asset` should import other stylesheets using full paths, +// otherwise Discourse will import all stylesheets with the specified base name found withing all load paths: // https://sass-lang.com/documentation/at-rules/import#load-paths. -// 2) SASS does not allow variables in @import paths: https://stackoverflow.com/a/37569018 +// 2) Other side, sub-imports should import other stylesheets only with relative paths: full paths do not work there. +// 3) SASS does not allow variables in @import paths: https://stackoverflow.com/a/37569018 .admin-contents {@import 'plugins/df-table/assets/stylesheets/admin';} .cooked {@import 'plugins/df-table/assets/stylesheets/cooked';} \ No newline at end of file