Examples
Unordered
- In fermentum leo eu lectus mollis, quis dictum mi aliquet.
- Morbi eu nulla lobortis, lobortis est in, fringilla felis.
-
Aliquam nec felis in sapien venenatis viverra fermentum nec lectus.
- In fermentum leo eu lectus mollis, quis dictum mi aliquet.
- Morbi eu nulla lobortis, lobortis est in, fringilla felis.
-
Ut venenatis, nisl scelerisque.
- Donec blandit a lorem id convallis.
- Cras gravida arcu at diam gravida gravida.
- Integer in volutpat libero.
- Ut non enim metus.
Ordered
- Donec blandit a lorem id convallis.
- Cras gravida arcu at diam gravida gravida.
- Integer in volutpat libero.
- Donec a diam tellus.
-
Etiam auctor nisl et.
- Donec blandit a lorem id convallis.
- Cras gravida arcu at diam gravida gravida.
-
Integer in volutpat libero.
- Donec blandit a lorem id convallis.
- Cras gravida arcu at diam gravida gravida.
- Aenean nec tortor orci.
- Quisque aliquam cursus urna, non bibendum massa viverra eget.
- Vivamus maximus ultricies pulvinar.
Plain
- Donec blandit a lorem id convallis.
- Integer in volutpat libero.
-
Donec a diam tellus.
- Donec blandit a lorem id convallis.
- Cras gravida arcu at diam gravida gravida.
- Integer in volutpat libero.
- Aenean nec tortor orci.
- Vivamus maximus ultricies pulvinar.
With horizontal rules
- Donec blandit a lorem id convallis.
- Integer in volutpat libero.
- Donec a diam tellus.
- Aenean nec tortor orci.
- Vivamus maximus ultricies pulvinar.
Documentation
Overview
Non-inline lists can be nested up to any level.
Usage
Class | Applied to | Outcome |
---|---|---|
.pf-v5-c-list | <ul>, <ol> | Initiates a list. Required |
.pf-m-inline | .pf-v5-c-list | Displays list items inline. |
.pf-m-plain | .pf-v5-c-list | Removes the list marker and base indentation. |
.pf-m-bordered | .pf-v5-c-list | Add horizontal divider between items in a list. |
.pf-m-icon-lg | .pf-v5-c-list | Show all the icons or logos in the list large. |
CSS variables
Expand or collapse column | Selector | Variable | Value | |
---|---|---|---|---|
.pf-v5-c-list | --pf-v5-c-list--PaddingLeft | 1.5rem | ||
--pf-v5-c-list--PaddingLeft --pf-v5-global--spacer--lg $pf-v5-global--spacer--lg pf-size-prem(24px) 1.5rem | ||||
.pf-v5-c-list | --pf-v5-c-list--nested--MarginTop | 0.5rem | ||
--pf-v5-c-list--nested--MarginTop --pf-v5-global--spacer--sm $pf-v5-global--spacer--sm pf-size-prem(8px) 0.5rem | ||||
.pf-v5-c-list | --pf-v5-c-list--nested--MarginLeft | 0.5rem | ||
--pf-v5-c-list--nested--MarginLeft --pf-v5-global--spacer--sm $pf-v5-global--spacer--sm pf-size-prem(8px) 0.5rem | ||||
.pf-v5-c-list | --pf-v5-c-list--ul--ListStyle | disc outside | ||
--pf-v5-c-list--ul--ListStyle --pf-v5-global--ListStyle $pf-v5-global--ListStyle disc outside | ||||
.pf-v5-c-list | --pf-v5-c-list--li--MarginTop | 0.5rem | ||
--pf-v5-c-list--li--MarginTop --pf-v5-global--spacer--sm $pf-v5-global--spacer--sm pf-size-prem(8px) 0.5rem | ||||
.pf-v5-c-list | --pf-v5-c-list--m-inline--li--MarginRight | 1.5rem | ||
--pf-v5-c-list--m-inline--li--MarginRight --pf-v5-global--spacer--lg $pf-v5-global--spacer--lg pf-size-prem(24px) 1.5rem | ||||
.pf-v5-c-list | --pf-v5-c-list--m-bordered--li--PaddingBottom | 0.5rem | ||
--pf-v5-c-list--m-bordered--li--PaddingBottom --pf-v5-global--spacer--sm $pf-v5-global--spacer--sm pf-size-prem(8px) 0.5rem | ||||
.pf-v5-c-list | --pf-v5-c-list--m-bordered--li--BorderBottomColor | #d2d2d2 | ||
--pf-v5-c-list--m-bordered--li--BorderBottomColor --pf-v5-global--BorderColor--100 $pf-v5-global--BorderColor--100 $pf-v5-color-black-300 #d2d2d2 | ||||
.pf-v5-c-list | --pf-v5-c-list--m-bordered--li--BorderBottomWidth | 1px | ||
--pf-v5-c-list--m-bordered--li--BorderBottomWidth --pf-v5-global--BorderWidth--sm $pf-v5-global--BorderWidth--sm 1px | ||||
.pf-v5-c-list | --pf-v5-c-list__item-icon--MinWidth | 0.75rem | ||
--pf-v5-c-list__item-icon--MinWidth --pf-v5-global--icon--FontSize--sm $pf-v5-global--icon--FontSize--sm pf-font-prem(12px) 0.75rem | ||||
.pf-v5-c-list | --pf-v5-c-list__item-icon--MarginTop | 0.375rem | ||
.pf-v5-c-list | --pf-v5-c-list__item-icon--MarginRight | 0.5rem | ||
--pf-v5-c-list__item-icon--MarginRight --pf-v5-global--spacer--sm $pf-v5-global--spacer--sm pf-size-prem(8px) 0.5rem | ||||
.pf-v5-c-list | --pf-v5-c-list__item-icon--Color | #151515 | ||
--pf-v5-c-list__item-icon--Color --pf-v5-global--icon--Color--dark $pf-v5-global--icon--Color--dark $pf-v5-color-black-900 #151515 | ||||
.pf-v5-c-list | --pf-v5-c-list__item-icon--FontSize | 0.75rem | ||
--pf-v5-c-list__item-icon--FontSize --pf-v5-global--icon--FontSize--sm $pf-v5-global--icon--FontSize--sm pf-font-prem(12px) 0.75rem | ||||
.pf-v5-c-list | --pf-v5-c-list--m-icon-lg__item-icon--MinWidth | 1.5rem | ||
--pf-v5-c-list--m-icon-lg__item-icon--MinWidth --pf-v5-global--icon--FontSize--lg $pf-v5-global--icon--FontSize--lg pf-font-prem(24px) 1.5rem | ||||
.pf-v5-c-list | --pf-v5-c-list--m-icon-lg__item-icon--MarginRight | 1rem | ||
--pf-v5-c-list--m-icon-lg__item-icon--MarginRight --pf-v5-global--spacer--md $pf-v5-global--spacer--md pf-size-prem(16px) 1rem | ||||
.pf-v5-c-list | --pf-v5-c-list--m-icon-lg__item-icon--FontSize | 1.5rem | ||
--pf-v5-c-list--m-icon-lg__item-icon--FontSize --pf-v5-global--icon--FontSize--lg $pf-v5-global--icon--FontSize--lg pf-font-prem(24px) 1.5rem | ||||
.pf-v5-c-list.pf-m-icon-lg | --pf-v5-c-list__item-icon--MinWidth | 1.5rem | ||
--pf-v5-c-list__item-icon--MinWidth --pf-v5-c-list--m-icon-lg__item-icon--MinWidth --pf-v5-global--icon--FontSize--lg $pf-v5-global--icon--FontSize--lg pf-font-prem(24px) 1.5rem | ||||
.pf-v5-c-list.pf-m-icon-lg | --pf-v5-c-list__item-icon--MarginTop | 0 | ||
.pf-v5-c-list.pf-m-icon-lg | --pf-v5-c-list__item-icon--MarginRight | 1rem | ||
--pf-v5-c-list__item-icon--MarginRight --pf-v5-c-list--m-icon-lg__item-icon--MarginRight --pf-v5-global--spacer--md $pf-v5-global--spacer--md pf-size-prem(16px) 1rem | ||||
.pf-v5-c-list.pf-m-icon-lg | --pf-v5-c-list__item-icon--FontSize | 1.5rem | ||
--pf-v5-c-list__item-icon--FontSize --pf-v5-c-list--m-icon-lg__item-icon--FontSize --pf-v5-global--icon--FontSize--lg $pf-v5-global--icon--FontSize--lg pf-font-prem(24px) 1.5rem | ||||
.pf-v5-c-list.pf-m-plain | --pf-v5-c-list--PaddingLeft | 0 | ||
.pf-v5-c-list.pf-m-inline | --pf-v5-c-list--PaddingLeft | 0 | ||
.pf-v5-c-list.pf-m-inline li | --pf-v5-c-list--li--MarginTop | 0 | ||
.pf-v5-c-list.pf-m-bordered > :last-child | --pf-v5-c-list--m-bordered--li--PaddingBottom | 0 | ||
.pf-v5-c-list.pf-m-bordered > :last-child | --pf-v5-c-list--m-bordered--li--BorderBottomWidth | 0 |
View source on GitHub