main.css 3.7 KB

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