JSFiddle - React, Tailwind, and code Playground
by petroveg
HTML
<button type="button" class="button button1"><span class="button-text">Пользователям</span></button>
<button type="button" class="button button2"><span class="button-text">Пользователям</span></button>
CSS
.button {
position: relative;
height: 40px;
margin: 0;
padding: 0 30px;
border: 0;
outline: 0;
font-size: 18px;
line-height: 40px;
color: #fff;
background: none;
}
.button::-moz-focus-inner {
padding: 0;
border: 0
}
.button-text{
position: relative;
z-index: 1;
}
.button1:before,
.button1:after {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: #1c91c5;
background-image: -webkit-linear-gradient(top, #0ea3d1, #1c91c5 50%, #0573b6);
background-image: -moz-linear-gradient(top, #0ea3d1, #1c91c5 50%, #0573b6);
background-image: -ms-linear-gradient(top, #0ea3d1, #1c91c5 50%, #0573b6);
background-image: linear-gradient(top, #0ea3d1, #1c91c5 50%, #0573b6);
}
.button1:before {
right: 50%;
border-radius: 0 0 0 5px;
transform: skewX(15deg);
transform-origin: 0 0;
}
.button1:after {
left: 50%;
border-radius: 0 0 5px 0;
transform: skewX(-15deg);
transform-origin: 100% 0;
}
.button2 {
perspective: 300px;
}
.button2:before {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
border-radius: 0 0 6px 6px;
transform: rotateX(-30deg) scale(1, 1.2);
transform-origin: 0 0;
background-color: #1c91c5;
background-image: -webkit-linear-gradient(top, #0ea3d1, #1c91c5 50%, #0573b6);
background-image: -moz-linear-gradient(top, #0ea3d1, #1c91c5 50%, #0573b6);
background-image: -ms-linear-gradient(top, #0ea3d1, #1c91c5 50%, #0573b6);
background-image: linear-gradient(top, #0ea3d1, #1c91c5 50%, #0573b6);
}