2022-04-15 14:24:30 +00:00
|
|
|
<template>
|
2022-04-30 08:11:01 +00:00
|
|
|
<button type="button">
|
2022-04-15 14:24:30 +00:00
|
|
|
<slot>Click me</slot>
|
|
|
|
</button>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
button {
|
|
|
|
background: var(--color-blue);
|
|
|
|
color: var(--color-text-primary);
|
|
|
|
font-size: 1rem;
|
|
|
|
padding: .6rem 1rem;
|
|
|
|
cursor: pointer;
|
2022-07-15 07:23:55 +00:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: .3rem;
|
2022-04-15 14:24:30 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
box-shadow: inset 0 0 0 10rem rgba(0, 0, 0, .05);
|
|
|
|
}
|
|
|
|
|
|
|
|
&[small] {
|
|
|
|
font-size: .9rem;
|
2022-07-13 15:46:11 +00:00
|
|
|
padding: .4rem .7rem;
|
2022-04-15 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include inset-when-pressed();
|
|
|
|
|
|
|
|
&[green] {
|
|
|
|
background-color: var(--color-green);
|
|
|
|
}
|
|
|
|
|
|
|
|
&[white] {
|
|
|
|
background-color: transparent;
|
|
|
|
color: var(--color-text-secondary);
|
|
|
|
}
|
|
|
|
|
|
|
|
&[red] {
|
|
|
|
background-color: var(--color-red);
|
|
|
|
}
|
|
|
|
|
|
|
|
&[grey], &[gray] {
|
|
|
|
background-color: var(--color-bg-secondary);
|
|
|
|
}
|
|
|
|
|
|
|
|
&[orange] {
|
|
|
|
background-color: var(--color-highlight);
|
|
|
|
}
|
|
|
|
|
|
|
|
&[transparent] {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[rounded] {
|
|
|
|
border-radius: 999px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[unrounded] {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[uppercase] {
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|