|
@@ -3,9 +3,36 @@
|
|
|
$aa:#ff0;
|
|
|
$box: 50px !default;
|
|
|
$box1:30px !global;
|
|
|
+@mixin part1 {
|
|
|
+ width: 300px;
|
|
|
+ height: 300px;
|
|
|
+ border: 1px solid #00f;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ color: #0f0;
|
|
|
+ font-size: 24px;
|
|
|
+}
|
|
|
+@mixin part2($aa) {
|
|
|
+ border-radius: $aa;
|
|
|
+}
|
|
|
+// 基类
|
|
|
+@mixin part3($bb:40px,$cc:plum) {
|
|
|
+ font-size: $bb;
|
|
|
+ background: $cc;
|
|
|
+}
|
|
|
+@mixin part4($aa...) {
|
|
|
+ box-shadow: $aa;
|
|
|
+}
|
|
|
+.vase1 {
|
|
|
+ cursor: pointer;//鼠标变小手
|
|
|
+}
|
|
|
+%vase2 {
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
.box {
|
|
|
- width: 200px;
|
|
|
- height: 200px;
|
|
|
+ width: 800px;
|
|
|
+ height: 800px;
|
|
|
background: #f00;
|
|
|
color: $aa;
|
|
|
$bb: #0f0;
|
|
@@ -22,6 +49,17 @@ $box1:30px !global;
|
|
|
&:hover {
|
|
|
color: #00f;
|
|
|
}
|
|
|
+ @include part1;
|
|
|
+ @include part2(20px);
|
|
|
+ @include part3;
|
|
|
+ @include part4(20px 15px 25px #0f0)
|
|
|
+ // box-shadow: 20px 15px 25px #ff0;
|
|
|
+ }
|
|
|
+ h3 {
|
|
|
+ // @extend .vase1;
|
|
|
+ &:hover {
|
|
|
+ @extend %vase2;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.main {
|