Revert "Merge pull request #2125 from vikhyat/css-variables"

This reverts commit b537de3ca5, reversing
changes made to b925827e5b.
This commit is contained in:
Régis Hanol
2014-04-01 16:24:29 +02:00
parent b537de3ca5
commit 77a8a4083a
60 changed files with 178 additions and 133 deletions

View File

@@ -155,20 +155,12 @@ describe SiteCustomization do
it 'should compile scss' do
c = SiteCustomization.create!(user_id: user.id, name: "test", stylesheet: '$black: #000; #a { color: $black; }', header: '')
c.stylesheet_baked.should == "#a{color:#000}\n"
c.stylesheet_baked.should == "#a {\n color: black; }\n"
end
it 'should compile mobile scss' do
c = SiteCustomization.create!(user_id: user.id, name: "test", stylesheet: '', header: '', mobile_stylesheet: '$black: #000; #a { color: $black; }', mobile_header: '')
c.mobile_stylesheet_baked.should == "#a{color:#000}\n"
end
it 'should allow including discourse styles' do
c = SiteCustomization.create!(user_id: user.id, name: "test", stylesheet: '@import "desktop";', mobile_stylesheet: '@import "mobile";')
c.stylesheet_baked.should_not =~ /Syntax error/
c.stylesheet_baked.length.should > 1000
c.mobile_stylesheet_baked.should_not =~ /Syntax error/
c.mobile_stylesheet_baked.length.should > 1000
c.mobile_stylesheet_baked.should == "#a {\n color: black; }\n"
end
it 'should provide an awesome error on failure' do