mirror of
https://github.com/we-promise/sure.git
synced 2026-04-21 13:04:18 +00:00
* Add and organise component stylesheets * Revert CSS folder and file structure * Add FormsHelper and FormBuilder to apply component classes * Refactor label args Co-authored-by: Jose Farias <31393016+josefarias@users.noreply.github.com> Signed-off-by: Josh Brown <josh@joossh.com> * Update form field styles * Apply form builder to all fields * Remove redundant style rules Some of these were either duplicative or had no effect. * Apply default submit button styles * Set default form class * Fix opacity of input when focused --------- Signed-off-by: Josh Brown <josh@joossh.com> Co-authored-by: Jose Farias <31393016+josefarias@users.noreply.github.com> Co-authored-by: Josh Pigford <josh@joshpigford.com>
46 lines
1000 B
CSS
46 lines
1000 B
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
@layer components {
|
|
.prose {
|
|
table {
|
|
@apply divide-y divide-gray-300;
|
|
}
|
|
|
|
tr {
|
|
@apply divide-x divide-gray-100;
|
|
}
|
|
|
|
th {
|
|
@apply whitespace-nowrap px-2 py-3.5 text-left text-sm font-semibold text-gray-900;
|
|
}
|
|
|
|
tbody {
|
|
@apply divide-y divide-gray-200;
|
|
}
|
|
|
|
td {
|
|
@apply px-2 py-2 text-sm text-gray-500 whitespace-nowrap;
|
|
}
|
|
}
|
|
|
|
.form-field {
|
|
@apply relative border bg-white rounded-xl shadow-sm;
|
|
@apply focus-within:shadow-none focus-within:border-gray-900 focus-within:ring-4 focus-within:ring-gray-100;
|
|
}
|
|
|
|
.form-field__label {
|
|
@apply p-3 pb-0 block text-sm font-medium opacity-50;
|
|
}
|
|
|
|
.form-field__input {
|
|
@apply p-3 pt-1 w-full bg-transparent border-none opacity-50;
|
|
@apply focus:outline-none focus:ring-0 focus:opacity-100;
|
|
}
|
|
|
|
.form-field__submit {
|
|
@apply w-full p-3 text-center text-white bg-black rounded-lg hover:bg-gray-700;
|
|
}
|
|
}
|