JSFiddle - React, Tailwind, and code Playground
by SebAshton
HTML
<a href="#" data-dir="previous" class="iconstack-container">
<span class="iconstack-circle">
O
<span></span>
<span class="arrow"><</span></span>
</a>
SCSS
@font-face {
font-family: 'icons';
font-weight: normal;
src: url(//s3-eu-west-1.amazonaws.com/forevermark-staging-assets/assets/icofont.eot);
src: url(//s3-eu-west-1.amazonaws.com/forevermark-staging-assets/assets/icofont.eot?#iefix) format('embedded-opentype'),
url(//s3-eu-west-1.amazonaws.com/forevermark-staging-assets/assets/icofont.woff) format('woff'),
url(//s3-eu-west-1.amazonaws.com/forevermark-staging-assets/assets/icofont.ttf) format('truetype'),
url(//s3-eu-west-1.amazonaws.com/forevermark-staging-assets/assets/icofont.svg#icons) format('svg');
}
.iconstack-container {
display: inline-block;
width: 52px;
height: 52px;
position: relative;
}
.iconstack-circle,
.iconstack-circle span {
display: block
color: #fff;
cursor: pointer;
height: 52px;
font-family: 'icons';
font-size: 52px;
position: absolute;
margin: -26px 0 0 -26px;
text-align: center;
text-decoration: none;
width: 52px;
left: 50%;
top: 50%;
}
.iconstack-circle span {
color: red;
z-index: 1;
& + span {
font-size: 20px;
z-index: 2;
height: 22px;
width: auto;
margin: -8px 0 0 -6px;
}
}