Use sass-convert to indent your Sass/SCSS code
sass convert is a Sass built in tool to convert between CSS, Sass, and SCSS files.
sass-convert is a Sass built-in tool to convert between CSS, Sass, and SCSS files.
The secret sauce: You can use sass-convert to indent SCSS code by converting from SCSS to SCSS.
Usage:
sass-convert -F scss -T scss --indent 4 from.scss to.scss (2 is default if not specified)
If you want to re-indent all SCSS files in the entire folder:
sass-convert --in-place --indent 4 -r -F scss -T scss YOUR_SASS_FOLDER_NAME
Happy Styling!
Related
推薦閱讀
“vertical-align: baseline” causes a list margin bug in IE 6/7
If you use Eric Meyer’s version of Reset CSS, be careful of the side effect of “vertical align: baseline” in IE.
Recent Speeches (part 2)
前陣子接到 izero 與 jwbai 兩位長輩的邀約,到 KKBOX 給了兩場演講。因為最近正好有些心得,所以就把投影片重新整理過了一遍。
multi-line text in submit button?
用 button 可以輕鬆解決這個問題。可是 IE 很討厭,當 form 裡面有多個 submit button 的時候,所有的 button value 都會被送出去……