JSFiddle - React, Tailwind, and code Playground
by cucocreative
HTML
<div>
<ul class="vertical tabs" id="core-tabs">
<li class="tabs-title" >
<a href="#" class="button oversized">1 Ultricies Fusce Quam</a>
</li>
<li class="tabs-title" >
<a href="#" class="button oversized">2 Ultricies Fusce Quam Venenatis Dapibus</a>
</li>
<li class="tabs-title" >
<a href="#" class="button oversized">3 Ultricies Fusce</a>
</li>
<li class="tabs-title" >
<a href="#" class="button oversized">4 Ultricies Fusce Quam Venenatis Dapibus Fusce Quam</a>
</li>
</ul>
</div>
CSS
div {
width: 300px;
}
ul {
color: #0a0a0a;
box-sizing: inherit;
overflow-wrap: break-word;
padding: 0;
list-style-position: outside;
line-height: 1.6;
font-weight: 400;
margin: 0;
background: #fefefe;
list-style-type: none;
border: 0;
}
li {
color: #0a0a0a;
overflow-wrap: break-word;
list-style-position: outside;
line-height: 1.6;
list-style-type: none;
box-sizing: inherit;
margin: 0;
padding: 0;
font-weight: 400;
display: block;
float: none;
margin-bottom: 25px !important;
}
.button.oversized {
overflow-wrap: break-word;
text-decoration: none;
pointer-events: all;
cursor: pointer;
line-height: 1;
display: flex;
color: #282830;
font-size: 1.2rem;
text-align: left;
padding: 0;
}
.button.oversized:after {
content: '>';
top: 0;
background-size: 13px 13px;
height: 13px;
width: 13px;
margin-left: 0.65rem;
display: block;
}
.button.oversized:hover:after {
margin-left: 1rem;
}