From 47fa4dbef33fde0b5db358c1049315ca6992eb27 Mon Sep 17 00:00:00 2001 From: Jordan Vidrine <30537603+jordanvidrine@users.noreply.github.com> Date: Tue, 11 Oct 2022 16:51:02 -0500 Subject: [PATCH] FIX: User field styling on login (#18551) --- app/assets/stylesheets/common/base/login.scss | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/common/base/login.scss b/app/assets/stylesheets/common/base/login.scss index fc04c5bc53c..4d8f14ac68a 100644 --- a/app/assets/stylesheets/common/base/login.scss +++ b/app/assets/stylesheets/common/base/login.scss @@ -155,7 +155,8 @@ body.invite-page { &:last-child { margin-bottom: 2em; } - input { + input, + .select-kit-header { padding: 0.75em 0.77em; border-radius: 0.25em; min-width: 250px; @@ -175,7 +176,8 @@ body.invite-page { color: var(--primary-medium); min-height: 1.4em; // prevents height increase due to tips } - label.alt-placeholder { + label.alt-placeholder, + .user-field.dropdown label.control-label { color: var(--primary-medium); font-size: 16px; font-weight: normal; @@ -187,6 +189,14 @@ body.invite-page { border-radius: 0.25em; transition: 0.2s ease all; } + .user-field.dropdown label.control-label { + z-index: 999; + top: -8px; + left: calc(1em - 0.25em); + background-color: var(--secondary); + padding: 0 0.25em 0 0.25em; + font-size: $font-down-1; + } input:focus + label.alt-placeholder, input.value-entered + label.alt-placeholder { top: -8px; @@ -194,7 +204,6 @@ body.invite-page { background-color: var(--secondary); padding: 0 0.25em 0 0.25em; font-size: $font-down-1; - color: var(--primary-medium); } input.alt-placeholder:invalid { color: var(--primary); @@ -261,9 +270,20 @@ body.invite-page { background-color: var(--secondary); padding: 0 0.25em 0 0.25em; font-size: 14px; - color: var(--primary-high); + color: var(--primary-medium); } } + span.name { + color: var(--primary-medium); + } + .select-kit-row span.name { + color: var(--primary); + } + .select-kit.combo-box.is-expanded summary { + outline: none; + border: 1px solid var(--tertiary); + box-shadow: 0 0 0 2px rgba(var(--tertiary-rgb), 0.25); + } .controls .checkbox-label { input[type="checkbox"].ember-checkbox { width: 1em !important;