@config './tailwind.mobile.js'; @tailwind base; @tailwind components; @tailwind utilities; @layer base { html { --safe-bottom: env(safe-area-inset-bottom); } [type='text'], [type='password'], [type='email'], [type='number'], [type='url'], [type='date'], [type='datetime-local'], [type='time'], [type='search'], [type='tel'], select, select[multiple] { @apply p-2; } textarea { @apply px-2 py-1; } /* Override autofill styles in Firefox. */ :-moz-autofill { background: transparent; } /* Override autofill styles in Webkit-based browsers. */ :-webkit-autofill { -webkit-text-fill-color: white; -webkit-background-clip: text; caret-color: white; } /* No-op animation for hooking into autofill mechanism in Webkit-based browsers. */ :-webkit-autofill { animation-name: onAutoFillStart; } :not(:-webkit-autofill) { animation-name: onAutoFillEnd; } @keyframes onAutoFillStart { from { } to { } } @keyframes onAutoFillEnd { from { } to { } } } @layer components { .absolute-floating-input:focus-within label, .absolute-floating-input.formkit-outer[data-populated] label { @apply -translate-y-2 opacity-75 ltr:translate-x-[2px] ltr:scale-75 rtl:pb-0 rtl:pt-5 rtl:text-xs; } .floating-input.formkit-outer[data-populated] label { @apply text-xs opacity-75; } .floating-textarea:focus-within label, .floating-textarea.formkit-outer[data-populated] label { @apply translate-y-0 text-xs opacity-75; } .required::after { @apply inline-block font-extrabold content-['•'] ltr:ml-1 rtl:mr-1 text-yellow; } .form-group { &.form-group-mark-dirty .formkit-outer[data-dirty]::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 0.25rem; background: repeating-linear-gradient( 45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1) 5px, transparent 5px, transparent 9px ) repeat center; background-size: 11px 11px; } .formkit-outer:not(:last-child) { > :last-child { @apply border-b border-white/10; } } } .Content, .ProseMirror { [style*='color'] { color: inherit !important; } div[data-signature-marker] { display: none; } &:focus-visible { outline: none; } blockquote { @apply border-l-4 border-l-gray-200 px-3 py-2; } ol { list-style: decimal; } ul { list-style: disc; } ol, ul { @apply pb-2; padding-inline-start: theme('spacing.2'); list-style-position: inside; p { display: inline; } } h1 { @apply mb-1 mt-2 text-2xl font-bold; } h2 { @apply mb-1 mt-2 text-xl font-bold; } h3 { @apply mb-1 mt-2 text-lg font-bold; } a { @apply text-blue; } [dir='rtl'] { text-align: right; } [dir='ltr'] { text-align: left; } } } @layer utilities { .pb-safe { padding-bottom: env(safe-area-inset-bottom); } .mb-safe { margin-bottom: env(safe-area-inset-bottom); } }