@patternfly/patternfly 6.0.0-alpha.9 → 6.0.0-alpha.90
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/CODE_OF_CONDUCT.md +1 -2
- 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/base/_common.scss +8 -4
- package/base/_globals.scss +4 -6
- package/base/_variables.scss +2 -7
- package/base/patternfly-common.css +8 -4
- package/base/patternfly-globals.css +4 -3
- package/base/patternfly-variables.css +1005 -856
- package/base/tokens/_tokens-charts.scss +159 -0
- package/base/tokens/_tokens-dark.scss +319 -290
- package/base/tokens/_tokens-default.scss +485 -329
- package/base/tokens/_tokens-font.scss +122 -58
- package/base/tokens/_tokens-palette.scss +71 -71
- package/base/tokens/_workspace-overrides.scss +7 -0
- package/components/AboutModalBox/about-modal-box.css +57 -94
- package/components/AboutModalBox/about-modal-box.scss +37 -62
- package/components/Accordion/accordion.css +85 -177
- package/components/Accordion/accordion.scss +96 -195
- package/components/ActionList/action-list.css +18 -17
- package/components/ActionList/action-list.scss +26 -16
- package/components/Alert/alert-group.css +20 -16
- package/components/Alert/alert-group.scss +20 -16
- package/components/Alert/alert.css +59 -84
- package/components/Alert/alert.scss +62 -78
- package/components/Avatar/avatar.css +10 -13
- package/components/Avatar/avatar.scss +10 -17
- package/components/BackToTop/back-to-top.css +17 -16
- package/components/BackToTop/back-to-top.scss +12 -12
- package/components/Backdrop/backdrop.css +6 -2
- package/components/Backdrop/backdrop.scss +5 -2
- package/components/BackgroundImage/background-image.css +5 -1
- package/components/BackgroundImage/background-image.scss +5 -1
- package/components/Badge/badge.css +23 -15
- package/components/Badge/badge.scss +25 -17
- package/components/Banner/banner.css +90 -64
- package/components/Banner/banner.scss +95 -32
- package/components/Breadcrumb/breadcrumb.css +27 -16
- package/components/Breadcrumb/breadcrumb.scss +27 -18
- package/components/Button/button.css +398 -354
- package/components/Button/button.scss +455 -477
- package/components/CalendarMonth/calendar-month.css +61 -92
- package/components/CalendarMonth/calendar-month.scss +68 -63
- package/components/Card/card.css +100 -194
- package/components/Card/card.scss +121 -237
- package/components/Check/check.css +24 -21
- package/components/Check/check.scss +25 -23
- package/components/ClipboardCopy/clipboard-copy.css +30 -33
- package/components/ClipboardCopy/clipboard-copy.scss +34 -26
- package/components/CodeBlock/code-block.css +22 -9
- package/components/CodeBlock/code-block.scss +22 -10
- package/components/CodeEditor/code-editor.css +94 -72
- package/components/CodeEditor/code-editor.scss +104 -82
- package/components/Content/content.css +7 -7
- package/components/Content/content.scss +7 -7
- package/components/DataList/data-list.css +101 -158
- package/components/DataList/data-list.scss +95 -154
- package/components/DatePicker/date-picker.css +13 -14
- package/components/DatePicker/date-picker.scss +12 -16
- package/components/DescriptionList/description-list.css +39 -34
- package/components/DescriptionList/description-list.scss +25 -25
- package/components/Divider/divider.css +91 -169
- package/components/Divider/divider.scss +60 -77
- package/components/DragDrop/drag-drop.css +18 -14
- package/components/DragDrop/drag-drop.scss +18 -17
- package/components/Drawer/drawer.css +112 -113
- package/components/Drawer/drawer.scss +134 -134
- package/components/Dropdown/dropdown.css +1 -3
- package/components/Dropdown/dropdown.scss +2 -6
- package/components/DualListSelector/dual-list-selector.css +54 -51
- package/components/DualListSelector/dual-list-selector.scss +55 -54
- package/components/EmptyState/empty-state.css +57 -34
- package/components/EmptyState/empty-state.scss +63 -34
- package/components/ExpandableSection/expandable-section.css +64 -62
- package/components/ExpandableSection/expandable-section.scss +73 -76
- package/components/FileUpload/file-upload.css +28 -34
- package/components/FileUpload/file-upload.scss +30 -42
- package/components/Form/form.css +66 -116
- package/components/Form/form.scss +63 -128
- package/components/FormControl/form-control.css +86 -111
- package/components/FormControl/form-control.scss +88 -92
- package/components/HelperText/helper-text.css +28 -34
- package/components/HelperText/helper-text.scss +30 -40
- package/components/Hint/hint.css +28 -21
- package/components/Hint/hint.scss +28 -24
- package/components/Icon/icon.css +154 -18
- package/components/Icon/icon.scss +187 -20
- package/components/InlineEdit/inline-edit.css +8 -7
- package/components/InlineEdit/inline-edit.scss +8 -7
- package/components/InputGroup/input-group.css +22 -38
- package/components/InputGroup/input-group.scss +21 -29
- package/components/JumpLinks/jump-links.css +34 -34
- package/components/JumpLinks/jump-links.scss +35 -36
- package/components/Label/label-group.css +39 -44
- package/components/Label/label-group.scss +39 -45
- package/components/Label/label.css +378 -355
- package/components/Label/label.scss +431 -348
- package/components/List/list.css +16 -16
- package/components/List/list.scss +17 -17
- package/components/Login/login.css +68 -112
- package/components/Login/login.scss +54 -82
- package/components/Masthead/masthead.css +261 -502
- package/components/Masthead/masthead.scss +123 -286
- package/components/Menu/menu.css +388 -417
- package/components/Menu/menu.scss +370 -525
- package/components/MenuToggle/menu-toggle.css +223 -276
- package/components/MenuToggle/menu-toggle.scss +322 -390
- package/components/ModalBox/modal-box.css +59 -52
- package/components/ModalBox/modal-box.scss +57 -53
- package/components/MultipleFileUpload/multiple-file-upload.css +77 -50
- package/components/MultipleFileUpload/multiple-file-upload.scss +82 -53
- package/components/Nav/nav.css +240 -918
- package/components/Nav/nav.scss +300 -1082
- package/components/NotificationBadge/notification-badge.css +4 -4
- package/components/NotificationBadge/notification-badge.scss +4 -4
- package/components/NotificationDrawer/notification-drawer.css +104 -115
- package/components/NotificationDrawer/notification-drawer.scss +106 -116
- package/components/NumberInput/number-input.css +8 -8
- package/components/NumberInput/number-input.scss +7 -12
- package/components/OverflowMenu/overflow-menu.css +17 -47
- package/components/OverflowMenu/overflow-menu.scss +27 -65
- package/components/Page/page.css +56 -164
- package/components/Page/page.scss +60 -154
- package/components/Pagination/pagination.css +57 -124
- package/components/Pagination/pagination.scss +40 -128
- package/components/Panel/panel.css +27 -23
- package/components/Panel/panel.scss +29 -26
- package/components/Popover/popover.css +42 -53
- package/components/Popover/popover.scss +46 -55
- package/components/Progress/progress.css +31 -45
- package/components/Progress/progress.scss +36 -55
- package/components/ProgressStepper/progress-stepper.css +72 -69
- package/components/ProgressStepper/progress-stepper.scss +65 -65
- package/components/Radio/radio.css +27 -20
- package/components/Radio/radio.scss +28 -22
- package/components/Sidebar/sidebar.css +20 -9
- package/components/Sidebar/sidebar.scss +23 -11
- package/components/SimpleList/simple-list.css +32 -52
- package/components/SimpleList/simple-list.scss +37 -51
- package/components/Skeleton/skeleton.css +18 -20
- package/components/Skeleton/skeleton.scss +17 -21
- package/components/SkipToContent/skip-to-content.css +6 -3
- package/components/SkipToContent/skip-to-content.scss +8 -6
- package/components/Slider/slider.css +34 -30
- package/components/Slider/slider.scss +46 -43
- package/components/Spinner/spinner.css +17 -34
- package/components/Spinner/spinner.scss +19 -47
- package/components/Switch/switch.css +42 -38
- package/components/Switch/switch.scss +48 -43
- package/components/TabContent/tab-content.css +17 -11
- package/components/TabContent/tab-content.scss +18 -14
- package/components/Table/table-grid.css +31 -47
- package/components/Table/table-grid.scss +42 -55
- package/components/Table/table-scrollable.css +6 -6
- package/components/Table/table-scrollable.scss +8 -8
- package/components/Table/table-tree-view.css +81 -74
- package/components/Table/table-tree-view.scss +53 -39
- package/components/Table/table.css +159 -264
- package/components/Table/table.scss +216 -351
- package/components/Tabs/tabs.css +142 -175
- package/components/Tabs/tabs.scss +158 -218
- package/components/TextInputGroup/text-input-group.css +0 -14
- package/components/TextInputGroup/text-input-group.scss +3 -16
- package/components/Tile/tile.css +40 -81
- package/components/Tile/tile.scss +38 -84
- 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 +54 -48
- package/components/ToggleGroup/toggle-group.scss +62 -50
- package/components/Toolbar/toolbar.css +2527 -1031
- package/components/Toolbar/toolbar.scss +233 -520
- package/components/Tooltip/tooltip.css +16 -18
- package/components/Tooltip/tooltip.scss +20 -24
- package/components/TreeView/tree-view.css +76 -97
- package/components/TreeView/tree-view.scss +82 -113
- package/components/Truncate/truncate.css +4 -0
- package/components/Truncate/truncate.scss +3 -0
- package/components/Wizard/wizard.css +122 -205
- package/components/Wizard/wizard.scss +121 -181
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +2 -2
- package/docs/components/Accordion/examples/Accordion.md +614 -416
- package/docs/components/ActionList/examples/ActionList.md +73 -22
- 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 +4 -0
- package/docs/components/Button/examples/Button.md +1439 -113
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +44 -220
- package/docs/components/Card/examples/Card.md +550 -133
- package/docs/components/Check/examples/Check.md +1 -0
- package/docs/components/CodeBlock/examples/CodeBlock.md +4 -4
- package/docs/components/CodeEditor/examples/CodeEditor.md +144 -132
- package/docs/components/Content/examples/Content.md +5 -5
- package/docs/components/DatePicker/examples/DatePicker.md +5 -2
- package/docs/components/Divider/examples/Divider.css +3 -1
- package/docs/components/Divider/examples/Divider.md +30 -5
- package/docs/components/DragDrop/examples/DragDrop.css +1 -1
- package/docs/components/Drawer/examples/Drawer.md +294 -256
- package/docs/components/DualListSelector/examples/DualListSelector.md +18 -18
- 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 +3090 -703
- package/docs/components/LogViewer/examples/LogViewer.md +100 -80
- package/docs/components/Login/examples/Login.md +160 -105
- package/docs/components/Masthead/examples/masthead.md +443 -65
- package/docs/components/Menu/examples/Menu.css +7 -11
- package/docs/components/Menu/examples/Menu.md +213 -486
- package/docs/components/MenuToggle/examples/MenuToggle.md +253 -224
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +9 -9
- package/docs/components/Nav/examples/Navigation.css +1 -23
- package/docs/components/Nav/examples/Navigation.md +69 -243
- 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.md +1 -1
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +15 -14
- package/docs/components/Radio/examples/Radio.md +1 -1
- 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.md +8 -8
- package/docs/components/Tabs/examples/Tabs.css +1 -1
- package/docs/components/Tabs/examples/Tabs.md +1025 -826
- package/docs/components/Tile/examples/Tile.md +264 -144
- package/docs/components/Title/examples/Title.md +18 -0
- package/docs/components/Toolbar/examples/Toolbar.css +20 -15
- package/docs/components/Toolbar/examples/Toolbar.md +985 -3341
- package/docs/components/TreeView/examples/TreeView.md +7 -57
- package/docs/components/Truncate/examples/Truncate.css +2 -2
- package/docs/components/Wizard/examples/Wizard.md +31 -7
- package/docs/demos/AboutModal/examples/AboutModal.md +116 -35
- package/docs/demos/Alert/examples/Alert.md +366 -99
- package/docs/demos/BackToTop/examples/BackToTop.md +114 -33
- package/docs/demos/Banner/examples/Banner.md +235 -68
- package/docs/demos/Button/examples/Button.md +1 -1
- package/docs/demos/Card/examples/Card.md +2 -2
- package/docs/demos/CardView/examples/CardView.md +256 -192
- package/docs/demos/ContextSelector/examples/ContextSelector.md +414 -107
- package/docs/demos/Dashboard/examples/Dashboard.md +114 -33
- package/docs/demos/DataList/examples/DataList.md +1049 -950
- package/docs/demos/DescriptionList/examples/DescriptionList.md +342 -99
- package/docs/demos/Drawer/examples/Drawer.md +700 -271
- package/docs/demos/Form/examples/BasicForms.md +138 -84
- package/docs/demos/JumpLinks/examples/JumpLinks.md +989 -409
- package/docs/demos/Masthead/examples/Masthead.md +833 -357
- package/docs/demos/Modal/examples/Modal.md +717 -222
- package/docs/demos/Nav/examples/Nav.md +763 -926
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +575 -165
- package/docs/demos/Page/examples/Page.md +1050 -309
- package/docs/demos/Page/examples/Penta.md +73 -31
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +20 -16
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +44 -32
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +1276 -861
- package/docs/demos/Skeleton/examples/Skeleton.md +114 -33
- package/docs/demos/Table/examples/Table.md +4002 -3503
- package/docs/demos/Tabs/examples/Tabs.md +711 -219
- package/docs/demos/Toolbar/examples/Toolbar.css +10 -0
- package/docs/demos/Toolbar/examples/Toolbar.md +1350 -1480
- package/docs/demos/Wizard/examples/Wizard.md +1134 -315
- package/docs/layouts/Flex/examples/Flex.md +11 -11
- package/package.json +32 -32
- package/patternfly-base-no-globals-theme-dark-unversioned.css +1021 -868
- package/patternfly-base-no-globals.css +1021 -868
- package/patternfly-base-theme-dark-unversioned.css +1027 -873
- package/patternfly-base.css +1027 -873
- package/patternfly-no-globals.css +9048 -8979
- package/patternfly-theme-dark-unversioned.css +9051 -8981
- package/patternfly.css +9051 -8981
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/mixins.scss +18 -0
- 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/CalendarMonth/themes/dark/calendar-month.scss +0 -37
- package/components/Card/themes/dark/card.scss +0 -20
- package/components/ClipboardCopy/themes/dark/clipboard-copy.scss +0 -19
- package/components/CodeEditor/themes/dark/code-editor.scss +0 -14
- package/components/DataList/themes/dark/data-list.scss +0 -10
- package/components/DatePicker/themes/dark/date-picker.scss +0 -8
- package/components/DragDrop/themes/dark/drag-drop.scss +0 -7
- package/components/Drawer/themes/dark/drawer.scss +0 -13
- package/components/DualListSelector/themes/dark/dual-list-selector.scss +0 -9
- 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/MenuToggle/themes/dark/menu-toggle.scss +0 -27
- package/components/ModalBox/themes/dark/modal-box.scss +0 -7
- 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/Tabs/themes/dark/tabs.scss +0 -10
- package/components/TextInputGroup/themes/dark/text-input-group.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/components/TreeView/themes/dark/tree-view.scss +0 -8
- package/components/Wizard/themes/dark/wizard.scss +0 -12
- package/docs/components/Avatar/examples/Avatar.css +0 -3
|
@@ -2,70 +2,86 @@
|
|
|
2
2
|
$pf-v5-c-tabs--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "xl", "2xl");
|
|
3
3
|
$pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl");
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
:where(:root),
|
|
6
|
+
:where(.#{$tabs}) {
|
|
6
7
|
--#{$tabs}--inset: 0;
|
|
7
8
|
--#{$tabs}--Width: auto;
|
|
8
|
-
--#{$tabs}--before--BorderColor: var(
|
|
9
|
-
--#{$tabs}--before--border-width--base: var(
|
|
9
|
+
--#{$tabs}--before--BorderColor: var(--pf-t--global--border--color--default);
|
|
10
|
+
--#{$tabs}--before--border-width--base: var(--pf-t--global--border--width--regular);
|
|
10
11
|
--#{$tabs}--before--BorderTopWidth: 0;
|
|
11
12
|
--#{$tabs}--before--BorderRightWidth: 0;
|
|
12
13
|
--#{$tabs}--before--BorderBottomWidth: var(--#{$tabs}--before--border-width--base);
|
|
13
14
|
--#{$tabs}--before--BorderLeftWidth: 0;
|
|
14
|
-
--#{$tabs}--m-vertical--inset: var(
|
|
15
|
+
--#{$tabs}--m-vertical--inset: var(--pf-t--global--spacer--sm);
|
|
15
16
|
|
|
16
|
-
// Page insets
|
|
17
|
-
--#{$tabs}--m-page-insets--inset: var(
|
|
18
|
-
--#{$tabs}--m-page-insets--xl--inset: var(--#{$pf-global}--spacer--lg); // make this the default inset at breaking change
|
|
17
|
+
// Tabs, Page insets modifier
|
|
18
|
+
--#{$tabs}--m-page-insets--inset: var(--pf-t--global--spacer--md);
|
|
19
19
|
|
|
20
|
-
// Vertical
|
|
20
|
+
// Tabs, Vertical modifier
|
|
21
21
|
--#{$tabs}--m-vertical--Width: 100%;
|
|
22
22
|
--#{$tabs}--m-vertical--MaxWidth: #{pf-size-prem(250px)};
|
|
23
|
-
--#{$tabs}--m-vertical--m-box--inset: var(
|
|
23
|
+
--#{$tabs}--m-vertical--m-box--inset: var(--pf-t--global--spacer--md);
|
|
24
24
|
--#{$tabs}--m-vertical__list--before--BorderColor: var(--#{$tabs}--before--BorderColor);
|
|
25
25
|
--#{$tabs}--m-vertical__list--before--BorderTopWidth: 0;
|
|
26
26
|
--#{$tabs}--m-vertical__list--before--BorderRightWidth: 0;
|
|
27
27
|
--#{$tabs}--m-vertical__list--before--BorderBottomWidth: 0;
|
|
28
28
|
--#{$tabs}--m-vertical__list--before--BorderLeftWidth: var(--#{$tabs}--before--border-width--base);
|
|
29
29
|
|
|
30
|
-
// Box
|
|
30
|
+
// Tabs, Box modifier
|
|
31
31
|
--#{$tabs}--m-box__item--m-current--first-child__link--before--BorderLeftWidth: var(--#{$tabs}__link--before--border-width--base);
|
|
32
32
|
--#{$tabs}--m-box__item--m-current--last-child__link--before--BorderRightWidth: var(--#{$tabs}--before--border-width--base);
|
|
33
33
|
|
|
34
|
-
//
|
|
35
|
-
--#{$tabs}--m-color-scheme--light-300__link--BackgroundColor: transparent;
|
|
36
|
-
--#{$tabs}--m-color-scheme--light-300__item--m-current__link--BackgroundColor: var(--#{$pf-global}--BackgroundColor--light-300);
|
|
37
|
-
--#{$tabs}--m-color-scheme--light-300__link--disabled--BackgroundColor: var(--#{$pf-global}--palette--black-150);
|
|
38
|
-
|
|
39
|
-
// List
|
|
34
|
+
// Tabs List
|
|
40
35
|
--#{$tabs}__list--Display: flex;
|
|
41
36
|
|
|
42
|
-
// Item
|
|
43
|
-
--#{$tabs}__item--
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
--#{$tabs}
|
|
47
|
-
--#{$tabs}
|
|
48
|
-
--#{$tabs}
|
|
49
|
-
--#{$tabs}
|
|
50
|
-
--#{$tabs}
|
|
51
|
-
--#{$tabs}
|
|
52
|
-
--#{$tabs}
|
|
53
|
-
--#{$tabs}
|
|
54
|
-
--#{$tabs}
|
|
55
|
-
--#{$tabs}
|
|
56
|
-
--#{$tabs}__item--m-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
--#{$tabs}--
|
|
60
|
-
--#{$tabs}--
|
|
61
|
-
--#{$tabs}--
|
|
62
|
-
--#{$tabs}--
|
|
63
|
-
--#{$tabs}--
|
|
64
|
-
--#{$tabs}
|
|
37
|
+
// Tabs Item
|
|
38
|
+
--#{$tabs}__item--BackgroundColor: transparent;
|
|
39
|
+
--#{$tabs}__item--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
40
|
+
--#{$tabs}__item--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
41
|
+
--#{$tabs}__item--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
42
|
+
--#{$tabs}__item--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
|
|
43
|
+
--#{$tabs}__item--ColumnGap: var(--pf-t--global--spacer--xs);
|
|
44
|
+
--#{$tabs}--m-vertical__item--PaddingInlineStart: var(--pf-t--global--spacer--md);
|
|
45
|
+
--#{$tabs}--m-vertical__item--PaddingInlineEnd: var(--pf-t--global--spacer--md);
|
|
46
|
+
--#{$tabs}__item--m-current--BackgroundColor: transparent;
|
|
47
|
+
--#{$tabs}--m-box__item--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
48
|
+
--#{$tabs}--m-box__item--m-current--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
49
|
+
--#{$tabs}--m-box--m-secondary__item--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
50
|
+
--#{$tabs}--m-box--m-secondary__item--m-current--BackgroundColor: var(--pf-t--global--background--color--primary--clicked);
|
|
51
|
+
--#{$tabs}__item--m-action--before--ZIndex: var(--pf-t--global--Zindex--sm);
|
|
52
|
+
|
|
53
|
+
// Tabs link
|
|
54
|
+
--#{$tabs}__link--Color: var(--pf-t--global--text--color--subtle);
|
|
55
|
+
--#{$tabs}__link--FontSize: var(--pf-t--global--font--size--sm);
|
|
56
|
+
--#{$tabs}__link--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
|
|
57
|
+
--#{$tabs}__link--BorderRadius: var(--pf-t--global--border--radius--small);
|
|
58
|
+
--#{$tabs}__link--PaddingTop: var(--pf-t--global--spacer--xs);
|
|
59
|
+
--#{$tabs}__link--PaddingRight: var(--pf-t--global--spacer--sm);
|
|
60
|
+
--#{$tabs}__link--PaddingBottom: var(--pf-t--global--spacer--xs);
|
|
61
|
+
--#{$tabs}__link--PaddingLeft: var(--pf-t--global--spacer--sm);
|
|
62
|
+
--#{$tabs}__link--ColumnGap: var(--pf-t--global--spacer--sm);
|
|
63
|
+
--#{$tabs}__link--disabled--Color: var(--pf-t--global--text--color--on-disabled);
|
|
64
|
+
--#{$tabs}__link--disabled--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
|
|
65
|
+
--#{$tabs}__link--hover--BackgroundColor: var(--pf-t--global--background--color--action--plain--hover);
|
|
66
|
+
--#{$tabs}__item--m-current__link--Color: var(--pf-t--global--text--color--regular);
|
|
67
|
+
--#{$tabs}__item--m-current__link--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
|
|
68
|
+
--#{$tabs}--m-vertical__link--PaddingLeft: var(--pf-t--global--spacer--sm);
|
|
69
|
+
--#{$tabs}--m-vertical__link--PaddingRight: var(--pf-t--global--spacer--sm);
|
|
70
|
+
--#{$tabs}--m-box__link--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
|
|
71
|
+
--#{$tabs}--m-box__link--disabled--Color: var(--pf-t--global--text--color--on-disabled);
|
|
72
|
+
--#{$tabs}--m-box__link--disabled--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
|
|
73
|
+
--#{$tabs}--m-box__link--hover--BackgroundColor: var(--pf-t--global--background--color--action--plain--hover);
|
|
74
|
+
--#{$tabs}--m-box__item--m-current__link--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
|
|
75
|
+
--#{$tabs}--m-box--m-secondary__link--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
|
|
76
|
+
--#{$tabs}--m-box--m-secondary__link--disabled--Color: var(--pf-t--global--text--color--on-disabled);
|
|
77
|
+
--#{$tabs}--m-box--m-secondary__link--disabled--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
|
|
78
|
+
--#{$tabs}--m-box--m-secondary__link--hover--BackgroundColor: var(--pf-t--global--background--color--action--plain--hover);
|
|
79
|
+
--#{$tabs}--m-box--m-secondary__item--m-current__link--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
|
|
80
|
+
--#{$tabs}--m-subtab__link--FontSize: var(--pf-t--global--font--size--xs);
|
|
65
81
|
|
|
66
82
|
// Link before
|
|
67
|
-
--#{$tabs}__link--before--border-color--base: var(
|
|
68
|
-
--#{$tabs}__link--before--border-width--base: var(
|
|
83
|
+
--#{$tabs}__link--before--border-color--base: var(--pf-t--global--border--color--default);
|
|
84
|
+
--#{$tabs}__link--before--border-width--base: var(--pf-t--global--border--width--regular);
|
|
69
85
|
--#{$tabs}__link--before--BorderTopColor: var(--#{$tabs}__link--before--border-color--base);
|
|
70
86
|
--#{$tabs}__link--before--BorderRightColor: var(--#{$tabs}__link--before--border-color--base);
|
|
71
87
|
--#{$tabs}__link--before--BorderBottomColor: var(--#{$tabs}__link--before--border-color--base);
|
|
@@ -83,33 +99,27 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
83
99
|
--#{$tabs}__link--after--Top: auto;
|
|
84
100
|
--#{$tabs}__link--after--Right: 0;
|
|
85
101
|
--#{$tabs}__link--after--Bottom: 0;
|
|
86
|
-
--#{$tabs}__link--after--BorderColor: var(
|
|
102
|
+
--#{$tabs}__link--after--BorderColor: var(--pf-t--global--border--color--default);
|
|
87
103
|
--#{$tabs}__link--after--BorderWidth: 0;
|
|
88
104
|
--#{$tabs}__link--after--BorderTopWidth: 0;
|
|
89
105
|
--#{$tabs}__link--after--BorderRightWidth: 0;
|
|
90
106
|
--#{$tabs}__link--after--BorderLeftWidth: 0;
|
|
91
|
-
--#{$tabs}
|
|
92
|
-
--#{$tabs}
|
|
93
|
-
--#{$tabs}__link--active--after--BorderWidth: var(--#{$pf-global}--BorderWidth--lg);
|
|
94
|
-
--#{$tabs}__item--m-current__link--after--BorderColor: var(--#{$pf-global}--active-color--100);
|
|
95
|
-
--#{$tabs}__item--m-current__link--after--BorderWidth: var(--#{$pf-global}--BorderWidth--lg);
|
|
96
|
-
--#{$tabs}__link--child--MarginRight: var(--#{$pf-global}--spacer--md);
|
|
107
|
+
--#{$tabs}__item--m-current__link--after--BorderColor: var(--pf-t--global--border--color--clicked);
|
|
108
|
+
--#{$tabs}__item--m-current__link--after--BorderWidth: var(--pf-t--global--border--width--extra-strong);
|
|
97
109
|
|
|
98
110
|
// Scroll buttons
|
|
99
|
-
--#{$tabs}__scroll-button--
|
|
100
|
-
--#{$tabs}__scroll-button--
|
|
101
|
-
--#{$tabs}__scroll-button--
|
|
102
|
-
--#{$tabs}__scroll-button--
|
|
103
|
-
--#{$tabs}__scroll-button--Width: var(
|
|
104
|
-
--#{$tabs}__scroll-button--xl--Width: var(--#{$pf-global}--spacer--3xl);
|
|
105
|
-
--#{$tabs}__scroll-button--OutlineOffset: calc(-1 * var(--#{$pf-global}--spacer--xs));
|
|
111
|
+
--#{$tabs}__scroll-button--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
112
|
+
--#{$tabs}__scroll-button--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
113
|
+
--#{$tabs}__scroll-button--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
114
|
+
--#{$tabs}__scroll-button--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
|
|
115
|
+
--#{$tabs}__scroll-button--Width: var(--pf-t--global--spacer--2xl);
|
|
106
116
|
--#{$tabs}__scroll-button--TransitionDuration--margin: .125s;
|
|
107
117
|
--#{$tabs}__scroll-button--TransitionDuration--transform: .125s;
|
|
108
118
|
--#{$tabs}__scroll-button--TransitionDuration--opacity: .125s;
|
|
109
119
|
|
|
110
120
|
// Scroll buttons before
|
|
111
121
|
--#{$tabs}__scroll-button--before--BorderColor: var(--#{$tabs}--before--BorderColor);
|
|
112
|
-
--#{$tabs}__scroll-button--before--border-width--base: var(
|
|
122
|
+
--#{$tabs}__scroll-button--before--border-width--base: var(--pf-t--global--border--width--regular);
|
|
113
123
|
--#{$tabs}__scroll-button--before--BorderRightWidth: 0;
|
|
114
124
|
--#{$tabs}__scroll-button--before--BorderBottomWidth: var(--#{$tabs}__scroll-button--before--border-width--base);
|
|
115
125
|
--#{$tabs}__scroll-button--before--BorderLeftWidth: 0;
|
|
@@ -123,56 +133,44 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
123
133
|
|
|
124
134
|
// Expandable
|
|
125
135
|
--#{$tabs}__toggle--Display: flex;
|
|
126
|
-
--#{$tabs}__toggle--MarginBottom: 0;
|
|
127
|
-
--#{$tabs}--m-expanded__toggle--MarginBottom: var(--#{$pf-global}--spacer--md);
|
|
128
136
|
--#{$tabs}__toggle-icon--Color: currentcolor;
|
|
129
|
-
--#{$tabs}__toggle-icon--Transition:
|
|
137
|
+
--#{$tabs}__toggle-icon--Transition: all 250ms cubic-bezier(.42, 0, .58, 1);
|
|
130
138
|
--#{$tabs}__toggle-icon--Rotate: 0;
|
|
131
139
|
--#{$tabs}__toggle-text--MarginLeft: 0;
|
|
132
|
-
--#{$tabs}__toggle-button__toggle-text--MarginLeft: var(
|
|
133
|
-
--#{$tabs}__toggle-button__toggle-text--Color: var(
|
|
134
|
-
--#{$tabs}
|
|
135
|
-
--#{$tabs}__toggle-button--MarginBottom: calc(-1 * var(--#{$pf-global}--spacer--form-element));
|
|
136
|
-
--#{$tabs}__toggle-button--MarginLeft: calc(-1 * var(--#{$pf-global}--spacer--md));
|
|
137
|
-
--#{$tabs}--m-expanded__toggle-icon--Color: var(--#{$pf-global}--Color--100);
|
|
140
|
+
--#{$tabs}__toggle-button__toggle-text--MarginLeft: var(--pf-t--global--spacer--md);
|
|
141
|
+
--#{$tabs}__toggle-button__toggle-text--Color: var(--pf-t--global--text--color--regular);
|
|
142
|
+
--#{$tabs}--m-expanded__toggle-icon--Color: var(--pf-t--global--icon--color--regular);
|
|
138
143
|
--#{$tabs}--m-expanded__toggle-icon--Rotate: 90deg;
|
|
144
|
+
--#{$tabs}--m-expandable--RowGap: var(--pf-t--global--spacer--sm);
|
|
145
|
+
--#{$tabs}--m-expandable--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
146
|
+
--#{$tabs}--m-expandable--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
147
|
+
--#{$tabs}--m-expandable--PaddingInlineStart: var(--pf-t--global--spacer--md);
|
|
148
|
+
--#{$tabs}--m-expandable--PaddingInlineEnd: var(--pf-t--global--spacer--md);
|
|
139
149
|
|
|
140
150
|
// Item action
|
|
141
|
-
--#{$tabs}__item-action--c-button--FontSize: var(
|
|
142
|
-
--#{$tabs}--m-
|
|
143
|
-
--#{$tabs}__item-action--c-button--PaddingTop: var(--#{$pf-global}--spacer--sm);
|
|
144
|
-
--#{$tabs}__item-action--c-button--PaddingRight: var(--#{$pf-global}--spacer--sm);
|
|
145
|
-
--#{$tabs}__item-action--c-button--PaddingBottom: var(--#{$pf-global}--spacer--sm);
|
|
146
|
-
--#{$tabs}__item-action--c-button--PaddingLeft: var(--#{$pf-global}--spacer--sm);
|
|
147
|
-
--#{$tabs}__item-action--last-child--c-button--PaddingRight: var(--#{$pf-global}--spacer--md);
|
|
148
|
-
--#{$tabs}__item-action--c-button--OutlineOffset: #{pf-size-prem(-3px)};
|
|
151
|
+
--#{$tabs}__item-action--c-button--FontSize: var(--pf-t--global--font--size--sm);
|
|
152
|
+
--#{$tabs}--m-subtab__item-action--c-button--FontSize: var(--pf-t--global--font--size--xs);
|
|
149
153
|
--#{$tabs}__item-action-icon--MarginTop: #{pf-size-prem(2px)};
|
|
150
154
|
|
|
151
155
|
// Add button
|
|
152
156
|
--#{$tabs}__add--before--BorderColor: var(--#{$tabs}__link--before--border-color--base);
|
|
153
157
|
--#{$tabs}__add--before--BorderLeftWidth: var(--#{$tabs}__link--before--border-width--base);
|
|
154
|
-
--#{$tabs}__add--c-button--FontSize: var(
|
|
155
|
-
--#{$tabs}--m-
|
|
156
|
-
--#{$tabs}__add--
|
|
157
|
-
--#{$tabs}__add--
|
|
158
|
-
--#{$tabs}__add--
|
|
158
|
+
--#{$tabs}__add--c-button--FontSize: var(--pf-t--global--font--size--sm);
|
|
159
|
+
--#{$tabs}--m-subtab__add--c-button--FontSize: var(--pf-t--global--font--size--xs);
|
|
160
|
+
--#{$tabs}__add--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
161
|
+
--#{$tabs}__add--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
162
|
+
--#{$tabs}__add--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
163
|
+
--#{$tabs}__add--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
|
|
159
164
|
|
|
160
165
|
// Overflow menu toggle icon
|
|
161
|
-
--#{$tabs}__link-toggle-icon--Color: var(
|
|
166
|
+
--#{$tabs}__link-toggle-icon--Color: var(--pf-t--global--icon--color--regular);
|
|
162
167
|
--#{$tabs}__link-toggle-icon--Transition: .2s ease-in 0s;
|
|
163
168
|
--#{$tabs}__link-toggle-icon--Rotate: 0;
|
|
164
|
-
--#{$tabs}__link-toggle-icon--FontSize: var(
|
|
165
|
-
--#{$tabs}__link--m-expanded__toggle-icon--Color: var(--#{$pf-global}--Color--100);
|
|
169
|
+
--#{$tabs}__link-toggle-icon--FontSize: var(--pf-t--global--font--size--sm);
|
|
166
170
|
--#{$tabs}__link--m-expanded__toggle-icon--Rotate: 90deg;
|
|
167
|
-
|
|
168
|
-
--#{$tabs}__link--active__toggle-icon--Color: var(--#{$pf-global}--Color--100);
|
|
169
|
-
--#{$tabs}__link--focus__toggle-icon--Color: var(--#{$pf-global}--Color--100);
|
|
170
|
-
|
|
171
|
-
@media screen and (min-width: $pf-v5-global--breakpoint--xl) {
|
|
172
|
-
--#{$tabs}__scroll-button--Width: var(--#{$tabs}__scroll-button--xl--Width);
|
|
173
|
-
--#{$tabs}--m-page-insets--inset: var(--#{$tabs}--m-page-insets--xl--inset);
|
|
174
|
-
}
|
|
171
|
+
}
|
|
175
172
|
|
|
173
|
+
.#{$tabs} {
|
|
176
174
|
position: relative;
|
|
177
175
|
display: flex;
|
|
178
176
|
width: var(--#{$tabs}--Width);
|
|
@@ -197,7 +195,7 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
197
195
|
.#{$tabs}__list {
|
|
198
196
|
flex-basis: 100%;
|
|
199
197
|
}
|
|
200
|
-
|
|
198
|
+
|
|
201
199
|
.#{$tabs}__item {
|
|
202
200
|
flex-grow: 1;
|
|
203
201
|
|
|
@@ -249,15 +247,17 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
249
247
|
|
|
250
248
|
// Box
|
|
251
249
|
&.pf-m-box {
|
|
250
|
+
--#{$tabs}__item--BackgroundColor: var(--#{$tabs}--m-box__item--BackgroundColor);
|
|
251
|
+
--#{$tabs}__item--m-current--BackgroundColor: var(--#{$tabs}--m-box__item--m-current--BackgroundColor);
|
|
252
252
|
--#{$tabs}__link--BackgroundColor: var(--#{$tabs}--m-box__link--BackgroundColor);
|
|
253
|
+
--#{$tabs}__link--disabled--Color: var(--#{$tabs}--m-box__link--disabled--Color);
|
|
253
254
|
--#{$tabs}__link--disabled--BackgroundColor: var(--#{$tabs}--m-box__link--disabled--BackgroundColor);
|
|
255
|
+
--#{$tabs}__link--hover--BackgroundColor: var(--#{$tabs}--m-box__link--hover--BackgroundColor);
|
|
256
|
+
--#{$tabs}__item--m-current__link--BackgroundColor: var(--#{$tabs}--m-box__item--m-current__link--BackgroundColor);
|
|
254
257
|
--#{$tabs}__link--before--BorderBottomWidth: var(--#{$tabs}__link--before--border-width--base);
|
|
255
|
-
--#{$tabs}__link--before--BorderRightWidth: var(--#{$tabs}__link--before--border-width--base);
|
|
256
|
-
--#{$tabs}__link--disabled--before--BorderRightWidth: var(--#{$tabs}__link--before--border-width--base);
|
|
257
258
|
--#{$tabs}__link--after--Top: 0;
|
|
258
259
|
--#{$tabs}__link--after--Bottom: auto;
|
|
259
260
|
|
|
260
|
-
// Set hover on top border
|
|
261
261
|
.#{$tabs}__link {
|
|
262
262
|
--#{$tabs}__link--after--BorderTopWidth: var(--#{$tabs}__link--after--BorderWidth);
|
|
263
263
|
}
|
|
@@ -301,14 +301,14 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
301
301
|
}
|
|
302
302
|
// stylelint-enable
|
|
303
303
|
|
|
304
|
-
&.pf-m-
|
|
305
|
-
--#{$tabs}
|
|
306
|
-
--#{$tabs}__item--m-
|
|
307
|
-
--#{$tabs}__link--
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
--#{$
|
|
304
|
+
&.pf-m-secondary {
|
|
305
|
+
--#{$tabs}__item--BackgroundColor: var(--#{$tabs}--m-box--m-secondary__item--BackgroundColor);
|
|
306
|
+
--#{$tabs}__item--m-current--BackgroundColor: var(--#{$tabs}--m-box--m-secondary__item--m-current--BackgroundColor);
|
|
307
|
+
--#{$tabs}__link--BackgroundColor: var(--#{$tabs}--m-box--m-secondary__link--BackgroundColor);
|
|
308
|
+
--#{$tabs}__link--disabled--Color: var(--#{$tabs}--m-box--m-secondary__link--disabled--Color);
|
|
309
|
+
--#{$tabs}__link--disabled--BackgroundColor: var(--#{$tabs}--m-box--m-secondary__link--disabled--BackgroundColor);
|
|
310
|
+
--#{$tabs}__link--hover--BackgroundColor: var(--#{$tabs}--m-box--m-secondary__link--hover--BackgroundColor);
|
|
311
|
+
--#{$tabs}__item--m-current__link--BackgroundColor: var(--#{$tabs}--m-box--m-secondary__item--m-current__link--BackgroundColor);
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
|
|
@@ -317,8 +317,10 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
317
317
|
--#{$tabs}--Width: var(--#{$tabs}--m-vertical--Width);
|
|
318
318
|
--#{$tabs}--inset: var(--#{$tabs}--m-vertical--inset);
|
|
319
319
|
--#{$tabs}--before--BorderBottomWidth: 0;
|
|
320
|
-
--#{$tabs}
|
|
321
|
-
--#{$tabs}
|
|
320
|
+
--#{$tabs}__item--PaddingInlineStart: var(--#{$tabs}--m-vertical__item--PaddingInlineStart);
|
|
321
|
+
--#{$tabs}__item--PaddingInlineEnd: var(--#{$tabs}--m-vertical__item--PaddingInlineEnd);
|
|
322
|
+
--#{$tabs}__link--PaddingLeft: var(--#{$tabs}--m-vertical__link--PaddingLeft);
|
|
323
|
+
--#{$tabs}__link--PaddingRight: var(--#{$tabs}--m-vertical__link--PaddingRight);
|
|
322
324
|
--#{$tabs}__link--before--Left: 0;
|
|
323
325
|
--#{$tabs}__link--disabled--before--BorderBottomWidth: 0;
|
|
324
326
|
--#{$tabs}__link--disabled--before--BorderLeftWidth: var(--#{$tabs}--before--border-width--base);
|
|
@@ -359,7 +361,6 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
359
361
|
margin-block-end: var(--#{$tabs}--inset);
|
|
360
362
|
}
|
|
361
363
|
|
|
362
|
-
// Set hover on left border
|
|
363
364
|
.#{$tabs}__link {
|
|
364
365
|
--#{$tabs}__link--after--BorderTopWidth: 0;
|
|
365
366
|
--#{$tabs}__link--after--BorderLeftWidth: var(--#{$tabs}__link--after--BorderWidth);
|
|
@@ -391,9 +392,16 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
391
392
|
}
|
|
392
393
|
}
|
|
393
394
|
|
|
395
|
+
&.pf-m-expandable {
|
|
396
|
+
row-gap: var(--#{$tabs}--m-expandable--RowGap);
|
|
397
|
+
padding-block-start: var(--#{$tabs}--m-expandable--PaddingBlockStart);
|
|
398
|
+
padding-block-end: var(--#{$tabs}--m-expandable--PaddingBlockEnd);
|
|
399
|
+
padding-inline-start: var(--#{$tabs}--m-expandable--PaddingInlineStart);
|
|
400
|
+
padding-inline-end: var(--#{$tabs}--m-expandable--PaddingInlineEnd);
|
|
401
|
+
}
|
|
402
|
+
|
|
394
403
|
&.pf-m-expanded {
|
|
395
404
|
--#{$tabs}__list--Display: flex;
|
|
396
|
-
--#{$tabs}__toggle--MarginBottom: var(--#{$tabs}--m-expanded__toggle--MarginBottom);
|
|
397
405
|
--#{$tabs}__toggle-icon--Color: var(--#{$tabs}--m-expanded__toggle-icon--Color);
|
|
398
406
|
--#{$tabs}__toggle-icon--Rotate: var(--#{$tabs}--m-expanded__toggle-icon--Rotate);
|
|
399
407
|
}
|
|
@@ -404,6 +412,7 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
404
412
|
--#{$tabs}--inset: var(--#{$tabs}--m-vertical--m-box--inset);
|
|
405
413
|
--#{$tabs}--m-vertical__list--before--BorderLeftWidth: 0;
|
|
406
414
|
--#{$tabs}--m-vertical__list--before--BorderRightWidth: var(--#{$tabs}--before--border-width--base);
|
|
415
|
+
--#{$tabs}__link--before--BorderRightWidth: var(--#{$tabs}__link--before--border-width--base);
|
|
407
416
|
--#{$tabs}__link--disabled--before--BorderRightWidth: var(--#{$tabs}--before--border-width--base);
|
|
408
417
|
--#{$tabs}__link--disabled--before--BorderBottomWidth: var(--#{$tabs}--before--border-width--base);
|
|
409
418
|
--#{$tabs}__link--disabled--before--BorderLeftWidth: 0;
|
|
@@ -414,21 +423,17 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
414
423
|
}
|
|
415
424
|
|
|
416
425
|
// stylelint-disable selector-max-class
|
|
417
|
-
// Remove border from last-child
|
|
418
426
|
.#{$tabs}__item:last-child {
|
|
419
|
-
--#{$tabs}__link--before--BorderBottomWidth: 0;
|
|
420
427
|
--#{$tabs}__link--before--BorderRightWidth: var(--#{$tabs}__link--before--border-width--base);
|
|
421
428
|
}
|
|
429
|
+
.#{$tabs}__item:first-child {
|
|
430
|
+
--#{$tabs}__link--before--BorderTopWidth: var(--#{$tabs}__link--before--border-width--base);
|
|
431
|
+
}
|
|
422
432
|
|
|
423
433
|
// Add border right color and weight
|
|
424
434
|
.#{$tabs}__item.pf-m-current {
|
|
425
435
|
--#{$tabs}__link--before--BorderRightColor: var(--#{$tabs}__item--m-current__link--BackgroundColor);
|
|
426
436
|
--#{$tabs}__link--before--BorderBottomColor: var(--#{$tabs}__link--before--border-color--base);
|
|
427
|
-
--#{$tabs}__link--before--BorderBottomWidth: var(--#{$tabs}__link--before--border-width--base);
|
|
428
|
-
|
|
429
|
-
&:first-child {
|
|
430
|
-
--#{$tabs}__link--before--BorderTopWidth: var(--#{$tabs}__link--before--border-width--base);
|
|
431
|
-
}
|
|
432
437
|
}
|
|
433
438
|
|
|
434
439
|
// Add border right color and weight
|
|
@@ -444,15 +449,15 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
444
449
|
// Undo offset to .pf-m-current adjacent item
|
|
445
450
|
.#{$tabs}__item:first-child .#{$tabs}__link::after,
|
|
446
451
|
.#{$tabs}__item.pf-m-current + .#{$tabs}__item .#{$tabs}__link::after {
|
|
447
|
-
|
|
452
|
+
inset-block-start: 0;
|
|
448
453
|
}
|
|
449
454
|
// stylelint-enable
|
|
450
455
|
}
|
|
451
456
|
|
|
452
|
-
&.pf-m-
|
|
453
|
-
--#{$tabs}__link--FontSize: var(--#{$tabs}--m-
|
|
454
|
-
--#{$tabs}__item-action--c-button--FontSize: var(--#{$tabs}--m-
|
|
455
|
-
--#{$tabs}__add--c-button--FontSize: var(--#{$tabs}--m-
|
|
457
|
+
&.pf-m-subtab {
|
|
458
|
+
--#{$tabs}__link--FontSize: var(--#{$tabs}--m-subtab__link--FontSize);
|
|
459
|
+
--#{$tabs}__item-action--c-button--FontSize: var(--#{$tabs}--m-subtab__item-action--c-button--FontSize);
|
|
460
|
+
--#{$tabs}__add--c-button--FontSize: var(--#{$tabs}--m-subtab__add--c-button--FontSize);
|
|
456
461
|
}
|
|
457
462
|
|
|
458
463
|
&.pf-m-page-insets {
|
|
@@ -471,17 +476,12 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
471
476
|
.#{$tabs}__toggle {
|
|
472
477
|
display: var(--#{$tabs}__toggle--Display);
|
|
473
478
|
align-items: center;
|
|
474
|
-
margin-block-end: var(--#{$tabs}__toggle--MarginBottom);
|
|
475
479
|
}
|
|
476
480
|
|
|
477
481
|
.#{$tabs}__toggle-button {
|
|
478
482
|
--#{$tabs}__toggle-text--MarginLeft: var(--#{$tabs}__toggle-button__toggle-text--MarginLeft);
|
|
479
483
|
--#{$tabs}__toggle-text--Color: var(--#{$tabs}__toggle-button__toggle-text--Color);
|
|
480
484
|
|
|
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);
|
|
484
|
-
|
|
485
485
|
.#{$button} {
|
|
486
486
|
display: flex;
|
|
487
487
|
text-align: start;
|
|
@@ -519,21 +519,27 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
519
519
|
|
|
520
520
|
// Tabs item
|
|
521
521
|
.#{$tabs}__item {
|
|
522
|
+
position: relative;
|
|
522
523
|
display: flex;
|
|
523
524
|
flex: none;
|
|
525
|
+
column-gap: var(--#{$tabs}__item--ColumnGap);
|
|
524
526
|
scroll-snap-align: var(--#{$tabs}__item--ScrollSnapAlign);
|
|
527
|
+
padding-block-start: var(--#{$tabs}__item--PaddingBlockStart);
|
|
528
|
+
padding-block-end: var(--#{$tabs}__item--PaddingBlockEnd);
|
|
529
|
+
padding-inline-start: var(--#{$tabs}__item--PaddingInlineStart);
|
|
530
|
+
padding-inline-end: var(--#{$tabs}__item--PaddingInlineEnd);
|
|
531
|
+
background-color: var(--#{$tabs}__item--BackgroundColor);
|
|
525
532
|
|
|
526
533
|
// Current
|
|
527
534
|
&.pf-m-current {
|
|
528
535
|
--#{$tabs}__link--Color: var(--#{$tabs}__item--m-current__link--Color);
|
|
529
536
|
--#{$tabs}__link--after--BorderColor: var(--#{$tabs}__item--m-current__link--after--BorderColor);
|
|
530
537
|
--#{$tabs}__link--after--BorderWidth: var(--#{$tabs}__item--m-current__link--after--BorderWidth);
|
|
538
|
+
--#{$tabs}__item--BackgroundColor: var(--#{$tabs}__item--m-current--BackgroundColor);
|
|
531
539
|
}
|
|
532
540
|
|
|
533
541
|
// Action
|
|
534
542
|
&.pf-m-action {
|
|
535
|
-
--#{$tabs}__link--PaddingRight: var(--#{$tabs}__item--m-action__link--PaddingRight);
|
|
536
|
-
|
|
537
543
|
position: relative;
|
|
538
544
|
|
|
539
545
|
&::before {
|
|
@@ -570,7 +576,7 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
570
576
|
.#{$tabs}__item.pf-m-action::after,
|
|
571
577
|
.#{$tabs}__scroll-button::before,
|
|
572
578
|
.#{$tabs}__add::before {
|
|
573
|
-
|
|
579
|
+
inset-block-start: 0;
|
|
574
580
|
}
|
|
575
581
|
|
|
576
582
|
.#{$tabs}__link,
|
|
@@ -585,13 +591,12 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
585
591
|
@at-root .#{$tabs}__item.pf-m-action,
|
|
586
592
|
& {
|
|
587
593
|
--#{$tabs}__link--after--BorderBottomWidth: var(--#{$tabs}__link--after--BorderWidth); // Set default border target
|
|
588
|
-
|
|
589
|
-
background-color: var(--#{$tabs}__link--BackgroundColor);
|
|
590
594
|
}
|
|
591
|
-
|
|
592
|
-
position: relative;
|
|
595
|
+
|
|
593
596
|
display: flex;
|
|
594
597
|
flex: 1;
|
|
598
|
+
column-gap: var(--#{$tabs}__link--ColumnGap);
|
|
599
|
+
align-items: center;
|
|
595
600
|
padding-block-start: var(--#{$tabs}__link--PaddingTop);
|
|
596
601
|
padding-block-end: var(--#{$tabs}__link--PaddingBottom);
|
|
597
602
|
padding-inline-start: var(--#{$tabs}__link--PaddingLeft);
|
|
@@ -599,8 +604,9 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
599
604
|
font-size: var(--#{$tabs}__link--FontSize);
|
|
600
605
|
color: var(--#{$tabs}__link--Color);
|
|
601
606
|
text-decoration: none;
|
|
602
|
-
|
|
603
|
-
|
|
607
|
+
background-color: var(--#{$tabs}__link--BackgroundColor);
|
|
608
|
+
border-radius: var(--#{$tabs}__link--BorderRadius);
|
|
609
|
+
|
|
604
610
|
@at-root .#{$tabs}__item.pf-m-action,
|
|
605
611
|
& {
|
|
606
612
|
&::before {
|
|
@@ -631,38 +637,9 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
631
637
|
}
|
|
632
638
|
}
|
|
633
639
|
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
&:hover {
|
|
638
|
-
--#{$tabs}__link--after--BorderWidth: var(--#{$tabs}__link--hover--after--BorderWidth);
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
@at-root .#{$tabs}__item.pf-m-action:focus-within,
|
|
643
|
-
&:focus {
|
|
644
|
-
--#{$tabs}__link--after--BorderWidth: var(--#{$tabs}__link--focus--after--BorderWidth);
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
@at-root .#{$tabs}__item.pf-m-action,
|
|
648
|
-
& {
|
|
649
|
-
&:active {
|
|
650
|
-
--#{$tabs}__link--after--BorderWidth: var(--#{$tabs}__link--active--after--BorderWidth);
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
&:hover {
|
|
655
|
-
--#{$tabs}__link-toggle-icon--Color: var(--#{$tabs}__link--hover__toggle-icon--Color);
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
&:focus {
|
|
659
|
-
--#{$tabs}__link-toggle-icon--Color: var(--#{$tabs}__link--focus__toggle-icon--Color);
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
&:active,
|
|
663
|
-
&.pf-m-active {
|
|
664
|
-
--#{$tabs}__link-toggle-icon--Color: var(--#{$tabs}__link--active__toggle-icon--Color);
|
|
665
|
-
}
|
|
640
|
+
&:where(:hover, :focus) {
|
|
641
|
+
--#{$tabs}__link--BackgroundColor: var(--#{$tabs}__link--hover--BackgroundColor);
|
|
642
|
+
}
|
|
666
643
|
|
|
667
644
|
&:disabled,
|
|
668
645
|
&.pf-m-disabled {
|
|
@@ -674,29 +651,27 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
674
651
|
&.pf-m-disabled,
|
|
675
652
|
&.pf-m-aria-disabled {
|
|
676
653
|
--#{$tabs}__link--Color: var(--#{$tabs}__link--disabled--Color);
|
|
677
|
-
--#{$tabs}__link--BackgroundColor: var(--#{$tabs}__link--disabled--BackgroundColor);
|
|
678
654
|
--#{$tabs}__link--before--BorderRightWidth: var(--#{$tabs}__link--disabled--before--BorderRightWidth);
|
|
679
655
|
--#{$tabs}__link--before--BorderBottomWidth: var(--#{$tabs}__link--disabled--before--BorderBottomWidth);
|
|
680
656
|
--#{$tabs}__link--before--BorderLeftWidth: var(--#{$tabs}__link--disabled--before--BorderLeftWidth);
|
|
681
657
|
--#{$tabs}__link--after--BorderWidth: 0;
|
|
682
658
|
}
|
|
683
659
|
|
|
660
|
+
&:disabled,
|
|
661
|
+
&.pf-m-disabled,
|
|
684
662
|
&.pf-m-aria-disabled {
|
|
685
|
-
|
|
663
|
+
--#{$tabs}__link--BackgroundColor: var(--#{$tabs}__link--disabled--BackgroundColor);
|
|
686
664
|
}
|
|
687
665
|
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
margin-inline-end: var(--#{$tabs}__link--child--MarginRight);
|
|
666
|
+
@at-root .#{$tabs}__item.pf-m-action.pf-m-disabled {
|
|
667
|
+
--#{$tabs}__link--BackgroundColor: transparent;
|
|
668
|
+
}
|
|
692
669
|
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
}
|
|
670
|
+
&.pf-m-aria-disabled {
|
|
671
|
+
cursor: default;
|
|
696
672
|
}
|
|
697
673
|
|
|
698
674
|
&.pf-m-expanded {
|
|
699
|
-
--#{$tabs}__link-toggle-icon--Color: var(--#{$tabs}__link--m-expanded__toggle-icon--Color);
|
|
700
675
|
--#{$tabs}__link-toggle-icon--Rotate: var(--#{$tabs}__link--m-expanded__toggle-icon--Rotate);
|
|
701
676
|
}
|
|
702
677
|
}
|
|
@@ -716,16 +691,6 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
716
691
|
|
|
717
692
|
.#{$button} {
|
|
718
693
|
--#{$button}--FontSize: var(--#{$tabs}__item-action--c-button--FontSize);
|
|
719
|
-
--#{$button}--PaddingTop: var(--#{$tabs}__item-action--c-button--PaddingTop);
|
|
720
|
-
--#{$button}--PaddingRight: var(--#{$tabs}__item-action--c-button--PaddingRight);
|
|
721
|
-
--#{$button}--PaddingBottom: var(--#{$tabs}__item-action--c-button--PaddingBottom);
|
|
722
|
-
--#{$button}--PaddingLeft: var(--#{$tabs}__item-action--c-button--PaddingLeft);
|
|
723
|
-
|
|
724
|
-
outline-offset: var(--#{$tabs}__item-action--c-button--OutlineOffset);
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
&:last-child {
|
|
728
|
-
--#{$tabs}__item-action--c-button--PaddingRight: var(--#{$tabs}__item-action--last-child--c-button--PaddingRight);
|
|
729
694
|
}
|
|
730
695
|
}
|
|
731
696
|
|
|
@@ -736,26 +701,14 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
736
701
|
|
|
737
702
|
// Scroll buttons
|
|
738
703
|
.#{$tabs}__scroll-button {
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
background-color: var(--#{$tabs}__scroll-button--BackgroundColor);
|
|
744
|
-
outline-offset: var(--#{$tabs}__scroll-button--OutlineOffset);
|
|
704
|
+
padding-block-start: var(--#{$tabs}__scroll-button--PaddingBlockStart);
|
|
705
|
+
padding-block-end: var(--#{$tabs}__scroll-button--PaddingBlockEnd);
|
|
706
|
+
padding-inline-start: var(--#{$tabs}__scroll-button--PaddingInlineStart);
|
|
707
|
+
padding-inline-end: var(--#{$tabs}__scroll-button--PaddingInlineEnd);
|
|
745
708
|
opacity: 0;
|
|
746
709
|
transition: margin var(--#{$tabs}__scroll-button--TransitionDuration--margin), transform var(--#{$tabs}__scroll-button--TransitionDuration--transform), opacity var(--#{$tabs}__scroll-button--TransitionDuration--opacity);
|
|
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
|
-
|
|
752
|
-
&:hover,
|
|
753
|
-
&:active,
|
|
754
|
-
&:focus {
|
|
755
|
-
--#{$tabs}__scroll-button--Color: var(--#{$tabs}__scroll-button--hover--Color);
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
&::before {
|
|
710
|
+
|
|
711
|
+
&::before {
|
|
759
712
|
border-color: var(--#{$tabs}__scroll-button--before--BorderColor);
|
|
760
713
|
border-block-start-width: 0;
|
|
761
714
|
border-block-end-width: var(--#{$tabs}__scroll-button--before--BorderBottomWidth);
|
|
@@ -776,17 +729,15 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
776
729
|
margin-inline-start: calc(var(--#{$tabs}__scroll-button--Width) * -1);
|
|
777
730
|
transform: translateX(100%);
|
|
778
731
|
}
|
|
779
|
-
|
|
780
|
-
&:disabled {
|
|
781
|
-
--#{$tabs}__scroll-button--Color: var(--#{$tabs}__scroll-button--disabled--Color);
|
|
782
|
-
|
|
783
|
-
pointer-events: none;
|
|
784
|
-
}
|
|
785
732
|
}
|
|
786
733
|
|
|
787
734
|
.#{$tabs}__add {
|
|
788
735
|
position: relative;
|
|
789
736
|
display: flex;
|
|
737
|
+
padding-block-start: var(--#{$tabs}__add--PaddingBlockStart);
|
|
738
|
+
padding-block-end: var(--#{$tabs}__add--PaddingBlockEnd);
|
|
739
|
+
padding-inline-start: var(--#{$tabs}__add--PaddingInlineStart);
|
|
740
|
+
padding-inline-end: var(--#{$tabs}__add--PaddingInlineEnd);
|
|
790
741
|
|
|
791
742
|
&::before {
|
|
792
743
|
border-inline-start: var(--#{$tabs}__add--before--BorderLeftWidth) solid var(--#{$tabs}__add--before--BorderColor);
|
|
@@ -794,10 +745,6 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
794
745
|
|
|
795
746
|
.#{$button} {
|
|
796
747
|
--#{$button}--FontSize: var(--#{$tabs}__add--c-button--FontSize);
|
|
797
|
-
--#{$button}--PaddingTop: var(--#{$tabs}__add--c-button--PaddingTop);
|
|
798
|
-
--#{$button}--PaddingBottom: var(--#{$tabs}__add--c-button--PaddingBottom);
|
|
799
|
-
|
|
800
|
-
outline-offset: var(--#{$tabs}__add--c-button--OutlineOffset);
|
|
801
748
|
}
|
|
802
749
|
}
|
|
803
750
|
|
|
@@ -818,10 +765,3 @@ $pf-v5-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
818
765
|
}
|
|
819
766
|
}
|
|
820
767
|
// stylelint-enable
|
|
821
|
-
|
|
822
|
-
// stylelint-disable no-invalid-position-at-import-rule
|
|
823
|
-
@import "themes/dark/tabs";
|
|
824
|
-
|
|
825
|
-
@include pf-v5-theme-dark {
|
|
826
|
-
@include pf-v5-theme-dark-tabs;
|
|
827
|
-
}
|