@patternfly/patternfly 6.0.0-alpha.6 → 6.0.0-alpha.61
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 +13 -3
- package/assets/icons/iconUnicodes.json +1 -0
- package/assets/images/PF-Backdrop.svg +1 -0
- package/assets/images/PF-HorizontalLogo-Color.svg +29 -0
- package/assets/images/PF-HorizontalLogo-Reverse.svg +28 -0
- package/assets/images/PF-IconLogo-Reverse.svg +14 -0
- package/assets/images/PF-IconLogo-color.svg +17 -0
- package/assets/images/PF-IconLogo.svg +17 -0
- package/assets/images/logo__pf--reverse-on-md.svg +1 -1
- package/assets/images/pf-background.svg +22 -0
- package/assets/images/pf-c-brand__logo-on-lg-white.svg +32 -0
- package/assets/images/pf-c-brand__logo-on-md-white.svg +42 -0
- package/assets/images/pf-c-brand__logo-on-sm-white.svg +17 -0
- package/assets/images/pf-c-brand__logo-on-sm.svg +1 -1
- package/assets/images/pf-c-brand__logo-on-xl-white.svg +39 -0
- package/assets/images/pf_logo_white.hbs +35 -0
- package/assets/images/pf_logo_white.svg +38 -0
- package/assets/pficon/pf-v5-pficon.woff2 +0 -0
- package/assets/pficon/pficon.scss +6 -129
- package/base/_common.scss +29 -4
- package/base/_globals.scss +5 -7
- package/base/_variables.scss +8 -6
- package/base/patternfly-common.css +24 -6
- package/base/patternfly-globals.css +5 -4
- package/base/patternfly-icons.css +5 -1
- package/base/patternfly-pf-icons.css +5 -1
- package/base/patternfly-variables.css +889 -787
- package/base/tokens/_tokens-dark.scss +322 -265
- package/base/tokens/_tokens-default.scss +428 -306
- package/base/tokens/_tokens-font.scss +41 -46
- package/base/tokens/_tokens-palette.scss +69 -71
- package/base/tokens/_workspace-overrides.scss +7 -0
- package/components/AboutModalBox/about-modal-box.css +80 -108
- package/components/AboutModalBox/about-modal-box.scss +64 -78
- package/components/Accordion/accordion.css +96 -175
- package/components/Accordion/accordion.scss +106 -193
- package/components/ActionList/action-list.css +2 -2
- package/components/ActionList/action-list.scss +2 -2
- package/components/Alert/alert-group.css +27 -20
- package/components/Alert/alert-group.scss +27 -20
- package/components/Alert/alert.css +74 -95
- package/components/Alert/alert.scss +76 -89
- package/components/AppLauncher/app-launcher.css +32 -23
- package/components/AppLauncher/app-launcher.scss +32 -23
- package/components/Avatar/avatar.css +10 -13
- package/components/Avatar/avatar.scss +10 -17
- package/components/BackToTop/back-to-top.css +17 -15
- package/components/BackToTop/back-to-top.scss +14 -13
- package/components/Backdrop/backdrop.css +8 -4
- package/components/Backdrop/backdrop.scss +7 -4
- package/components/BackgroundImage/background-image.css +11 -4
- package/components/BackgroundImage/background-image.scss +13 -4
- package/components/Badge/badge.css +25 -17
- package/components/Badge/badge.scss +27 -19
- package/components/Banner/banner.css +95 -69
- package/components/Banner/banner.scss +100 -34
- package/components/Breadcrumb/breadcrumb.css +28 -19
- package/components/Breadcrumb/breadcrumb.scss +26 -19
- package/components/Button/button.css +422 -359
- package/components/Button/button.scss +480 -487
- package/components/CalendarMonth/calendar-month.css +25 -15
- package/components/CalendarMonth/calendar-month.scss +23 -15
- package/components/Card/card.css +28 -17
- package/components/Card/card.scss +32 -17
- package/components/Check/check.css +25 -22
- package/components/Check/check.scss +26 -24
- package/components/Chip/chip-group.css +6 -6
- package/components/Chip/chip-group.scss +6 -6
- package/components/Chip/chip.css +16 -9
- package/components/Chip/chip.scss +17 -9
- package/components/ClipboardCopy/clipboard-copy.css +47 -41
- package/components/ClipboardCopy/clipboard-copy.scss +50 -34
- package/components/CodeBlock/code-block.css +24 -12
- package/components/CodeBlock/code-block.scss +24 -13
- package/components/CodeEditor/code-editor.css +31 -22
- package/components/CodeEditor/code-editor.scss +30 -21
- package/components/CodeEditor/themes/dark/code-editor.scss +1 -1
- package/components/Content/content.css +40 -37
- package/components/Content/content.scss +40 -37
- package/components/ContextSelector/context-selector.css +41 -26
- package/components/ContextSelector/context-selector.scss +40 -25
- package/components/ContextSelector/themes/dark/context-selector.scss +1 -1
- package/components/DataList/data-list-grid.css +21 -21
- package/components/DataList/data-list-grid.scss +3 -3
- package/components/DataList/data-list.css +165 -209
- package/components/DataList/data-list.scss +138 -185
- package/components/DatePicker/date-picker.css +8 -8
- package/components/DatePicker/date-picker.scss +8 -8
- package/components/DescriptionList/description-list.css +47 -39
- package/components/DescriptionList/description-list.scss +33 -30
- package/components/Divider/divider.css +97 -177
- package/components/Divider/divider.scss +60 -79
- package/components/DragDrop/drag-drop.css +26 -22
- package/components/DragDrop/drag-drop.scss +26 -25
- package/components/Drawer/drawer.css +120 -62
- package/components/Drawer/drawer.scss +94 -44
- package/components/Dropdown/dropdown.css +76 -69
- package/components/Dropdown/dropdown.scss +67 -62
- package/components/DualListSelector/dual-list-selector.css +29 -15
- package/components/DualListSelector/dual-list-selector.scss +30 -15
- package/components/EmptyState/empty-state.css +64 -38
- package/components/EmptyState/empty-state.scss +70 -38
- package/components/ExpandableSection/expandable-section.css +75 -66
- package/components/ExpandableSection/expandable-section.scss +82 -80
- package/components/FileUpload/file-upload.css +31 -43
- package/components/FileUpload/file-upload.scss +31 -49
- package/components/Form/form.css +111 -154
- package/components/Form/form.scss +101 -160
- package/components/FormControl/form-control.css +95 -111
- package/components/FormControl/form-control.scss +97 -92
- package/components/HelperText/helper-text.css +29 -35
- package/components/HelperText/helper-text.scss +31 -41
- package/components/Hint/hint.css +37 -27
- package/components/Hint/hint.scss +37 -30
- package/components/Icon/icon.css +155 -19
- package/components/Icon/icon.scss +188 -21
- package/components/InlineEdit/inline-edit.css +12 -11
- package/components/InlineEdit/inline-edit.scss +12 -11
- package/components/InputGroup/input-group.css +32 -42
- package/components/InputGroup/input-group.scss +31 -33
- package/components/JumpLinks/jump-links.css +61 -58
- package/components/JumpLinks/jump-links.scss +61 -60
- package/components/Label/label-group.css +48 -50
- package/components/Label/label-group.scss +48 -51
- package/components/Label/label.css +266 -363
- package/components/Label/label.scss +306 -356
- package/components/List/list.css +25 -25
- package/components/List/list.scss +26 -26
- package/components/LogViewer/log-viewer.css +14 -14
- package/components/LogViewer/log-viewer.scss +14 -14
- package/components/Login/login.css +104 -122
- package/components/Login/login.scss +92 -91
- package/components/Masthead/masthead.css +273 -498
- package/components/Masthead/masthead.scss +137 -282
- package/components/Menu/menu.css +82 -65
- package/components/Menu/menu.scss +85 -69
- package/components/MenuToggle/menu-toggle.css +37 -31
- package/components/MenuToggle/menu-toggle.scss +37 -33
- package/components/ModalBox/modal-box.css +76 -69
- package/components/ModalBox/modal-box.scss +74 -70
- package/components/MultipleFileUpload/multiple-file-upload.css +11 -8
- package/components/MultipleFileUpload/multiple-file-upload.scss +11 -8
- package/components/Nav/nav.css +248 -899
- package/components/Nav/nav.scss +304 -1059
- package/components/Nav/themes/dark/nav.scss +2 -2
- package/components/NotificationBadge/notification-badge.css +66 -85
- package/components/NotificationBadge/notification-badge.scss +72 -103
- package/components/NotificationDrawer/notification-drawer.css +130 -128
- package/components/NotificationDrawer/notification-drawer.scss +130 -129
- package/components/NumberInput/number-input.css +10 -10
- package/components/NumberInput/number-input.scss +9 -14
- package/components/OptionsMenu/options-menu.css +43 -31
- package/components/OptionsMenu/options-menu.scss +43 -31
- package/components/OverflowMenu/overflow-menu.css +2 -2
- package/components/OverflowMenu/overflow-menu.scss +2 -2
- package/components/Page/page.css +182 -232
- package/components/Page/page.scss +130 -195
- package/components/Pagination/pagination.css +71 -121
- package/components/Pagination/pagination.scss +56 -127
- package/components/Panel/panel.css +40 -30
- package/components/Panel/panel.scss +42 -33
- package/components/Popover/popover.css +108 -87
- package/components/Popover/popover.scss +120 -109
- package/components/Progress/progress.css +40 -52
- package/components/Progress/progress.scss +48 -62
- package/components/ProgressStepper/progress-stepper.css +26 -20
- package/components/ProgressStepper/progress-stepper.scss +25 -19
- package/components/Radio/radio.css +30 -23
- package/components/Radio/radio.scss +31 -25
- package/components/Select/select.css +56 -47
- package/components/Select/select.scss +56 -47
- package/components/Sidebar/sidebar.css +31 -14
- package/components/Sidebar/sidebar.scss +34 -16
- package/components/SimpleList/simple-list.css +45 -56
- package/components/SimpleList/simple-list.scss +51 -55
- package/components/Skeleton/skeleton.css +24 -25
- package/components/Skeleton/skeleton.scss +21 -26
- package/components/SkipToContent/skip-to-content.css +9 -6
- package/components/SkipToContent/skip-to-content.scss +8 -6
- package/components/Slider/slider.css +80 -55
- package/components/Slider/slider.scss +96 -65
- package/components/Spinner/spinner.css +17 -34
- package/components/Spinner/spinner.scss +19 -47
- package/components/Switch/switch.css +49 -41
- package/components/Switch/switch.scss +51 -42
- package/components/TabContent/tab-content.css +21 -12
- package/components/TabContent/tab-content.scss +22 -15
- package/components/Table/table-grid.css +264 -203
- package/components/Table/table-grid.scss +61 -47
- package/components/Table/table-scrollable.css +4 -4
- package/components/Table/table-scrollable.scss +6 -4
- package/components/Table/table-tree-view.css +112 -105
- package/components/Table/table-tree-view.scss +38 -33
- package/components/Table/table.css +105 -89
- package/components/Table/table.scss +105 -89
- package/components/Tabs/tabs.css +76 -48
- package/components/Tabs/tabs.scss +74 -48
- package/components/TextInputGroup/text-input-group.css +15 -15
- package/components/TextInputGroup/text-input-group.scss +15 -15
- package/components/Tile/tile.css +47 -88
- package/components/Tile/tile.scss +45 -91
- package/components/Timestamp/timestamp.css +12 -9
- package/components/Timestamp/timestamp.scss +11 -10
- package/components/Title/title.css +70 -19
- package/components/Title/title.scss +90 -20
- package/components/ToggleGroup/toggle-group.css +48 -58
- package/components/ToggleGroup/toggle-group.scss +48 -56
- package/components/Toolbar/toolbar.css +57 -43
- package/components/Toolbar/toolbar.scss +45 -25
- package/components/Tooltip/tooltip.css +74 -44
- package/components/Tooltip/tooltip.scss +93 -77
- package/components/TreeView/tree-view.css +48 -27
- package/components/TreeView/tree-view.scss +50 -28
- package/components/Truncate/truncate.css +13 -0
- package/components/Truncate/truncate.scss +19 -3
- package/components/Wizard/wizard.css +57 -36
- package/components/Wizard/wizard.scss +57 -36
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +2 -2
- package/docs/components/Accordion/examples/Accordion.md +614 -416
- package/docs/components/Alert/examples/Alert.md +3 -3
- package/docs/components/Avatar/examples/Avatar.md +5 -19
- package/docs/components/BackgroundImage/examples/BackgroundImage.md +1 -1
- package/docs/components/Badge/examples/Badge.md +21 -0
- package/docs/components/Banner/examples/Banner.md +48 -25
- package/docs/components/Brand/examples/Brand.css +12 -0
- package/docs/components/Brand/examples/Brand.md +51 -32
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +1 -1
- package/docs/components/Button/examples/Button.css +6 -2
- package/docs/components/Button/examples/Button.md +1425 -87
- package/docs/components/Card/examples/Card.md +143 -37
- package/docs/components/Check/examples/Check.md +71 -58
- package/docs/components/Chip/examples/Chip.md +1 -1
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +106 -0
- package/docs/components/CodeBlock/examples/CodeBlock.md +4 -4
- package/docs/components/CodeEditor/examples/CodeEditor.md +3 -3
- package/docs/components/Content/examples/Content.md +5 -5
- package/docs/components/Divider/examples/Divider.css +3 -1
- package/docs/components/Divider/examples/Divider.md +4 -5
- package/docs/components/DragDrop/examples/DragDrop.css +3 -3
- package/docs/components/Dropdown/deprecated/Dropdown.css +1 -1
- package/docs/components/DualListSelector/examples/DualListSelector.md +64 -16
- package/docs/components/EmptyState/examples/EmptyState.md +45 -1
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +49 -28
- package/docs/components/FileUpload/examples/FileUpload.md +112 -53
- package/docs/components/Form/examples/Form.md +134 -89
- package/docs/components/Icon/examples/Icon.md +82 -11
- package/docs/components/InlineEdit/examples/InlineEdit.md +3 -1
- package/docs/components/JumpLinks/examples/JumpLinks.md +280 -168
- package/docs/components/Label/examples/Label.css +4 -0
- package/docs/components/Label/examples/Label.md +1001 -225
- package/docs/components/LogViewer/examples/LogViewer.css +2 -2
- package/docs/components/LogViewer/examples/LogViewer.md +250 -160
- package/docs/components/Login/examples/Login.md +10 -5
- package/docs/components/Masthead/examples/masthead.md +443 -65
- package/docs/components/Menu/examples/Menu.css +8 -0
- package/docs/components/Menu/examples/Menu.md +594 -543
- package/docs/components/MenuToggle/examples/MenuToggle.md +109 -96
- package/docs/components/ModalBox/examples/ModalBox.css +3 -8
- package/docs/components/Nav/examples/Navigation.css +3 -42
- package/docs/components/Nav/examples/Navigation.md +305 -353
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +5 -7
- package/docs/components/OptionsMenu/deprecated/options-menu.md +12 -3
- package/docs/components/Page/examples/Page.css +0 -8
- package/docs/components/Page/examples/Page.md +22 -21
- package/docs/components/Pagination/examples/Pagination.md +663 -637
- package/docs/components/Panel/examples/Panel.md +12 -0
- package/docs/components/Popover/examples/Popover.css +4 -9
- package/docs/components/Popover/examples/Popover.md +1 -1
- package/docs/components/Radio/examples/Radio.md +62 -54
- package/docs/components/Select/deprecated/Select.md +184 -177
- package/docs/components/Sidebar/examples/Sidebar.md +19 -0
- package/docs/components/SimpleList/examples/SimpleList.md +3 -3
- package/docs/components/TabContent/examples/TabContent.md +10 -10
- package/docs/components/Table/examples/Table.css +2 -2
- package/docs/components/Table/examples/Table.md +10 -10
- package/docs/components/TextInputGroup/examples/TextInputGroup.css +1 -1
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +9 -9
- package/docs/components/Tile/examples/Tile.css +1 -1
- package/docs/components/Tile/examples/Tile.md +264 -144
- package/docs/components/Title/examples/Title.md +18 -0
- package/docs/components/Toolbar/examples/Toolbar.md +663 -2894
- package/docs/components/Tooltip/examples/Tooltip.css +4 -0
- package/docs/components/Tooltip/examples/Tooltip.md +3 -1
- package/docs/components/Truncate/examples/Truncate.css +2 -2
- package/docs/components/Truncate/examples/Truncate.md +2 -2
- package/docs/demos/AboutModal/examples/AboutModal.md +103 -30
- package/docs/demos/Alert/examples/Alert.md +327 -84
- package/docs/demos/BackToTop/examples/BackToTop.md +101 -28
- package/docs/demos/Banner/examples/Banner.md +209 -58
- package/docs/demos/Card/examples/Card.css +3 -3
- package/docs/demos/Card/examples/Card.md +28 -12
- package/docs/demos/CardView/examples/CardView.md +263 -205
- package/docs/demos/ContextSelector/examples/ContextSelector.md +373 -90
- package/docs/demos/Dashboard/examples/Dashboard.md +104 -31
- package/docs/demos/DataList/examples/DataList.md +995 -928
- package/docs/demos/DescriptionList/examples/DescriptionList.md +303 -84
- package/docs/demos/Drawer/examples/Drawer.md +605 -220
- package/docs/demos/Form/examples/BasicForms.md +133 -82
- package/docs/demos/JumpLinks/examples/JumpLinks.md +881 -353
- package/docs/demos/Masthead/examples/Masthead.md +767 -323
- package/docs/demos/Modal/examples/Modal.md +639 -192
- package/docs/demos/Nav/examples/Nav.md +685 -896
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +510 -140
- package/docs/demos/Page/examples/Page.md +933 -264
- package/docs/demos/Page/examples/Penta.md +569 -501
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +13 -9
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +44 -32
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +1296 -917
- package/docs/demos/Skeleton/examples/Skeleton.md +108 -63
- package/docs/demos/Table/examples/Table.md +3832 -3390
- package/docs/demos/Tabs/examples/Tabs.md +636 -191
- package/docs/demos/Toolbar/examples/Toolbar.css +15 -0
- package/docs/demos/Toolbar/examples/Toolbar.md +1331 -1493
- package/docs/demos/Wizard/examples/Wizard.md +909 -252
- package/docs/layouts/Flex/examples/Flex.md +16 -16
- package/docs/utilities/BoxShadow/examples/box-shadow.css +5 -5
- package/icons/pficons.mjs +1 -0
- package/layouts/Flex/flex.css +115 -43
- package/layouts/Flex/flex.scss +20 -8
- package/package.json +36 -32
- package/patternfly-addons.css +732 -972
- package/patternfly-base-no-globals-theme-dark-unversioned.css +923 -799
- package/patternfly-base-no-globals.css +923 -799
- package/patternfly-base-theme-dark-unversioned.css +928 -803
- package/patternfly-base.css +928 -803
- package/patternfly-no-globals.css +6887 -7357
- package/patternfly-theme-dark-unversioned.css +6892 -7361
- package/patternfly.css +6892 -7361
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/functions.scss +6 -0
- package/sass-utilities/mixins.scss +80 -2
- package/sass-utilities/scss-variables.scss +8 -8
- package/sass-utilities/themes/dark/mixins.scss +3 -1
- package/utilities/Accessibility/accessibility.css +12 -12
- package/utilities/Spacing/spacing.css +720 -960
- package/utilities/Spacing/spacing.scss +4 -8
- package/base/themes/dark/_variables.scss +0 -102
- package/components/AboutModalBox/themes/dark/about-modal-box.scss +0 -7
- package/components/Accordion/themes/dark/accordion.scss +0 -9
- package/components/Alert/themes/dark/alert.scss +0 -17
- package/components/Badge/themes/dark/badge.scss +0 -9
- package/components/Banner/themes/dark/banner.scss +0 -14
- package/components/Button/themes/dark/button.scss +0 -51
- package/components/ClipboardCopy/themes/dark/clipboard-copy.scss +0 -19
- package/components/DataList/themes/dark/data-list.scss +0 -10
- package/components/DragDrop/themes/dark/drag-drop.scss +0 -7
- package/components/Form/themes/dark/form.scss +0 -7
- package/components/FormControl/themes/dark/form-control.scss +0 -24
- package/components/HelperText/themes/dark/helper-text.scss +0 -7
- package/components/Hint/themes/dark/hint.scss +0 -8
- package/components/InputGroup/themes/dark/input-group.scss +0 -22
- package/components/Label/themes/dark/label.scss +0 -53
- package/components/Login/themes/dark/login.scss +0 -12
- package/components/Masthead/themes/dark/masthead.scss +0 -14
- package/components/ModalBox/themes/dark/modal-box.scss +0 -7
- package/components/NotificationBadge/themes/dark/notification-badge.scss +0 -10
- package/components/NotificationDrawer/themes/dark/notification-drawer.scss +0 -14
- package/components/Page/themes/dark/page.scss +0 -69
- package/components/Pagination/themes/dark/pagination.scss +0 -7
- package/components/Panel/themes/dark/panel.scss +0 -7
- package/components/Popover/themes/dark/popover.scss +0 -11
- package/components/Progress/themes/dark/progress.scss +0 -9
- package/components/SimpleList/themes/dark/simple-list.scss +0 -14
- package/components/Skeleton/themes/dark/skeleton.scss +0 -10
- package/components/Switch/themes/dark/switch.scss +0 -11
- package/components/Tile/themes/dark/tile.scss +0 -10
- package/components/ToggleGroup/themes/dark/toggle-group.scss +0 -12
- package/components/Tooltip/themes/dark/tooltip.scss +0 -8
- package/docs/components/Avatar/examples/Avatar.css +0 -3
- package/docs/components/NotificationBadge/examples/NotificationBadge.css +0 -3
package/components/Tabs/tabs.css
CHANGED
|
@@ -134,8 +134,8 @@
|
|
|
134
134
|
position: relative;
|
|
135
135
|
display: flex;
|
|
136
136
|
width: var(--pf-v5-c-tabs--Width);
|
|
137
|
-
padding-
|
|
138
|
-
padding-
|
|
137
|
+
padding-inline-start: var(--pf-v5-c-tabs--inset);
|
|
138
|
+
padding-inline-end: var(--pf-v5-c-tabs--inset);
|
|
139
139
|
overflow: hidden;
|
|
140
140
|
}
|
|
141
141
|
@media screen and (min-width: 1200px) {
|
|
@@ -146,11 +146,14 @@
|
|
|
146
146
|
}
|
|
147
147
|
.pf-v5-c-tabs::before {
|
|
148
148
|
position: absolute;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
inset-block-end: 0;
|
|
150
|
+
inset-inline-start: 0;
|
|
151
|
+
inset-inline-end: 0;
|
|
152
152
|
border: solid var(--pf-v5-c-tabs--before--BorderColor);
|
|
153
|
-
border-width: var(--pf-v5-c-tabs--before--BorderTopWidth)
|
|
153
|
+
border-block-start-width: var(--pf-v5-c-tabs--before--BorderTopWidth);
|
|
154
|
+
border-block-end-width: var(--pf-v5-c-tabs--before--BorderBottomWidth);
|
|
155
|
+
border-inline-start-width: var(--pf-v5-c-tabs--before--BorderLeftWidth);
|
|
156
|
+
border-inline-end-width: var(--pf-v5-c-tabs--before--BorderRightWidth);
|
|
154
157
|
}
|
|
155
158
|
.pf-v5-c-tabs.pf-m-fill .pf-v5-c-tabs__list {
|
|
156
159
|
flex-basis: 100%;
|
|
@@ -172,11 +175,11 @@
|
|
|
172
175
|
opacity: 1;
|
|
173
176
|
}
|
|
174
177
|
.pf-v5-c-tabs.pf-m-scrollable .pf-v5-c-tabs__scroll-button:nth-of-type(1) {
|
|
175
|
-
margin-
|
|
178
|
+
margin-inline-end: 0;
|
|
176
179
|
transform: translateX(0);
|
|
177
180
|
}
|
|
178
181
|
.pf-v5-c-tabs.pf-m-scrollable .pf-v5-c-tabs__scroll-button:nth-of-type(2) {
|
|
179
|
-
margin-
|
|
182
|
+
margin-inline-start: 0;
|
|
180
183
|
transform: translateX(0);
|
|
181
184
|
}
|
|
182
185
|
.pf-v5-c-tabs.pf-m-no-border-bottom {
|
|
@@ -206,16 +209,16 @@
|
|
|
206
209
|
--pf-v5-c-tabs__link--before--BorderBottomColor: var(--pf-v5-c-tabs__link--BackgroundColor);
|
|
207
210
|
}
|
|
208
211
|
.pf-v5-c-tabs.pf-m-box .pf-v5-c-tabs__item.pf-m-current:first-child .pf-v5-c-tabs__link::before {
|
|
209
|
-
border-
|
|
212
|
+
border-inline-start-width: var(--pf-v5-c-tabs--m-box__item--m-current--first-child__link--before--BorderLeftWidth);
|
|
210
213
|
}
|
|
211
214
|
.pf-v5-c-tabs.pf-m-box .pf-v5-c-tabs__item.pf-m-current:last-child .pf-v5-c-tabs__link::before {
|
|
212
|
-
border-
|
|
215
|
+
border-inline-end-width: var(--pf-v5-c-tabs--m-box__item--m-current--last-child__link--before--BorderRightWidth);
|
|
213
216
|
}
|
|
214
217
|
.pf-v5-c-tabs.pf-m-box.pf-m-scrollable .pf-v5-c-tabs__item.pf-m-current:first-child .pf-v5-c-tabs__link::before {
|
|
215
|
-
|
|
218
|
+
inset-inline-start: calc(var(--pf-v5-c-tabs__link--before--border-width--base) * -1);
|
|
216
219
|
}
|
|
217
220
|
.pf-v5-c-tabs.pf-m-box.pf-m-scrollable .pf-v5-c-tabs__scroll-button:nth-of-type(2)::before {
|
|
218
|
-
|
|
221
|
+
inset-inline-start: calc(var(--pf-v5-c-tabs__link--before--border-width--base) * -1);
|
|
219
222
|
}
|
|
220
223
|
.pf-v5-c-tabs.pf-m-box .pf-v5-c-tabs__item.pf-m-current + .pf-v5-c-tabs__item {
|
|
221
224
|
--pf-v5-c-tabs__link--before--Left: 0;
|
|
@@ -255,21 +258,24 @@
|
|
|
255
258
|
}
|
|
256
259
|
.pf-v5-c-tabs.pf-m-vertical .pf-v5-c-tabs__list::before {
|
|
257
260
|
position: absolute;
|
|
258
|
-
|
|
261
|
+
inset-inline-end: auto;
|
|
259
262
|
border: solid var(--pf-v5-c-tabs--m-vertical__list--before--BorderColor);
|
|
260
|
-
border-width: var(--pf-v5-c-tabs--m-vertical__list--before--BorderTopWidth)
|
|
263
|
+
border-block-start-width: var(--pf-v5-c-tabs--m-vertical__list--before--BorderTopWidth);
|
|
264
|
+
border-block-end-width: var(--pf-v5-c-tabs--m-vertical__list--before--BorderBottomWidth);
|
|
265
|
+
border-inline-start-width: var(--pf-v5-c-tabs--m-vertical__list--before--BorderLeftWidth);
|
|
266
|
+
border-inline-end-width: var(--pf-v5-c-tabs--m-vertical__list--before--BorderRightWidth);
|
|
261
267
|
}
|
|
262
268
|
.pf-v5-c-tabs.pf-m-vertical .pf-v5-c-tabs__item:first-child {
|
|
263
|
-
margin-
|
|
269
|
+
margin-block-start: var(--pf-v5-c-tabs--inset);
|
|
264
270
|
}
|
|
265
271
|
.pf-v5-c-tabs.pf-m-vertical .pf-v5-c-tabs__item:last-child {
|
|
266
|
-
margin-
|
|
272
|
+
margin-block-end: var(--pf-v5-c-tabs--inset);
|
|
267
273
|
}
|
|
268
274
|
.pf-v5-c-tabs.pf-m-vertical .pf-v5-c-tabs__link {
|
|
269
275
|
--pf-v5-c-tabs__link--after--BorderTopWidth: 0;
|
|
270
276
|
--pf-v5-c-tabs__link--after--BorderLeftWidth: var(--pf-v5-c-tabs__link--after--BorderWidth);
|
|
271
277
|
max-width: 100%;
|
|
272
|
-
text-align:
|
|
278
|
+
text-align: start;
|
|
273
279
|
}
|
|
274
280
|
.pf-v5-c-tabs.pf-m-vertical .pf-v5-c-tabs__item-text {
|
|
275
281
|
max-width: 100%;
|
|
@@ -348,8 +354,8 @@
|
|
|
348
354
|
--pf-v5-c-tabs__link--disabled--before--BorderLeftWidth: 0;
|
|
349
355
|
}
|
|
350
356
|
.pf-v5-c-tabs.pf-m-box.pf-m-vertical .pf-v5-c-tabs__list::before {
|
|
351
|
-
|
|
352
|
-
|
|
357
|
+
inset-inline-start: auto;
|
|
358
|
+
inset-inline-end: 0;
|
|
353
359
|
}
|
|
354
360
|
.pf-v5-c-tabs.pf-m-box.pf-m-vertical .pf-v5-c-tabs__item:last-child {
|
|
355
361
|
--pf-v5-c-tabs__link--before--BorderBottomWidth: 0;
|
|
@@ -367,11 +373,11 @@
|
|
|
367
373
|
--pf-v5-c-tabs__link--before--BorderTopWidth: var(--pf-v5-c-tabs__link--before--border-width--base);
|
|
368
374
|
}
|
|
369
375
|
.pf-v5-c-tabs.pf-m-box.pf-m-vertical .pf-v5-c-tabs__link::after {
|
|
370
|
-
|
|
376
|
+
inset-block-start: calc(var(--pf-v5-c-tabs__link--before--border-width--base) * -1);
|
|
371
377
|
}
|
|
372
378
|
.pf-v5-c-tabs.pf-m-box.pf-m-vertical .pf-v5-c-tabs__item:first-child .pf-v5-c-tabs__link::after,
|
|
373
379
|
.pf-v5-c-tabs.pf-m-box.pf-m-vertical .pf-v5-c-tabs__item.pf-m-current + .pf-v5-c-tabs__item .pf-v5-c-tabs__link::after {
|
|
374
|
-
|
|
380
|
+
inset-block-start: 0;
|
|
375
381
|
}
|
|
376
382
|
.pf-v5-c-tabs.pf-m-secondary {
|
|
377
383
|
--pf-v5-c-tabs__link--FontSize: var(--pf-v5-c-tabs--m-secondary__link--FontSize);
|
|
@@ -389,19 +395,19 @@
|
|
|
389
395
|
.pf-v5-c-tabs__toggle {
|
|
390
396
|
display: var(--pf-v5-c-tabs__toggle--Display);
|
|
391
397
|
align-items: center;
|
|
392
|
-
margin-
|
|
398
|
+
margin-block-end: var(--pf-v5-c-tabs__toggle--MarginBottom);
|
|
393
399
|
}
|
|
394
400
|
|
|
395
401
|
.pf-v5-c-tabs__toggle-button {
|
|
396
402
|
--pf-v5-c-tabs__toggle-text--MarginLeft: var(--pf-v5-c-tabs__toggle-button__toggle-text--MarginLeft);
|
|
397
403
|
--pf-v5-c-tabs__toggle-text--Color: var(--pf-v5-c-tabs__toggle-button__toggle-text--Color);
|
|
398
|
-
margin-
|
|
399
|
-
margin-
|
|
400
|
-
margin-
|
|
404
|
+
margin-block-start: var(--pf-v5-c-tabs__toggle-button--MarginTop);
|
|
405
|
+
margin-block-end: var(--pf-v5-c-tabs__toggle-button--MarginBottom);
|
|
406
|
+
margin-inline-start: var(--pf-v5-c-tabs__toggle-button--MarginLeft);
|
|
401
407
|
}
|
|
402
408
|
.pf-v5-c-tabs__toggle-button .pf-v5-c-button {
|
|
403
409
|
display: flex;
|
|
404
|
-
text-align:
|
|
410
|
+
text-align: start;
|
|
405
411
|
white-space: normal;
|
|
406
412
|
}
|
|
407
413
|
|
|
@@ -411,9 +417,12 @@
|
|
|
411
417
|
transition: var(--pf-v5-c-tabs__toggle-icon--Transition);
|
|
412
418
|
transform: rotate(var(--pf-v5-c-tabs__toggle-icon--Rotate));
|
|
413
419
|
}
|
|
420
|
+
:where(.pf-v5-m-dir-rtl, [dir=rtl]) .pf-v5-c-tabs__toggle-icon {
|
|
421
|
+
scale: -1 1;
|
|
422
|
+
}
|
|
414
423
|
|
|
415
424
|
.pf-v5-c-tabs__toggle-text {
|
|
416
|
-
margin-
|
|
425
|
+
margin-inline-start: var(--pf-v5-c-tabs__toggle-text--MarginLeft);
|
|
417
426
|
color: var(--pf-v5-c-tabs__toggle-text--Color, inherit);
|
|
418
427
|
}
|
|
419
428
|
|
|
@@ -463,9 +472,9 @@
|
|
|
463
472
|
.pf-v5-c-tabs__scroll-button::before,
|
|
464
473
|
.pf-v5-c-tabs__add::before {
|
|
465
474
|
position: absolute;
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
475
|
+
inset-block-end: 0;
|
|
476
|
+
inset-inline-start: 0;
|
|
477
|
+
inset-inline-end: 0;
|
|
469
478
|
content: "";
|
|
470
479
|
border-style: solid;
|
|
471
480
|
}
|
|
@@ -477,7 +486,7 @@
|
|
|
477
486
|
.pf-v5-c-tabs__item.pf-m-action::after,
|
|
478
487
|
.pf-v5-c-tabs__scroll-button::before,
|
|
479
488
|
.pf-v5-c-tabs__add::before {
|
|
480
|
-
|
|
489
|
+
inset-block-start: 0;
|
|
481
490
|
}
|
|
482
491
|
|
|
483
492
|
.pf-v5-c-tabs__link,
|
|
@@ -491,7 +500,10 @@
|
|
|
491
500
|
position: relative;
|
|
492
501
|
display: flex;
|
|
493
502
|
flex: 1;
|
|
494
|
-
padding: var(--pf-v5-c-tabs__link--PaddingTop)
|
|
503
|
+
padding-block-start: var(--pf-v5-c-tabs__link--PaddingTop);
|
|
504
|
+
padding-block-end: var(--pf-v5-c-tabs__link--PaddingBottom);
|
|
505
|
+
padding-inline-start: var(--pf-v5-c-tabs__link--PaddingLeft);
|
|
506
|
+
padding-inline-end: var(--pf-v5-c-tabs__link--PaddingRight);
|
|
495
507
|
font-size: var(--pf-v5-c-tabs__link--FontSize);
|
|
496
508
|
color: var(--pf-v5-c-tabs__link--Color);
|
|
497
509
|
text-decoration: none;
|
|
@@ -504,20 +516,26 @@
|
|
|
504
516
|
|
|
505
517
|
.pf-v5-c-tabs__item.pf-m-action::before, .pf-v5-c-tabs__link::before {
|
|
506
518
|
pointer-events: none;
|
|
507
|
-
border-
|
|
508
|
-
border-
|
|
509
|
-
border-
|
|
510
|
-
border-
|
|
511
|
-
border-
|
|
519
|
+
border-block-start-color: var(--pf-v5-c-tabs__link--before--BorderTopColor);
|
|
520
|
+
border-block-start-width: var(--pf-v5-c-tabs__link--before--BorderTopWidth);
|
|
521
|
+
border-block-end-color: var(--pf-v5-c-tabs__link--before--BorderBottomColor);
|
|
522
|
+
border-block-end-width: var(--pf-v5-c-tabs__link--before--BorderBottomWidth);
|
|
523
|
+
border-inline-start-color: var(--pf-v5-c-tabs__link--before--BorderLeftColor);
|
|
524
|
+
border-inline-start-width: var(--pf-v5-c-tabs__link--before--BorderLeftWidth);
|
|
525
|
+
border-inline-end-color: var(--pf-v5-c-tabs__link--before--BorderRightColor);
|
|
526
|
+
border-inline-end-width: var(--pf-v5-c-tabs__link--before--BorderRightWidth);
|
|
512
527
|
}
|
|
513
528
|
|
|
514
529
|
.pf-v5-c-tabs__item.pf-m-action::after, .pf-v5-c-tabs__link::after {
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
530
|
+
inset-block-start: var(--pf-v5-c-tabs__link--after--Top);
|
|
531
|
+
inset-block-end: var(--pf-v5-c-tabs__link--after--Bottom);
|
|
532
|
+
inset-inline-start: var(--pf-v5-c-tabs__link--before--Left);
|
|
533
|
+
inset-inline-end: var(--pf-v5-c-tabs__link--after--Right);
|
|
519
534
|
border-color: var(--pf-v5-c-tabs__link--after--BorderColor);
|
|
520
|
-
border-width: var(--pf-v5-c-tabs__link--after--BorderTopWidth)
|
|
535
|
+
border-block-start-width: var(--pf-v5-c-tabs__link--after--BorderTopWidth);
|
|
536
|
+
border-block-end-width: var(--pf-v5-c-tabs__link--after--BorderBottomWidth);
|
|
537
|
+
border-inline-start-width: var(--pf-v5-c-tabs__link--after--BorderLeftWidth);
|
|
538
|
+
border-inline-end-width: var(--pf-v5-c-tabs__link--after--BorderRightWidth);
|
|
521
539
|
}
|
|
522
540
|
|
|
523
541
|
.pf-v5-c-tabs__item.pf-m-action:hover, .pf-v5-c-tabs__link:hover {
|
|
@@ -558,7 +576,7 @@
|
|
|
558
576
|
}
|
|
559
577
|
.pf-v5-c-tabs__link .pf-v5-c-tabs__item-icon,
|
|
560
578
|
.pf-v5-c-tabs__link .pf-v5-c-tabs__item-text {
|
|
561
|
-
margin-
|
|
579
|
+
margin-inline-end: var(--pf-v5-c-tabs__link--child--MarginRight);
|
|
562
580
|
}
|
|
563
581
|
.pf-v5-c-tabs__link .pf-v5-c-tabs__item-icon:last-child,
|
|
564
582
|
.pf-v5-c-tabs__link .pf-v5-c-tabs__item-text:last-child {
|
|
@@ -576,6 +594,9 @@
|
|
|
576
594
|
transition: var(--pf-v5-c-tabs__link-toggle-icon--Transition);
|
|
577
595
|
transform: rotate(var(--pf-v5-c-tabs__link-toggle-icon--Rotate));
|
|
578
596
|
}
|
|
597
|
+
:where(.pf-v5-m-dir-rtl, [dir=rtl]) .pf-v5-c-tabs__link-toggle-icon {
|
|
598
|
+
scale: -1 1;
|
|
599
|
+
}
|
|
579
600
|
|
|
580
601
|
.pf-v5-c-tabs__item-action {
|
|
581
602
|
display: flex;
|
|
@@ -594,7 +615,7 @@
|
|
|
594
615
|
|
|
595
616
|
.pf-v5-c-tabs__item-action-icon {
|
|
596
617
|
display: inline-block;
|
|
597
|
-
margin-
|
|
618
|
+
margin-block-start: var(--pf-v5-c-tabs__item-action-icon--MarginTop);
|
|
598
619
|
}
|
|
599
620
|
|
|
600
621
|
.pf-v5-c-tabs__scroll-button {
|
|
@@ -607,21 +628,28 @@
|
|
|
607
628
|
opacity: 0;
|
|
608
629
|
transition: margin var(--pf-v5-c-tabs__scroll-button--TransitionDuration--margin), transform var(--pf-v5-c-tabs__scroll-button--TransitionDuration--transform), opacity var(--pf-v5-c-tabs__scroll-button--TransitionDuration--opacity);
|
|
609
630
|
}
|
|
631
|
+
:where(.pf-v5-m-dir-rtl, [dir=rtl]) .pf-v5-c-tabs__scroll-button > * {
|
|
632
|
+
scale: -1 1;
|
|
633
|
+
}
|
|
634
|
+
|
|
610
635
|
.pf-v5-c-tabs__scroll-button:hover, .pf-v5-c-tabs__scroll-button:active, .pf-v5-c-tabs__scroll-button:focus {
|
|
611
636
|
--pf-v5-c-tabs__scroll-button--Color: var(--pf-v5-c-tabs__scroll-button--hover--Color);
|
|
612
637
|
}
|
|
613
638
|
.pf-v5-c-tabs__scroll-button::before {
|
|
614
639
|
border-color: var(--pf-v5-c-tabs__scroll-button--before--BorderColor);
|
|
615
|
-
border-width: 0
|
|
640
|
+
border-block-start-width: 0;
|
|
641
|
+
border-block-end-width: var(--pf-v5-c-tabs__scroll-button--before--BorderBottomWidth);
|
|
642
|
+
border-inline-start-width: var(--pf-v5-c-tabs__scroll-button--before--BorderLeftWidth);
|
|
643
|
+
border-inline-end-width: var(--pf-v5-c-tabs__scroll-button--before--BorderRightWidth);
|
|
616
644
|
}
|
|
617
645
|
.pf-v5-c-tabs__scroll-button:nth-of-type(1) {
|
|
618
646
|
--pf-v5-c-tabs__scroll-button--before--BorderRightWidth: var(--pf-v5-c-tabs__scroll-button--before--border-width--base);
|
|
619
|
-
margin-
|
|
647
|
+
margin-inline-end: calc(var(--pf-v5-c-tabs__scroll-button--Width) * -1);
|
|
620
648
|
transform: translateX(-100%);
|
|
621
649
|
}
|
|
622
650
|
.pf-v5-c-tabs__scroll-button:nth-of-type(2) {
|
|
623
651
|
--pf-v5-c-tabs__scroll-button--before--BorderLeftWidth: var(--pf-v5-c-tabs__scroll-button--before--border-width--base);
|
|
624
|
-
margin-
|
|
652
|
+
margin-inline-start: calc(var(--pf-v5-c-tabs__scroll-button--Width) * -1);
|
|
625
653
|
transform: translateX(100%);
|
|
626
654
|
}
|
|
627
655
|
.pf-v5-c-tabs__scroll-button:disabled {
|
|
@@ -634,7 +662,7 @@
|
|
|
634
662
|
display: flex;
|
|
635
663
|
}
|
|
636
664
|
.pf-v5-c-tabs__add::before {
|
|
637
|
-
border-
|
|
665
|
+
border-inline-start: var(--pf-v5-c-tabs__add--before--BorderLeftWidth) solid var(--pf-v5-c-tabs__add--before--BorderColor);
|
|
638
666
|
}
|
|
639
667
|
.pf-v5-c-tabs__add .pf-v5-c-button {
|
|
640
668
|
--pf-v5-c-button--FontSize: var(--pf-v5-c-tabs__add--c-button--FontSize);
|
|
@@ -176,17 +176,20 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
176
176
|
position: relative;
|
|
177
177
|
display: flex;
|
|
178
178
|
width: var(--#{$tabs}--Width);
|
|
179
|
-
padding-
|
|
180
|
-
padding-
|
|
179
|
+
padding-inline-start: var(--#{$tabs}--inset);
|
|
180
|
+
padding-inline-end: var(--#{$tabs}--inset);
|
|
181
181
|
overflow: hidden; // needed for scroll button animation. limit to pf-m-scrollable in breaking change. may need new modifier so this is applied to a menu that supports scrolling, regardless of whether the scroll buttons are shown.
|
|
182
182
|
|
|
183
183
|
&::before {
|
|
184
184
|
position: absolute;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
185
|
+
inset-block-end: 0;
|
|
186
|
+
inset-inline-start: 0;
|
|
187
|
+
inset-inline-end: 0;
|
|
188
188
|
border: solid var(--#{$tabs}--before--BorderColor);
|
|
189
|
-
border-width: var(--#{$tabs}--before--BorderTopWidth)
|
|
189
|
+
border-block-start-width: var(--#{$tabs}--before--BorderTopWidth);
|
|
190
|
+
border-block-end-width: var(--#{$tabs}--before--BorderBottomWidth);
|
|
191
|
+
border-inline-start-width: var(--#{$tabs}--before--BorderLeftWidth);
|
|
192
|
+
border-inline-end-width: var(--#{$tabs}--before--BorderRightWidth);
|
|
190
193
|
}
|
|
191
194
|
|
|
192
195
|
// Filled style
|
|
@@ -221,12 +224,12 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
221
224
|
|
|
222
225
|
// Scroll buttons
|
|
223
226
|
.#{$tabs}__scroll-button:nth-of-type(1) {
|
|
224
|
-
margin-
|
|
227
|
+
margin-inline-end: 0;
|
|
225
228
|
transform: translateX(0);
|
|
226
229
|
}
|
|
227
230
|
|
|
228
231
|
.#{$tabs}__scroll-button:nth-of-type(2) {
|
|
229
|
-
margin-
|
|
232
|
+
margin-inline-start: 0;
|
|
230
233
|
transform: translateX(0);
|
|
231
234
|
}
|
|
232
235
|
}
|
|
@@ -272,22 +275,22 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
272
275
|
// stylelint-disable
|
|
273
276
|
// Add border to first-child
|
|
274
277
|
.#{$tabs}__item.pf-m-current:first-child .#{$tabs}__link::before {
|
|
275
|
-
border-
|
|
278
|
+
border-inline-start-width: var(--#{$tabs}--m-box__item--m-current--first-child__link--before--BorderLeftWidth);
|
|
276
279
|
}
|
|
277
280
|
|
|
278
281
|
// Add border to last-child
|
|
279
282
|
.#{$tabs}__item.pf-m-current:last-child .#{$tabs}__link::before {
|
|
280
|
-
border-
|
|
283
|
+
border-inline-end-width: var(--#{$tabs}--m-box__item--m-current--last-child__link--before--BorderRightWidth);
|
|
281
284
|
}
|
|
282
285
|
|
|
283
286
|
// Collapse left border into scroll button when expanded
|
|
284
287
|
&.pf-m-scrollable .#{$tabs}__item.pf-m-current:first-child .#{$tabs}__link::before {
|
|
285
|
-
|
|
288
|
+
inset-inline-start: calc(var(--#{$tabs}__link--before--border-width--base) * -1);
|
|
286
289
|
}
|
|
287
290
|
|
|
288
291
|
// Collapse left border into list when expanded
|
|
289
292
|
&.pf-m-scrollable .#{$tabs}__scroll-button:nth-of-type(2)::before {
|
|
290
|
-
|
|
293
|
+
inset-inline-start: calc(var(--#{$tabs}__link--before--border-width--base) * -1);
|
|
291
294
|
}
|
|
292
295
|
// stylelint-enable
|
|
293
296
|
|
|
@@ -338,19 +341,22 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
338
341
|
|
|
339
342
|
&::before {
|
|
340
343
|
position: absolute;
|
|
341
|
-
|
|
344
|
+
inset-inline-end: auto;
|
|
342
345
|
border: solid var(--#{$tabs}--m-vertical__list--before--BorderColor);
|
|
343
|
-
border-width: var(--#{$tabs}--m-vertical__list--before--BorderTopWidth)
|
|
346
|
+
border-block-start-width: var(--#{$tabs}--m-vertical__list--before--BorderTopWidth);
|
|
347
|
+
border-block-end-width: var(--#{$tabs}--m-vertical__list--before--BorderBottomWidth);
|
|
348
|
+
border-inline-start-width: var(--#{$tabs}--m-vertical__list--before--BorderLeftWidth);
|
|
349
|
+
border-inline-end-width: var(--#{$tabs}--m-vertical__list--before--BorderRightWidth);
|
|
344
350
|
}
|
|
345
351
|
}
|
|
346
352
|
|
|
347
353
|
// Because vertical variant has no scroll buttons, move inset to first/last __item to prevent default scrolling behavior
|
|
348
354
|
.#{$tabs}__item:first-child {
|
|
349
|
-
margin-
|
|
355
|
+
margin-block-start: var(--#{$tabs}--inset);
|
|
350
356
|
}
|
|
351
357
|
|
|
352
358
|
.#{$tabs}__item:last-child {
|
|
353
|
-
margin-
|
|
359
|
+
margin-block-end: var(--#{$tabs}--inset);
|
|
354
360
|
}
|
|
355
361
|
|
|
356
362
|
// Set hover on left border
|
|
@@ -359,7 +365,7 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
359
365
|
--#{$tabs}__link--after--BorderLeftWidth: var(--#{$tabs}__link--after--BorderWidth);
|
|
360
366
|
|
|
361
367
|
max-width: 100%;
|
|
362
|
-
text-align:
|
|
368
|
+
text-align: start;
|
|
363
369
|
}
|
|
364
370
|
|
|
365
371
|
.#{$tabs}__item-text {
|
|
@@ -403,8 +409,8 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
403
409
|
--#{$tabs}__link--disabled--before--BorderLeftWidth: 0;
|
|
404
410
|
|
|
405
411
|
.#{$tabs}__list::before {
|
|
406
|
-
|
|
407
|
-
|
|
412
|
+
inset-inline-start: auto;
|
|
413
|
+
inset-inline-end: 0;
|
|
408
414
|
}
|
|
409
415
|
|
|
410
416
|
// stylelint-disable selector-max-class
|
|
@@ -432,13 +438,13 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
432
438
|
|
|
433
439
|
// Offset vertical border to overlap horizontal border
|
|
434
440
|
.#{$tabs}__link::after {
|
|
435
|
-
|
|
441
|
+
inset-block-start: calc(var(--#{$tabs}__link--before--border-width--base) * -1);
|
|
436
442
|
}
|
|
437
443
|
|
|
438
444
|
// Undo offset to .pf-m-current adjacent item
|
|
439
445
|
.#{$tabs}__item:first-child .#{$tabs}__link::after,
|
|
440
446
|
.#{$tabs}__item.pf-m-current + .#{$tabs}__item .#{$tabs}__link::after {
|
|
441
|
-
|
|
447
|
+
inset-block-start: 0;
|
|
442
448
|
}
|
|
443
449
|
// stylelint-enable
|
|
444
450
|
}
|
|
@@ -465,25 +471,27 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
465
471
|
.#{$tabs}__toggle {
|
|
466
472
|
display: var(--#{$tabs}__toggle--Display);
|
|
467
473
|
align-items: center;
|
|
468
|
-
margin-
|
|
474
|
+
margin-block-end: var(--#{$tabs}__toggle--MarginBottom);
|
|
469
475
|
}
|
|
470
476
|
|
|
471
477
|
.#{$tabs}__toggle-button {
|
|
472
478
|
--#{$tabs}__toggle-text--MarginLeft: var(--#{$tabs}__toggle-button__toggle-text--MarginLeft);
|
|
473
479
|
--#{$tabs}__toggle-text--Color: var(--#{$tabs}__toggle-button__toggle-text--Color);
|
|
474
480
|
|
|
475
|
-
margin-
|
|
476
|
-
margin-
|
|
477
|
-
margin-
|
|
481
|
+
margin-block-start: var(--#{$tabs}__toggle-button--MarginTop);
|
|
482
|
+
margin-block-end: var(--#{$tabs}__toggle-button--MarginBottom);
|
|
483
|
+
margin-inline-start: var(--#{$tabs}__toggle-button--MarginLeft);
|
|
478
484
|
|
|
479
485
|
.#{$button} {
|
|
480
486
|
display: flex;
|
|
481
|
-
text-align:
|
|
487
|
+
text-align: start;
|
|
482
488
|
white-space: normal;
|
|
483
489
|
}
|
|
484
490
|
}
|
|
485
491
|
|
|
486
492
|
.#{$tabs}__toggle-icon {
|
|
493
|
+
@include pf-v5-mirror-inline-on-rtl;
|
|
494
|
+
|
|
487
495
|
display: inline-block;
|
|
488
496
|
color: var(--#{$tabs}__toggle-icon--Color);
|
|
489
497
|
transition: var(--#{$tabs}__toggle-icon--Transition);
|
|
@@ -491,7 +499,7 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
491
499
|
}
|
|
492
500
|
|
|
493
501
|
.#{$tabs}__toggle-text {
|
|
494
|
-
margin-
|
|
502
|
+
margin-inline-start: var(--#{$tabs}__toggle-text--MarginLeft);
|
|
495
503
|
color: var(--#{$tabs}__toggle-text--Color, inherit);
|
|
496
504
|
}
|
|
497
505
|
|
|
@@ -548,9 +556,9 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
548
556
|
.#{$tabs}__scroll-button::before,
|
|
549
557
|
.#{$tabs}__add::before {
|
|
550
558
|
position: absolute;
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
559
|
+
inset-block-end: 0;
|
|
560
|
+
inset-inline-start: 0;
|
|
561
|
+
inset-inline-end: 0;
|
|
554
562
|
content: "";
|
|
555
563
|
border-style: solid;
|
|
556
564
|
}
|
|
@@ -562,7 +570,7 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
562
570
|
.#{$tabs}__item.pf-m-action::after,
|
|
563
571
|
.#{$tabs}__scroll-button::before,
|
|
564
572
|
.#{$tabs}__add::before {
|
|
565
|
-
|
|
573
|
+
inset-block-start: 0;
|
|
566
574
|
}
|
|
567
575
|
|
|
568
576
|
.#{$tabs}__link,
|
|
@@ -584,7 +592,10 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
584
592
|
position: relative;
|
|
585
593
|
display: flex;
|
|
586
594
|
flex: 1;
|
|
587
|
-
padding: var(--#{$tabs}__link--PaddingTop)
|
|
595
|
+
padding-block-start: var(--#{$tabs}__link--PaddingTop);
|
|
596
|
+
padding-block-end: var(--#{$tabs}__link--PaddingBottom);
|
|
597
|
+
padding-inline-start: var(--#{$tabs}__link--PaddingLeft);
|
|
598
|
+
padding-inline-end: var(--#{$tabs}__link--PaddingRight);
|
|
588
599
|
font-size: var(--#{$tabs}__link--FontSize);
|
|
589
600
|
color: var(--#{$tabs}__link--Color);
|
|
590
601
|
text-decoration: none;
|
|
@@ -594,23 +605,29 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
594
605
|
& {
|
|
595
606
|
&::before {
|
|
596
607
|
pointer-events: none;
|
|
597
|
-
border-
|
|
598
|
-
border-
|
|
599
|
-
border-
|
|
600
|
-
border-
|
|
601
|
-
border-
|
|
608
|
+
border-block-start-color: var(--#{$tabs}__link--before--BorderTopColor);
|
|
609
|
+
border-block-start-width: var(--#{$tabs}__link--before--BorderTopWidth);
|
|
610
|
+
border-block-end-color: var(--#{$tabs}__link--before--BorderBottomColor);
|
|
611
|
+
border-block-end-width: var(--#{$tabs}__link--before--BorderBottomWidth);
|
|
612
|
+
border-inline-start-color: var(--#{$tabs}__link--before--BorderLeftColor);
|
|
613
|
+
border-inline-start-width: var(--#{$tabs}__link--before--BorderLeftWidth);
|
|
614
|
+
border-inline-end-color: var(--#{$tabs}__link--before--BorderRightColor);
|
|
615
|
+
border-inline-end-width: var(--#{$tabs}__link--before--BorderRightWidth);
|
|
602
616
|
}
|
|
603
617
|
}
|
|
604
618
|
|
|
605
619
|
@at-root .#{$tabs}__item.pf-m-action,
|
|
606
620
|
& {
|
|
607
621
|
&::after {
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
622
|
+
inset-block-start: var(--#{$tabs}__link--after--Top);
|
|
623
|
+
inset-block-end: var(--#{$tabs}__link--after--Bottom);
|
|
624
|
+
inset-inline-start: var(--#{$tabs}__link--before--Left); // use the ::before Left value to offset the top border / overlap left border
|
|
625
|
+
inset-inline-end: var(--#{$tabs}__link--after--Right);
|
|
612
626
|
border-color: var(--#{$tabs}__link--after--BorderColor);
|
|
613
|
-
border-width: var(--#{$tabs}__link--after--BorderTopWidth)
|
|
627
|
+
border-block-start-width: var(--#{$tabs}__link--after--BorderTopWidth);
|
|
628
|
+
border-block-end-width: var(--#{$tabs}__link--after--BorderBottomWidth);
|
|
629
|
+
border-inline-start-width: var(--#{$tabs}__link--after--BorderLeftWidth);
|
|
630
|
+
border-inline-end-width: var(--#{$tabs}__link--after--BorderRightWidth);
|
|
614
631
|
}
|
|
615
632
|
}
|
|
616
633
|
|
|
@@ -671,7 +688,7 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
671
688
|
// un-nest these selectors in a breaking change release
|
|
672
689
|
.#{$tabs}__item-icon,
|
|
673
690
|
.#{$tabs}__item-text {
|
|
674
|
-
margin-
|
|
691
|
+
margin-inline-end: var(--#{$tabs}__link--child--MarginRight);
|
|
675
692
|
|
|
676
693
|
&:last-child {
|
|
677
694
|
--#{$tabs}__link--child--MarginRight: 0;
|
|
@@ -685,6 +702,8 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
685
702
|
}
|
|
686
703
|
|
|
687
704
|
.#{$tabs}__link-toggle-icon {
|
|
705
|
+
@include pf-v5-mirror-inline-on-rtl;
|
|
706
|
+
|
|
688
707
|
align-self: end;
|
|
689
708
|
font-size: var(--#{$tabs}__link-toggle-icon--FontSize);
|
|
690
709
|
color: var(--#{$tabs}__link-toggle-icon--Color);
|
|
@@ -712,7 +731,7 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
712
731
|
|
|
713
732
|
.#{$tabs}__item-action-icon {
|
|
714
733
|
display: inline-block;
|
|
715
|
-
margin-
|
|
734
|
+
margin-block-start: var(--#{$tabs}__item-action-icon--MarginTop);
|
|
716
735
|
}
|
|
717
736
|
|
|
718
737
|
// Scroll buttons
|
|
@@ -726,6 +745,10 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
726
745
|
opacity: 0;
|
|
727
746
|
transition: margin var(--#{$tabs}__scroll-button--TransitionDuration--margin), transform var(--#{$tabs}__scroll-button--TransitionDuration--transform), opacity var(--#{$tabs}__scroll-button--TransitionDuration--opacity);
|
|
728
747
|
|
|
748
|
+
> * {
|
|
749
|
+
@include pf-v5-mirror-inline-on-rtl; // in breaking change, add an icon wrapper and move this style to the wrapper
|
|
750
|
+
}
|
|
751
|
+
|
|
729
752
|
&:hover,
|
|
730
753
|
&:active,
|
|
731
754
|
&:focus {
|
|
@@ -734,20 +757,23 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
734
757
|
|
|
735
758
|
&::before {
|
|
736
759
|
border-color: var(--#{$tabs}__scroll-button--before--BorderColor);
|
|
737
|
-
border-width: 0
|
|
760
|
+
border-block-start-width: 0;
|
|
761
|
+
border-block-end-width: var(--#{$tabs}__scroll-button--before--BorderBottomWidth);
|
|
762
|
+
border-inline-start-width: var(--#{$tabs}__scroll-button--before--BorderLeftWidth);
|
|
763
|
+
border-inline-end-width: var(--#{$tabs}__scroll-button--before--BorderRightWidth);
|
|
738
764
|
}
|
|
739
765
|
|
|
740
766
|
&:nth-of-type(1) {
|
|
741
767
|
--#{$tabs}__scroll-button--before--BorderRightWidth: var(--#{$tabs}__scroll-button--before--border-width--base);
|
|
742
768
|
|
|
743
|
-
margin-
|
|
769
|
+
margin-inline-end: calc(var(--#{$tabs}__scroll-button--Width) * -1);
|
|
744
770
|
transform: translateX(-100%);
|
|
745
771
|
}
|
|
746
772
|
|
|
747
773
|
&:nth-of-type(2) {
|
|
748
774
|
--#{$tabs}__scroll-button--before--BorderLeftWidth: var(--#{$tabs}__scroll-button--before--border-width--base);
|
|
749
775
|
|
|
750
|
-
margin-
|
|
776
|
+
margin-inline-start: calc(var(--#{$tabs}__scroll-button--Width) * -1);
|
|
751
777
|
transform: translateX(100%);
|
|
752
778
|
}
|
|
753
779
|
|
|
@@ -763,7 +789,7 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
763
789
|
display: flex;
|
|
764
790
|
|
|
765
791
|
&::before {
|
|
766
|
-
border-
|
|
792
|
+
border-inline-start: var(--#{$tabs}__add--before--BorderLeftWidth) solid var(--#{$tabs}__add--before--BorderColor);
|
|
767
793
|
}
|
|
768
794
|
|
|
769
795
|
.#{$button} {
|