@patternfly/patternfly 5.0.0-alpha.4 → 5.0.0-alpha.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/RELEASE-NOTES.md +18 -1
- package/assets/icons/iconUnicodes.json +1 -0
- package/assets/images/pfbg-icon.svg +1 -0
- package/assets/pficon/pficon.scss +7 -2
- package/assets/pficon/pficon.woff2 +0 -0
- package/base/_base.scss +0 -18
- package/base/_chart-globals.scss +0 -4
- package/base/_common.scss +0 -22
- package/base/_fa-icons.scss +1 -2
- package/base/_fonts.scss +22 -27
- package/base/_globals.scss +92 -86
- package/base/_icons.scss +1 -28
- package/base/_svg-icons.scss +6 -0
- package/base/_variables.scss +4 -4
- package/base/patternfly-common.css +0 -10
- package/base/patternfly-fa-icons.css +1 -1
- package/base/patternfly-fonts.css +17 -17
- package/base/patternfly-globals.css +35 -41
- package/base/patternfly-icons.css +8 -22
- package/base/patternfly-pf-icons.css +6 -2
- package/base/patternfly-themes.css +0 -42
- package/base/patternfly-variables.css +3 -3
- package/base/themes/dark/_globals.scss +1 -1
- package/base/themes/dark/_variables.scss +1 -1
- package/components/AboutModalBox/about-modal-box.css +20 -50
- package/components/AboutModalBox/about-modal-box.scss +22 -14
- package/components/Accordion/accordion.css +2 -0
- package/components/Accordion/accordion.scss +2 -0
- package/components/Alert/alert.css +17 -8
- package/components/Alert/alert.scss +21 -7
- package/components/Alert/themes/dark/alert.scss +1 -1
- package/components/AppLauncher/app-launcher.css +2 -0
- package/components/AppLauncher/app-launcher.scss +2 -0
- package/components/Avatar/avatar.scss +2 -2
- package/components/BackgroundImage/background-image.css +8 -35
- package/components/BackgroundImage/background-image.scss +17 -43
- package/components/Banner/banner.css +14 -52
- package/components/Banner/banner.scss +9 -13
- package/components/Breadcrumb/breadcrumb.css +2 -0
- package/components/Breadcrumb/breadcrumb.scss +2 -0
- package/components/CalendarMonth/calendar-month.css +2 -2
- package/components/CalendarMonth/calendar-month.scss +3 -3
- package/components/Card/card.css +115 -50
- package/components/Card/card.scss +164 -63
- package/components/Chip/chip.css +33 -24
- package/components/Chip/chip.scss +40 -31
- package/components/ChipGroup/chip-group.css +27 -17
- package/components/ChipGroup/chip-group.scss +36 -22
- package/components/Content/content.css +11 -5
- package/components/Content/content.scss +17 -9
- package/components/ContextSelector/context-selector.css +13 -6
- package/components/ContextSelector/context-selector.scss +14 -7
- package/components/DataList/data-list-grid.css +7 -7
- package/components/DataList/data-list-grid.scss +1 -1
- package/components/DataList/data-list.css +46 -40
- package/components/DataList/data-list.scss +37 -28
- package/components/DatePicker/date-picker.css +0 -8
- package/components/DatePicker/date-picker.scss +0 -9
- package/components/DescriptionList/description-list.css +7 -7
- package/components/DescriptionList/description-list.scss +7 -7
- package/components/Divider/divider.css +2 -2
- package/components/Divider/divider.scss +3 -3
- package/components/Drawer/drawer.css +15 -16
- package/components/Drawer/drawer.scss +2 -3
- package/components/Dropdown/dropdown.css +26 -25
- package/components/Dropdown/dropdown.scss +17 -18
- package/components/DualListSelector/dual-list-selector.css +1 -1
- package/components/DualListSelector/dual-list-selector.scss +1 -1
- package/components/EmptyState/empty-state.css +46 -52
- package/components/EmptyState/empty-state.scss +58 -57
- package/components/ExpandableSection/expandable-section.css +2 -0
- package/components/ExpandableSection/expandable-section.scss +2 -0
- package/components/Form/form.css +14 -12
- package/components/Form/form.scss +9 -7
- package/components/FormControl/form-control.css +2 -5
- package/components/FormControl/themes/dark/form-control.scss +2 -6
- package/components/HelperText/helper-text.css +4 -0
- package/components/HelperText/helper-text.scss +5 -0
- package/components/Hint/hint.css +2 -2
- package/components/Hint/hint.scss +2 -2
- package/components/Icon/icon.css +3 -3
- package/components/Icon/icon.scss +3 -3
- package/components/InputGroup/input-group.css +61 -85
- package/components/InputGroup/input-group.scss +55 -61
- package/components/InputGroup/themes/dark/input-group.scss +11 -25
- package/components/Label/label.css +49 -36
- package/components/Label/label.scss +53 -38
- package/components/Label/themes/dark/label.scss +2 -2
- package/components/LabelGroup/label-group.css +26 -22
- package/components/LabelGroup/label-group.scss +31 -26
- package/components/LogViewer/log-viewer.css +0 -38
- package/components/Login/login.css +20 -60
- package/components/Login/login.scss +16 -18
- package/components/Login/themes/dark/login.scss +4 -0
- package/components/Masthead/masthead.css +4 -42
- package/components/Masthead/masthead.scss +4 -4
- package/components/Menu/menu.css +9 -6
- package/components/Menu/menu.scss +34 -31
- package/components/MenuToggle/menu-toggle.css +3 -1
- package/components/MenuToggle/menu-toggle.scss +3 -1
- package/components/ModalBox/modal-box.css +12 -11
- package/components/ModalBox/modal-box.scss +14 -14
- package/components/MultipleFileUpload/multiple-file-upload.css +6 -6
- package/components/MultipleFileUpload/multiple-file-upload.scss +6 -6
- package/components/Nav/nav.css +1 -1
- package/components/Nav/nav.scss +2 -2
- package/components/NotificationDrawer/notification-drawer.css +8 -8
- package/components/NotificationDrawer/notification-drawer.scss +8 -8
- package/components/OptionsMenu/options-menu.css +8 -10
- package/components/OptionsMenu/options-menu.scss +9 -11
- package/components/Page/page.css +101 -122
- package/components/Page/page.scss +49 -21
- package/components/Pagination/pagination.css +2 -110
- package/components/Pagination/pagination.scss +0 -6
- package/components/Popover/popover.css +31 -37
- package/components/Popover/popover.scss +32 -37
- package/components/Popover/themes/dark/popover.scss +3 -9
- package/components/Progress/progress.css +13 -10
- package/components/Progress/progress.scss +13 -10
- package/components/ProgressStepper/progress-stepper.css +5 -5
- package/components/ProgressStepper/progress-stepper.scss +5 -5
- package/components/SearchInput/search-input.css +4 -2
- package/components/SearchInput/search-input.scss +4 -2
- package/components/Select/select.css +1 -1
- package/components/Select/select.scss +1 -1
- package/components/Sidebar/sidebar.css +69 -26
- package/components/Sidebar/sidebar.scss +84 -27
- package/components/SimpleList/simple-list.css +1 -1
- package/components/SimpleList/simple-list.scss +2 -2
- package/components/Spinner/spinner.css +4 -133
- package/components/Spinner/spinner.scss +4 -173
- package/components/Table/table-grid.css +28 -28
- package/components/Table/table-scrollable.css +31 -26
- package/components/Table/table-scrollable.scss +33 -28
- package/components/Table/table-tree-view.css +14 -4
- package/components/Table/table-tree-view.scss +15 -0
- package/components/Table/table.css +67 -65
- package/components/Table/table.scss +65 -62
- package/components/Tabs/tabs.css +0 -4
- package/components/Tabs/tabs.scss +0 -7
- package/components/TextInputGroup/text-input-group.css +6 -4
- package/components/TextInputGroup/text-input-group.scss +6 -5
- package/components/Tile/tile.css +1 -1
- package/components/Tile/tile.scss +1 -1
- package/components/Timestamp/timestamp.css +3 -3
- package/components/Timestamp/timestamp.scss +3 -3
- package/components/Toolbar/toolbar.css +78 -43
- package/components/Toolbar/toolbar.scss +50 -10
- package/components/Tooltip/themes/dark/tooltip.scss +1 -11
- package/components/Tooltip/tooltip.css +7 -12
- package/components/Tooltip/tooltip.scss +6 -3
- package/components/TreeView/tree-view.css +7 -15
- package/components/TreeView/tree-view.scss +7 -18
- package/components/Wizard/wizard.css +16 -39
- package/components/Wizard/wizard.scss +20 -2
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +20 -14
- package/docs/components/Accordion/examples/Accordion.md +12 -12
- package/docs/components/ActionList/examples/ActionList.md +6 -6
- package/docs/components/Alert/examples/Alert.md +29 -29
- package/docs/components/AlertGroup/examples/AlertGroup.md +15 -15
- package/docs/components/AppLauncher/examples/application-launcher.md +52 -46
- package/docs/components/Avatar/examples/Avatar.md +11 -11
- package/docs/components/BackToTop/examples/BackToTop.md +4 -4
- package/docs/components/Backdrop/examples/Backdrop.md +4 -4
- package/docs/components/BackgroundImage/examples/BackgroundImage.md +13 -29
- package/docs/components/Badge/examples/Badge.md +5 -5
- package/docs/components/Banner/examples/Banner.md +8 -8
- package/docs/components/Brand/examples/Brand.md +9 -9
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +20 -20
- package/docs/components/Button/examples/Button.md +51 -55
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +301 -284
- package/docs/components/Card/examples/Card.md +676 -116
- package/docs/components/Check/examples/Check.md +16 -19
- package/docs/components/Chip/examples/Chip.md +70 -52
- package/docs/components/ChipGroup/examples/ChipGroup.md +452 -673
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +22 -22
- package/docs/components/CodeBlock/examples/CodeBlock.md +9 -9
- package/docs/components/CodeEditor/examples/CodeEditor.md +54 -35
- package/docs/components/Content/examples/Content.md +37 -9
- package/docs/components/ContextSelector/examples/context-selector.css +5 -1
- package/docs/components/ContextSelector/examples/context-selector.md +87 -80
- package/docs/components/DataList/examples/DataList.md +239 -202
- package/docs/components/DatePicker/examples/DatePicker.md +139 -104
- package/docs/components/DescriptionList/examples/DescriptionList.md +24 -24
- package/docs/components/Divider/examples/Divider.md +10 -10
- package/docs/components/DragDrop/examples/DragDrop.md +5 -5
- package/docs/components/Drawer/examples/Drawer.md +43 -43
- package/docs/components/Dropdown/examples/Dropdown.css +5 -2
- package/docs/components/Dropdown/examples/Dropdown.md +125 -100
- package/docs/components/DualListSelector/examples/DualListSelector.md +201 -197
- package/docs/components/EmptyState/examples/EmptyState.md +130 -82
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +23 -23
- package/docs/components/FileUpload/examples/FileUpload.md +150 -110
- package/docs/components/Form/examples/Form.md +152 -130
- package/docs/components/FormControl/examples/FormControl.md +21 -20
- package/docs/components/HelperText/examples/HelperText.md +24 -35
- package/docs/components/Hint/examples/Hint.md +7 -7
- package/docs/components/Icon/examples/Icon.md +11 -12
- package/docs/components/InlineEdit/examples/InlineEdit.md +29 -27
- package/docs/components/InputGroup/examples/InputGroup.md +229 -179
- package/docs/components/JumpLinks/examples/JumpLinks.md +35 -35
- package/docs/components/Label/examples/Label.md +1427 -746
- package/docs/components/LabelGroup/examples/LabelGroup.md +295 -242
- package/docs/components/List/examples/List.md +18 -18
- package/docs/components/LogViewer/examples/LogViewer.md +79 -74
- package/docs/components/Login/examples/Login.md +103 -181
- package/docs/components/Masthead/examples/masthead.md +9 -9
- package/docs/components/Menu/examples/Menu.md +93 -85
- package/docs/components/MenuToggle/examples/MenuToggle.md +29 -28
- package/docs/components/ModalBox/examples/ModalBox.md +113 -92
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +27 -26
- package/docs/components/Nav/examples/Navigation.md +69 -69
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +8 -8
- package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +64 -64
- package/docs/components/NumberInput/examples/NumberInput.md +311 -239
- package/docs/components/OptionsMenu/examples/options-menu.md +28 -28
- package/docs/components/OverflowMenu/examples/overflow-menu.md +25 -25
- package/docs/components/Page/examples/Page.css +7 -1
- package/docs/components/Page/examples/Page.md +81 -54
- package/docs/components/Pagination/examples/Pagination.md +27 -27
- package/docs/components/Panel/examples/Panel.md +10 -10
- package/docs/components/Popover/examples/Popover.md +206 -149
- package/docs/components/Progress/examples/Progress.md +32 -61
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +45 -39
- package/docs/components/Radio/examples/Radio.md +12 -11
- package/docs/components/SearchInput/examples/SearchInput.md +185 -148
- package/docs/components/Select/examples/Select.md +372 -318
- package/docs/components/Sidebar/examples/Sidebar.md +70 -14
- package/docs/components/SimpleList/examples/SimpleList.md +15 -15
- package/docs/components/Skeleton/examples/Skeleton.md +8 -8
- package/docs/components/SkipToContent/examples/SkipToContent.md +5 -5
- package/docs/components/Slider/examples/Slider.md +84 -62
- package/docs/components/Spinner/examples/Spinner.md +18 -67
- package/docs/components/Switch/examples/Switch.md +19 -19
- package/docs/components/TabContent/examples/TabContent.md +13 -13
- package/docs/components/Table/examples/Table.css +4 -0
- package/docs/components/Table/examples/Table.md +5212 -5750
- package/docs/components/Tabs/examples/Tabs.md +155 -155
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +523 -406
- package/docs/components/Tile/examples/Tile.md +16 -17
- package/docs/components/Timestamp/examples/Timestamp.md +5 -5
- package/docs/components/Title/examples/Title.md +17 -17
- package/docs/components/ToggleGroup/examples/toggle-group.md +13 -13
- package/docs/components/Toolbar/examples/Toolbar.md +848 -726
- package/docs/components/Tooltip/examples/Tooltip.md +10 -10
- package/docs/components/TreeView/examples/TreeView.md +34 -34
- package/docs/components/Truncate/examples/Truncate.md +4 -5
- package/docs/components/Wizard/examples/Wizard.md +119 -127
- package/docs/demos/AboutModal/examples/AboutModal.md +4 -5
- package/docs/demos/Alert/examples/Alert.md +118 -71
- package/docs/demos/BackToTop/examples/BackToTop.md +4 -4
- package/docs/demos/Banner/examples/Banner.md +8 -9
- package/docs/demos/Button/examples/Button.md +10 -5
- package/docs/demos/Card/examples/Card.md +246 -168
- package/docs/demos/CardView/examples/CardView.md +57 -30
- package/docs/demos/ContextSelector/examples/ContextSelector.md +18 -18
- package/docs/demos/Dashboard/examples/Dashboard.md +61 -38
- package/docs/demos/DataList/examples/DataList.md +312 -255
- package/docs/demos/DescriptionList/examples/DescriptionList.md +33 -22
- package/docs/demos/Drawer/examples/Drawer.md +24 -22
- package/docs/demos/Form/examples/BasicForms.md +220 -213
- package/docs/demos/HelperText/examples/HelperText.md +16 -14
- package/docs/demos/JumpLinks/examples/JumpLinks.md +28 -28
- package/docs/demos/Masthead/examples/Masthead.md +302 -284
- package/docs/demos/Modal/examples/Modal.md +54 -66
- package/docs/demos/Nav/examples/Nav.md +47 -47
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +70 -58
- package/docs/demos/Page/examples/Page.md +982 -51
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +22 -18
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +121 -106
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +345 -311
- package/docs/demos/Skeleton/examples/Skeleton.md +4 -4
- package/docs/demos/Table/examples/Table.md +3373 -1333
- package/docs/demos/Tabs/examples/Tabs.md +141 -90
- package/docs/demos/Toolbar/examples/Toolbar.md +1994 -329
- package/docs/demos/Wizard/examples/Wizard.md +289 -266
- package/docs/layouts/Bullseye/examples/Bullseye.md +4 -4
- package/docs/layouts/Flex/examples/Flex.md +98 -98
- package/docs/layouts/Gallery/examples/Gallery.md +7 -7
- package/docs/layouts/Grid/examples/Grid.md +9 -9
- package/docs/layouts/Level/examples/Level.md +5 -5
- package/docs/layouts/Split/examples/Split.md +7 -7
- package/docs/layouts/Stack/examples/Stack.md +6 -6
- package/docs/utilities/Accessibility/examples/Accessibility.md +5 -5
- package/docs/utilities/Alignment/examples/Alignment.md +7 -7
- package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +13 -13
- package/docs/utilities/BoxShadow/examples/box-shadow.md +23 -23
- package/docs/utilities/Display/examples/Display.md +12 -12
- package/docs/utilities/Flex/examples/Flex.md +35 -35
- package/docs/utilities/Float/examples/Float.md +5 -5
- package/docs/utilities/Sizing/examples/Sizing.md +51 -51
- package/docs/utilities/Spacing/examples/Spacing.md +35 -35
- package/docs/utilities/Text/examples/Text.md +31 -31
- package/icons/{pf-icons.json → pf-icons.mjs} +2 -1
- package/layouts/Gallery/gallery.css +1 -1
- package/layouts/Gallery/gallery.scss +1 -1
- package/layouts/Grid/grid.css +7 -7
- package/layouts/Grid/grid.scss +2 -2
- package/package.json +60 -66
- package/patternfly-addons.css +48 -48
- package/{patternfly-base-no-reset.css → patternfly-base-no-globals.css} +28 -73
- package/{patternfly-base-no-reset.scss → patternfly-base-no-globals.scss} +1 -0
- package/patternfly-base.css +63 -114
- package/{patternfly-no-reset.css → patternfly-no-globals.css} +1206 -2449
- package/{patternfly-no-reset.scss → patternfly-no-globals.scss} +1 -0
- package/patternfly.css +1234 -2483
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/functions.scss +8 -24
- package/sass-utilities/mixins.scss +15 -39
- package/sass-utilities/placeholders.scss +0 -23
- package/sass-utilities/scss-variables.scss +5 -6
- package/sass-utilities/themes/dark/placeholders.scss +0 -22
- package/sass-utilities/themes/dark/scss-variables.scss +1 -1
- package/utilities/Spacing/spacing.scss +2 -2
- package/utilities/Text/text.css +48 -48
- package/utilities/Text/text.scss +6 -6
- package/utilities/Text/themes/dark/text.scss +2 -2
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Black.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-BlackItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Bold.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-BoldItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Italic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Medium.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-MediumItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Regular.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Bold.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-BoldItalic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Italic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Medium.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-MediumItalic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Regular.woff +0 -0
- package/assets/fonts/webfonts/fa-solid-900.woff +0 -0
- package/assets/pficon/pficon.woff +0 -0
- package/base/_shield-inheritable.scss +0 -69
- package/base/_shield-noninheritable.scss +0 -13
- package/base/patternfly-shield-inheritable.css +0 -66
- package/base/patternfly-shield-inheritable.scss +0 -4
- package/base/patternfly-shield-noninheritable.css +0 -9
- package/base/patternfly-shield-noninheritable.scss +0 -4
- package/sass-utilities/bs-variables.scss +0 -709
|
@@ -23,7 +23,7 @@ The bullseye layout is designed to center a single child element horizontally an
|
|
|
23
23
|
|
|
24
24
|
### Usage
|
|
25
25
|
|
|
26
|
-
| Class
|
|
27
|
-
|
|
|
28
|
-
| `.pf-l-bullseye`
|
|
29
|
-
| `.pf-l-bullseye__item` |
|
|
26
|
+
| Class | Applied to | Outcome |
|
|
27
|
+
| -- | -- | -- |
|
|
28
|
+
| `.pf-l-bullseye` | `<div>` | Initializes the bullseye layout. A bullseye can only have one child. |
|
|
29
|
+
| `.pf-l-bullseye__item` | `<div>` | Explicitly sets the child for the bullseye. This class isn't necessary, but it is included to keep inline with BEM convention, and to provide an entity that will later be used for applying modifiers. |
|
|
@@ -10,32 +10,32 @@ The flex layout is based on the CSS Flex properties where the layout determines
|
|
|
10
10
|
|
|
11
11
|
### Default spacing
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
* Flex items (not last child): `margin-right: 16px`.
|
|
14
|
+
* Nested `.pf-l-flex` containers (not last child): `margin-right: 16px`.
|
|
15
|
+
* `.pf-m-column` direct descendants (not last child): `margin-bottom: 16px`.
|
|
16
|
+
* `.pf-m-column` nested `.pf-l-flex` containers (not last child): `margin-bottom: 16px`.
|
|
17
17
|
|
|
18
18
|
## Features
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
* `.pf-l-flex` is infinitely nestable and can be used to group items within.
|
|
21
|
+
* `.pf-m-spacer-{xs,sm,md,lg,xl,2xl,3xl}` can be applied to parent or direct children and changes the spacer value for only the element to which it is applied. Responsive spacers can be used by appending `{-on-[breakpoint]}` to `.pf-m-spacer-{size}`. Example: `.pf-m-spacer-lg-on-xl`.
|
|
22
|
+
* `.pf-m-space-items-{xs,sm,md,lg,xl,2xl,3xl}` can be applied to `.pf-l-flex` only and changes the spacing of direct children only. Responsive spacers can be used by appending `{-on-[breakpoint]}` to `.pf-m-space-items-{size}`. Example: `.pf-m-space-items-lg-on-xl`.
|
|
23
23
|
|
|
24
24
|
### Breakpoints
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
* [Breakpoints](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes) `-on-sm`, `-on-md`, `-on-lg`, `-on-xl`, and `-on-2xl` are provided.
|
|
27
27
|
|
|
28
28
|
### Usefulness
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
* Use when content dictates layout and elements wrap when necessary.
|
|
31
|
+
* Use when a rigid grid is not necessary/wanted.
|
|
32
32
|
|
|
33
33
|
### Differences from utility class
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
* It contains multiple css declarations and does not use the !important tag.
|
|
36
|
+
* It does not require wrapping elements in columns or rows.
|
|
37
|
+
* It breaks the dependency upon adding utility classes to each child.
|
|
38
|
+
* It can be applied to container elements or components.
|
|
39
39
|
|
|
40
40
|
## Examples
|
|
41
41
|
|
|
@@ -90,10 +90,10 @@ The CSS approach, by keeping specificity low on base class properties and resett
|
|
|
90
90
|
|
|
91
91
|
### Usage
|
|
92
92
|
|
|
93
|
-
| Class
|
|
94
|
-
|
|
|
95
|
-
| `.pf-l-flex`
|
|
96
|
-
| `.pf-l-flex__item` | `.pf-l-flex > *` | Initiates a flex item. **Required**
|
|
93
|
+
| Class | Applied to | Outcome |
|
|
94
|
+
| -- | -- | -- |
|
|
95
|
+
| `.pf-l-flex` | `*` | Initiates the flex layout. **Required** |
|
|
96
|
+
| `.pf-l-flex__item` | `.pf-l-flex > *` | Initiates a flex item. **Required** |
|
|
97
97
|
|
|
98
98
|
### Spacing
|
|
99
99
|
|
|
@@ -145,10 +145,10 @@ The CSS approach, by keeping specificity low on base class properties and resett
|
|
|
145
145
|
|
|
146
146
|
### Usage
|
|
147
147
|
|
|
148
|
-
| Class
|
|
149
|
-
|
|
|
150
|
-
| `.pf-m-spacer-{none, xs, sm, md, lg, xl, 2xl}{-on-[breakpoint]}`
|
|
151
|
-
| `.pf-m-space-items-{none, xs, sm, md, lg, xl, 2xl}{-on-[breakpoint]}` | `.pf-l-flex`
|
|
148
|
+
| Class | Applied to | Outcome |
|
|
149
|
+
| -- | -- | -- |
|
|
150
|
+
| `.pf-m-spacer-{none, xs, sm, md, lg, xl, 2xl}{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies a nested flex layout or a flex item spacing. |
|
|
151
|
+
| `.pf-m-space-items-{none, xs, sm, md, lg, xl, 2xl}{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout direct descendant spacing. |
|
|
152
152
|
|
|
153
153
|
### Layout modifiers
|
|
154
154
|
|
|
@@ -270,18 +270,18 @@ The CSS approach, by keeping specificity low on base class properties and resett
|
|
|
270
270
|
|
|
271
271
|
### Usage
|
|
272
272
|
|
|
273
|
-
| Class
|
|
274
|
-
|
|
|
275
|
-
| `.pf-m-inline-flex{-on-[breakpoint]}`
|
|
276
|
-
| `.pf-m-grow{-on-[breakpoint]}`
|
|
277
|
-
| `.pf-m-shrink{-on-[breakpoint]}`
|
|
278
|
-
| `.pf-m-full-width{-on-[breakpoint]}`
|
|
279
|
-
| `.pf-m-flex-1{-on-[breakpoint]}`
|
|
280
|
-
| `.pf-m-flex-2{-on-[breakpoint]}`
|
|
281
|
-
| `.pf-m-flex-3{-on-[breakpoint]}`
|
|
282
|
-
| `.pf-m-flex-4{-on-[breakpoint]}`
|
|
273
|
+
| Class | Applied to | Outcome |
|
|
274
|
+
| -- | -- | -- |
|
|
275
|
+
| `.pf-m-inline-flex{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout display property to inline-flex. |
|
|
276
|
+
| `.pf-m-grow{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies a nested flex layout or flex item flex-grow property to 1. |
|
|
277
|
+
| `.pf-m-shrink{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies a nested flex layout or flex item flex-shrink property to 1. |
|
|
278
|
+
| `.pf-m-full-width{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies a nested flex layout or flex item flex item to full width of parent. |
|
|
279
|
+
| `.pf-m-flex-1{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies a nested flex layout or flex item flex shorthand property to 1 0 0. |
|
|
280
|
+
| `.pf-m-flex-2{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies a nested flex layout or flex item flex shorthand property to 2 0 0. |
|
|
281
|
+
| `.pf-m-flex-3{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies a nested flex layout or flex item flex shorthand property to 3 0 0. |
|
|
282
|
+
| `.pf-m-flex-4{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies a nested flex layout or flex item flex shorthand property to 4 0 0. |
|
|
283
283
|
| `.pf-m-flex-default{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Resets a nested flex layout or flex item flex shorthand property to 0 1 auto. |
|
|
284
|
-
| `.pf-m-flex-none{-on-[breakpoint]}`
|
|
284
|
+
| `.pf-m-flex-none{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies a nested flex layout or flex item flex shorthand property to none. |
|
|
285
285
|
|
|
286
286
|
### Column layout modifiers
|
|
287
287
|
|
|
@@ -337,9 +337,9 @@ The CSS approach, by keeping specificity low on base class properties and resett
|
|
|
337
337
|
|
|
338
338
|
### Usage
|
|
339
339
|
|
|
340
|
-
| Class
|
|
341
|
-
|
|
|
342
|
-
| `.pf-m-column{-on-[breakpoint]}` | `.pf-l-flex` |
|
|
340
|
+
| Class | Applied to | Outcome |
|
|
341
|
+
| -- | -- | -- |
|
|
342
|
+
| `.pf-m-column{-on-[breakpoint]}` | `.pf-l-flex` | Modifies flex-direction property to column. |
|
|
343
343
|
|
|
344
344
|
### Responsive layout modifiers
|
|
345
345
|
|
|
@@ -403,10 +403,10 @@ The CSS approach, by keeping specificity low on base class properties and resett
|
|
|
403
403
|
|
|
404
404
|
### Usage
|
|
405
405
|
|
|
406
|
-
| Class
|
|
407
|
-
|
|
|
408
|
-
| `.pf-m-column{-on-[breakpoint]}` | `.pf-l-flex`
|
|
409
|
-
| `.pf-m-row{-on-[breakpoint]}`
|
|
406
|
+
| Class | Applied to | Outcome |
|
|
407
|
+
| -- | -- | -- |
|
|
408
|
+
| `.pf-m-column{-on-[breakpoint]}` | `.pf-l-flex` | Modifies flex-direction property to column. |
|
|
409
|
+
| `.pf-m-row{-on-[breakpoint]}` | `.pf-l-flex` | Modifies flex-direction property to row. |
|
|
410
410
|
|
|
411
411
|
### Alignment
|
|
412
412
|
|
|
@@ -530,15 +530,15 @@ The CSS approach, by keeping specificity low on base class properties and resett
|
|
|
530
530
|
|
|
531
531
|
### Usage
|
|
532
532
|
|
|
533
|
-
| Class
|
|
534
|
-
|
|
|
535
|
-
| `.pf-m-align-right{-on-[breakpoint]}`
|
|
536
|
-
| `.pf-m-align-left{-on-[breakpoint]}`
|
|
537
|
-
| `.pf-m-align-self-flex-start{-on-[breakpoint]}`
|
|
538
|
-
| `.pf-m-align-self-flex-end{-on-[breakpoint]}`
|
|
539
|
-
| `.pf-m-align-self-flex-center{-on-[breakpoint]}`
|
|
540
|
-
| `.pf-m-align-self-flex-baseline{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies align-self property to baseline.
|
|
541
|
-
| `.pf-m-align-self-flex-stretch{-on-[breakpoint]}`
|
|
533
|
+
| Class | Applied to | Outcome |
|
|
534
|
+
| -- | -- | -- |
|
|
535
|
+
| `.pf-m-align-right{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies margin-left property to auto. |
|
|
536
|
+
| `.pf-m-align-left{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Resets margin-left property 0. |
|
|
537
|
+
| `.pf-m-align-self-flex-start{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies align-self property to flex-start. |
|
|
538
|
+
| `.pf-m-align-self-flex-end{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies align-self property to flex-end. |
|
|
539
|
+
| `.pf-m-align-self-flex-center{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies align-self property to center. |
|
|
540
|
+
| `.pf-m-align-self-flex-baseline{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies align-self property to baseline. |
|
|
541
|
+
| `.pf-m-align-self-flex-stretch{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies align-self property to stretch. |
|
|
542
542
|
|
|
543
543
|
### Justification
|
|
544
544
|
|
|
@@ -712,60 +712,60 @@ Ordering - Ordering can be applied to nested <code>.pf-l-flex</code> and <code>.
|
|
|
712
712
|
|
|
713
713
|
### Usage
|
|
714
714
|
|
|
715
|
-
| Class
|
|
716
|
-
|
|
|
717
|
-
| `.pf-m-justify-content-flex-end{-on-[breakpoint]}`
|
|
718
|
-
| `.pf-m-justify-content-flex-space-between{-on-[breakpoint]}` | `.pf-l-flex` |
|
|
719
|
-
| `.pf-m-justify-content-flex-start{-on-[breakpoint]}`
|
|
715
|
+
| Class | Applied to | Outcome |
|
|
716
|
+
| -- | -- | -- |
|
|
717
|
+
| `.pf-m-justify-content-flex-end{-on-[breakpoint]}` | `.pf-l-flex` | Modifies justification property and descendant spacing. |
|
|
718
|
+
| `.pf-m-justify-content-flex-space-between{-on-[breakpoint]}` | `.pf-l-flex` | Modifies justification property and descendant spacing. |
|
|
719
|
+
| `.pf-m-justify-content-flex-start{-on-[breakpoint]}` | `.pf-l-flex` | Modifies justification property and descendant spacing, used primarily to reset spacing to default. |
|
|
720
720
|
|
|
721
721
|
## Documentation
|
|
722
722
|
|
|
723
723
|
### Usage
|
|
724
724
|
|
|
725
|
-
| Class
|
|
726
|
-
|
|
|
727
|
-
| `.pf-l-flex`
|
|
728
|
-
| `.pf-l-flex__item`
|
|
729
|
-
| `.pf-m-flex{-on-[breakpoint]}`
|
|
730
|
-
| `.pf-m-inline-flex{-on-[breakpoint]}`
|
|
731
|
-
| `.pf-m-grow{-on-[breakpoint]}`
|
|
732
|
-
| `.pf-m-shrink{-on-[breakpoint]}`
|
|
733
|
-
| `.pf-m-full-width{-on-[breakpoint]}`
|
|
734
|
-
| `.pf-m-flex-1{-on-[breakpoint]}`
|
|
735
|
-
| `.pf-m-flex-2{-on-[breakpoint]}`
|
|
736
|
-
| `.pf-m-flex-3{-on-[breakpoint]}`
|
|
737
|
-
| `.pf-m-flex-4{-on-[breakpoint]}`
|
|
738
|
-
| `.pf-m-flex-default{-on-[breakpoint]}`
|
|
739
|
-
| `.pf-m-flex-none{-on-[breakpoint]}`
|
|
740
|
-
| `.pf-m-column-reverse{-on-[breakpoint]}`
|
|
741
|
-
| `.pf-m-row-reverse{-on-[breakpoint]}`
|
|
742
|
-
| `.pf-m-wrap{-on-[breakpoint]}`
|
|
743
|
-
| `.pf-m-wrap-reverse{-on-[breakpoint]}`
|
|
744
|
-
| `.pf-m-nowrap{-on-[breakpoint]}`
|
|
745
|
-
| `.pf-m-justify-content-flex-start{-on-[breakpoint]}`
|
|
746
|
-
| `.pf-m-justify-content-flex-end{-on-[breakpoint]}`
|
|
747
|
-
| `.pf-m-justify-content-center{-on-[breakpoint]}`
|
|
748
|
-
| `.pf-m-justify-content-space-between{-on-[breakpoint]}` | `.pf-l-flex`
|
|
749
|
-
| `.pf-m-justify-content-space-around{-on-[breakpoint]}`
|
|
750
|
-
| `.pf-m-justify-content-space-evenly{-on-[breakpoint]}`
|
|
751
|
-
| `.pf-m-align-items-flex-start{-on-[breakpoint]}`
|
|
752
|
-
| `.pf-m-align-items-flex-end{-on-[breakpoint]}`
|
|
753
|
-
| `.pf-m-align-items-center{-on-[breakpoint]}`
|
|
754
|
-
| `.pf-m-align-items-stretch{-on-[breakpoint]}`
|
|
755
|
-
| `.pf-m-align-items-baseline{-on-[breakpoint]}`
|
|
756
|
-
| `.pf-m-align-content-flex-start{-on-[breakpoint]}`
|
|
757
|
-
| `.pf-m-align-content-flex-end{-on-[breakpoint]}`
|
|
758
|
-
| `.pf-m-align-content-center{-on-[breakpoint]}`
|
|
759
|
-
| `.pf-m-align-content-stretch{-on-[breakpoint]}`
|
|
760
|
-
| `.pf-m-align-content-space-between{-on-[breakpoint]}`
|
|
761
|
-
| `.pf-m-align-content-space-around{-on-[breakpoint]}`
|
|
762
|
-
| `.pf-m-align-left{-on-[breakpoint]}`
|
|
763
|
-
| `.pf-m-align-right{-on-[breakpoint]}`
|
|
764
|
-
| `--pf-l-flex--item--Order{-on-[breakpoint]}: {order}`
|
|
725
|
+
| Class | Applied to | Outcome |
|
|
726
|
+
| -- | -- | -- |
|
|
727
|
+
| `.pf-l-flex` | `*` | Initiates the flex layout. **Required** |
|
|
728
|
+
| `.pf-l-flex__item` | `.pf-l-flex > *` | Initiates a flex item. **Required** |
|
|
729
|
+
| `.pf-m-flex{-on-[breakpoint]}` | `.pf-l-flex` | Initializes or resets the flex layout display property to flex. |
|
|
730
|
+
| `.pf-m-inline-flex{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout display property to inline-flex. |
|
|
731
|
+
| `.pf-m-grow{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies a nested flex layout or flex item flex-grow property to 1. |
|
|
732
|
+
| `.pf-m-shrink{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies a nested flex layout or flex item flex-shrink property to 1. |
|
|
733
|
+
| `.pf-m-full-width{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies a nested flex layout or flex item flex item to full width of parent. |
|
|
734
|
+
| `.pf-m-flex-1{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies a nested flex layout or flex item flex shorthand property to 1 0 0. |
|
|
735
|
+
| `.pf-m-flex-2{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies a nested flex layout or flex item flex shorthand property to 2 0 0. |
|
|
736
|
+
| `.pf-m-flex-3{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies a nested flex layout or flex item flex shorthand property to 3 0 0. |
|
|
737
|
+
| `.pf-m-flex-4{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies a nested flex layout or flex item flex shorthand property to 4 0 0. |
|
|
738
|
+
| `.pf-m-flex-default{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Resets a nested flex layout or flex item flex shorthand property to 0 1 auto. |
|
|
739
|
+
| `.pf-m-flex-none{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies a nested flex layout or flex item flex shorthand property to none. |
|
|
740
|
+
| `.pf-m-column-reverse{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout flex-direction property to column-reverse. |
|
|
741
|
+
| `.pf-m-row-reverse{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout flex-direction property to row-reverse. |
|
|
742
|
+
| `.pf-m-wrap{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout flex-wrap property to wrap. |
|
|
743
|
+
| `.pf-m-wrap-reverse{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout flex-wrap property to wrap-reverse. |
|
|
744
|
+
| `.pf-m-nowrap{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout flex-wrap property to nowrap. |
|
|
745
|
+
| `.pf-m-justify-content-flex-start{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout justify-content property to flex-start. |
|
|
746
|
+
| `.pf-m-justify-content-flex-end{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout justify-content property to flex-end. |
|
|
747
|
+
| `.pf-m-justify-content-center{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout justify-content property to center. |
|
|
748
|
+
| `.pf-m-justify-content-space-between{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout justify-content property to space-between. |
|
|
749
|
+
| `.pf-m-justify-content-space-around{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout justify-content property to space-around. |
|
|
750
|
+
| `.pf-m-justify-content-space-evenly{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout justify-content property to space-evenly. |
|
|
751
|
+
| `.pf-m-align-items-flex-start{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout align-items property to flex-start. |
|
|
752
|
+
| `.pf-m-align-items-flex-end{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout align-items property to flex-end. |
|
|
753
|
+
| `.pf-m-align-items-center{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout align-items property to center. |
|
|
754
|
+
| `.pf-m-align-items-stretch{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout align-items property to stretch. |
|
|
755
|
+
| `.pf-m-align-items-baseline{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout align-items property to baseline. |
|
|
756
|
+
| `.pf-m-align-content-flex-start{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout align-content property to flex-start. |
|
|
757
|
+
| `.pf-m-align-content-flex-end{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout align-content property to flex-end. |
|
|
758
|
+
| `.pf-m-align-content-center{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout align-content property to center. |
|
|
759
|
+
| `.pf-m-align-content-stretch{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout align-content property to stretch. |
|
|
760
|
+
| `.pf-m-align-content-space-between{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout align-content property to space-between. |
|
|
761
|
+
| `.pf-m-align-content-space-around{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout align-content property to space-around. |
|
|
762
|
+
| `.pf-m-align-left{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Resets the flex layout element margin-left property to 0. |
|
|
763
|
+
| `.pf-m-align-right{-on-[breakpoint]}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies the flex layout element margin-left property to auto. |
|
|
764
|
+
| `--pf-l-flex--item--Order{-on-[breakpoint]}: {order}` | `.pf-l-flex > .pf-l-flex`, `.pf-l-flex__item` | Modifies the flex layout element order property. |
|
|
765
765
|
|
|
766
766
|
### Spacer system
|
|
767
767
|
|
|
768
|
-
| Class
|
|
769
|
-
|
|
|
770
|
-
| `.pf-m-spacer-{none, xs, sm, md, lg, xl, 2xl}{-on-[breakpoint]}`
|
|
771
|
-
| `.pf-m-item-space-items-{none, xs, sm, md, lg, xl, 2xl}{-on-[breakpoint]}` | `.pf-l-flex`
|
|
768
|
+
| Class | Applied to | Outcome |
|
|
769
|
+
| -- | -- | -- |
|
|
770
|
+
| `.pf-m-spacer-{none, xs, sm, md, lg, xl, 2xl}{-on-[breakpoint]}` | `.pf-l-flex`, `.pf-l-flex > .pf-l-flex__item` | Modifies a nested flex layout or a flex item spacing. |
|
|
771
|
+
| `.pf-m-item-space-items-{none, xs, sm, md, lg, xl, 2xl}{-on-[breakpoint]}` | `.pf-l-flex` | Modifies the flex layout direct descendant spacing. |
|
|
@@ -169,10 +169,10 @@ The gallery layout is designed so that all of its children are of uniform size,
|
|
|
169
169
|
|
|
170
170
|
### Usage
|
|
171
171
|
|
|
172
|
-
| Class
|
|
173
|
-
|
|
|
174
|
-
| `.pf-l-gallery`
|
|
175
|
-
| `.pf-l-gallery__item`
|
|
176
|
-
| `.pf-m-gutter`
|
|
177
|
-
| `--pf-l-gallery--GridTemplateColumns--min{-on-[breakpoint]}: {width}` | `.pf-l-gallery` | Modifies the min value of `grid-template-columns` declaration at the optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes).
|
|
178
|
-
| `--pf-l-gallery--GridTemplateColumns--max{-on-[breakpoint]}: {width}` | `.pf-l-gallery` | Modifies the max value of `grid-template-columns` declaration at the optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes).
|
|
172
|
+
| Class | Applied to | Outcome |
|
|
173
|
+
| -- | -- | -- |
|
|
174
|
+
| `.pf-l-gallery` | `<div>` | Initializes a Gallery layout |
|
|
175
|
+
| `.pf-l-gallery__item` | `<div>` | Explicitly sets the child for the gallery. This class isn't necessary, but it is included to keep inline with BEM convention, and to provide an entity that will later be used for applying modifiers. |
|
|
176
|
+
| `.pf-m-gutter` | `.pf-l-gallery` | Adds space between children by using the globally defined gutter value. |
|
|
177
|
+
| `--pf-l-gallery--GridTemplateColumns--min{-on-[breakpoint]}: {width}` | `.pf-l-gallery` | Modifies the min value of `grid-template-columns` declaration at the optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
178
|
+
| `--pf-l-gallery--GridTemplateColumns--max{-on-[breakpoint]}: {width}` | `.pf-l-gallery` | Modifies the max value of `grid-template-columns` declaration at the optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
@@ -304,12 +304,12 @@ The grid layout is based on CSS Grid’s two-dimensional system of columns and r
|
|
|
304
304
|
|
|
305
305
|
### Usage
|
|
306
306
|
|
|
307
|
-
| Class
|
|
308
|
-
|
|
|
309
|
-
| `.pf-l-grid`
|
|
310
|
-
| `.pf-l-grid__item`
|
|
311
|
-
| `.pf-m-gutter`
|
|
312
|
-
| `.pf-m-all-{1-12}-col{-on-[breakpoint]}`
|
|
313
|
-
| `.pf-m-{1-12}-col{-on-[breakpoint]}`
|
|
314
|
-
| `.pf-m-{2-x}-row{-on-[breakpoint]}`
|
|
315
|
-
| `--pf-l-grid--item--Order{-on-[breakpoint]}: {order}` | `.pf-l-grid > .pf-l-grid`, `.pf-l-grid__item` | Modifies the order of the grid layout element at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes).
|
|
307
|
+
| Class | Applied to | Outcome |
|
|
308
|
+
| -- | -- | -- |
|
|
309
|
+
| `.pf-l-grid` | `<div>` | Initializes the grid layout. |
|
|
310
|
+
| `.pf-l-grid__item` | `<div>` | Explicitly sets a child of the grid. This class isn't necessary, but it is included to keep inline with BEM convention, and to provide an entity that will later be used for applying modifiers. |
|
|
311
|
+
| `.pf-m-gutter` | `.pf-l-grid` | Adds space between children by using the globally defined gutter value. |
|
|
312
|
+
| `.pf-m-all-{1-12}-col{-on-[breakpoint]}` | `.pf-l-grid` | Defines grid item size on grid container at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
313
|
+
| `.pf-m-{1-12}-col{-on-[breakpoint]}` | `.pf-l-grid__item` | Defines grid item size at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). Although not required, they are strongly suggested. If not used, grid item will default to 12 col. |
|
|
314
|
+
| `.pf-m-{2-x}-row{-on-[breakpoint]}` | `.pf-l-grid__item` | Defines grid item row span at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). For row spans to function correctly, the value of of the current row plus the grid items to span must be equal to or less than 12. Example: .pf-m-8-col.pf-m-2-row + .pf-m-4-col + .pf-m-4-col. There is no limit to number of spanned rows. |
|
|
315
|
+
| `--pf-l-grid--item--Order{-on-[breakpoint]}: {order}` | `.pf-l-grid > .pf-l-grid`, `.pf-l-grid__item` | Modifies the order of the grid layout element at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
@@ -46,8 +46,8 @@ The level layout is designed to distribute space between children evenly and cen
|
|
|
46
46
|
|
|
47
47
|
### Usage
|
|
48
48
|
|
|
49
|
-
| Class
|
|
50
|
-
|
|
|
51
|
-
| `.pf-l-level`
|
|
52
|
-
| `.pf-l-level__item` | `<div>`
|
|
53
|
-
| `.pf-m-gutter`
|
|
49
|
+
| Class | Applied to | Outcome |
|
|
50
|
+
| -- | -- | -- |
|
|
51
|
+
| `.pf-l-level` | `<div>`, `<section>`, or `<article>` | Initializes the level layout |
|
|
52
|
+
| `.pf-l-level__item` | `<div>` | Explicitly sets a child of the level. This class isn't necessary, but it is included to keep inline with BEM convention, and to provide an entity that will later be used for applying modifiers. |
|
|
53
|
+
| `.pf-m-gutter` | `.pf-l-level` | Adds space between children by using the globally defined gutter value. |
|
|
@@ -58,10 +58,10 @@ The split layout is designed to position items horizontally, with one item filli
|
|
|
58
58
|
|
|
59
59
|
### Usage
|
|
60
60
|
|
|
61
|
-
| Class
|
|
62
|
-
|
|
|
63
|
-
| `.pf-l-split`
|
|
64
|
-
| `.pf-l-split__item` | `<div>`
|
|
65
|
-
| `.pf-m-gutter`
|
|
66
|
-
| `.pf-m-wrap`
|
|
67
|
-
| `.pf-m-fill`
|
|
61
|
+
| Class | Applied to | Outcome |
|
|
62
|
+
| -- | -- | -- |
|
|
63
|
+
| `.pf-l-split` | `<div>`, `<section>`, or `<article>` | Initiates the split layout. |
|
|
64
|
+
| `.pf-l-split__item` | `<div>` | Initiates a split item. **Required** |
|
|
65
|
+
| `.pf-m-gutter` | `.pf-l-split` | Adds space between children by using the globally defined gutter value. |
|
|
66
|
+
| `.pf-m-wrap` | `.pf-l-split` | Sets the split layout to wrap. |
|
|
67
|
+
| `.pf-m-fill` | `.pf-l-split__item` | Specifies which item(s) should fill the avaiable horizontal space. |
|
|
@@ -36,9 +36,9 @@ The stack layout is designed to position items vertically, with one item filling
|
|
|
36
36
|
|
|
37
37
|
### Usage
|
|
38
38
|
|
|
39
|
-
| Class
|
|
40
|
-
|
|
|
41
|
-
| `.pf-l-stack`
|
|
42
|
-
| `.pf-l-stack__item` | `<div>`
|
|
43
|
-
| `.pf-m-gutter`
|
|
44
|
-
| `.pf-m-fill`
|
|
39
|
+
| Class | Applied to | Outcome |
|
|
40
|
+
| -- | -- | -- |
|
|
41
|
+
| `.pf-l-stack` | `<div>`, `<section>`, or `<article>` | Initiates the stack layout. |
|
|
42
|
+
| `.pf-l-stack__item` | `<div>` | Initiates a stack item. **Required** |
|
|
43
|
+
| `.pf-m-gutter` | `.pf-l-stack` | Adds space between children by using the globally defined gutter value. |
|
|
44
|
+
| `.pf-m-fill` | `.pf-l-stack__item` | Specifies which item(s) should fill the avaiable vertical space. |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Accessibility
|
|
3
|
-
section:
|
|
3
|
+
section: utility-classes
|
|
4
4
|
---## Examples
|
|
5
5
|
|
|
6
6
|
### Screen reader only
|
|
@@ -38,7 +38,7 @@ The text underneath is hidden.
|
|
|
38
38
|
|
|
39
39
|
### Usage
|
|
40
40
|
|
|
41
|
-
| Class
|
|
42
|
-
|
|
|
43
|
-
| `.pf-u-screen-reader{-on-[breakpoint]}` | `*`
|
|
44
|
-
| `.pf-u-visible{-on-[breakpoint]}`
|
|
41
|
+
| Class | Applied to | Outcome |
|
|
42
|
+
| -- | -- | -- |
|
|
43
|
+
| `.pf-u-screen-reader{-on-[breakpoint]}` | `*` | Visually hides element, but leaves accessible to assistive technologies |
|
|
44
|
+
| `.pf-u-visible{-on-[breakpoint]}` | `*` | Unsets `.pf-u-screen-reader` and `.pf-screen-reader` |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Alignment
|
|
3
|
-
section:
|
|
3
|
+
section: utility-classes
|
|
4
4
|
---import './Alignment.css'
|
|
5
5
|
|
|
6
6
|
## Examples
|
|
@@ -27,9 +27,9 @@ section: utilities
|
|
|
27
27
|
|
|
28
28
|
### Usage
|
|
29
29
|
|
|
30
|
-
| Class
|
|
31
|
-
|
|
|
32
|
-
| `.pf-u-text-align-left{-on-[breakpoint]}`
|
|
33
|
-
| `.pf-u-text-align-center{-on-[breakpoint]}`
|
|
34
|
-
| `.pf-u-text-align-right{-on-[breakpoint]}`
|
|
35
|
-
| `.pf-u-text-align-justify{-on-[breakpoint]}` | `*`
|
|
30
|
+
| Class | Applied to | Outcome |
|
|
31
|
+
| -- | -- | -- |
|
|
32
|
+
| `.pf-u-text-align-left{-on-[breakpoint]}` | `*` | Aligns text left |
|
|
33
|
+
| `.pf-u-text-align-center{-on-[breakpoint]}` | `*` | Aligns text center |
|
|
34
|
+
| `.pf-u-text-align-right{-on-[breakpoint]}` | `*` | Aligns text right |
|
|
35
|
+
| `.pf-u-text-align-justify{-on-[breakpoint]}` | `*` | Aligns text justify |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Background color
|
|
3
|
-
section:
|
|
3
|
+
section: utility-classes
|
|
4
4
|
---## Examples
|
|
5
5
|
|
|
6
6
|
### Standard background colors
|
|
@@ -77,21 +77,21 @@ These background color utilities can be used to modify the background color of a
|
|
|
77
77
|
|
|
78
78
|
Care should be taken especially when applying background colors, as this can have a negative effect on the readability and accessibility of text. Refer to [contrast ratios](/guidelines/colors/#contrast-ratios) for more information.
|
|
79
79
|
|
|
80
|
-
Note that "inverse" background colors are labeled as such to indicate that they are best used with the ["inverse" text colors](/utilities/text#inverse-colors).
|
|
80
|
+
Note that "inverse" background colors are labeled as such to indicate that they are best used with the ["inverse" text colors](/utilities/text#inverse-colors).
|
|
81
81
|
|
|
82
82
|
[Breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes) is optional. Breakpoints: base (no breakpoint value), `-on-sm`, `-on-md`, `-on-lg`, and `-on-xl`. **Example .pf-u-background-color-200-on-lg**
|
|
83
83
|
|
|
84
84
|
### Usage
|
|
85
85
|
|
|
86
|
-
| Class
|
|
87
|
-
|
|
|
88
|
-
| `.pf-u-background-color-{100, 200}{-on-[breakpoint]}` | `*` | Applies background color 100 or 200.
|
|
89
|
-
| `.pf-u-background-color-active-color-{100, 300}{-on-[breakpoint]}` | `*` | Applies background color active 100 or 300.
|
|
90
|
-
| `.pf-u-background-color-primary-color-200{-on-[breakpoint]}` | `*` | Applies background color primary 200.
|
|
86
|
+
| Class | Applied to | Outcome |
|
|
87
|
+
| --------------------------------- | ---------- | ---------------------------------- |
|
|
88
|
+
| `.pf-u-background-color-{100, 200}{-on-[breakpoint]}` | `*` | Applies background color 100 or 200. |
|
|
89
|
+
| `.pf-u-background-color-active-color-{100, 300}{-on-[breakpoint]}` | `*` | Applies background color active 100 or 300. |
|
|
90
|
+
| `.pf-u-background-color-primary-color-200{-on-[breakpoint]}` | `*` | Applies background color primary 200. |
|
|
91
91
|
| `.pf-u-background-color-dark-{100, 200, 300, 400}{-on-[breakpoint]}` | `*` | Applies background color dark 100, 200, 300, or 400. |
|
|
92
|
-
| `.pf-u-background-color-disabled-color-{200, 300}{-on-[breakpoint]}` | `*` | Applies background color disabled 200 or 300.
|
|
93
|
-
| `.pf-u-background-color-default{-on-[breakpoint]}`
|
|
94
|
-
| `.pf-u-background-color-success{-on-[breakpoint]}`
|
|
95
|
-
| `.pf-u-background-color-info{-on-[breakpoint]}`
|
|
96
|
-
| `.pf-u-background-color-warning{-on-[breakpoint]}`
|
|
97
|
-
| `.pf-u-background-color-danger{-on-[breakpoint]}`
|
|
92
|
+
| `.pf-u-background-color-disabled-color-{200, 300}{-on-[breakpoint]}` | `*` | Applies background color disabled 200 or 300. |
|
|
93
|
+
| `.pf-u-background-color-default{-on-[breakpoint]}` | `*` | Applies the background color for the default state. |
|
|
94
|
+
| `.pf-u-background-color-success{-on-[breakpoint]}` | `*` | Applies the background color for the success state. |
|
|
95
|
+
| `.pf-u-background-color-info{-on-[breakpoint]}` | `*` | Applies the background color for the info state. |
|
|
96
|
+
| `.pf-u-background-color-warning{-on-[breakpoint]}` | `*` | Applies the background color for the warning state. |
|
|
97
|
+
| `.pf-u-background-color-danger{-on-[breakpoint]}` | `*` | Applies the background color for the danger state. |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Box shadow
|
|
3
|
-
section:
|
|
3
|
+
section: utility-classes
|
|
4
4
|
---import './box-shadow.css'
|
|
5
5
|
|
|
6
6
|
## Examples
|
|
@@ -64,25 +64,25 @@ Box shadow utility
|
|
|
64
64
|
|
|
65
65
|
### Usage
|
|
66
66
|
|
|
67
|
-
| Class
|
|
68
|
-
|
|
|
69
|
-
| `.pf-u-box-shadow-sm`
|
|
70
|
-
| `.pf-u-box-shadow-sm-top`
|
|
71
|
-
| `.pf-u-box-shadow-sm-right`
|
|
72
|
-
| `.pf-u-box-shadow-sm-bottom` | `*`
|
|
73
|
-
| `.pf-u-box-shadow-sm-left`
|
|
74
|
-
| `.pf-u-box-shadow-md`
|
|
75
|
-
| `.pf-u-box-shadow-md-top`
|
|
76
|
-
| `.pf-u-box-shadow-md-right`
|
|
77
|
-
| `.pf-u-box-shadow-md-bottom` | `*`
|
|
78
|
-
| `.pf-u-box-shadow-md-left`
|
|
79
|
-
| `.pf-u-box-shadow-lg`
|
|
80
|
-
| `.pf-u-box-shadow-lg-top`
|
|
81
|
-
| `.pf-u-box-shadow-lg-right`
|
|
82
|
-
| `.pf-u-box-shadow-lg-bottom` | `*`
|
|
83
|
-
| `.pf-u-box-shadow-lg-left`
|
|
84
|
-
| `.pf-u-box-shadow-xl`
|
|
85
|
-
| `.pf-u-box-shadow-xl-top`
|
|
86
|
-
| `.pf-u-box-shadow-xl-right`
|
|
87
|
-
| `.pf-u-box-shadow-xl-bottom` | `*`
|
|
88
|
-
| `.pf-u-box-shadow-xl-left`
|
|
67
|
+
| Class | Applied to | Outcome |
|
|
68
|
+
| -- | -- | -- |
|
|
69
|
+
| `.pf-u-box-shadow-sm` | `*` | Applies box-shadow small. |
|
|
70
|
+
| `.pf-u-box-shadow-sm-top` | `*` | Applies box-shadow small top. |
|
|
71
|
+
| `.pf-u-box-shadow-sm-right` | `*` | Applies box-shadow small right. |
|
|
72
|
+
| `.pf-u-box-shadow-sm-bottom` | `*` | Applies box-shadow small bottom. |
|
|
73
|
+
| `.pf-u-box-shadow-sm-left` | `*` | Applies box-shadow small left. |
|
|
74
|
+
| `.pf-u-box-shadow-md` | `*` | Applies box-shadow medium. |
|
|
75
|
+
| `.pf-u-box-shadow-md-top` | `*` | Applies box-shadow medium top. |
|
|
76
|
+
| `.pf-u-box-shadow-md-right` | `*` | Applies box-shadow medium right. |
|
|
77
|
+
| `.pf-u-box-shadow-md-bottom` | `*` | Applies box-shadow medium bottom. |
|
|
78
|
+
| `.pf-u-box-shadow-md-left` | `*` | Applies box-shadow medium left. |
|
|
79
|
+
| `.pf-u-box-shadow-lg` | `*` | Applies box-shadow large. |
|
|
80
|
+
| `.pf-u-box-shadow-lg-top` | `*` | Applies box-shadow large top. |
|
|
81
|
+
| `.pf-u-box-shadow-lg-right` | `*` | Applies box-shadow large right. |
|
|
82
|
+
| `.pf-u-box-shadow-lg-bottom` | `*` | Applies box-shadow large bottom. |
|
|
83
|
+
| `.pf-u-box-shadow-lg-left` | `*` | Applies box-shadow large left. |
|
|
84
|
+
| `.pf-u-box-shadow-xl` | `*` | Applies box-shadow x-large. |
|
|
85
|
+
| `.pf-u-box-shadow-xl-top` | `*` | Applies box-shadow x-large top. |
|
|
86
|
+
| `.pf-u-box-shadow-xl-right` | `*` | Applies box-shadow x-large right. |
|
|
87
|
+
| `.pf-u-box-shadow-xl-bottom` | `*` | Applies box-shadow x-large bottom. |
|
|
88
|
+
| `.pf-u-box-shadow-xl-left` | `*` | Applies box-shadow x-large left. |
|