main.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. @import './transitions.css';
  2. @config './tailwind.desktop.js';
  3. @tailwind base;
  4. @tailwind components;
  5. @tailwind utilities;
  6. @layer base {
  7. /* Override autofill styles in Firefox. */
  8. :-moz-autofill {
  9. background: transparent;
  10. }
  11. /* Override autofill styles in Webkit-based browsers. */
  12. :-webkit-autofill {
  13. -webkit-text-fill-color: theme('colors.black');
  14. -webkit-background-clip: text;
  15. caret-color: theme('colors.black');
  16. }
  17. [data-theme='dark'] :-webkit-autofill {
  18. -webkit-text-fill-color: theme('colors.white');
  19. caret-color: theme('colors.white');
  20. }
  21. /* No-op animation for hooking into autofill mechanism in Webkit-based browsers. */
  22. :-webkit-autofill {
  23. animation-name: onAutoFillStart;
  24. }
  25. :not(:-webkit-autofill) {
  26. animation-name: onAutoFillEnd;
  27. }
  28. /* Better-looking typography on high-density screens. */
  29. body {
  30. @apply antialiased;
  31. }
  32. @keyframes onAutoFillStart {
  33. from {
  34. }
  35. to {
  36. }
  37. }
  38. @keyframes onAutoFillEnd {
  39. from {
  40. }
  41. to {
  42. }
  43. }
  44. }
  45. @layer components {
  46. input::placeholder,
  47. textarea::placeholder {
  48. @apply text-stone-200 dark:text-neutral-500;
  49. }
  50. .required::after {
  51. @apply inline-block font-extrabold text-yellow-600 content-['•'] ltr:ml-1 rtl:mr-1;
  52. }
  53. /* Compatibility layer for object attributes and form columns. */
  54. .form-group .formkit-outer {
  55. @apply col-span-2;
  56. &.form-group-single-column {
  57. @apply col-span-1;
  58. }
  59. }
  60. /*
  61. TODO: Dirty mark styling within the field.
  62. .form-group.form-group-mark-dirty .formkit-outer[data-dirty]::before {}
  63. */
  64. .tooltip {
  65. @apply fixed w-fit -translate-y-2 select-none text-wrap rounded-md border border-neutral-100 bg-blue-200 px-2 py-1 text-xs leading-snug text-gray-100 opacity-0 transition-all dark:border-gray-900 dark:bg-gray-700 dark:text-neutral-400;
  66. &-animate {
  67. @apply translate-y-0 opacity-100;
  68. }
  69. }
  70. }
  71. @layer utilities {
  72. .group-block {
  73. @apply rounded-3xl bg-white p-5 text-black dark:bg-gray-500 dark:text-white;
  74. }
  75. @media print {
  76. [data-print-mode='true'] body {
  77. @apply invisible;
  78. .print-area {
  79. @apply visible fixed inset-0;
  80. }
  81. }
  82. }
  83. }