Skip to content

Instantly share code, notes, and snippets.

@calvindavis
Created September 16, 2021 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calvindavis/3633ef9bc95e1f0da4daaef47587e36f to your computer and use it in GitHub Desktop.
Save calvindavis/3633ef9bc95e1f0da4daaef47587e36f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
.form-field {
$this: &;
@apply relative block;
&__label {
@apply block cursor-pointer;
.emailaddress &,
.longanswer &,
.shortanswer & {
@apply absolute pt-2 origin-top-left transition-transform;
}
.emailaddress #{$this}.is-active &,
.longanswer #{$this}.is-active &,
.shortanswer #{$this}.is-active & {
@apply scale-75 -translate-y-2/3 pointer-events-none;
}
}
}
.form-field {
@apply relative block;
}
.form-field__label {
@apply block cursor-pointer;
}
.emailaddress .form-field__label, .longanswer .form-field__label, .shortanswer .form-field__label {
@apply absolute pt-2 origin-top-left transition-transform;
}
.emailaddress .form-field.is-active .form-field__label, .longanswer .form-field.is-active .form-field__label, .shortanswer .form-field.is-active .form-field__label {
@apply scale-75 -translate-y-2/3 pointer-events-none;
}
{
"sass": {
"compiler": "dart-sass/1.32.12",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment