Import CSS File in SCSS with pyScss
source link: http://siongui.github.io/2015/03/18/scss-import-css-file/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Import CSS File in SCSS with pyScss
March 18, 2015
pyScss is a Scss compiler for Python. Sometimes we need to include (import) regular CSS file in SCSS file. This post shows how to do it with pyScss:
Assume that we have a css file called pygments.css, we want to include this file in our scss file:
Rename pygments.css to _pygments.scss (Prepend an underscore and switch the extension to scss.)
Use @import directive to include the renamed CSS file in SCSS file:
@import "pygments";
Tested on: pyScss 1.3.4
Reference:
[1]sass - Import regular css file in scss file? - Stack Overflow
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK