vendor/leafo/scssphp/tests/inputs/content.scss
(开头部分) 885B这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@mixin apply-to-ie6-only {
* html {
@content;
}
}
@include apply-to-ie6-only {
#logo {
background-image: url(/logo.gif);
}
}
$color: white;
@mixin colors($color: blue) {
background-color: $color;
@content;
border-color: $color;
}
.colors {
@include colors { color: $color; }
}
@mixin iphone {
@media only screen and (max-width: 480px) {
@content;
}
}
@include iphone {
body { color: red }
}
#sidebar {
$sidebar-width: 300px;
width: $sidebar-width;
@include iphone {
width: $sidebar-width / 3;
}
}
@mixin respond-to($width) {
@media only screen and (min-width: $width) { @content; }
}
@include respond-to(40em) {
@for $i from 1 through 2 {
.grid-#{$i} { width: 100%; }
}
}
@include respond-to(40em) {
$i: 1;
@while $i <= 2 {
.grid-#{$i} { width: 100%; }
$i: $i + 1;
}
后面还有 1 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
