Login  Register

Re: Font size definjition for 1st paragraph in stylesheet?

Posted by mojavelinux on Apr 28, 2021; 7:34pm
URL: https://discuss.asciidoctor.org/Re-Font-size-definjition-for-1st-paragraph-in-stylesheet-tp8602.html

Tobi,

There are two options you have. If you have control over the AsciiDoc, you can assign a role to the first paragraph, which disables the implicit "lead" role, which is what is giving it the different font size.

https://docs.asciidoctor.org/asciidoc/latest/blocks/preamble-and-lead/#lead-role

The other option, if you don't have control over the AsciiDoc, is to add the following to your CSS:

#preamble > .sectionbody > [class="paragraph"]:first-of-type p {
  font-size: inherit
}

-Dan

On Wed, Apr 28, 2021 at 6:24 AM Tobi [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I'm using a style sheet that I've inherited from a person that is not available any more for a request. Moreover, I neither have a black belt in Asciidoctor nor CSS.
The stylesheet I'm using is outputting the first paragraph in a different font size than all other paragraphs. For waht do I have to search the stylesheet to adjust this?
Unfortunately, the stylesheet is quite big and seems to have a lot of abandoned defintions.
Thank you in advance!


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Font-size-definjition-for-1st-paragraph-in-stylesheet-tp8601.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux