mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Layout: render CSS with both "less" and "scss"
This commit renders the same CSS files using both the "less" and "scss" CSS generation engines so that the results may be compared. This is a comparison script: old_main_css=$( grep -rl normalize.css _site/*.css ) new_main_css=_site/css/main.css old_rtl_css=$( grep 'Language specific styles that override default' -rl _site/*.css ) new_rtl_css=_site/css/rtl.css ( diff -ub $old_main_css $new_main_css diff -ub $old_rtl_css $new_rtl_css )
This commit is contained in:
parent
b9e114efe8
commit
a40fb73dab
10 changed files with 4301 additions and 6 deletions
|
@ -37,7 +37,7 @@ module Jekyll
|
|||
f = file = File.new(@file, "r")
|
||||
else
|
||||
source = File.read(@file)
|
||||
f = IO.popen("lessc -x -", "w+")
|
||||
f = IO.popen("lessc -", "w+")
|
||||
f.write(source)
|
||||
f.close_write()
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue