Use buttons more consistently

This commit is contained in:
kolaente 2021-01-17 13:04:49 +01:00
parent 0102709d92
commit e960202607
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
21 changed files with 45 additions and 43 deletions

View file

@ -16,7 +16,7 @@
model="hex"
picker="square"
v-model="color"/>
<a @click="reset" class="reset">
<a @click="reset" class="button has-no-shadow is-small ml-2">
Reset Color
</a>
</div>

View file

@ -98,7 +98,7 @@
/>
<a
class="button is-outlined is-primary has-no-shadow is-fullwidth"
class="button is-primary has-no-shadow is-fullwidth"
@click="close"
>
Confirm

View file

@ -1,14 +1,16 @@
<template>
<div :class="{'is-pulled-up': isEditEnabled}" class="editor">
<div class="tabs is-right" v-if="hasPreview && isEditEnabled && !hasEditBottom">
<ul>
<li>
<a v-if="!isEditActive" @click="toggleEdit">Edit</a>
<a v-else @click="toggleEdit">Done</a>
</li>
</ul>
<div class="is-pulled-right mb-4" v-if="hasPreview && isEditEnabled && !hasEditBottom">
<a v-if="!isEditActive" @click="toggleEdit" class="button has-no-shadow">
<icon icon="pen"/>
</a>
<a v-else @click="toggleEdit" class="button has-no-shadow">
Done
</a>
</div>
<div class="clear"></div>
<vue-easymde
:configs="config"
@change="bubble"
@ -416,8 +418,8 @@ export default {
@import '../../styles/theme/variables';
.editor {
.tabs ul {
margin-left: 0;
.clear {
clear: both;
}
.preview.content ul li input[type="checkbox"] {

View file

@ -50,7 +50,7 @@
<a
:disabled="backgroundService.loading"
@click="() => searchBackgrounds(currentPage + 1)"
class="button is-primary is-centered is-load-more-button is-outlined noshadow"
class="button is-centered is-load-more-button has-no-shadow mt-4"
v-if="backgroundSearchResult.length > 0"
>
<template v-if="backgroundService.loading">

View file

@ -39,7 +39,7 @@
</p>
<div class="buttons">
<button @click="migrate" class="button is-primary">I am sure, please start migrating now!</button>
<router-link :to="{name: 'home'}" class="button is-danger is-outlined">Cancel</router-link>
<router-link :to="{name: 'home'}" class="button is-text has-text-danger is-inverted noshadow underline-none">Cancel</router-link>
</div>
</div>
<div v-else>

View file

@ -11,8 +11,8 @@
<slot name="text"></slot>
</div>
<div class="actions">
<button @click="$emit('close')" class="button is-danger is-inverted noshadow">Cancel</button>
<button @click="$emit('submit')" class="button is-success noshadow">Do it!</button>
<button @click="$emit('close')" class="button is-text has-text-danger is-inverted noshadow underline-none">Cancel</button>
<button @click="$emit('submit')" class="button is-primary noshadow">Do it!</button>
</div>
</slot>
</div>

View file

@ -138,7 +138,7 @@
class="is-narrow"
/>
<button :class="{ 'is-loading': taskService.loading}" class="button is-success is-fullwidth" type="submit">
<button :class="{ 'is-loading': taskService.loading}" class="button is-primary is-fullwidth" type="submit">
Save
</button>

View file

@ -2,9 +2,9 @@
<div :class="{'is-loading': taskService.loading}" class="defer-task loading-container">
<label class="label">Defer due date</label>
<div class="defer-days">
<button @click="() => deferDays(1)" class="button is-outlined is-primary has-no-shadow">1 day</button>
<button @click="() => deferDays(3)" class="button is-outlined is-primary has-no-shadow">3 days</button>
<button @click="() => deferDays(7)" class="button is-outlined is-primary has-no-shadow">1 week</button>
<button @click="() => deferDays(1)" class="button has-no-shadow">1 day</button>
<button @click="() => deferDays(3)" class="button has-no-shadow">3 days</button>
<button @click="() => deferDays(7)" class="button has-no-shadow">1 week</button>
</div>
<flat-pickr
:class="{ 'disabled': taskService.loading}"

View file

@ -1,15 +1,11 @@
.color-picker-container {
display: flex;
justify-content: center;
align-items: center;
.verte__guide {
border-radius: 100%;
border: 1px solid $grey-light;
box-shadow: $card-shadow;
}
a.reset {
font-size: .9em;
padding-left: .5rem;
}
}

View file

@ -15,7 +15,7 @@
border-radius: $radius;
box-shadow: $card-shadow;
a {
a:not(.button) {
display: flex;
align-items: center;
padding: 0 .5rem;
@ -49,11 +49,11 @@
width: 2rem;
text-align: center;
}
&.button {
margin: 1rem;
width: calc(100% - 2rem);
}
}
a.button {
margin: 1rem;
width: calc(100% - 2rem);
}
.flatpickr-calendar {

View file

@ -55,3 +55,7 @@
font-size: 1rem;
}
}
.underline-none {
text-decoration: none !important;
}

View file

@ -5,7 +5,7 @@
<p>Click on a list or namespace on the left to get started.</p>
<router-link
:to="{name: 'migrate.start'}"
class="button is-primary is-right noshadow is-outlined"
class="button is-primary has-no-shadow"
v-if="migratorsEnabled"
>
Import your data into Vikunja

View file

@ -1,6 +1,6 @@
<template>
<div :class="{ 'is-loading': labelService.loading}" class="loader-container content">
<router-link :to="{name:'labels.create'}" class="button is-success button-right">
<router-link :to="{name:'labels.create'}" class="button is-primary button-right">
<span class="icon is-small">
<icon icon="plus"/>
</span>

View file

@ -15,7 +15,7 @@
v-model="label.title"/>
</p>
<p class="control">
<button class="button is-success noshadow" type="submit">
<button class="button is-primary noshadow" type="submit">
<span class="icon is-small">
<icon icon="plus"/>
</span>

View file

@ -18,7 +18,7 @@
v-model="list.title"/>
</p>
<p class="control">
<button :disabled="list.title === ''" @click="newList()" class="button is-success noshadow">
<button :disabled="list.title === ''" @click="newList()" class="button is-primary noshadow">
<span class="icon is-small">
<icon icon="plus"/>
</span>

View file

@ -62,7 +62,7 @@
</span>
</p>
<p class="control">
<button :disabled="newTaskText.length === 0" @click="addTask()" class="button is-success">
<button :disabled="newTaskText.length === 0" @click="addTask()" class="button is-primary">
<span class="icon is-small">
<icon icon="plus"/>
</span>

View file

@ -18,7 +18,7 @@
v-model="namespace.title"/>
</p>
<p class="control">
<button :disabled="namespace.title === ''" @click="newNamespace()" class="button is-success noshadow">
<button :disabled="namespace.title === ''" @click="newNamespace()" class="button is-primary noshadow">
<span class="icon is-small">
<icon icon="plus"/>
</span>

View file

@ -30,9 +30,9 @@
/>
</h3>
<div v-if="!showAll">
<a @click="showTodaysTasks()" class="button is-primary is-outlined noshadow mr-2">Today</a>
<a @click="setDatesToNextWeek()" class="button is-primary is-outlined noshadow mr-2">Next Week</a>
<a @click="setDatesToNextMonth()" class="button is-primary is-outlined noshadow">Next Month</a>
<a @click="showTodaysTasks()" class="button noshadow mr-2">Today</a>
<a @click="setDatesToNextWeek()" class="button noshadow mr-2">Next Week</a>
<a @click="setDatesToNextMonth()" class="button noshadow">Next Month</a>
</div>
<template v-if="!taskService.loading && (!hasUndoneTasks || !tasks || tasks.length === 0)">
<h3 class="nothing">Nothing to do - Have a nice day!</h3>

View file

@ -236,9 +236,9 @@
</div>
<div class="column is-one-third action-buttons" v-if="canWrite">
<a
:class="{'is-success': !task.done}"
:class="{'is-success': !task.done, 'has-no-shadow': !task.done}"
@click="toggleTaskDone()"
class="button is-outlined noshadow has-no-border">
class="button is-outlined has-no-border">
<span class="icon is-small"><icon icon="check-double"/></span>
<template v-if="task.done">
Mark as undone

View file

@ -16,7 +16,7 @@
v-model="team.name"/>
</p>
<p class="control">
<button class="button is-success noshadow" type="submit">
<button class="button is-primary noshadow" type="submit">
<span class="icon is-small">
<icon icon="plus"/>
</span>

View file

@ -248,7 +248,7 @@
<input type="text" v-model="caldavUrl" class="input" readonly/>
</div>
<div class="control">
<a @click="copy(caldavUrl)" class="button is-success noshadow" v-tooltip="'Copy to clipboard'">
<a @click="copy(caldavUrl)" class="button is-primary noshadow" v-tooltip="'Copy to clipboard'">
<span class="icon">
<icon icon="paste"/>
</span>