|
@@ -5,6 +5,20 @@
|
|
|
$a: #f00;
|
|
$a: #f00;
|
|
|
$b: 50;
|
|
$b: 50;
|
|
|
$c: #ff0 !default;
|
|
$c: #ff0 !default;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+// 占位符
|
|
|
|
|
+// %placeholder => %
|
|
|
|
|
+%www {
|
|
|
|
|
+ color: aquamarine;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 基类
|
|
|
|
|
+.windy {
|
|
|
|
|
+ color: #ff0;
|
|
|
|
|
+ background-color: #f00;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
@mixin sun {
|
|
@mixin sun {
|
|
|
width: 200px;
|
|
width: 200px;
|
|
|
height: 300px;
|
|
height: 300px;
|
|
@@ -29,14 +43,26 @@ $c: #ff0 !default;
|
|
|
// box-shadow: 30px 20px 4px plum;
|
|
// box-shadow: 30px 20px 4px plum;
|
|
|
// }
|
|
// }
|
|
|
}
|
|
}
|
|
|
|
|
+@function xxx($a) {
|
|
|
|
|
+ @return 200 * $a;
|
|
|
|
|
+}
|
|
|
h1 {
|
|
h1 {
|
|
|
|
|
+ width: #{xxx(2)}px;
|
|
|
|
|
+ // height: #{xxx(3)}px;
|
|
|
|
|
+ // height: 200px - 10px;
|
|
|
|
|
+ // height: 200px * 4;
|
|
|
|
|
+ height: (200px / 2);
|
|
|
|
|
+ // height: 200px + 200px;
|
|
|
// color: $a !important;
|
|
// color: $a !important;
|
|
|
font-size: $b + px;
|
|
font-size: $b + px;
|
|
|
- color: $vase;
|
|
|
|
|
- @include sun;
|
|
|
|
|
- @include rain(30px);
|
|
|
|
|
- @include tea;
|
|
|
|
|
- @include box1(30px 20px 4px plum)
|
|
|
|
|
|
|
+ background: #ff0 + #000;
|
|
|
|
|
+ // @extend .windy;
|
|
|
|
|
+ // @extend %www;
|
|
|
|
|
+ // color: $vase;
|
|
|
|
|
+ // @include sun;
|
|
|
|
|
+ // @include rain(30px);
|
|
|
|
|
+ // @include tea;
|
|
|
|
|
+ // @include box1(30px 20px 4px plum)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// ul {
|
|
// ul {
|
|
@@ -63,6 +89,9 @@ ul {
|
|
|
height: 400px;
|
|
height: 400px;
|
|
|
background: #ff0;
|
|
background: #ff0;
|
|
|
list-style: none;
|
|
list-style: none;
|
|
|
|
|
+
|
|
|
|
|
+ @extend .windy;
|
|
|
|
|
+ @include sun;
|
|
|
li {
|
|
li {
|
|
|
$d: #00f !global;
|
|
$d: #00f !global;
|
|
|
padding: 10px;
|
|
padding: 10px;
|