mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
50 lines
897 B
HTML
50 lines
897 B
HTML
<button> Button
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by adamgiebl - Tags: button */
|
|
button {
|
|
font-size: 18px;
|
|
letter-spacing: 2px;
|
|
text-transform: uppercase;
|
|
display: inline-block;
|
|
text-align: center;
|
|
font-weight: bold;
|
|
padding: 0.7em 2em;
|
|
border: 3px solid #FF0072;
|
|
border-radius: 2px;
|
|
position: relative;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.1);
|
|
color: #FF0072;
|
|
text-decoration: none;
|
|
transition: 0.3s ease all;
|
|
z-index: 1;
|
|
}
|
|
|
|
button:before {
|
|
transition: 0.5s all ease;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 50%;
|
|
right: 50%;
|
|
bottom: 0;
|
|
opacity: 0;
|
|
content: '';
|
|
background-color: #FF0072;
|
|
z-index: -1;
|
|
}
|
|
|
|
button:hover, button:focus {
|
|
color: white;
|
|
}
|
|
|
|
button:hover:before, button:focus:before {
|
|
transition: 0.5s all ease;
|
|
left: 0;
|
|
right: 0;
|
|
opacity: 1;
|
|
}
|
|
|
|
button:active {
|
|
transform: scale(0.9);
|
|
}
|
|
</style>
|