JSFiddle - React, Tailwind, and code Playground
by Felis Catus
HTML
<div class="prettyentry">
<p>
a menu item
</p>
</div>
<div class="prettyentry">
<p>
a second menu item
</p>
</div>
SCSS
body {
background: #fff;
padding-right: 50%;
}
.prettyentry {
$tail: 120px;
position: relative;
display: inline-block;
border-width: 0 0 2px 0;
border-color: transparent #00b1cf #00b1cf transparent;
border-style: solid;
float: right;
clear: both;
margin-bottom: 20px;
&:before, &:after {
border-color: #00b1cf transparent transparent transparent;
border-width: 5px 5px 0 5px;
border-style: solid;
position: absolute;
right: 0;
bottom: -6px;
width: 15%;
height: 0;
content: '';
}
&:after {
left: $tail/1.4;
width: 25%;
box-shadow: -25px -1px 0 -1px #00b1cf, -26px -2px 0px -1px #00b1cf, -28px -2px 0px -2px #00b1cf;
}
p {
margin: 0 0 3px $tail;
font-family: sans-serif;
font-size: 20px;
color: #00b1cf;
border-width: 3px 4px 6px 5px;
border-color: inherit;
border-style: solid;
display: inline-block;
padding: 0 5px 3px 30px;
&:before {
position: absolute;
right: 3px;
bottom: 8px;
border-width: 3px;
border-style: solid;
border-color: inherit;
width: 0;
height: 0;
content: '';
}
&:after {
position: absolute;
width: 0;
height: 0;
left: -5px;
bottom: -5px;
border: 5px solid #00b1cf;
border-radius: 5px;
content: '';
display: block;
box-shadow: $tail/1.4+1.5px 2px 0 -3px #00b1cf;
}
}
}