JSFiddle - React, Tailwind, and code Playground
by Vaniljs
HTML
<div class="wrapper">
<div><span class="content">ПервыйПервыйПервый</span><span class="del"></span></div>
<div><span class="content">ВторойВторойВторой</span><span class="del"></span></div>
<div><span class="content">Третий</span><span class="del"></span></div>
<div><span class="content">ЧетвертыйЧетвертый</span><span class="del"></span></div>
</div>
CSS
.wrapper {
display: block;
border: 1px solid;
max-width: 730px;
width: 100%;
height: 450px;
//overflow-x: hidden;
}
.wrapper div {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
float: left;
color: #050038;
font-size: 25px;
background-color: rgba(102,153,255,.2);
padding: 0 0 0 10px;
margin: 0 10px 5px 0;
border-radius: 100px;
line-height: 1;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
max-width: 100%;
}
.del {
position: relative;
cursor: pointer;
display: inline-block;
width: 25px;
height: 25px;
margin-left: 5px;
border-radius: 50%;
-webkit-transition: all .3s;
transition: all .3s;
background-color: rgba(28,36,64,.2);
}
.del::after {
display: block;
content: "";
position: absolute;
right: 5px;
top: 0;
bottom: 0;
margin: auto;
width: 15px;
height: 3px;
background-color: #050038;
transform: rotate(45deg);
}
.del::before {
display: block;
content: "";
position: absolute;
right: 5px;
top: 0;
bottom: 0;
margin: auto;
width: 15px;
height: 3px;
background-color: #050038;
transform: rotate(135deg);
}
.content {
display: inline-block;
max-width: calc(100% - 0px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}