diff --git a/resources/assets/scripts/components/auth/ResetPassword.vue b/resources/assets/scripts/components/auth/ResetPassword.vue index 588bf023e..2a7cf17a6 100644 --- a/resources/assets/scripts/components/auth/ResetPassword.vue +++ b/resources/assets/scripts/components/auth/ResetPassword.vue @@ -7,8 +7,8 @@
@@ -18,7 +18,8 @@
@@ -28,7 +29,8 @@
diff --git a/resources/assets/styles/components/authentication.css b/resources/assets/styles/components/authentication.css index c569369f1..63111a0d3 100644 --- a/resources/assets/styles/components/authentication.css +++ b/resources/assets/styles/components/authentication.css @@ -1,32 +1,3 @@ -.input-open { - @apply .w-full .px-3 .relative; -} - -.input-open > .input { - @apply .appearance-none .block .w-full .text-grey-darker .border-b-2 .border-grey-light .py-3 .mb-3; - - &:focus { - @apply .border-blue; - outline: 0; - transition: border 500ms ease-out; - } - - &:focus + label, &:valid + label, &.has-content + label { - @apply .text-grey-darker .px-0 .cursor-pointer; - transform:translateY(-26px) - } - - &:required { - box-shadow: none; - } -} - -.input-open > label { - @apply .block .uppercase .tracking-wide .text-grey .text-xs .mb-2 .absolute; - top: 14px; - transition: transform 200ms ease-out; -} - .login-box { @apply .bg-white .shadow-lg .rounded-lg .pt-10 .px-8 .pb-6 .mb-4; } diff --git a/resources/assets/styles/components/forms.css b/resources/assets/styles/components/forms.css new file mode 100644 index 000000000..6869532df --- /dev/null +++ b/resources/assets/styles/components/forms.css @@ -0,0 +1,32 @@ +/** + * 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 .px-3 .relative; +} + +.input-open > .input { + @apply .appearance-none .block .w-full .text-grey-darker .border-b-2 .border-grey-light .py-3 .mb-3; + + &:focus { + @apply .border-blue; + outline: 0; + transition: border 500ms ease-out; + } + + &:focus + label, &:valid + label, &.has-content + label { + @apply .text-grey-darker .px-0 .cursor-pointer; + transform:translateY(-26px) + } + + &:required { + box-shadow: none; + } +} + +.input-open > label { + @apply .block .uppercase .tracking-wide .text-grey .text-xs .mb-2 .absolute; + top: 14px; + transition: transform 200ms ease-out; +} diff --git a/resources/assets/styles/main.css b/resources/assets/styles/main.css index 49d8d52df..85fed4d9b 100644 --- a/resources/assets/styles/main.css +++ b/resources/assets/styles/main.css @@ -10,6 +10,7 @@ @import "components/animations.css"; @import "components/authentication.css"; @import "components/buttons.css"; +@import "components/forms.css"; @import "components/notifications.css"; @import "components/spinners.css";