From 4c67de3ebd8661e1090decbf1ee5c1fc415f8ef7 Mon Sep 17 00:00:00 2001 From: Axolotle Date: Mon, 27 Jul 2020 11:06:05 +0200 Subject: [PATCH] add scss to deal with form col width --- app/src/scss/main.scss | 27 +++++++++++++++++++++++++-- app/src/views/user/UserCreate.vue | 30 ++++++------------------------ 2 files changed, 31 insertions(+), 26 deletions(-) diff --git a/app/src/scss/main.scss b/app/src/scss/main.scss index 84ea866b..56ee7a54 100644 --- a/app/src/scss/main.scss +++ b/app/src/scss/main.scss @@ -30,12 +30,35 @@ body { color: #333; } -.input-group.is-invalid { - ~ .invalid-feedback { +.input-group { + select { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + } + + &.is-invalid ~ .invalid-feedback { display: block; } } +.col-form-label { + @include media-breakpoint-up(xs) { + width: 100%; + } + @include media-breakpoint-up(sm) { + flex-basis: 40%; + } + @include media-breakpoint-up(md) { + flex-basis: 30%; + } + @include media-breakpoint-up(lg) { + flex-basis: 25%; + } + @include media-breakpoint-up(xl) { + flex-basis: 20%; + } +} + // Fork-awesome overrides .fa-fw { diff --git a/app/src/views/user/UserCreate.vue b/app/src/views/user/UserCreate.vue index 78789c04..e46436b2 100644 --- a/app/src/views/user/UserCreate.vue +++ b/app/src/views/user/UserCreate.vue @@ -4,10 +4,7 @@ - + - + @@ -55,10 +52,7 @@ - + @@ -94,10 +87,7 @@ - +