fixes #2601: custom Css, do not add "important;" to lines starting with @
This commit is contained in:
2
Capfile
2
Capfile
@@ -13,4 +13,4 @@ require 'capistrano3/unicorn'
|
||||
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
|
||||
Dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r }
|
||||
|
||||
after "deploy:published", "unicorn:restart"
|
||||
after "deploy:published", "unicorn:reload"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% CurrentUser.user.custom_style.split.each do |line| %>
|
||||
<% CurrentUser.user.custom_style.split(/\r\n|\r|\n/).each do |line| %>
|
||||
<% if line =~ /^@import/ %>
|
||||
<%= raw(line) %>
|
||||
<% else %>
|
||||
|
||||
Reference in New Issue
Block a user