Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Commit

Permalink
Add custom base form styles
Browse files Browse the repository at this point in the history
  • Loading branch information
opdavies committed Mar 11, 2021
1 parent ac56bbc commit d4dee13
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions web/themes/custom/opdavies/assets/css/base/forms.pcss
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
@layer base {
form {
@apply space-y-5
}

[type='text'],
textarea {
@apply w-full
}

[type='text'],
[type='email'],
[type='url'],
[type='password'],
[type='number'],
[type='date'],
[type='datetime-local'],
[type='month'],
[type='search'],
[type='tel'],
[type='time'],
[type='week'],
[multiple],
select,
textarea {
@apply border-gray-400 rounded-lg
}

.form-item,
.form-wrapper {
@apply max-w-md
}

.js-form-type-email,
.js-form-type-password,
.js-form-type-textarea,
.js-form-type-textfield {
label {
@apply block
}
}
}

0 comments on commit d4dee13

Please sign in to comment.