mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-05-04 18:03:59 -04:00
Theming: a UI to choose some base colors that are applied to all the site css. CSS compiled outside of asset pipeline.
This commit is contained in:
parent
c97de2c449
commit
c4d3aa3d47
46 changed files with 596 additions and 310 deletions
lib/autospec
|
@ -24,6 +24,11 @@ class Autospec::ReloadCss
|
|||
end
|
||||
|
||||
def self.run_on_change(paths)
|
||||
if paths.any? { |p| p =~ /\.(css|s[ac]ss)/ }
|
||||
s = DiscourseStylesheets.new(:desktop) # TODO: what about mobile?
|
||||
s.compile
|
||||
paths << "public" + s.stylesheet_relpath_no_digest
|
||||
end
|
||||
paths.map! do |p|
|
||||
hash = nil
|
||||
fullpath = "#{Rails.root}/#{p}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue