From 49563e8f9fd52266188287fe42dfa7bf987b1137 Mon Sep 17 00:00:00 2001 From: Avris Date: Fri, 22 Jan 2021 23:54:24 +0100 Subject: [PATCH] #169 Bootstrap 5 [wip] --- assets/style.scss | 31 ++++++++++----- assets/variables.scss | 4 ++ components/Account.vue | 32 +++++++--------- components/Authors.vue | 2 +- components/ButtonList.vue | 24 ++++++------ components/Dictionary.vue | 26 +++++-------- components/Header.vue | 8 ++-- components/InclusiveDictionary.vue | 30 ++++++--------- components/InclusiveSubmitForm.vue | 6 +-- components/Link.vue | 2 +- components/LinkInput.vue | 14 +++---- components/ListInput.vue | 18 ++++----- components/Login.vue | 22 +++++------ components/NameCount.vue | 2 +- components/NormativeBadge.vue | 2 +- components/NounForm.vue | 10 ++--- components/NounSubmitForm.vue | 6 +-- components/OpinionListInput.vue | 60 ++++++++++++++---------------- components/ProfileOverview.vue | 8 ++-- components/Roles.vue | 2 +- components/Separator.vue | 2 +- components/SocialConnection.vue | 6 +-- components/Source.vue | 16 ++++---- components/SourceSubmitForm.vue | 14 +++---- components/TermsDictionary.vue | 30 ++++++--------- components/TermsSubmitForm.vue | 4 +- layouts/default.vue | 2 +- locale/pl/nouns/NounsNav.vue | 4 +- nuxt.config.js | 3 ++ package.json | 2 +- routes/admin.vue | 22 +++++------ routes/api.vue | 4 +- routes/census.vue | 4 +- routes/homepage.vue | 12 +++--- routes/names.vue | 16 +++----- routes/profile.vue | 6 +-- routes/profileEditor.vue | 2 +- routes/sources.vue | 22 +++++------ routes/team.vue | 6 +-- yarn.lock | 8 ++-- 40 files changed, 229 insertions(+), 265 deletions(-) diff --git a/assets/style.scss b/assets/style.scss index eb22fe99..785991d1 100644 --- a/assets/style.scss +++ b/assets/style.scss @@ -6,7 +6,7 @@ @import "~bootstrap/scss/reboot"; @import "~bootstrap/scss/type"; //@import "~bootstrap/scss/images"; -//@import "~bootstrap/scss/code"; +//@import "~bootstrap/scss/containers"; //@import "~bootstrap/scss/grid"; @import "~bootstrap/scss/tables"; @import "~bootstrap/scss/forms"; @@ -14,18 +14,17 @@ //@import "~bootstrap/scss/transitions"; @import "~bootstrap/scss/dropdown"; @import "~bootstrap/scss/button-group"; -@import "~bootstrap/scss/input-group"; -@import "~bootstrap/scss/custom-forms"; +//TODO @import "~bootstrap/scss/input-group"; +//TODO @import "~bootstrap/scss/custom-forms"; //@import "~bootstrap/scss/nav"; //@import "~bootstrap/scss/navbar"; @import "~bootstrap/scss/card"; +//@import "~bootstrap/scss/accordion"; //@import "~bootstrap/scss/breadcrumb"; @import "~bootstrap/scss/pagination"; @import "~bootstrap/scss/badge"; -//@import "~bootstrap/scss/jumbotron"; @import "~bootstrap/scss/alert"; @import "~bootstrap/scss/progress"; -//@import "~bootstrap/scss/media"; @import "~bootstrap/scss/list-group"; //@import "~bootstrap/scss/close"; //@import "~bootstrap/scss/toasts"; @@ -34,8 +33,9 @@ //@import "~bootstrap/scss/popover"; //@import "~bootstrap/scss/carousel"; //@import "~bootstrap/scss/spinners"; -@import "~bootstrap/scss/utilities"; -@import "~bootstrap/scss/print"; + +@import "~bootstrap/scss/helpers"; +@import "~bootstrap/scss/utilities/api"; $fa-font-path: "~@fortawesome/fontawesome-pro/webfonts"; @import "~@fortawesome/fontawesome-pro/scss/fontawesome"; @@ -91,7 +91,13 @@ img.icon { $infix: breakpoint-infix($breakpoint, $grid-breakpoints); @each $prop, $abbrev in (width: w, height: h) { - @each $size, $length in $sizes { + @each $size, $length in ( + 25: 25%, + 50: 50%, + 75: 75%, + 100: 100%, + auto: auto + ) { .#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; } } } @@ -115,6 +121,11 @@ blockquote { font-size: 1.1em; } -[dir="rtl"] { - text-align: right; +.form-group { + margin-bottom: $spacer; +} + +/* RTL fix */ +.list-group, .list-unstyled { + padding-right: 0; } diff --git a/assets/variables.scss b/assets/variables.scss index cd2650d2..3dc64215 100644 --- a/assets/variables.scss +++ b/assets/variables.scss @@ -4,8 +4,12 @@ $headings-font-family: Quicksand, -apple-system, BlinkMacSystemFont, "Segoe UI", $primary: #C71585; $alert-border-level: -3; +$link-decoration: none; +$link-hover-decoration: underline; + @import "~bootstrap/scss/functions"; @import "~bootstrap/scss/variables"; @import "~bootstrap/scss/mixins"; +@import "~bootstrap/scss/utilities"; @import '~@fortawesome/fontawesome-pro/scss/variables'; diff --git a/components/Account.vue b/components/Account.vue index 4c99e92b..63e61be7 100644 --- a/components/Account.vue +++ b/components/Account.vue @@ -29,7 +29,7 @@

- user.account.admin + user.account.admin

@@ -47,11 +47,9 @@
-
- -
+
@@ -59,11 +57,9 @@

user.account.changeEmail.header

-
- -
+
-
- -
+
@@ -107,12 +101,12 @@
- + user.logout - + user.deleteAccount diff --git a/components/Authors.vue b/components/Authors.vue index 4c3ac076..7c9c364f 100644 --- a/components/Authors.vue +++ b/components/Authors.vue @@ -13,7 +13,7 @@
  • {{ author.footerName }} - + @{{author.username}}
    diff --git a/components/ButtonList.vue b/components/ButtonList.vue index a14a0da0..d0e1085c 100644 --- a/components/ButtonList.vue +++ b/components/ButtonList.vue @@ -3,7 +3,7 @@
  • - + {{ val }} @@ -15,23 +15,21 @@
    -
    - + - - -
    + +
  • - + {{ val }} diff --git a/components/Dictionary.vue b/components/Dictionary.vue index e885c992..9d06fc36 100644 --- a/components/Dictionary.vue +++ b/components/Dictionary.vue @@ -9,23 +9,17 @@
    -
    - - - -
    + + + -
    - -
    -
    - -
    + +
    diff --git a/components/Header.vue b/components/Header.vue index 8517f2a4..b039d37b 100644 --- a/components/Header.vue +++ b/components/Header.vue @@ -53,7 +53,7 @@
    -
  • - @@ -22,7 +22,7 @@
    - @@ -77,20 +77,16 @@
    -
    - - - -
    + + + -
    - -
    +
    -
    +