• Resolved MitchellAU

    (@mitchellau)


    I’ve searched through a lot of the documentation but wondering if it’s possible to introduce a style to individual list items <li> not just <ul> or <ol> tags. I’m wanting to add a margin to the bottom of each item to add spacing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    I’d suggest looking at Customizing JSON

    Thread Starter MitchellAU

    (@mitchellau)

    Thanks for the pointer, Bradford.

    I’ve done some editing of the body component JSON – in the default styles section but I’m not sure it’s in the right pace?. It is my understanding that the list style needs to be placed within the text style definition.

    This is what I have:

    {
        "textAlignment": "left",
        "fontName": "#body_font#",
        "fontSize": "#body_size#",
        "tracking": "#body_tracking#",
        "lineHeight": "#body_line_height#",
        "textColor": "#body_color#",
        "linkStyle": {
            "textColor": "#body_link_color#"
        },
        "listItemStyle": {
            "unorderedListItems": {
                "paragraphSpacingBefore": 18,
                "paragraphSpacingAfter": 18
            }
        },
        "paragraphSpacingBefore": 18,
        "paragraphSpacingAfter": 18
    }

    Should this be done using ‘Layout” and ‘Margin’ instead?

    • This reply was modified 8 years, 3 months ago by MitchellAU.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Defining styles for ordered/unordered lists’ is closed to new replies.