@ -200,73 +200,77 @@
.triangle-top() {
position: absolute;
width: 16px;
height: 6 px;
height: 9 px;
//虽然position:absolute使得:before的display属性为block,但是其仍然受到祖先text-align:center的影响,这边重置掉
text-align: left;
&:before {
position: absolute;
width: 6 px;
height: 6 px;
width: 9 px;
height: 9 px;
margin-left: 4px;
margin-top: 2 px;
margin-top: 5 px;
content: "";
transform: rotate(-135deg);
.box-shadow(3px 3px 10px 0, rgba(0, 0, 0, 0.06));
}
}
.triangle-bottom() {
position: absolute;
width: 16px;
height: 6 px;
height: 9 px;
//虽然position:absolute使得:before的display属性为block,但是其仍然受到祖先text-align:center的影响,这边重置掉
text-align: left;
&:before {
position: absolute;
width: 6 px;
height: 6 px;
width: 9 px;
height: 9 px;
margin-left: 4px;
margin-top: -3 px;
margin-top: -5 px;
content: "";
transform: rotate(45deg);
.box-shadow(3px 3px 10px 0, rgba(0, 0, 0, 0.07));
}
}
.triangle-left() {
position: absolute;
width: 6 px;
width: 9 px;
height: 16px;
//虽然position:absolute使得:before的display属性为block,但是其仍然受到祖先text-align:center的影响,这边重置掉
text-align: left;
&:before {
position: absolute;
width: 6 px;
height: 6 px;
margin-left: 2 px;
margin-top: 3 px;
width: 9 px;
height: 9 px;
margin-left: 5 px;
margin-top: 4 px;
content: "";
transform: rotate(135deg);
.box-shadow(3px 3px 10px 0, rgba(0, 0, 0, 0.06));
}
}
.triangle-right() {
position: absolute;
width: 6 px;
width: 9 px;
height: 16px;
//虽然position:absolute使得:before的display属性为block,但是其仍然受到祖先text-align:center的影响,这边重置掉
text-align: left;
&:before {
position: absolute;
width: 6 px;
height: 6 px;
margin-left: -3 px;
width: 10 px;
height: 10 px;
margin-left: -5 px;
margin-top: 4px;
content: "";
transform: rotate(-45deg);
.box-shadow(3px 3px 10px 0, rgba(0, 0, 0, 0.07));
}
}