|
@@ -2,6 +2,31 @@ $aa: #0f0;
|
|
|
// var aa =
|
|
|
$box1: 3px !default;
|
|
|
// @import './reset.scss';
|
|
|
+@mixin flower($xx,$yy) {
|
|
|
+ width: 300px;
|
|
|
+ height: 300px;
|
|
|
+ color: $xx;
|
|
|
+ background-color: $yy;
|
|
|
+ border: 3px solid plum;
|
|
|
+}
|
|
|
+@mixin vase($cc...) {
|
|
|
+ box-shadow: $cc;
|
|
|
+}
|
|
|
+@mixin water($dd:10px) {
|
|
|
+ font-size: $dd
|
|
|
+}
|
|
|
+.tea {
|
|
|
+ color: aqua;
|
|
|
+ // font-style: italic;
|
|
|
+ // font-weight: lighter;
|
|
|
+ font: {
|
|
|
+ weight: lighter;
|
|
|
+ style: italic;
|
|
|
+ }
|
|
|
+}
|
|
|
+%sun {
|
|
|
+ color: #ff0
|
|
|
+}
|
|
|
@import url('./reset.css');
|
|
|
* {
|
|
|
margin: 0;
|
|
@@ -10,7 +35,7 @@ $box1: 3px !default;
|
|
|
text-decoration: none;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 这是标题的标签
|
|
|
/*
|
|
|
今天天气真好
|
|
@@ -18,6 +43,7 @@ $box1: 3px !default;
|
|
|
h1 {
|
|
|
color: #f00;
|
|
|
$box2: 10px !global;
|
|
|
+ @extend .tea;
|
|
|
}
|
|
|
|
|
|
ul {
|
|
@@ -36,5 +62,13 @@ ul {
|
|
|
&:nth-child(2):hover {
|
|
|
color: #f00;
|
|
|
}
|
|
|
+ &:nth-child(3) {
|
|
|
+ @include flower(blue,yellow);
|
|
|
+ @include vase(30px 20px 10px #f00);
|
|
|
+ @include water();
|
|
|
+ }
|
|
|
+ &:last-child {
|
|
|
+ @extend %sun;
|
|
|
+ }
|
|
|
}
|
|
|
}
|