sass-css-importer

Import CSS files as SCSS

  • 所有者: chriseppstein/sass-css-importer
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Sass CSS Importer Plugin

The Sass CSS Importer allows you to import a CSS file into Sass.

Stylesheet Syntax

The .css extension triggers special behavior in Sass so you cannot
import a file with a CSS extension. To work around this, you must use a
special prefix on the import string and omit the extension.

@import "CSS:some_folder/some_css_file"

Installation

$ gem install --pre sass-css-importer

Use with the Sass command line

$ sass -r sass-css-importer --watch sass_dir:css_dir

Note: several -r options can be given to the sass command line if you
need to require several libraries.

Use with compass

Add the following to your compass configuration:

require 'sass-css-importer'

More complex scenarios

This plugin assumes you want to import CSS files relative to a Sass
file. More complex scenarios are acheivable by adding a CSS Importer to
the Sass load path option explicitly.

For example, in compass you can do the following in your config.rb
file:

require 'sass-css-importer'
add_import_path Sass::CssImporter::Importer.new("/path/to/the/css/files")

主要指标

概览
名称与所有者chriseppstein/sass-css-importer
主编程语言Ruby
编程语言Ruby (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2013-07-01 18:03:23
推送于2014-07-16 23:59:16
最后一次提交2014-07-16 16:58:42
发布数0
用户参与
星数199
关注者数8
派生数13
提交数7
已启用问题?
问题数12
打开的问题数7
拉请求数2
打开的拉请求数1
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?