mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
49 lines
1.3 KiB
HTML
49 lines
1.3 KiB
HTML
|
|
<button role="button" class="button-name">Button-name</button>
|
|
<style>
|
|
/* From Uiverse.io by Custyyyy - Tags: skeuomorphism, button, realistic */
|
|
.button-name {
|
|
align-items: center;
|
|
appearance: none;
|
|
background-color: #FCFCFD;
|
|
border-radius: 4px;
|
|
border-width: 0;
|
|
box-shadow: rgba(45, 35, 66, 0.2) 0 2px 4px,rgba(45, 35, 66, 0.15) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
|
|
box-sizing: border-box;
|
|
color: #36395A;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
font-family: "JetBrains Mono",monospace;
|
|
height: 48px;
|
|
justify-content: center;
|
|
line-height: 1;
|
|
list-style: none;
|
|
overflow: hidden;
|
|
padding-left: 16px;
|
|
padding-right: 16px;
|
|
position: relative;
|
|
text-align: left;
|
|
text-decoration: none;
|
|
transition: box-shadow .15s,transform .15s;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
touch-action: manipulation;
|
|
white-space: nowrap;
|
|
will-change: box-shadow,transform;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.button-name:focus {
|
|
box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
|
|
}
|
|
|
|
.button-name:hover {
|
|
box-shadow: rgba(45, 35, 66, 0.3) 0 4px 8px, rgba(45, 35, 66, 0.2) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.button-name:active {
|
|
box-shadow: #D6D6E7 0 3px 7px inset;
|
|
transform: translateY(2px);
|
|
}
|
|
</style>
|