Giter Club home page Giter Club logo

Comments (6)

gvwilson avatar gvwilson commented on June 6, 2024 1

Thanks - that fixes the problem for one paragraph in a list item, but not for:

-   first item is a full paragraph

-   second item is two paragraphs

    this is the second of those paragraphs

-   third item is just one paragraph again

I'll experiment with :first-child and the like to see if that'll take care of it - thank you.

from papercss.

mstimberg avatar mstimberg commented on June 6, 2024

I don't know much about PaperCSS (came here via your post on Mastodon), but if you never need "proper" paragraphs within <li> elements, then you should be able to make such paragraphs into inline elements via the following in your css file that you apply on top of PaperCSS:

li p {
  display: inline;
}

from papercss.

mstimberg avatar mstimberg commented on June 6, 2024

Not sure whether this is a good idea, but you could also force line breaks between paragraphs with this (from here):

li p::after
{
  content: "";
  display: block;
}

from papercss.

Brandon-Schefstad avatar Brandon-Schefstad commented on June 6, 2024

@gvwilson Pushing up a PR for this change.

image
image

Let me know if this is the behavior you're expecting!

from papercss.

gvwilson avatar gvwilson commented on June 6, 2024

thank you

from papercss.

Brandon-Schefstad avatar Brandon-Schefstad commented on June 6, 2024

There is also this change if you want separated paragraphs:
image

image

from papercss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.