mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: Plugins can extend color definitions (#10383)
This commit is contained in:
@ -19,6 +19,10 @@ module Stylesheet
|
||||
filename = "#{asset}.scss"
|
||||
path = "#{Stylesheet::Common::ASSET_ROOT}/#{filename}"
|
||||
file = File.read path
|
||||
|
||||
if asset.to_s == Stylesheet::Manager::COLOR_SCHEME_STYLESHEET
|
||||
file += Stylesheet::Importer.import_color_definitions
|
||||
end
|
||||
end
|
||||
|
||||
compile(file, filename, options)
|
||||
|
Reference in New Issue
Block a user