main.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. .grid-cols-2-uneven > *:nth-last-child(1):nth-child(odd) {
  47. grid-column: span 2;
  48. }
  49. input::placeholder,
  50. textarea::placeholder {
  51. @apply text-stone-200 dark:text-neutral-500;
  52. }
  53. .required::after {
  54. @apply inline-block font-extrabold text-yellow-600 content-['•'] ltr:ml-1 rtl:mr-1;
  55. }
  56. /* Compatibility layer for object attributes and form columns. */
  57. .form-group .formkit-outer {
  58. @apply col-span-2;
  59. &.form-group-single-column {
  60. @apply col-span-1;
  61. }
  62. }
  63. /*
  64. TODO: Dirty mark styling within the field.
  65. .form-group.form-group-mark-dirty .formkit-outer[data-dirty]::before {}
  66. */
  67. .tooltip {
  68. @apply fixed z-50 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;
  69. &-animate {
  70. @apply translate-y-0 opacity-100;
  71. }
  72. }
  73. /*
  74. Editor content styles
  75. */
  76. .Content,
  77. .ProseMirror {
  78. div[data-signature-marker] {
  79. display: none;
  80. }
  81. &:focus-visible {
  82. outline: none;
  83. }
  84. blockquote {
  85. @apply border-l-4 border-l-gray-200 px-3 py-2;
  86. }
  87. ol {
  88. list-style: decimal;
  89. }
  90. ul {
  91. list-style: disc;
  92. }
  93. ol,
  94. ul {
  95. @apply pb-2;
  96. padding-inline-start: theme('spacing.2');
  97. list-style-position: inside;
  98. p {
  99. display: inline;
  100. }
  101. }
  102. h1 {
  103. @apply mb-1 mt-2 text-2xl font-bold;
  104. }
  105. h2 {
  106. @apply mb-1 mt-2 text-xl font-bold;
  107. }
  108. h3 {
  109. @apply mb-1 mt-2 text-lg font-bold;
  110. }
  111. a {
  112. @apply text-blue-800;
  113. }
  114. [dir='rtl'] {
  115. text-align: right;
  116. }
  117. [dir='ltr'] {
  118. text-align: left;
  119. }
  120. }
  121. }
  122. @layer utilities {
  123. .group-block {
  124. @apply rounded-3xl bg-white p-5 text-black dark:bg-gray-500 dark:text-white;
  125. }
  126. .backface-hidden {
  127. backface-visibility: hidden;
  128. }
  129. @media print {
  130. [data-print-mode='true'] body {
  131. @apply invisible;
  132. .print-area {
  133. @apply visible fixed inset-0;
  134. }
  135. }
  136. }
  137. }