diff --git a/assets/scss/styles.scss b/assets/scss/styles.scss index 9101d08f6..2e07608e7 100644 --- a/assets/scss/styles.scss +++ b/assets/scss/styles.scss @@ -198,6 +198,29 @@ button { @apply hidden; } +.floating-input ~ label { + @apply font-semibold; + @apply py-0.5; + @apply px-2; + @apply m-2; + @apply rounded; + @apply transition; + @apply absolute; +} + +.floating-input:focus-within ~ label, +.floating-input:not(:placeholder-shown) ~ label { + @apply bg-primary; + @apply transform; + @apply origin-center; + @apply scale-75; + @apply -translate-y-6; +} + +.floating-input:focus-within ~ label { + @apply text-accent; +} + pre.ace_editor { @apply font-mono; @apply resize-none; diff --git a/components/collections/Add.vue b/components/collections/Add.vue index ab9d0391e..efa177c44 100644 --- a/components/collections/Add.vue +++ b/components/collections/Add.vue @@ -6,17 +6,17 @@