Skip to content

Commit

Permalink
Update custom.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Thutmose3 authored Jul 30, 2024
1 parent b9e47b7 commit 71b2f13
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions docs/custom.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,40 +23,40 @@ The documentation on CSSContainer is a bit under-developed, more documentation c
-----------------------------------------------------------------------------

Example:
CRISPY_TAILWIND_STYLE = {
"text": "bg-gray-50 border border-gray-300",
"select": "bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
}
CRISPY_TAILWIND_STYLE = {
"text": "bg-gray-50 border border-gray-300",
"select": "bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
}

Check warning on line 29 in docs/custom.txt

View workflow job for this annotation

GitHub Actions / docs

Definition list ends without a blank line; unexpected unindent.

This is currently only working for the input fields and the select field. More coming soon.

These are the fields you can override:
CRISPY_TAILWIND_STYLE = {
"text": "",
"number": "",
"radioselect": "",
"email": "",
"url": "",
"password": "",
"hidden": "",
"multiplehidden": "",
"file": "",
"clearablefile": "",
"textarea": "",
"date": "",
"datetime": "",
"time": "",
"checkbox": "",
"select": "",
"nullbooleanselect": "",
"selectmultiple": "",
"checkboxselectmultiple": "",
"multi": "",
"splitdatetime": "",
"splithiddendatetime": "",
"selectdate": "",
"error_border": "",
}
CRISPY_TAILWIND_STYLE = {
"text": "",
"number": "",
"radioselect": "",
"email": "",
"url": "",
"password": "",
"hidden": "",
"multiplehidden": "",
"file": "",
"clearablefile": "",
"textarea": "",
"date": "",
"datetime": "",
"time": "",
"checkbox": "",
"select": "",
"nullbooleanselect": "",
"selectmultiple": "",
"checkboxselectmultiple": "",
"multi": "",
"splitdatetime": "",
"splithiddendatetime": "",
"selectdate": "",
"error_border": "",
}

Check warning on line 59 in docs/custom.txt

View workflow job for this annotation

GitHub Actions / docs

Definition list ends without a blank line; unexpected unindent.

---------------
2. CSSContainer
Expand Down

0 comments on commit 71b2f13

Please sign in to comment.