From 3c6c5ff845a9ab0b341f20e98b5c5e64ad54d2f2 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 3 Jul 2020 19:37:20 +0200 Subject: [PATCH] Make task list, teams and settings pages max width of $desktop and centered --- src/styles/components/list-backgrounds.scss | 4 ++-- src/styles/components/tasks.scss | 2 -- src/styles/theme/theme.scss | 6 ++++++ src/views/list/EditList.vue | 2 +- src/views/list/views/List.vue | 2 +- src/views/namespaces/EditNamespace.vue | 2 +- src/views/tasks/ShowTasks.vue | 2 +- src/views/teams/EditTeam.vue | 2 +- src/views/teams/ListTeams.vue | 2 +- src/views/user/Settings.vue | 2 +- 10 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/styles/components/list-backgrounds.scss b/src/styles/components/list-backgrounds.scss index b7b68108..31dd497e 100644 --- a/src/styles/components/list-backgrounds.scss +++ b/src/styles/components/list-backgrounds.scss @@ -15,7 +15,7 @@ flex-flow: row wrap; .image { - width: calc(100% / 6 - 1em); + width: calc(100% / 5 - 1em); height: 120px; margin: .5em; background-size: cover; @@ -23,7 +23,7 @@ display: flex; @media screen and (min-width: $desktop) { - &:nth-child(6n) { + &:nth-child(5n) { page-break-after: always; // CSS 2.1 syntax break-after: always; // New syntax } diff --git a/src/styles/components/tasks.scss b/src/styles/components/tasks.scss index 500f2ba5..28337532 100644 --- a/src/styles/components/tasks.scss +++ b/src/styles/components/tasks.scss @@ -2,7 +2,6 @@ margin-top: 1rem; padding: 0; text-align: left; - max-width: 80vw; @media screen and (min-width: $tablet) { &.short { @@ -149,4 +148,3 @@ } } } - diff --git a/src/styles/theme/theme.scss b/src/styles/theme/theme.scss index 42bc56fe..fb3f40bf 100644 --- a/src/styles/theme/theme.scss +++ b/src/styles/theme/theme.scss @@ -63,3 +63,9 @@ button.table { .pagination { padding-bottom: 1em; } + +.is-max-width-desktop { + width: 100%; + max-width: $desktop; + margin: 0 auto; +} diff --git a/src/views/list/EditList.vue b/src/views/list/EditList.vue index 23d54bf5..3cb12c8f 100644 --- a/src/views/list/EditList.vue +++ b/src/views/list/EditList.vue @@ -1,5 +1,5 @@