A platform for community discussion. Free, open, simple.
UX: Update user field styling in the create-account modal (#24091)
Jarek Radosz125ab9f31dff
diff --git a/app/assets/stylesheets/common/base/login.scss b/app/assets/stylesheets/common/base/login.scssindex 71be8cedb2f..eebd3369550 100644--- a/app/assets/stylesheets/common/base/login.scss+++ b/app/assets/stylesheets/common/base/login.scss@@ -157,7 +157,9 @@ body.invite-page {min-height: 1.4em; // prevents height increase due to tips}label.alt-placeholder,- .user-field.dropdown label.control-label {+ .user-field.text label.control-label,+ .user-field.dropdown label.control-label,+ .user-field.multiselect label.control-label {color: var(--primary-medium);font-size: 16px;font-weight: normal;@@ -168,7 +170,9 @@ body.invite-page {box-shadow: 0 0 0 0px rgba(var(--tertiary-rgb), 0);transition: 0.2s ease all;}- .user-field.dropdown label.control-label {+ .user-field.text label.control-label,+ .user-field.dropdown label.control-label,+ .user-field.multiselect label.control-label {z-index: 999;top: -8px;left: calc(1em - 0.25em);@@ -176,8 +180,10 @@ body.invite-page {padding: 0 0.25em 0 0.25em;font-size: $font-down-1;}- .user-field.dropdown:focus-within {- z-index: 1000; // this ensures the active dropdown is always on top of sibling dropdown labels+ .user-field.text:focus-within,+ .user-field.dropdown:focus-within,+ .user-field.multiselect:focus-within {+ z-index: 1000; // ensures the active input is always on top of sibling input labels}input:focus + label.alt-placeholder,input.value-entered + label.alt-placeholder {@@ -255,7 +261,8 @@ body.invite-page {text-overflow: ellipsis;}}- span.name {+ details:not(.has-selection) span.name,+ details:not(.has-selection) span.formatted-selection {color: var(--primary-medium);}.select-kit-row span.name {diff --git a/app/assets/stylesheets/desktop/login.scss b/app/assets/stylesheets/desktop/login.scssindex c369f81a9ef..a64a5f29755 100644--- a/app/assets/stylesheets/desktop/login.scss+++ b/app/assets/stylesheets/desktop/login.scss@@ -356,9 +356,6 @@}display: flex;flex-direction: column;- &.confirm {- margin-top: 5px;- }}.invites-show {diff --git a/app/assets/stylesheets/desktop/topic-post.scss b/app/assets/stylesheets/desktop/topic-post.scssindex e0b7a940a51..e4135aca30e 100644--- a/app/assets/stylesheets/desktop/topic-post.scss+++ b/app/assets/stylesheets/desktop/topic-post.scss@@ -523,7 +523,8 @@ blockquote {-webkit-font-smoothing: subpixel-antialiased;}-.dropdown {+.dropdown,+.multiselect {position: relative;}diff --git a/app/assets/stylesheets/mobile/topic-list.scss b/app/assets/stylesheets/mobile/topic-list.scssindex 05216419219..024751f460a 100644--- a/app/assets/stylesheets/mobile/topic-list.scss+++ b/app/assets/stylesheets/mobile/topic-list.scss@@ -438,7 +438,8 @@ tr.category-topic-link {// Misc. stuff// ---------------------------------------------------.dropdown {+.dropdown,+.multiselect {position: relative;}.dropdown-toggle:active,