mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
54 lines
1.4 KiB
HTML
54 lines
1.4 KiB
HTML
<button>
|
|
Button
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by Shoh2008 - Tags: skeuomorphism, button */
|
|
button {
|
|
background-color: #0078d0;
|
|
border: 0;
|
|
border-radius: 56px;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
font-family: system-ui,-apple-system,system-ui,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",sans-serif;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
outline: 0;
|
|
padding: 16px 32px;
|
|
position: relative;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
-webkit-transition: all .3s;
|
|
transition: all .3s;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
-ms-touch-action: manipulation;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
button:before {
|
|
background-color: initial;
|
|
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), to(rgba(255, 255, 255, 0)));
|
|
background-image: linear-gradient(#fff 0, rgba(255, 255, 255, 0) 100%);
|
|
border-radius: 125px;
|
|
content: "";
|
|
height: 50%;
|
|
left: 4%;
|
|
opacity: .5;
|
|
position: absolute;
|
|
top: 0;
|
|
-webkit-transition: all .3s;
|
|
transition: all .3s;
|
|
width: 92%;
|
|
}
|
|
|
|
button:hover {
|
|
-webkit-box-shadow: rgba(255, 255, 255, .2) 0 3px 15px inset, rgba(0, 0, 0, .1) 0 3px 5px, rgba(0, 0, 0, .1) 0 10px 13px;
|
|
box-shadow: rgba(255, 255, 255, .2) 0 3px 15px inset, rgba(0, 0, 0, .1) 0 3px 5px, rgba(0, 0, 0, .1) 0 10px 13px;
|
|
-webkit-transform: scale(1.05);
|
|
-ms-transform: scale(1.05);
|
|
transform: scale(1.05);
|
|
}
|
|
</style>
|