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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

mojavelinux
Administrator
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.


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