main.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @import '@shared/styles/main.css';
  2. .Content,
  3. .ProseMirror {
  4. &:focus-visible {
  5. outline: none;
  6. }
  7. blockquote {
  8. @apply border-l-4 border-l-gray-200 px-3 py-2;
  9. }
  10. ol {
  11. list-style: decimal;
  12. }
  13. ul {
  14. list-style: disc;
  15. }
  16. ol,
  17. ul {
  18. @apply ltr:pl-2 rtl:pr-2;
  19. list-style-position: inside;
  20. p {
  21. display: inline-block;
  22. }
  23. }
  24. h1 {
  25. @apply mb-2 mt-1 text-2xl font-bold;
  26. }
  27. h2 {
  28. @apply my-1 text-xl font-bold;
  29. }
  30. h3 {
  31. @apply my-1 text-lg font-bold;
  32. }
  33. a {
  34. @apply text-blue;
  35. }
  36. }
  37. @layer base {
  38. [type='text'],
  39. [type='password'],
  40. [type='email'],
  41. [type='number'],
  42. [type='url'],
  43. [type='date'],
  44. [type='datetime-local'],
  45. [type='time'],
  46. [type='search'],
  47. [type='tel'],
  48. select,
  49. select[multiple] {
  50. @apply p-2;
  51. }
  52. textarea {
  53. @apply px-2 py-1;
  54. }
  55. }
  56. @layer components {
  57. .absolute-floating-input:focus-within label,
  58. .absolute-floating-input.formkit-outer[data-populated] label {
  59. @apply -translate-y-2 scale-75 opacity-75 ltr:translate-x-[2px] rtl:translate-x-6;
  60. }
  61. .floating-input.formkit-outer[data-populated] label {
  62. @apply text-xs opacity-75;
  63. }
  64. .floating-textarea:focus-within label,
  65. .floating-textarea.formkit-outer[data-populated] label {
  66. @apply translate-y-0 text-xs opacity-75;
  67. }
  68. }