<div class="cp_arrows">
<div><i class="cp_arrow_left"></i>Arrow:left</div>
<div><i class="cp_arrow_right"></i>Arrow:right</div>
<div><i class="cp_arrow_up"></i>Arrow:up</div>
<div><i class="cp_arrow_down"></i>Arrow:down</div>
<div><i class="cp_arrow_left_up"></i>Arrow:leftup</div>
<div><i class="cp_arrow_left_down"></i>Arrow:leftdown</div>
<div><i class="cp_arrow_right_up"></i>Arrow:rightup</div>
<div><i class="cp_arrow_right_down"></i>Arrow:rightdown</div>
</div>
.cp_arrows [class*='cp_arrow'] {
position: relative;
display: inline-block;
vertical-align: middle;
}
.cp_arrows [class*='cp_arrow']:after,
.cp_arrows [class*='cp_arrow']:before {
content: '';
}
.cp_arrows [class*='cp_arrow'] {/*三角形の設定*/
margin: 0.8em;
border-width: 0 12px 12px 0;
border-style: solid;
border-color: transparent #673AB7 transparent transparent;
}
.cp_arrows [class*='cp_arrow']:before {/*矢印の棒の設定*/
position: absolute;
top: 5px;
left: -2px;
width: 12px;
height: 6px;
background: #673AB7;
transform: rotate(-45deg);
}
/*それぞれの角度*/
.cp_arrows .cp_arrow_left {
transform: rotate(-135deg);
}
.cp_arrows .cp_arrow_right {
transform: rotate(45deg);
}
.cp_arrows .cp_arrow_up {
transform: rotate(-45deg);
}
.cp_arrows .cp_arrow_down {
transform: rotate(135deg);
}
.cp_arrows .cp_arrow_left_up {
transform: rotate(-90deg);
}
.cp_arrows .cp_arrow_left_down {
transform: rotate(180deg);
}
.cp_arrows .cp_arrow_right_up {
transform: rotate(0deg);
}
.cp_arrows .cp_arrow_right_down {
transform: rotate(90deg);
}