console
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@600&display=swap" rel="stylesheet">
<button class="noselect"><div>Boxed</div></button>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
background-color: #fff000;
background-image: linear-gradient(315deg, #fff000 0%, #ed008c 74%);
}
.noselect {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
button {
width: 150px;
height: 50px;
cursor: pointer;
background: black;
border: none;
display: flex;
align-items: center;
justify-content: center;
border-radius: 5px 0 8px 5px;
box-shadow: -8px 8px 5px rgba(0,0,0,0.5);
transition: 500ms;
font-family: 'Orbitron', sans-serif;
font-size: 16px;
}
button div {
width: 142px;
height: 42px;
background: white;
display: flex;
align-items: center;
justify-content: center;
}
button:before {
height: 42px;
width: 5px;
border: 4px solid black;
background: #ddd;
content: '';
position: absolute;
transform: skewY(-30deg) translateX(-78px) translateY(-42px);
}
button:after {
width: 135px;
height: 3px;
border: 4px solid black;
background: #bbb;
content: '';
position: absolute;
transform: skewX(-55deg) translateY(26px) translateX(32px)
}
button:focus {
outline: none;
}
button:hover {
transform: translateX(5px) translateY(-5px);
box-shadow: -15px 15px 5px rgba(0,0,0,0.5);
}