可用于给图标添加“禁止”的意思
如
// sass语言
@mixin icon-ban($color: #00d5ff, $width: 18px, $height: 18px) {
&::after {
content: '';
width: $width;
position: absolute;
right: 0px;
height: $height;
left: 0px;
top: 0px;
bottom: 0px;
margin: auto;
background: linear-gradient(45deg, transparent 50.5%, $color 53.5%, $color 56.5%, transparent 55.5%);
}
}
// 使用方式
.icon-ban-class {
@include icon-ban;
// @include icon-ban('#fff', '18px', '18px');
}