<div class="button"></div>
<div class="button button__disable"></div>
@import 'https://fonts.googleapis.com/css?family=Share+Tech+Mono';
@import 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css';
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100vw;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1376484/jess-harding-lqT6NAmTaiY-unsplash.jpg'),radial-gradient(#28a3dd, #0d7751);
background-size: cover;
background-position: center;
font-family: "Share Tech Mono", monospace;
font-size: 2rem;
background-blend-mode: multiply,screen, overlay;
}
.button {
display: inline-flex;
position: relative;
align-items: center;
justify-content: center;
border-radius: 10rem;
box-shadow: inset 0 3px 3px 0 #ff789a;
background-image: linear-gradient(180deg, #fd1e54 0%, #e80e3c 100%);
width: 350px;
height: 80px;
color: #ffece2;
font-size: 40px;
font-weight: 500;
margin: 15px;
}
.button::after {
position: absolute;
top: 0;
left: 0;
z-index: -1;
border-radius: 10rem;
background-image: linear-gradient(180deg, #ffbbcb 29%, #e5e5e5 100%);
width: 350px;
height: 94px;
content: "";
}
.button.button__disable {
box-shadow: inset 0 3px 3px 0 #cdcdcd;
background-image: linear-gradient(180deg, #adadad 0%, #939393 100%);
}
.button.button__disable::after {
background-image: linear-gradient(180deg, #eaeaea 29%, #e5e5e5 100%);
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.