summaryrefslogtreecommitdiff
path: root/src/client/components
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
parentUpdate CHANGELOG.md (diff)
downloadsharkey-46f3736f44b20ae2e90b0774ad723db5d648eba9.tar.gz
sharkey-46f3736f44b20ae2e90b0774ad723db5d648eba9.tar.bz2
sharkey-46f3736f44b20ae2e90b0774ad723db5d648eba9.zip
:art:
Diffstat (limited to 'src/client/components')
-rw-r--r--src/client/components/signup.vue2
-rw-r--r--src/client/components/ui/button.vue27
2 files changed, 24 insertions, 5 deletions
diff --git a/src/client/components/signup.vue b/src/client/components/signup.vue
index b420bca5a3..cb25eadf06 100644
--- a/src/client/components/signup.vue
+++ b/src/client/components/signup.vue
@@ -56,7 +56,7 @@
</label>
<captcha v-if="meta.enableHcaptcha" class="_formBlock captcha" provider="hcaptcha" ref="hcaptcha" v-model="hCaptchaResponse" :sitekey="meta.hcaptchaSiteKey"/>
<captcha v-if="meta.enableRecaptcha" class="_formBlock captcha" provider="recaptcha" ref="recaptcha" v-model="reCaptchaResponse" :sitekey="meta.recaptchaSiteKey"/>
- <MkButton class="_formBlock" type="submit" :disabled="shouldDisableSubmitting" primary data-cy-signup-submit>{{ $ts.start }}</MkButton>
+ <MkButton class="_formBlock" type="submit" :disabled="shouldDisableSubmitting" gradate data-cy-signup-submit>{{ $ts.start }}</MkButton>
</template>
</form>
</template>
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;