mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
48 lines
900 B
HTML
48 lines
900 B
HTML
|
|
<button class="button">
|
|
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12h15m0 0l-6.75-6.75M19.5 12l-6.75 6.75"></path>
|
|
</svg>
|
|
|
|
|
|
<div class="text">
|
|
Button
|
|
</div>
|
|
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by reshades - Tags: button, clean, hover button */
|
|
.button {
|
|
background-color: #ffffff00;
|
|
color: #fff;
|
|
width: 8.5em;
|
|
height: 2.9em;
|
|
border: #3654ff 0.2em solid;
|
|
border-radius: 11px;
|
|
text-align: right;
|
|
transition: all 0.6s ease;
|
|
}
|
|
|
|
.button:hover {
|
|
background-color: #3654ff;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.button svg {
|
|
width: 1.6em;
|
|
margin: -0.2em 0.8em 1em;
|
|
position: absolute;
|
|
display: flex;
|
|
transition: all 0.6s ease;
|
|
}
|
|
|
|
.button:hover svg {
|
|
transform: translateX(5px);
|
|
}
|
|
|
|
.text {
|
|
margin: 0 1.5em
|
|
}
|
|
</style>
|