JSFiddle - React, Tailwind, and code Playground
by jacobdubail
HTML
<!-- ----------------------
Recreating a marker with CSS only
Marker from: http://www.mozilla.org/en-US/firefox/central/
----------------------- -->
<a href="" class="arrow">+<span></span></a>
CSS
.arrow {
background: #E1EEF9;
border: 1px solid #97B4CE;
border-radius: 3px;
box-shadow: 0 -3px 3px #B6CFE9 inset;
color: #7795B3;
display: block;
font-size: 18px;
font-weight: bold;
height: 32px;
line-height: 32px;
position: relative;
text-align: center;
text-decoration: none;
width: 32px;
}
.arrow:before {
box-shadow: 0 -3px 3px #B6CFE9 inset;
content: "";
display: block;
height: 30px;
left: 1px;
position: absolute;
top: 1px;
width: 30px;
}
.arrow:after {
box-shadow:0 1px 6px rgba(255, 255, 255, 0.5) inset;
content: "";
display: block;
height: 30px;
left: 1px;
position: absolute;
top: 1px;
width: 30px;
}
.arrow span {
bottom: 1px;
clip: rect(21px, 27px, 40px, 6px);
content: "";
display: block;
height: 27px;
left: 0;
position: absolute;
width: 30px;
}
.arrow span:before {
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
background: #E1EEF9;
content: "";
display: block;
height: 30px;
left: 1px;
position: absolute;
top: -7px;
width: 30px;
z-index: 2;
}
.arrow span:after{
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
background: #E1EEF9;
border: 1px solid #97B4CE;
bottom: -7px;
box-shadow: -2px -2px 1px #B6CFE9 inset;
content: "";
display: block;
height: 30px;
left: 4px;
position: absolute;
width: 26px;
}