[英]Where can I find compass's source files in Windows?
I want to be able to use a very few select the compass
mixin's but don't want to have to use compass
like this, ie use compass at all: 我希望能够使用很少的选择
compass
混音,但又不想使用这样的compass
,即完全使用罗盘:
@import "compass";
@import "compass/reset";
@import "compass/css3";
So, are the mixin's installed somewhere on my computer? 那么,mixin是否安装在我的计算机上? I have look in places similar to and including this path:
我在与以下路径相似的地方进行了查找:
C:\Ruby200-x64\lib\ruby\gems\2.0.0\gems\compass-0.12.2\examples\css3\src
Maybe I am thinking about this in the incorrect way? 也许我在以错误的方式考虑这个问题?
I'm not sure that you can actually view the source files once the are installed. 我不确定安装后实际上是否可以查看源文件。 Since Compass is open source, you can view everything on Github: https://github.com/Compass/compass/tree/stable/core/stylesheets/compass
由于Compass是开源的,因此您可以在Github上查看所有内容: https : //github.com/Compass/compass/tree/stable/core/stylesheets/compass
For example, here is a mixin from css3/border-radius
: 例如,这是来自
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.