This commit is contained in:
syuilo
2021-10-03 02:46:58 +09:00
parent dcd216daff
commit 9cab659392
18 changed files with 50 additions and 38 deletions

View File

@@ -1,7 +1,7 @@
<template>
<component class="bghgjjyj _button"
:is="link ? 'MkA' : 'button'"
:class="{ inline, primary, danger, full }"
:class="{ inline, primary, danger, rounded, full }"
:type="type"
@click="$emit('click', $event)"
@mousedown="onMousedown"
@@ -27,6 +27,11 @@ export default defineComponent({
required: false,
default: false
},
rounded: {
type: Boolean,
required: false,
default: false
},
inline: {
type: Boolean,
required: false,
@@ -124,8 +129,8 @@ export default defineComponent({
box-shadow: none;
text-decoration: none;
background: var(--buttonBg);
border-radius: 999px;
overflow: hidden;
border-radius: 4px;
overflow: clip;
box-sizing: border-box;
transition: background 0.1s ease;
@@ -141,6 +146,10 @@ export default defineComponent({
width: 100%;
}
&.rounded {
border-radius: 999px;
}
&.primary {
font-weight: bold;
color: var(--fgOnAccent) !important;
@@ -176,7 +185,7 @@ export default defineComponent({
opacity: 0.7;
}
&:focus {
&:focus-visible {
outline: solid 2px var(--focus);
outline-offset: 2px;
}