JSFiddle - React, Tailwind, and code Playground

by AJIEKCEU

HTML

<div class="button">
    <span class="title">подробнее</span>
    <div class="center">
      <div class="center-top"></div>
      <div class="center-bottom"></div>
    </div>
    <div class="left-side"></div>
    <div class="right-side"></div>
  </div>

CSS

.button {
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: relative;
  margin: 0;
  padding: 6px 56px;
  height: 20px;
  cursor: pointer;
}
.button:hover .title {
  background: white;
}
.button:hover .left-side,
.button:hover .right-side {
  background: white;
  border-color: white;
}
.button:hover .center .center-top:before,
.button:hover .center .center-top:after {
  background: white;
  border-top-color: white;
}
.button:hover .center .center-bottom:before,
.button:hover .center .center-bottom:after {
  background: white;
  border-top-color: white;
}
.button .title {
  font-family: "Stolzl", Avenir, Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 20px;
  background: transparent;
  color: black;
  z-index: 1;
  -webkit-transition: all 0.05s ease-in-out;
  -o-transition: all 0.05s ease-in-out;
  transition: all 0.05s ease-in-out;
}
.button .left-side,
.button .right-side {
  position: absolute;
  background: transparent;
  height: 100%;
  width: calc((100% / 2) - 10px);
  z-index: -1;
  top: -1px;
  border: black solid 1px;
  -webkit-transition: all 0.05s ease-in-out;
  -o-transition: all 0.05s ease-in-out;
  transition: all 0.05s ease-in-out;
}
.button .left-side {
  left: -1px;
  border-right: 0;
}
.button .right-side {
  right: -1px;
  border-left: 0;
}
.button .center {
  position: absolute;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 20px;
  height: calc(100% + 2px);
}
.button .center .center-top {
  position: absolute;
  overflow: hidden;
  height: 15px;
  width: 100%;
  overflow: hidden;
  top: 0;
  left: 0;
}
.button .center .center-top:before,
.button .center .center-top:after {
  content: "";
 ...