diff --git a/resources/assets/styles/components/forms.css b/resources/assets/styles/components/forms.css index b083a8f79..93fca8d36 100644 --- a/resources/assets/styles/components/forms.css +++ b/resources/assets/styles/components/forms.css @@ -12,43 +12,10 @@ input[type=number] { -moz-appearance: textfield !important; } -/** - * Styles for the login form open input boxes. Label floats up above it when content - * is input and then sinks back down into the field if left empty. - */ -.input-open { - @apply .w-full .relative; -} - -.input-open > .input, .input-open > .input:disabled { - @apply .appearance-none .block .w-full .text-neutral-800 .border-b-2 .border-neutral-200 .py-3 .px-2 .bg-white; - - &:focus { - @apply .border-primary-400; - outline: 0; - transition: border 500ms ease-out; - } - - &:focus + label, &:valid + label, &.has-content + label { - @apply .text-neutral-800 .px-0 .cursor-pointer; - transform:translateY(-26px) - } - - &:required { - box-shadow: none; - } -} - -.input-open > label { - @apply .block .uppercase .tracking-wide .text-neutral-500 .text-xs .mb-2 .px-2 .absolute; - top: 14px; - transition: padding 200ms linear, transform 200ms ease-out; -} - /** * Styling for other forms throughout the Panel. */ -.input:not(.open-label) { +.input { @apply .appearance-none .p-3 .rounded .border .border-neutral-200 .text-neutral-800 .w-full; min-width: 0; transition: border 150ms linear; @@ -70,6 +37,10 @@ input[type=number] { @apply .bg-neutral-100 .border-neutral-200; } +label { + @apply .block .text-xs .font-medium .uppercase .text-neutral-700 .mb-2; +} + select:not(.appearance-none) { @apply .outline-none .appearance-none .block .bg-white .border .border-neutral-200 .text-neutral-400 .p-3 .pr-8 rounded; transition: border-color 150ms linear, color 150ms linear; diff --git a/resources/scripts/components/auth/ForgotPasswordContainer.tsx b/resources/scripts/components/auth/ForgotPasswordContainer.tsx index 9005c04b9..cbc4dfcfc 100644 --- a/resources/scripts/components/auth/ForgotPasswordContainer.tsx +++ b/resources/scripts/components/auth/ForgotPasswordContainer.tsx @@ -63,18 +63,19 @@ class ForgotPasswordContainer extends React.PureComponent { Request Password Reset
-
- -
+ + +

+ Enter your account email address to receive instructions on resetting your password. +