javascript - 在 Windows 中哪里可以找到 compass 的源文件?

标签 javascript sass gruntjs compass-sass

我希望能够使用极少数的compass mixin,但不想像这样使用compass,即根本使用 compass :

 @import "compass";
 @import "compass/reset";
 @import "compass/css3";

那么,mixin 是否安装在我计算机上的某个位置?我查看了类似于并包括此路径的地方:

 C:\Ruby200-x64\lib\ruby\gems\2.0.0\gems\compass-0.12.2\examples\css3\src

也许我以错误的方式思考这个问题?

最佳答案

我不确定安装后您是否可以实际查看源文件。由于 Compass 是开源的,您可以在 Github 上查看所有内容:https://github.com/Compass/compass/tree/stable/core/stylesheets/compass

例如,这是来自 css3/border-radius 的 mixin:

@mixin border-corner-radius($vert, $horz, $radius: $default-border-radius) {
  @include with-each-prefix(border-radius, $border-radius-threshold) {
    @if $current-prefix == -moz {
      // Support for mozilla's syntax for specifying a corner
      @include prefix-prop("border-radius-#{$vert}#{$horz}", $radius);
    } @else {
      // Official syntax for everyone else
      @include prefix-prop("border-#{$vert}-#{$horz}-radius", $radius);
    }
  }
}

关于javascript - 在 Windows 中哪里可以找到 compass 的源文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26128480/

相关文章:

gruntjs - Grunt vs Gulp vs Yeoman vs CodeKit

javascript - 调用 jQuery ajax 成功回调之外的函数?

javascript - 如何基于 bool 属性有条件地在 ReactJS 中应用嵌套的 SCSS 类?

node.js - 单独的node-sass和Express中间件之间的性能差异

gruntjs - 咕噜声在 Vagrant 盒子上没有显示

javascript - 在 grunt 中声明多个文件

javascript - 函数定义中的 "...args"(三个点)是什么意思?

javascript - 将每个新行的开头与 JavaScript 正则表达式匹配

javascript - 多个 Ajax 请求(一个回调)

css - SCSS : use ampersand in pseudo class