mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
51 lines
1.4 KiB
HTML
51 lines
1.4 KiB
HTML
<button class="button" role="button">Happy Coding!</button>
|
|
|
|
<style>
|
|
/* From Uiverse.io by adamgiebl - Tags: blue, button, modern */
|
|
.button {
|
|
align-items: center;
|
|
appearance: none;
|
|
background-color: #EEF2FF;
|
|
border-radius: 8px;
|
|
border-width: 2px;
|
|
border-color: #536DFE;
|
|
box-shadow: rgba(83, 109, 254, 0.2) 0 2px 4px, rgba(83, 109, 254, 0.15) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
|
|
box-sizing: border-box;
|
|
color: #536DFE;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
font-family: "JetBrains Mono", monospace;
|
|
height: 56px;
|
|
justify-content: center;
|
|
line-height: 1;
|
|
list-style: none;
|
|
overflow: hidden;
|
|
padding-left: 24px;
|
|
padding-right: 24px;
|
|
position: relative;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
transition: box-shadow 0.15s, transform 0.15s;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
touch-action: manipulation;
|
|
white-space: nowrap;
|
|
will-change: box-shadow, transform;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.button:focus {
|
|
outline: none;
|
|
box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(83, 109, 254, 0.4) 0 2px 4px, rgba(83, 109, 254, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
|
|
}
|
|
|
|
.button:hover {
|
|
box-shadow: rgba(83, 109, 254, 0.3) 0 4px 8px, rgba(83, 109, 254, 0.2) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.button:active {
|
|
box-shadow: #D6D6E7 0 3px 7px inset;
|
|
transform: translateY(2px);
|
|
}
|
|
</style>
|