main.css 3.2 KB

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