123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- @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 text-yellow inline-block font-extrabold content-['•'] ltr:ml-1 rtl:mr-1;
- }
- .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);
- }
- }
|