summaryrefslogtreecommitdiff
path: root/src/client/components/ui
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-10-14 01:27:45 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-10-14 01:27:45 +0900
commit46f3736f44b20ae2e90b0774ad723db5d648eba9 (patch)
tree81b819fbb01649516b06434b25c7dfc07a68c1f8 /src/client/components/ui
parentUpdate CHANGELOG.md (diff)
downloadsharkey-46f3736f44b20ae2e90b0774ad723db5d648eba9.tar.gz
sharkey-46f3736f44b20ae2e90b0774ad723db5d648eba9.tar.bz2
sharkey-46f3736f44b20ae2e90b0774ad723db5d648eba9.zip
:art:
Diffstat (limited to 'src/client/components/ui')
-rw-r--r--src/client/components/ui/button.vue27
1 files changed, 23 insertions, 4 deletions
diff --git a/src/client/components/ui/button.vue b/src/client/components/ui/button.vue
index e74c4f550b..5f36be0d76 100644
--- a/src/client/components/ui/button.vue
+++ b/src/client/components/ui/button.vue
@@ -1,6 +1,6 @@
<template>
<button v-if="!link" class="bghgjjyj _button"
- :class="{ inline, primary, danger, rounded, full }"
+ :class="{ inline, primary, gradate, danger, rounded, full }"
:type="type"
@click="$emit('click', $event)"
@mousedown="onMousedown"
@@ -11,7 +11,7 @@
</div>
</button>
<MkA v-else class="bghgjjyj _button"
- :class="{ inline, primary, danger, rounded, full }"
+ :class="{ inline, primary, gradate, danger, rounded, full }"
:to="to"
@mousedown="onMousedown"
>
@@ -36,6 +36,11 @@ export default defineComponent({
required: false,
default: false
},
+ gradate: {
+ type: Boolean,
+ required: false,
+ default: false
+ },
rounded: {
type: Boolean,
required: false,
@@ -137,8 +142,8 @@ export default defineComponent({
padding: 8px 14px;
text-align: center;
font-weight: normal;
- font-size: 0.9em;
- line-height: 24px;
+ font-size: 0.8em;
+ line-height: 22px;
box-shadow: none;
text-decoration: none;
background: var(--buttonBg);
@@ -177,6 +182,20 @@ export default defineComponent({
}
}
+ &.gradate {
+ font-weight: bold;
+ color: var(--fgOnAccent) !important;
+ background: linear-gradient(90deg, var(--buttonGradateA), var(--buttonGradateB));
+
+ &:not(:disabled):hover {
+ background: var(--X8);
+ }
+
+ &:not(:disabled):active {
+ background: var(--X8);
+ }
+ }
+
&.danger {
color: #ff2a2a;