main.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. @import '#shared/styles/main.css';
  2. @config './tailwind.mobile.js';
  3. .Content,
  4. .ProseMirror {
  5. [style*='color'] {
  6. color: inherit !important;
  7. }
  8. div[data-signature-marker] {
  9. display: none;
  10. }
  11. &:focus-visible {
  12. outline: none;
  13. }
  14. blockquote {
  15. @apply border-l-4 border-l-gray-200 px-3 py-2;
  16. }
  17. ol {
  18. list-style: decimal;
  19. }
  20. ul {
  21. list-style: disc;
  22. }
  23. ol,
  24. ul {
  25. @apply pb-2;
  26. padding-inline-start: theme('spacing.2');
  27. list-style-position: inside;
  28. p {
  29. display: inline;
  30. }
  31. }
  32. h1 {
  33. @apply mb-1 mt-2 text-2xl font-bold;
  34. }
  35. h2 {
  36. @apply mb-1 mt-2 text-xl font-bold;
  37. }
  38. h3 {
  39. @apply mb-1 mt-2 text-lg font-bold;
  40. }
  41. a {
  42. @apply text-blue;
  43. }
  44. [dir='rtl'] {
  45. text-align: right;
  46. }
  47. [dir='ltr'] {
  48. text-align: left;
  49. }
  50. }
  51. @layer base {
  52. html {
  53. --safe-bottom: env(safe-area-inset-bottom);
  54. }
  55. [type='text'],
  56. [type='password'],
  57. [type='email'],
  58. [type='number'],
  59. [type='url'],
  60. [type='date'],
  61. [type='datetime-local'],
  62. [type='time'],
  63. [type='search'],
  64. [type='tel'],
  65. select,
  66. select[multiple] {
  67. @apply p-2;
  68. }
  69. textarea {
  70. @apply px-2 py-1;
  71. }
  72. /* Override autofill styles in Firefox. */
  73. :-moz-autofill {
  74. background: transparent;
  75. }
  76. /* Override autofill styles in Webkit-based browsers. */
  77. :-webkit-autofill {
  78. -webkit-text-fill-color: white;
  79. -webkit-background-clip: text;
  80. caret-color: white;
  81. }
  82. /* No-op animation for hooking into autofill mechanism in Webkit-based browsers. */
  83. :-webkit-autofill {
  84. animation-name: onAutoFillStart;
  85. }
  86. :not(:-webkit-autofill) {
  87. animation-name: onAutoFillEnd;
  88. }
  89. @keyframes onAutoFillStart {
  90. from {
  91. }
  92. to {
  93. }
  94. }
  95. @keyframes onAutoFillEnd {
  96. from {
  97. }
  98. to {
  99. }
  100. }
  101. }
  102. @layer components {
  103. .absolute-floating-input:focus-within label,
  104. .absolute-floating-input.formkit-outer[data-populated] label {
  105. @apply -translate-y-2 opacity-75 ltr:translate-x-[2px] ltr:scale-75 rtl:pb-0 rtl:pt-5 rtl:text-xs;
  106. }
  107. .floating-input.formkit-outer[data-populated] label {
  108. @apply text-xs opacity-75;
  109. }
  110. .floating-textarea:focus-within label,
  111. .floating-textarea.formkit-outer[data-populated] label {
  112. @apply translate-y-0 text-xs opacity-75;
  113. }
  114. .required-indicator {
  115. @apply text-yellow;
  116. }
  117. .form-group {
  118. &.form-group-mark-dirty .formkit-outer[data-dirty]::before {
  119. content: '';
  120. position: absolute;
  121. top: 0;
  122. left: 0;
  123. bottom: 0;
  124. width: 0.25rem;
  125. background: repeating-linear-gradient(
  126. 45deg,
  127. rgba(255, 255, 255, 0.1),
  128. rgba(255, 255, 255, 0.1) 5px,
  129. transparent 5px,
  130. transparent 9px
  131. )
  132. repeat center;
  133. background-size: 11px 11px;
  134. }
  135. .formkit-outer:not(:last-child) {
  136. > :last-child {
  137. @apply border-b border-white/10;
  138. }
  139. }
  140. }
  141. }
  142. @layer utilities {
  143. .pb-safe {
  144. padding-bottom: env(safe-area-inset-bottom);
  145. }
  146. .mb-safe {
  147. margin-bottom: env(safe-area-inset-bottom);
  148. }
  149. }