mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
43 lines
1.2 KiB
HTML
43 lines
1.2 KiB
HTML
<button class="btn-donate">
|
|
Donate now
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by Allyhere - Tags: button, css effect, hoverme */
|
|
.btn-donate {
|
|
--clr-font-main: hsla(0 0% 20% / 100);
|
|
--btn-bg-1: hsla(194 100% 69% / 1);
|
|
--btn-bg-2: hsla(217 100% 56% / 1);
|
|
--btn-bg-color: hsla(360 100% 100% / 1);
|
|
--radii: 0.5em;
|
|
cursor: pointer;
|
|
padding: 0.9em 1.4em;
|
|
min-width: 120px;
|
|
min-height: 44px;
|
|
font-size: var(--size, 1rem);
|
|
font-family: "Segoe UI", system-ui, sans-serif;
|
|
font-weight: 500;
|
|
transition: 0.8s;
|
|
background-size: 280% auto;
|
|
background-image: linear-gradient(325deg, var(--btn-bg-2) 0%, var(--btn-bg-1) 55%, var(--btn-bg-2) 90%);
|
|
border: none;
|
|
border-radius: var(--radii);
|
|
color: var(--btn-bg-color);
|
|
box-shadow: 0px 0px 20px rgba(71, 184, 255, 0.5), 0px 5px 5px -1px rgba(58, 125, 233, 0.25), inset 4px 4px 8px rgba(175, 230, 255, 0.5), inset -4px -4px 8px rgba(19, 95, 216, 0.35);
|
|
}
|
|
|
|
.btn-donate:hover {
|
|
background-position: right top;
|
|
}
|
|
|
|
.btn-donate:is(:focus, :focus-visible, :active) {
|
|
outline: none;
|
|
box-shadow: 0 0 0 3px var(--btn-bg-color), 0 0 0 6px var(--btn-bg-2);
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.btn-donate {
|
|
transition: linear;
|
|
}
|
|
}
|
|
|
|
</style>
|