@import url('./transitions.css'); @config './tailwind.desktop.js'; @tailwind base; @tailwind components; @tailwind utilities; @layer base { /* Override autofill styles in Firefox. */ :-moz-autofill { background: transparent; } /* Override autofill styles in Webkit-based browsers. */ :-webkit-autofill { -webkit-text-fill-color: theme('colors.black'); -webkit-background-clip: text; caret-color: theme('colors.black'); } [data-theme='dark'] :-webkit-autofill { -webkit-text-fill-color: theme('colors.white'); caret-color: theme('colors.white'); } /* No-op animation for hooking into autofill mechanism in Webkit-based browsers. */ :-webkit-autofill { animation-name: onAutoFillStart; } :not(:-webkit-autofill) { animation-name: onAutoFillEnd; } /* Better-looking typography on high-density screens. */ body { @apply antialiased; } a { @apply outline-none focus-visible:outline-1 focus-visible:outline-offset-1 focus-visible:outline-blue-800; } @keyframes onAutoFillStart { from { } to { } } @keyframes onAutoFillEnd { from { } to { } } } @layer components { .grid-cols-2-uneven > *:nth-last-child(1):nth-child(odd) { grid-column: span 2; } input::placeholder, textarea::placeholder { @apply text-stone-200 dark:text-neutral-500; } .required::after { @apply inline-block font-extrabold text-yellow-600 content-['•'] ltr:ml-1 rtl:mr-1; } /* Compatibility layer for object attributes and form columns. */ .form-group .formkit-outer { @apply col-span-2; &.form-group-single-column { @apply col-span-1; } } /* TODO: Dirty mark styling within the field. .form-group.form-group-mark-dirty .formkit-outer[data-dirty]::before {} */ .tooltip { @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; &-animate { @apply translate-y-0 opacity-100; } } /* Editor content styles */ .Content, .ProseMirror { 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-800; } [dir='rtl'] { text-align: right; } [dir='ltr'] { text-align: left; } } } @layer utilities { .group-block { @apply rounded-3xl bg-neutral-50 p-5 text-black dark:bg-gray-500 dark:text-white; } .backface-hidden { backface-visibility: hidden; } @media print { [data-print-mode='true'] body { @apply invisible; .print-area { @apply visible fixed inset-0; } } } }