三角形
.triangle(@width: 40px, @height: 40px, @deg: 45deg, @color: @primary-color){
width: 40px; // 三角形边宽
height: 40px; // 三角形边宽 等边三角形width与height相等
background: linear-gradient(45deg, transparent, transparent 50%, #000000 50%, #000000, 100%); // 旋转角度,顺时针(45deg,135deg,225deg),颜色
}
对号✓
.right-icon {
display: inline-block;
margin: 0 9px; // 通过间距调整位置
width: 7px; // 第一笔画长度
height: 14px; // 第二笔画长度
transform: rotate(45deg); // 旋转角度,顺时针
border-width: 0 2px 2px 0; // 线条的粗细
border-style: solid;
border-color: #000000; // 线条的颜色
}