mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 19:41:18 +08:00
DEV: Deprecate SCSS variable overrides in plugins (#11589)
This commit is contained in:
@ -162,6 +162,7 @@ class DiscoursePluginRegistry
|
|||||||
elsif opts == :color_definitions
|
elsif opts == :color_definitions
|
||||||
self.color_definition_stylesheets[plugin_directory_name] = asset
|
self.color_definition_stylesheets[plugin_directory_name] = asset
|
||||||
elsif opts == :variables
|
elsif opts == :variables
|
||||||
|
Discourse.deprecate(":variables is deprecated", drop_from: "2.7")
|
||||||
self.sass_variables << asset
|
self.sass_variables << asset
|
||||||
else
|
else
|
||||||
self.stylesheets[plugin_directory_name] ||= Set.new
|
self.stylesheets[plugin_directory_name] ||= Set.new
|
||||||
|
Reference in New Issue
Block a user