Nenhuma Descrição

styles.css 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @import "tailwindcss";
  2. @plugin "daisyui";
  3. /**
  4. * A catch-all path to Django template files, JavaScript, and Python files
  5. * that contain Tailwind CSS classes and will be scanned by Tailwind to generate the final CSS file.
  6. *
  7. * If your final CSS file is not being updated after code changes, you may want to broaden or narrow
  8. * the scope of this path.
  9. */
  10. @source "../../../**/*.{html,py,js}";
  11. @source "../../../**/widgets/*.html";
  12. /* Include third-party templates that generate Tailwind classes at runtime */
  13. @source "/usr/local/lib/python*/site-packages/crispy_tailwind/**/*.html";
  14. @source "../../../venv/lib/python*/site-packages/crispy_tailwind/**/*.html";
  15. @source "../../../.venv/lib/python*/site-packages/crispy_tailwind/**/*.html";
  16. /* Custom components */
  17. @layer components {
  18. /* Generic inline layout for checkbox fields: place input and label on one row */
  19. .checkbox-inline {
  20. @apply flex items-center gap-2;
  21. }
  22. .checkbox-inline label {
  23. @apply mb-0;
  24. }
  25. /* Generalize for crispy-rendered fields without custom templates */
  26. /* Baseline: make label + checkbox inline when markup is label then input */
  27. [id^="div_id_"] > label + input[type="checkbox"],
  28. [id^="div_id_"] > label + input[type="radio"] {
  29. display: inline-block;
  30. vertical-align: middle;
  31. margin-left: 0.5rem;
  32. }
  33. [id^="div_id_"] > label {
  34. display: inline-block;
  35. vertical-align: middle;
  36. margin-bottom: 0; /* override block label spacing */
  37. }
  38. /* Enhancement for modern browsers: use :has to flex-align container when it contains a checkbox/radio */
  39. [id^="div_id_"]:has(> input[type="checkbox"]),
  40. [id^="div_id_"]:has(> input[type="radio"]) {
  41. @apply flex items-center gap-2;
  42. }
  43. [id^="div_id_"]:has(> input[type="checkbox"]) > label,
  44. [id^="div_id_"]:has(> input[type="radio"]) > label {
  45. @apply mb-0;
  46. }
  47. /* Restore native picker icon that crispy-tailwind may hide via appearance-none */
  48. input[type="date"], input[type="time"], input[type="datetime-local"] {
  49. -webkit-appearance: auto;
  50. appearance: auto;
  51. color-scheme: light;
  52. background-color: #fff;
  53. }
  54. input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  55. opacity: 1;
  56. display: block;
  57. }
  58. }