🐞 fix: Reorganize/clean up form css
This commit is contained in:
@@ -1,41 +1,35 @@
|
|||||||
/* Forms */
|
/* Forms */
|
||||||
|
|
||||||
|
|
||||||
/* Base styles */
|
/* Base styles */
|
||||||
|
input[type="text"], input[type="email"], input[type="tel"],
|
||||||
|
input[type="url"], input[type="number"], input[type="password"],
|
||||||
|
input[type="date"], select, textarea {
|
||||||
|
@apply px-4 py-2 w-full rounded border-2 border-primary;
|
||||||
|
@apply text-black bg-white;
|
||||||
|
@apply focus-visible:border-transparent focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-primary;
|
||||||
|
|
||||||
|
font-size: inherit;
|
||||||
|
line-height: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Gravity Forms styles */
|
||||||
.gform_wrapper {
|
.gform_wrapper {
|
||||||
@apply max-w-full mx-auto;
|
@apply max-w-full mx-auto;
|
||||||
|
|
||||||
.gform_fields {
|
.gform_fields { @apply text-black; }
|
||||||
@apply text-black;
|
|
||||||
}
|
|
||||||
|
|
||||||
fieldset.gfield {
|
fieldset.gfield { @apply mb-6; }
|
||||||
@apply mb-6;
|
|
||||||
}
|
|
||||||
|
|
||||||
legend, label {
|
legend, label { @apply text-lg font-bold mb-2; }
|
||||||
@apply text-lg font-bold mb-2;
|
|
||||||
}
|
|
||||||
|
|
||||||
label.gform-field-label--type-sub{
|
label.gform-field-label--type-sub{ @apply font-normal text-base; }
|
||||||
@apply font-normal text-base;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gfield_required {
|
.gfield_required { @apply text-danger text-xs font-bold ml-1; }
|
||||||
@apply text-danger text-xs font-bold ml-1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dark {
|
.dark {
|
||||||
input[type="text"],
|
input[type="text"], input[type="email"], input[type="tel"],
|
||||||
input[type="email"],
|
input[type="url"], input[type="number"], input[type="password"],
|
||||||
input[type="tel"],
|
input[type="date"], select, textarea {
|
||||||
input[type="url"],
|
|
||||||
input[type="number"],
|
|
||||||
input[type="password"],
|
|
||||||
input[type="date"],
|
|
||||||
select,
|
|
||||||
textarea {
|
|
||||||
@apply text-black bg-white;
|
@apply text-black bg-white;
|
||||||
@apply focus-visible:border-transparent focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-primary;
|
@apply focus-visible:border-transparent focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-primary;
|
||||||
}
|
}
|
||||||
@@ -47,44 +41,20 @@
|
|||||||
span {
|
span {
|
||||||
@apply block grow;
|
@apply block grow;
|
||||||
|
|
||||||
&:not(:first-child) {
|
&:not(:first-child) { @apply mt-6 sm:mt-0 sm:ml-4; }
|
||||||
@apply mt-6 sm:mt-0 sm:ml-4;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.gform_footer {
|
|
||||||
@apply mt-8;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2.gform_submission_error {
|
|
||||||
@apply text-xl text-danger font-bold my-4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.validation_message {
|
|
||||||
@apply italic text-danger;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hidden_label > label {
|
|
||||||
@apply hidden;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="text"],
|
.gform_footer { @apply mt-8; }
|
||||||
input[type="email"],
|
|
||||||
input[type="tel"],
|
|
||||||
input[type="url"],
|
|
||||||
input[type="number"],
|
|
||||||
input[type="password"],
|
|
||||||
input[type="date"],
|
|
||||||
select,
|
|
||||||
textarea {
|
|
||||||
@apply px-4 py-2 w-full rounded border-2 border-secondary focus-visible:bg-secondary-300 focus-visible:border-primary;
|
|
||||||
|
|
||||||
font-size: inherit;
|
h2.gform_submission_error { @apply text-xl text-danger font-bold my-4; }
|
||||||
line-height: inherit;
|
|
||||||
|
.validation_message { @apply italic text-danger; }
|
||||||
|
|
||||||
|
.hidden_label > label { @apply hidden; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Search block styles */
|
||||||
.wp-block-search__input {
|
.wp-block-search__input {
|
||||||
@apply px-4 py-2 w-full rounded border-2 border-transparent focus-visible:bg-secondary-300 focus-visible:border-primary;
|
@apply px-4 py-2 w-full rounded border-2 border-transparent focus-visible:bg-secondary-300 focus-visible:border-primary;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user