mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
66 lines
1.2 KiB
HTML
66 lines
1.2 KiB
HTML
<button class="button">
|
|
Button
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by KhaledMatalkah - Tags: button, hover, box-shadow */
|
|
.button {
|
|
display: inline-block;
|
|
padding: 10px 20px;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
color: #ffffff;
|
|
background-color: #000000;
|
|
border: none;
|
|
border-radius: 50px;
|
|
transition: all 0.3s ease-in-out;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.button:hover {
|
|
background-color: #111111;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.button:focus {
|
|
outline: none;
|
|
box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.3);
|
|
}
|
|
|
|
.button:active {
|
|
transform: translateY(1px);
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.button:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.button::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: -5px;
|
|
left: -5px;
|
|
right: -5px;
|
|
bottom: -5px;
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
border-radius: 50px;
|
|
z-index: -1;
|
|
transition: all 0.3s ease-in-out;
|
|
}
|
|
|
|
.button:hover::before {
|
|
top: -8px;
|
|
left: -8px;
|
|
right: -8px;
|
|
bottom: -8px;
|
|
}
|
|
|
|
|
|
</style>
|