Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Aug 14, 2022
1 parent 8e23027 commit 782387b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
9 changes: 6 additions & 3 deletions assets/stylesheets/_admin.scss
Original file line number Diff line number Diff line change
@@ -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%;}}
7 changes: 4 additions & 3 deletions assets/stylesheets/main.scss
Original file line number Diff line number Diff line change
@@ -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';}

0 comments on commit 782387b

Please sign in to comment.