From 4f872c92d82679f066e89b1bf1e740d91720b164 Mon Sep 17 00:00:00 2001
From: kolaente
Date: Sun, 17 Jan 2021 13:21:58 +0100
Subject: [PATCH] Rename .noshadow to .has-no-shadow
---
src/components/home/topNavigation.vue | 2 +-
src/components/home/update.vue | 2 +-
src/components/migrator/migration.vue | 2 +-
src/components/misc/notification.vue | 2 +-
src/components/modal/modal.vue | 4 +--
src/components/sharing/linkSharing.vue | 2 +-
src/components/tasks/gantt-component.vue | 2 +-
src/styles/theme/form.scss | 13 --------
src/styles/theme/theme.scss | 38 +++++++++++++++++-------
src/views/labels/NewLabel.vue | 2 +-
src/views/list/NewList.vue | 2 +-
src/views/list/views/Kanban.vue | 4 +--
src/views/list/views/List.vue | 2 +-
src/views/namespaces/NewNamespace.vue | 2 +-
src/views/tasks/ShowTasks.vue | 6 ++--
src/views/tasks/TaskDetailView.vue | 2 +-
src/views/teams/NewTeam.vue | 2 +-
src/views/user/Settings.vue | 2 +-
18 files changed, 48 insertions(+), 43 deletions(-)
diff --git a/src/components/home/topNavigation.vue b/src/components/home/topNavigation.vue
index bb8d54950..5a083c123 100644
--- a/src/components/home/topNavigation.vue
+++ b/src/components/home/topNavigation.vue
@@ -44,7 +44,7 @@
-
diff --git a/src/components/misc/notification.vue b/src/components/misc/notification.vue
index 4ad3f2bcc..e0d5809e5 100644
--- a/src/components/misc/notification.vue
+++ b/src/components/misc/notification.vue
@@ -19,7 +19,7 @@
+ class="button has-no-shadow is-small" v-for="(action, i) in props.item.data.actions">
{{ action.title }}
diff --git a/src/components/modal/modal.vue b/src/components/modal/modal.vue
index 11e521638..72e706432 100644
--- a/src/components/modal/modal.vue
+++ b/src/components/modal/modal.vue
@@ -11,8 +11,8 @@
- Cancel
- Do it!
+ Cancel
+ Do it!
diff --git a/src/components/sharing/linkSharing.vue b/src/components/sharing/linkSharing.vue
index 065b0a5c5..754b45136 100644
--- a/src/components/sharing/linkSharing.vue
+++ b/src/components/sharing/linkSharing.vue
@@ -44,7 +44,7 @@
-
+
diff --git a/src/components/tasks/gantt-component.vue b/src/components/tasks/gantt-component.vue
index 11c8f812a..364054faa 100644
--- a/src/components/tasks/gantt-component.vue
+++ b/src/components/tasks/gantt-component.vue
@@ -124,7 +124,7 @@
v-model="newTaskTitle"
/>
-
+
diff --git a/src/styles/theme/form.scss b/src/styles/theme/form.scss
index a2b9a5201..6fdaec4af 100644
--- a/src/styles/theme/form.scss
+++ b/src/styles/theme/form.scss
@@ -58,19 +58,6 @@
color: $white;
}
- &.noshadow {
- &,
- &.is-hovered,
- &:hover,
- &.is-active,
- &.is-focused,
- &:active,
- &:focus,
- &:focus:not(:active) {
- box-shadow: none;
- }
- }
-
&.is-small {
border-radius: $radius;
}
diff --git a/src/styles/theme/theme.scss b/src/styles/theme/theme.scss
index f3e818277..09aae8b5a 100644
--- a/src/styles/theme/theme.scss
+++ b/src/styles/theme/theme.scss
@@ -1,10 +1,13 @@
-@import '../../../node_modules/bulma/bulma';
+@import "../../../node_modules/bulma/bulma";
-@import 'fonts';
+@import "fonts";
-@import 'variables-derived';
+@import "variables-derived";
-*, *:hover, *:active, *:focus {
+*,
+*:hover,
+*:active,
+*:focus {
outline: none;
}
@@ -16,12 +19,13 @@
outline: 0;
}
-:focus-visible, :-moz-focusring {
+:focus-visible,
+:-moz-focusring {
box-shadow: 0 0 0 2px rgba($primary, 0.5);
}
body {
- background: url('../../public/images/llama.svg') no-repeat bottom left fixed $light-background;
+ background: url("../../public/images/llama.svg") no-repeat bottom left fixed $light-background;
min-height: 100vh;
@media screen and (max-width: $tablet) {
@@ -31,13 +35,17 @@ body {
}
}
-h1, h2, h3, h4, h5, h6 {
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
font-family: $vikunja-font;
font-weight: 400 !important;
}
.logo {
-
padding-left: 2rem !important;
img {
@@ -81,7 +89,8 @@ button.table {
.pagination {
padding-bottom: 1em;
- .pagination-previous, .pagination-next {
+ .pagination-previous,
+ .pagination-next {
&:not(:disabled):hover {
background: $button-background-color;
cursor: pointer;
@@ -96,7 +105,16 @@ button.table {
}
.has-no-shadow {
- box-shadow: none !important;
+ &,
+ &.is-hovered,
+ &:hover,
+ &.is-active,
+ &.is-focused,
+ &:active,
+ &:focus,
+ &:focus:not(:active) {
+ box-shadow: none !important;
+ }
}
.is-fullwidth {
diff --git a/src/views/labels/NewLabel.vue b/src/views/labels/NewLabel.vue
index a00c2c8c8..eea5a3606 100644
--- a/src/views/labels/NewLabel.vue
+++ b/src/views/labels/NewLabel.vue
@@ -15,7 +15,7 @@
v-model="label.title"/>
-
+
diff --git a/src/views/list/NewList.vue b/src/views/list/NewList.vue
index a6b68b7f9..fe9ee2c89 100644
--- a/src/views/list/NewList.vue
+++ b/src/views/list/NewList.vue
@@ -18,7 +18,7 @@
v-model="list.title"/>
-
+
diff --git a/src/views/list/views/Kanban.vue b/src/views/list/views/Kanban.vue
index 66a085ea6..a5552e8c8 100644
--- a/src/views/list/views/Kanban.vue
+++ b/src/views/list/views/Kanban.vue
@@ -193,7 +193,7 @@
@@ -224,7 +224,7 @@
/>
showNewBucketInput = true"
- class="button noshadow is-transparent is-fullwidth has-text-centered" v-if="!showNewBucketInput">
+ class="button has-no-shadow is-transparent is-fullwidth has-text-centered" v-if="!showNewBucketInput">
diff --git a/src/views/list/views/List.vue b/src/views/list/views/List.vue
index 18a767dc9..849ae2fcc 100644
--- a/src/views/list/views/List.vue
+++ b/src/views/list/views/List.vue
@@ -21,7 +21,7 @@
+ class="button has-no-shadow is-primary">
Search
diff --git a/src/views/namespaces/NewNamespace.vue b/src/views/namespaces/NewNamespace.vue
index 48622662a..bac97505c 100644
--- a/src/views/namespaces/NewNamespace.vue
+++ b/src/views/namespaces/NewNamespace.vue
@@ -18,7 +18,7 @@
v-model="namespace.title"/>
-
+
diff --git a/src/views/tasks/ShowTasks.vue b/src/views/tasks/ShowTasks.vue
index c89282ce3..1be9bdc58 100644
--- a/src/views/tasks/ShowTasks.vue
+++ b/src/views/tasks/ShowTasks.vue
@@ -30,9 +30,9 @@
/>
Nothing to do - Have a nice day!
diff --git a/src/views/tasks/TaskDetailView.vue b/src/views/tasks/TaskDetailView.vue
index fe7e03cf0..dc0193f42 100644
--- a/src/views/tasks/TaskDetailView.vue
+++ b/src/views/tasks/TaskDetailView.vue
@@ -319,7 +319,7 @@
Set task color
-
+
Delete task
diff --git a/src/views/teams/NewTeam.vue b/src/views/teams/NewTeam.vue
index a844d4513..9f6fc3bcb 100644
--- a/src/views/teams/NewTeam.vue
+++ b/src/views/teams/NewTeam.vue
@@ -16,7 +16,7 @@
v-model="team.name"/>
-
+
diff --git a/src/views/user/Settings.vue b/src/views/user/Settings.vue
index ce7a9d0c2..6c6ac0c4f 100644
--- a/src/views/user/Settings.vue
+++ b/src/views/user/Settings.vue
@@ -248,7 +248,7 @@