style.css 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. @reference "@vben/tailwind-config/theme";
  2. .vben-tiptap-content > * + * {
  3. @apply mt-3;
  4. }
  5. .vben-tiptap-content h1 {
  6. @apply text-2xl font-bold leading-[1.4];
  7. }
  8. .vben-tiptap-content h2 {
  9. @apply text-xl font-bold leading-[1.45];
  10. }
  11. .vben-tiptap-content h3 {
  12. @apply text-lg font-semibold leading-[1.5];
  13. }
  14. .vben-tiptap-content h4 {
  15. @apply text-base font-semibold leading-[1.55];
  16. }
  17. .vben-tiptap-content ul {
  18. @apply list-disc pl-6;
  19. }
  20. .vben-tiptap-content ol {
  21. @apply list-decimal pl-6;
  22. }
  23. .vben-tiptap-content blockquote {
  24. @apply border-l-4 border-primary pl-4 text-muted-foreground;
  25. }
  26. .vben-tiptap-content a {
  27. @apply text-primary underline decoration-1 underline-offset-[3px];
  28. }
  29. .vben-tiptap-content code {
  30. @apply rounded-[0.45rem] border border-border bg-secondary px-[0.35rem] py-[0.15rem] text-[0.9em] text-primary;
  31. }
  32. .vben-tiptap-content pre {
  33. @apply overflow-x-auto rounded-[0.9rem] border border-border bg-popover p-4 text-popover-foreground;
  34. }
  35. .vben-tiptap-content pre code {
  36. @apply border-none bg-transparent p-0 text-inherit;
  37. }
  38. .vben-tiptap-content img,
  39. .vben-tiptap-content .vben-tiptap__image {
  40. @apply my-4 block h-auto rounded-2xl border border-border;
  41. max-width: min(100%, 640px);
  42. }