繁体   English   中英

在Windows中哪里可以找到罗盘的源文件?

[英]Where can I find compass's source files in Windows?

我希望能够使用很少的选择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);
    }
  }
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM