<div>
<button class="noselect red">Darkness</button>
<button class="noselect green">Darkness</button>
</div>
<div>
<button class="noselect blue">Darkness</button>
<button class="noselect purple">Darkness</button>
</div>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
overflow: hidden;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: #333;
}
.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: #333;
margin: 10px;
border: none;
border-radius: 10px;
box-shadow: -5px -5px 15px #444, 5px 5px 15px #222, inset 5px 5px 10px #444, inset -5px -5px 10px #222;
color: #222;
font-size: 16px;
}
button:hover {
box-shadow: -5px -5px 15px #444, 5px 5px 15px #222, inset 5px 5px 10px #222, inset -5px -5px 10px #444;
font-size: 15px;
transition: 500ms;
}
button:focus {
outline: none;
}
.red:hover {
color: #f07171;
text-shadow: 0px 0px 10px #f07171;
}
.green:hover {
color: #93f071;
text-shadow: 0px 0px 10px #93f071;
}
.blue:hover {
color: #71b7f0;
text-shadow: 0px 0px 10px #71b7f0;
}
.purple:hover {
color: #b971f0;
text-shadow: 0px 0px 10px #b971f0;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.