galaxy/Buttons/Shoh2008_clever-bullfrog-79.html

39 lines
897 B
HTML

<button>
Button
</button>
<style>
/* From Uiverse.io by Shoh2008 - Tags: button */
button {
--b: 3px;
/* border thickness */
--s: .45em;
/* size of the corner */
--color: #e2e2e2;
font-weight: bold;
padding: calc(.5em + var(--s)) calc(.9em + var(--s));
color: var(--color);
--_p: var(--s);
background: conic-gradient(from 90deg at var(--b) var(--b),#0000 90deg,var(--color) 0)
var(--_p) var(--_p)/calc(100% - var(--b) - 2*var(--_p)) calc(100% - var(--b) - 2*var(--_p));
transition: .3s linear, color 0s, background-color 0s;
outline: var(--b) solid #0000;
outline-offset: .6em;
font-size: 16px;
border: 0;
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
}
button:hover,
button:focus-visible {
--_p: 0px;
outline-color: #ffffff;
outline-offset: .05em;
}
button:active {
background: #ffffff;
color: #000000;
}
</style>