from-quill-editor-overrides.css 967 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* :where(.ql-editor, .ql-editor ul, .ql-editor ol)
  2. > *:where(:not(:first-child)) {
  3. margin-block-start: 1.5rem;
  4. } */
  5. .ql-editor {
  6. padding-block: 1.5rem;
  7. padding-inline: 2rem;
  8. padding-inline: clamp(.5rem, 2.5vw, 3rem);
  9. padding-inline: clamp(20px, 5vw, 35px);
  10. & > *:where(:not(:first-child)) {
  11. margin-block-start: var(--flow-space, 1.5rem)
  12. }
  13. /* list items */
  14. /* & *:where(ul, ol) > *:where(:not(:first-child)) {
  15. margin-block-start: .25rem;
  16. } */
  17. & *:where(ul, ol) > *:where(:not(:first-child)) {
  18. margin-block-start: .25rem;
  19. }
  20. & *:is(ol, ul) {
  21. padding: 0;
  22. }
  23. & > p + :is(ul, ol) {
  24. margin-block-start: .25rem;
  25. }
  26. /* empty paragraphs have a smaller margin, unless they follow other empty paragraphs */
  27. /* :not(p:has(br:first-child:last-child)) + p:has(br:first-child:last-child) {
  28. background-color: red;
  29. margin-top:-.5rem;
  30. } */
  31. }