From 54b1c6a9ca523887514cb2d19c9bd8e3ba65cd24 Mon Sep 17 00:00:00 2001 From: Jordan-Tompit Date: Fri, 17 Mar 2023 14:00:03 +0100 Subject: [PATCH] Changes for drop-down in inputsscss --- .../Pages/Democomp.razor | 70 +++++++++++-------- .../Styles/components/_inputs.scss | 47 +++++++++++-- 2 files changed, 82 insertions(+), 35 deletions(-) diff --git a/src/Connected.Components.Showcase.Runner/Pages/Democomp.razor b/src/Connected.Components.Showcase.Runner/Pages/Democomp.razor index b909dda..2fbe6fc 100644 --- a/src/Connected.Components.Showcase.Runner/Pages/Democomp.razor +++ b/src/Connected.Components.Showcase.Runner/Pages/Democomp.razor @@ -537,6 +537,24 @@
+ +
+ + +
Some helping Text
+
At least 6 characters required
+ + + + + + + + + + +
+
@@ -614,34 +632,7 @@
- - - - -
- - - -
- - - -
- - - -
- - - -
-
- - +
@@ -716,10 +707,31 @@
+
+ +
Some helping Text
+
At least 6 characters required
+
+ + + +
+ +
+ + + +
+
+
-
+
diff --git a/src/Connected.Components/Styles/components/_inputs.scss b/src/Connected.Components/Styles/components/_inputs.scss index 604d560..7d559a8 100644 --- a/src/Connected.Components/Styles/components/_inputs.scss +++ b/src/Connected.Components/Styles/components/_inputs.scss @@ -47,7 +47,34 @@ form{ &:focus ~ .bar:before { width: $width; } - + } + +/*FOR CUSTOM SELECT*/ + .form-group>button { + background: none; + color: var(--text-core); + font-weight: $font-weight-600; + font-size: $base-font-size; + padding: 10px 24px 10px 5px; + display: block; + width: 100%; + min-height: 2.8rem; + text-align: left; + border: none; + border-radius: 0; + border-bottom: 1px solid var(--border-core); + &:focus { + outline: none; + } + &:focus ~ label.label-animated, + &:has(>div) ~ label.label-animated { + top: -12px; + font-size: $font-size-sm; + color: var(--bg-core-primary-darken); + } + &:focus ~ .bar:before { + width: $width; + } } input[type="password"] { @@ -201,11 +228,8 @@ form{ /*FORM-ALT*/ - - - .form-group-alt { - + position: relative; label{ font-size: .85rem; padding-left: 0.85rem; @@ -228,13 +252,24 @@ form{ .input-area{ flex: 1; } - /*focus within*/ &:focus-within{ background-color: var(--bg-core-primary-lighten); background-color: #fff; } } + .input-helper-text{ + position: absolute; + bottom: -10px; + line-height: 30px; + font-size: 12px; + color: $text-core-lc; + padding: 5px 10px 10px 5px; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 1; + overflow: hidden; + } } .form-group-alt.error {