This commit is contained in:
syuilo 2021-10-16 15:00:55 +09:00
parent 1e28081aa3
commit aee816ced9
4 changed files with 22 additions and 3 deletions

View File

@ -18,7 +18,7 @@
<span v-if="visibility === 'specified'"><i class="fas fa-envelope"></i></span>
</button>
<button class="_button preview" @click="showPreview = !showPreview" :class="{ active: showPreview }" v-tooltip="$ts.previewNoteText"><i class="fas fa-file-code"></i></button>
<button class="submit _buttonPrimary" :disabled="!canPost" @click="post" data-cy-open-post-form-submit>{{ submitText }}<i :class="reply ? 'fas fa-reply' : renote ? 'fas fa-quote-right' : 'fas fa-paper-plane'"></i></button>
<button class="submit _buttonGradate" :disabled="!canPost" @click="post" data-cy-open-post-form-submit>{{ submitText }}<i :class="reply ? 'fas fa-reply' : renote ? 'fas fa-quote-right' : 'fas fa-paper-plane'"></i></button>
</div>
</header>
<div class="form" :class="{ fixed }">
@ -759,6 +759,7 @@ export default defineComponent({
font-weight: bold;
vertical-align: bottom;
border-radius: 4px;
font-size: 0.9em;
&:disabled {
opacity: 0.7;

View File

@ -188,11 +188,11 @@ export default defineComponent({
background: linear-gradient(90deg, var(--buttonGradateA), var(--buttonGradateB));
&:not(:disabled):hover {
background: var(--X8);
background: linear-gradient(90deg, var(--X8), var(--X8));
}
&:not(:disabled):active {
background: var(--X8);
background: linear-gradient(90deg, var(--X8), var(--X8));
}
}

View File

@ -301,6 +301,10 @@ export default defineComponent({
width: 32%;
box-sizing: border-box;
overflow: auto;
> .title {
margin: 24px;
}
}
> .main {

View File

@ -202,6 +202,20 @@ hr {
}
}
._buttonGradate {
@extend ._buttonPrimary;
color: var(--fgOnAccent);
background: linear-gradient(90deg, var(--buttonGradateA), var(--buttonGradateB));
&:not(:disabled):hover {
background: linear-gradient(90deg, var(--X8), var(--X8));
}
&:not(:disabled):active {
background: linear-gradient(90deg, var(--X8), var(--X8));
}
}
._help {
color: var(--accent);
cursor: help