123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- @import './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;
- }
- @keyframes onAutoFillStart {
- from {
- }
- to {
- }
- }
- @keyframes onAutoFillEnd {
- from {
- }
- to {
- }
- }
- }
- @layer components {
- 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 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;
- }
- }
- }
- @layer utilities {
- .group-block {
- @apply rounded-3xl bg-white p-5 text-black dark:bg-gray-500 dark:text-white;
- }
- @media print {
- [data-print-mode='true'] body {
- @apply invisible;
- .print-area {
- @apply visible fixed inset-0;
- }
- }
- }
- }
|