Skip to main content Sidebar
Skip to table of contents

    Flank

    When space is limited, items inside a flank wrap.

    Edit

    Demos#

    Adjacent elements#

    Flanks work especially well for asides, inputs with adjacent buttons and rich description lists.

    Edit
    Edit

    Position#

    By default, the first item in the pc-flank container will flank the other content. You can specify whether the first or last item will flank the remaining content by appending :start or :end to the pc-flank class.

    Edit

    Sizing#

    The flank’s initial size is determined by the size of its content, but you can set a target size using the --flank-size property. When the flank wraps, it stretches to fill the inline size of the container.

    Edit

    The main content fills the remaining inline space of the container. By default, the items wrap when the main content is less than 50 % of the container. You can change the minimum size of the main content with the --content-percentage custom property.

    Edit

    Align items#

    By default, items are centred in the block direction of the pc-flank container. You can add any of the following pc-align-items-* classes to an element with pc-flank to specify how items are aligned in the block direction:

    • pc-align-items-start
    • pc-align-items-end
    • pc-align-items-center
    • pc-align-items-stretch
    • pc-align-items-baseline
    Edit

    Gap#

    By default, the gap between flanks uses --pc-spacing-m from your theme. You can add any of the following pc-gap-* classes to an element with pc-flank to specify the gap between items.

    • pc-gap-0
    • pc-gap-xxxs
    • pc-gap-xxs
    • pc-gap-xs
    • pc-gap-s
    • pc-gap-m
    • pc-gap-l
    • pc-gap-xl
    • pc-gap-xxl
    • pc-gap-xxxl
    • pc-gap-xxxxl
    • pc-gap-xxxxxl
    Edit

    We’d love to hear from you. Please reach out to us with any questions or enquiries you may have.

    You can contact us via e‐mail at placer.coc.reports+contact@gmail.com.

    We look forward to hearing from you!

    Got it!
    Dangerous lands

    Whoa! You’ve wandered into the dangerous lands of Placer Toolkit. Version 0 is out of date and doesn’t meet EU privacy standards, including GDPR.

    Want the latest powers, security and compliance? Stick with the current version of Placer Toolkit!

    Yikes! Power up!