@patternfly/patternfly 6.0.0-alpha.8 → 6.0.0-alpha.81
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 +884 -871
- package/base/tokens/_tokens-charts.scss +159 -0
- package/base/tokens/_tokens-dark.scss +311 -287
- package/base/tokens/_tokens-default.scss +425 -329
- package/base/tokens/_tokens-font.scss +29 -36
- 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 +19 -16
- package/components/Breadcrumb/breadcrumb.scss +18 -16
- package/components/Button/button.css +419 -353
- package/components/Button/button.scss +476 -476
- 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 +56 -48
- package/components/DualListSelector/dual-list-selector.scss +57 -50
- 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 +68 -114
- package/components/Form/form.scss +65 -126
- 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 +380 -355
- package/components/Label/label.scss +434 -348
- package/components/List/list.css +16 -16
- package/components/List/list.scss +17 -17
- package/components/Login/login.css +70 -97
- package/components/Login/login.scss +56 -64
- package/components/Masthead/masthead.css +261 -502
- package/components/Masthead/masthead.scss +123 -286
- package/components/Menu/menu.css +3 -0
- package/components/Menu/menu.scss +7 -3
- package/components/MenuToggle/menu-toggle.css +8 -8
- package/components/MenuToggle/menu-toggle.scss +8 -10
- 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 +56 -81
- package/components/NotificationBadge/notification-badge.scss +60 -97
- 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 +35 -52
- package/components/SimpleList/simple-list.scss +41 -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 +29 -45
- package/components/Table/table-grid.scss +40 -53
- package/components/Table/table-scrollable.css +6 -6
- package/components/Table/table-scrollable.scss +8 -8
- package/components/Table/table-tree-view.css +76 -74
- package/components/Table/table-tree-view.scss +44 -39
- package/components/Table/table.css +67 -93
- package/components/Table/table.scss +83 -105
- package/components/Tabs/tabs.css +143 -175
- package/components/Tabs/tabs.scss +159 -217
- 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/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 +1419 -93
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +48 -224
- 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/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 +180 -180
- package/docs/components/Login/examples/Login.md +10 -5
- package/docs/components/Masthead/examples/masthead.md +443 -65
- package/docs/components/Menu/examples/Menu.md +507 -473
- package/docs/components/MenuToggle/examples/MenuToggle.md +106 -114
- 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 +209 -356
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +5 -7
- 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/TextInputGroup/examples/TextInputGroup.md +9 -9
- 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 -3355
- package/docs/components/TreeView/examples/TreeView.md +7 -57
- package/docs/components/Truncate/examples/Truncate.css +2 -2
- package/docs/demos/AboutModal/examples/AboutModal.md +104 -31
- package/docs/demos/Alert/examples/Alert.md +330 -87
- package/docs/demos/BackToTop/examples/BackToTop.md +102 -29
- package/docs/demos/Banner/examples/Banner.md +211 -60
- package/docs/demos/Card/examples/Card.md +2 -2
- package/docs/demos/CardView/examples/CardView.md +241 -187
- package/docs/demos/ContextSelector/examples/ContextSelector.md +377 -94
- package/docs/demos/Dashboard/examples/Dashboard.md +102 -29
- package/docs/demos/DataList/examples/DataList.md +999 -938
- package/docs/demos/DescriptionList/examples/DescriptionList.md +306 -87
- package/docs/demos/Drawer/examples/Drawer.md +640 -251
- package/docs/demos/Form/examples/BasicForms.md +138 -84
- package/docs/demos/JumpLinks/examples/JumpLinks.md +917 -385
- package/docs/demos/Masthead/examples/Masthead.md +786 -342
- package/docs/demos/Modal/examples/Modal.md +645 -198
- package/docs/demos/Nav/examples/Nav.md +691 -902
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +515 -145
- package/docs/demos/Page/examples/Page.md +942 -273
- package/docs/demos/Page/examples/Penta.md +66 -26
- 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 +1183 -832
- package/docs/demos/Skeleton/examples/Skeleton.md +102 -29
- package/docs/demos/Table/examples/Table.md +3811 -3456
- package/docs/demos/Tabs/examples/Tabs.md +636 -194
- package/docs/demos/Toolbar/examples/Toolbar.css +10 -0
- package/docs/demos/Toolbar/examples/Toolbar.md +1316 -1478
- package/docs/demos/Wizard/examples/Wizard.md +918 -261
- package/docs/layouts/Flex/examples/Flex.md +11 -11
- package/package.json +32 -32
- package/patternfly-base-no-globals-theme-dark-unversioned.css +897 -880
- package/patternfly-base-no-globals.css +897 -880
- package/patternfly-base-theme-dark-unversioned.css +890 -872
- package/patternfly-base.css +890 -872
- package/patternfly-no-globals.css +8107 -8027
- package/patternfly-theme-dark-unversioned.css +8111 -8030
- package/patternfly.css +8111 -8030
- 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/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/Tabs/themes/dark/tabs.scss +0 -10
- 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/docs/components/Avatar/examples/Avatar.css +0 -3
- package/docs/components/NotificationBadge/examples/NotificationBadge.css +0 -3
|
@@ -1,54 +1,76 @@
|
|
|
1
1
|
// @debug $code-editor; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
|
|
2
2
|
|
|
3
|
-
.#{$code-editor} {
|
|
3
|
+
:where(:root), :where(.#{$code-editor}) {
|
|
4
4
|
// controls
|
|
5
|
-
--#{$code-editor}__controls--
|
|
6
|
-
--#{$code-editor}__controls--
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
--#{$code-editor}__controls--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
6
|
+
--#{$code-editor}__controls--Gap: var(--pf-t--global--spacer--xs);
|
|
7
|
+
|
|
8
|
+
// header
|
|
9
|
+
--#{$code-editor}__header--before--BorderBottomWidth: var(--pf-t--global--border--width--box--default);
|
|
10
|
+
--#{$code-editor}__header--before--BorderBottomColor: var(--pf-t--global--border--color--default);
|
|
11
|
+
|
|
12
|
+
// header content
|
|
13
|
+
--#{$code-editor}__header-content--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
14
|
+
--#{$code-editor}__header-content--m-plain--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
15
|
+
--#{$code-editor}__header-content--PaddingBlockStart: var(--pf-t--global--spacer--xs);
|
|
16
|
+
--#{$code-editor}__header-content--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
17
|
+
--#{$code-editor}__header-content--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
18
|
+
--#{$code-editor}__header-content--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
|
|
19
|
+
--#{$code-editor}__header-content--BorderStartStartRadius: var(--pf-t--global--border--radius--medium);
|
|
20
|
+
--#{$code-editor}__header-content--BorderStartEndRadius: var(--pf-t--global--border--radius--medium);
|
|
21
|
+
|
|
22
|
+
// upload
|
|
23
|
+
--#{$code-editor}__upload--PaddingInlineStart: var(--pf-t--global--spacer--md);
|
|
24
|
+
--#{$code-editor}__upload--PaddingInlineEnd: var(--pf-t--global--spacer--md);
|
|
25
|
+
--#{$code-editor}__upload--PaddingBlockStart: var(--pf-t--global--spacer--md);
|
|
26
|
+
--#{$code-editor}__upload--PaddingBlockEnd: var(--pf-t--global--spacer--md);
|
|
27
|
+
--#{$code-editor}__upload--BorderRadius: var(--pf-t--global--border--radius--medium);
|
|
13
28
|
|
|
14
29
|
// main
|
|
15
|
-
--#{$code-editor}__main--BorderColor: var(
|
|
16
|
-
--#{$code-editor}__main--BorderWidth: var(
|
|
17
|
-
--#{$code-editor}__main--
|
|
18
|
-
--#{$code-editor}--
|
|
19
|
-
--#{$code-editor}__main--
|
|
20
|
-
--#{$code-editor}
|
|
21
|
-
--#{$code-editor}
|
|
30
|
+
--#{$code-editor}__main--BorderColor: var(--pf-t--global--border--color--default);
|
|
31
|
+
--#{$code-editor}__main--BorderWidth: var(--pf-t--global--border--width--box--default);
|
|
32
|
+
--#{$code-editor}__main--BorderEndStartRadius: var(--pf-t--global--border--radius--medium);
|
|
33
|
+
--#{$code-editor}__main--BorderEndEndRadius: var(--pf-t--global--border--radius--medium);
|
|
34
|
+
--#{$code-editor}__main--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
35
|
+
--#{$code-editor}--m-read-only__main--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
36
|
+
--#{$code-editor}__upload--before--BorderWidth: 0;
|
|
37
|
+
--#{$code-editor}__upload--before--BorderColor: transparent;
|
|
38
|
+
--#{$code-editor}__main--m-drag-hover--before--BorderWidth: var(--pf-t--global--border--width--divider--hover);
|
|
39
|
+
--#{$code-editor}__main--m-drag-hover--before--BorderColor: var( --pf-t--global--border--color--clicked);
|
|
40
|
+
--#{$code-editor}__main--m-drag-hover--after--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
22
41
|
--#{$code-editor}__main--m-drag-hover--after--Opacity: .1;
|
|
23
42
|
|
|
24
43
|
// code
|
|
25
|
-
--#{$code-editor}__code--PaddingTop: var(
|
|
26
|
-
--#{$code-editor}__code--PaddingRight: var(
|
|
27
|
-
--#{$code-editor}__code--PaddingBottom: var(
|
|
28
|
-
--#{$code-editor}__code--PaddingLeft: var(
|
|
29
|
-
--#{$code-editor}__code-pre--FontSize: var(
|
|
30
|
-
--#{$code-editor}__code-pre--FontFamily: var(
|
|
44
|
+
--#{$code-editor}__code--PaddingTop: var(--pf-t--global--spacer--sm);
|
|
45
|
+
--#{$code-editor}__code--PaddingRight: var(--pf-t--global--spacer--sm);
|
|
46
|
+
--#{$code-editor}__code--PaddingBottom: var(--pf-t--global--spacer--sm);
|
|
47
|
+
--#{$code-editor}__code--PaddingLeft: var(--pf-t--global--spacer--sm);
|
|
48
|
+
--#{$code-editor}__code-pre--FontSize: var(--pf-t--global--font--size--sm);
|
|
49
|
+
--#{$code-editor}__code-pre--FontFamily: var(--pf-t--global--font--family--mono);
|
|
31
50
|
|
|
32
51
|
// content
|
|
33
|
-
--#{$code-editor}__header-main--PaddingRight: var(
|
|
34
|
-
--#{$code-editor}__header-main--PaddingLeft: var(
|
|
52
|
+
--#{$code-editor}__header-main--PaddingRight: var(--pf-t--global--spacer--sm);
|
|
53
|
+
--#{$code-editor}__header-main--PaddingLeft: var(--pf-t--global--spacer--sm);
|
|
35
54
|
|
|
36
55
|
// tab
|
|
37
|
-
--#{$code-editor}__tab--BackgroundColor: var(
|
|
38
|
-
--#{$code-editor}__tab--Color: var(
|
|
39
|
-
--#{$code-editor}__tab--PaddingTop: var(
|
|
40
|
-
--#{$code-editor}__tab--PaddingRight: var(
|
|
41
|
-
--#{$code-editor}__tab--PaddingBottom: var(
|
|
42
|
-
--#{$code-editor}__tab--PaddingLeft: var(
|
|
43
|
-
--#{$code-editor}__tab--BorderTopWidth: var(
|
|
44
|
-
--#{$code-editor}__tab--BorderRightWidth: var(
|
|
56
|
+
--#{$code-editor}__tab--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
57
|
+
--#{$code-editor}__tab--Color: var(--pf-t--global--text--color--subtle);
|
|
58
|
+
--#{$code-editor}__tab--PaddingTop: var(--pf-t--global--spacer--sm);
|
|
59
|
+
--#{$code-editor}__tab--PaddingRight: var( --pf-t--global--spacer--sm);
|
|
60
|
+
--#{$code-editor}__tab--PaddingBottom: var(--pf-t--global--spacer--sm);
|
|
61
|
+
--#{$code-editor}__tab--PaddingLeft: var( --pf-t--global--spacer--sm);
|
|
62
|
+
--#{$code-editor}__tab--BorderTopWidth: var(--pf-t--global--border--width--box--default);
|
|
63
|
+
--#{$code-editor}__tab--BorderRightWidth: var(--pf-t--global--border--width--box--default);
|
|
45
64
|
--#{$code-editor}__tab--BorderBottomWidth: 0;
|
|
46
|
-
--#{$code-editor}__tab--BorderLeftWidth: var(
|
|
47
|
-
--#{$code-editor}__tab--BorderColor: var(
|
|
65
|
+
--#{$code-editor}__tab--BorderLeftWidth: var(--pf-t--global--border--width--box--default);
|
|
66
|
+
--#{$code-editor}__tab--BorderColor: var(--pf-t--global--border--color--default);
|
|
67
|
+
--#{$code-editor}__tab--BorderStartEndRadius: var(--pf-t--global--border--radius--medium);
|
|
48
68
|
|
|
49
69
|
// tab text
|
|
50
|
-
--#{$code-editor}__tab-icon--text--MarginLeft: var(
|
|
70
|
+
--#{$code-editor}__tab-icon--text--MarginLeft: var(--pf-t--global--spacer--sm);
|
|
71
|
+
}
|
|
51
72
|
|
|
73
|
+
.#{$code-editor} {
|
|
52
74
|
&.pf-m-read-only {
|
|
53
75
|
--#{$code-editor}__main--BackgroundColor: var(--#{$code-editor}--m-read-only__main--BackgroundColor);
|
|
54
76
|
}
|
|
@@ -57,7 +79,6 @@
|
|
|
57
79
|
.#{$code-editor}__header {
|
|
58
80
|
position: relative;
|
|
59
81
|
display: flex;
|
|
60
|
-
align-items: flex-end;
|
|
61
82
|
|
|
62
83
|
&::before {
|
|
63
84
|
position: absolute;
|
|
@@ -68,64 +89,72 @@
|
|
|
68
89
|
content: "";
|
|
69
90
|
border-block-end: var(--#{$code-editor}__header--before--BorderBottomWidth) solid var(--#{$code-editor}__header--before--BorderBottomColor);
|
|
70
91
|
}
|
|
92
|
+
|
|
93
|
+
&.pf-m-plain {
|
|
94
|
+
--#{$code-editor}__header-content--BackgroundColor: var(--#{$code-editor}__header-content--m-plain--BackgroundColor);
|
|
95
|
+
}
|
|
71
96
|
}
|
|
72
97
|
|
|
73
|
-
.#{$code-editor}
|
|
98
|
+
.#{$code-editor}__header-content {
|
|
74
99
|
display: flex;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&:disabled {
|
|
88
|
-
&::after {
|
|
89
|
-
border-block-end-color: var(--#{$code-editor}__controls--c-button--m-control--disabled--after--BorderBottomColor);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
100
|
+
flex: 1;
|
|
101
|
+
align-items: flex-end;
|
|
102
|
+
padding-block-start: var(--#{$code-editor}__header-content--PaddingBlockStart);
|
|
103
|
+
padding-block-end: var(--#{$code-editor}__header-content--PaddingBlockEnd);
|
|
104
|
+
padding-inline-start: var(--#{$code-editor}__header-content--PaddingInlineStart);
|
|
105
|
+
padding-inline-end: var(--#{$code-editor}__header-content--PaddingInlineEnd);
|
|
106
|
+
background-color: var(--#{$code-editor}__header-content--BackgroundColor);
|
|
107
|
+
border-start-start-radius: var(--#{$code-editor}__header-content--BorderStartStartRadius);
|
|
108
|
+
|
|
109
|
+
&:last-child {
|
|
110
|
+
border-start-end-radius: var(--#{$code-editor}__header-content--BorderStartEndRadius);
|
|
92
111
|
}
|
|
93
112
|
}
|
|
94
113
|
|
|
114
|
+
.#{$code-editor}__controls {
|
|
115
|
+
display: flex;
|
|
116
|
+
gap: var(--#{$code-editor}__controls--Gap);
|
|
117
|
+
align-items: flex-start;
|
|
118
|
+
}
|
|
119
|
+
|
|
95
120
|
.#{$code-editor}__header-main {
|
|
96
121
|
flex-grow: 1;
|
|
122
|
+
align-self: center;
|
|
97
123
|
padding-inline-start: var(--#{$code-editor}__header-main--PaddingLeft);
|
|
98
124
|
padding-inline-end: var(--#{$code-editor}__header-main--PaddingRight);
|
|
99
125
|
}
|
|
100
126
|
|
|
127
|
+
.#{$code-editor}__upload {
|
|
128
|
+
position: relative;
|
|
129
|
+
padding-block-start: var(--#{$code-editor}__upload--PaddingBlockStart);
|
|
130
|
+
padding-block-end: var(--#{$code-editor}__upload--PaddingBlockEnd);
|
|
131
|
+
padding-inline-start: var(--#{$code-editor}__upload--PaddingInlineStart);
|
|
132
|
+
padding-inline-end: var(--#{$code-editor}__upload--PaddingInlineEnd);
|
|
133
|
+
|
|
134
|
+
&::before {
|
|
135
|
+
position: absolute;
|
|
136
|
+
inset-block-start: var(--#{$code-editor}__upload--PaddingBlockStart);
|
|
137
|
+
inset-block-end: var(--#{$code-editor}__upload--PaddingBlockEnd);
|
|
138
|
+
inset-inline-start: var(--#{$code-editor}__upload--PaddingInlineStart);
|
|
139
|
+
inset-inline-end: var(--#{$code-editor}__upload--PaddingInlineEnd);
|
|
140
|
+
content: "";
|
|
141
|
+
border: var(--#{$code-editor}__upload--before--BorderWidth) dashed var(--#{$code-editor}__upload--before--BorderColor);
|
|
142
|
+
border-radius: var(--#{$code-editor}__upload--BorderRadius);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
101
146
|
.#{$code-editor}__main {
|
|
102
147
|
position: relative;
|
|
103
148
|
color: var(--#{$code-editor}__main--Color, inherit);
|
|
104
149
|
background-color: var(--#{$code-editor}__main--BackgroundColor);
|
|
105
150
|
border: var(--#{$code-editor}__main--BorderWidth) solid;
|
|
106
151
|
border-color: var(--#{$code-editor}__main--BorderColor);
|
|
152
|
+
border-end-start-radius: var(--#{$code-editor}__main--BorderEndStartRadius);
|
|
153
|
+
border-end-end-radius: var(--#{$code-editor}__main--BorderEndEndRadius);
|
|
107
154
|
|
|
108
155
|
&.pf-m-drag-hover {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
inset-block-start: 0;
|
|
112
|
-
inset-block-end: 0;
|
|
113
|
-
inset-inline-start: 0;
|
|
114
|
-
inset-inline-end: 0;
|
|
115
|
-
content: "";
|
|
116
|
-
background-color: var(--#{$code-editor}__main--m-drag-hover--after--BackgroundColor);
|
|
117
|
-
opacity: var(--#{$code-editor}__main--m-drag-hover--after--Opacity);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&::before {
|
|
121
|
-
position: absolute;
|
|
122
|
-
inset-block-start: 0;
|
|
123
|
-
inset-block-end: 0;
|
|
124
|
-
inset-inline-start: 0;
|
|
125
|
-
inset-inline-end: 0;
|
|
126
|
-
content: "";
|
|
127
|
-
border: var(--#{$code-editor}__main--m-drag-hover--before--BorderWidth) solid var(--#{$code-editor}__main--m-drag-hover--before--BorderColor);
|
|
128
|
-
}
|
|
156
|
+
--#{$code-editor}__upload--before--BorderWidth: var(--#{$code-editor}__main--m-drag-hover--before--BorderWidth);
|
|
157
|
+
--#{$code-editor}__upload--before--BorderColor: var(--#{$code-editor}__main--m-drag-hover--before--BorderColor);
|
|
129
158
|
}
|
|
130
159
|
|
|
131
160
|
// stylelint-disable selector-class-pattern
|
|
@@ -161,7 +190,6 @@
|
|
|
161
190
|
padding-block-end: var(--#{$code-editor}__tab--PaddingBottom);
|
|
162
191
|
padding-inline-start: var(--#{$code-editor}__tab--PaddingLeft);
|
|
163
192
|
padding-inline-end: var(--#{$code-editor}__tab--PaddingRight);
|
|
164
|
-
margin-inline-start: auto; // remove at breaking change
|
|
165
193
|
color: var(--#{$code-editor}__tab--Color);
|
|
166
194
|
background-color: var(--#{$code-editor}__tab--BackgroundColor);
|
|
167
195
|
border-color: var(--#{$code-editor}__tab--BorderColor);
|
|
@@ -170,15 +198,9 @@
|
|
|
170
198
|
border-block-end-width: var(--#{$code-editor}__tab--BorderBottomWidth);
|
|
171
199
|
border-inline-start-width: var(--#{$code-editor}__tab--BorderLeftWidth);
|
|
172
200
|
border-inline-end-width: var(--#{$code-editor}__tab--BorderRightWidth);
|
|
201
|
+
border-start-end-radius: var(--#{$code-editor}__tab--BorderStartEndRadius);
|
|
173
202
|
}
|
|
174
203
|
|
|
175
204
|
.#{$code-editor}__tab-icon + .#{$code-editor}__tab-text {
|
|
176
205
|
margin-inline-start: var(--#{$code-editor}__tab-icon--text--MarginLeft);
|
|
177
206
|
}
|
|
178
|
-
|
|
179
|
-
// stylelint-disable no-invalid-position-at-import-rule
|
|
180
|
-
@import "themes/dark/code-editor";
|
|
181
|
-
|
|
182
|
-
@include pf-v5-theme-dark {
|
|
183
|
-
@include pf-v5-theme-dark-code-editor;
|
|
184
|
-
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
.pf-v5-c-content {
|
|
2
2
|
--pf-v5-c-content--MarginBottom: var(--pf-t--global--spacer--md);
|
|
3
3
|
--pf-v5-c-content--LineHeight: var(--pf-t--global--font--line-height--body);
|
|
4
|
-
--pf-v5-c-content--FontSize: var(--pf-t--global--font--size--body);
|
|
4
|
+
--pf-v5-c-content--FontSize: var(--pf-t--global--font--size--body--default);
|
|
5
5
|
--pf-v5-c-content--FontWeight: var(--pf-t--global--font--weight--body);
|
|
6
6
|
--pf-v5-c-content--Color: var(--pf-t--global--text--color--regular);
|
|
7
7
|
--pf-v5-c-content--heading--FontFamily: var(--pf-t--global--font--family--heading);
|
|
8
8
|
--pf-v5-c-content--h1--MarginTop: var(--pf-t--global--spacer--lg);
|
|
9
9
|
--pf-v5-c-content--h1--MarginBottom: var(--pf-t--global--spacer--sm);
|
|
10
10
|
--pf-v5-c-content--h1--LineHeight: var(--pf-t--global--font--line-height--heading);
|
|
11
|
-
--pf-v5-c-content--h1--FontSize: var(--pf-t--global--font--size--heading--
|
|
11
|
+
--pf-v5-c-content--h1--FontSize: var(--pf-t--global--font--size--heading--h1);
|
|
12
12
|
--pf-v5-c-content--h1--FontWeight: var(--pf-t--global--font--weight--heading);
|
|
13
13
|
--pf-v5-c-content--h2--MarginTop: var(--pf-t--global--spacer--lg);
|
|
14
14
|
--pf-v5-c-content--h2--MarginBottom: var(--pf-t--global--spacer--sm);
|
|
15
15
|
--pf-v5-c-content--h2--LineHeight: var(--pf-t--global--font--line-height--heading);
|
|
16
|
-
--pf-v5-c-content--h2--FontSize: var(--pf-t--global--font--size--heading--
|
|
16
|
+
--pf-v5-c-content--h2--FontSize: var(--pf-t--global--font--size--heading--h2);
|
|
17
17
|
--pf-v5-c-content--h2--FontWeight: var(--pf-t--global--font--weight--heading);
|
|
18
18
|
--pf-v5-c-content--h3--MarginTop: var(--pf-t--global--spacer--lg);
|
|
19
19
|
--pf-v5-c-content--h3--MarginBottom: var(--pf-t--global--spacer--sm);
|
|
20
20
|
--pf-v5-c-content--h3--LineHeight: var(--pf-t--global--font--line-height--heading);
|
|
21
|
-
--pf-v5-c-content--h3--FontSize: var(--pf-t--global--font--size--heading--
|
|
21
|
+
--pf-v5-c-content--h3--FontSize: var(--pf-t--global--font--size--heading--h3);
|
|
22
22
|
--pf-v5-c-content--h3--FontWeight: var(--pf-t--global--font--weight--heading);
|
|
23
23
|
--pf-v5-c-content--h4--MarginTop: var(--pf-t--global--spacer--lg);
|
|
24
24
|
--pf-v5-c-content--h4--MarginBottom: var(--pf-t--global--spacer--sm);
|
|
25
25
|
--pf-v5-c-content--h4--LineHeight: var(--pf-t--global--font--line-height--heading);
|
|
26
|
-
--pf-v5-c-content--h4--FontSize: var(--pf-t--global--font--size--heading--
|
|
26
|
+
--pf-v5-c-content--h4--FontSize: var(--pf-t--global--font--size--heading--h4);
|
|
27
27
|
--pf-v5-c-content--h4--FontWeight: var(--pf-t--global--font--weight--heading);
|
|
28
28
|
--pf-v5-c-content--h5--MarginTop: var(--pf-t--global--spacer--lg);
|
|
29
29
|
--pf-v5-c-content--h5--MarginBottom: var(--pf-t--global--spacer--sm);
|
|
30
30
|
--pf-v5-c-content--h5--LineHeight: var(--pf-t--global--font--line-height--heading);
|
|
31
|
-
--pf-v5-c-content--h5--FontSize: var(--pf-t--global--font--size--heading--
|
|
31
|
+
--pf-v5-c-content--h5--FontSize: var(--pf-t--global--font--size--heading--h5);
|
|
32
32
|
--pf-v5-c-content--h5--FontWeight: var(--pf-t--global--font--weight--heading);
|
|
33
33
|
--pf-v5-c-content--h6--MarginTop: var(--pf-t--global--spacer--lg);
|
|
34
34
|
--pf-v5-c-content--h6--MarginBottom: var(--pf-t--global--spacer--sm);
|
|
35
35
|
--pf-v5-c-content--h6--LineHeight: var(--pf-t--global--font--line-height--heading);
|
|
36
|
-
--pf-v5-c-content--h6--FontSize: var(--pf-t--global--font--size--heading--
|
|
36
|
+
--pf-v5-c-content--h6--FontSize: var(--pf-t--global--font--size--heading--h6);
|
|
37
37
|
--pf-v5-c-content--h6--FontWeight: var(--pf-t--global--font--weight--heading);
|
|
38
38
|
--pf-v5-c-content--small--MarginBottom: var(--pf-t--global--spacer--md);
|
|
39
39
|
--pf-v5-c-content--small--LineHeight: var(--pf-t--global--font--line-height--body);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Body
|
|
5
5
|
--#{$content}--MarginBottom: var(--pf-t--global--spacer--md);
|
|
6
6
|
--#{$content}--LineHeight: var(--pf-t--global--font--line-height--body);
|
|
7
|
-
--#{$content}--FontSize: var(--pf-t--global--font--size--body);
|
|
7
|
+
--#{$content}--FontSize: var(--pf-t--global--font--size--body--default);
|
|
8
8
|
--#{$content}--FontWeight: var(--pf-t--global--font--weight--body);
|
|
9
9
|
|
|
10
10
|
// this ensures color is not overridden
|
|
@@ -17,42 +17,42 @@
|
|
|
17
17
|
--#{$content}--h1--MarginTop: var(--pf-t--global--spacer--lg);
|
|
18
18
|
--#{$content}--h1--MarginBottom: var(--pf-t--global--spacer--sm);
|
|
19
19
|
--#{$content}--h1--LineHeight: var(--pf-t--global--font--line-height--heading);
|
|
20
|
-
--#{$content}--h1--FontSize: var(--pf-t--global--font--size--heading--
|
|
20
|
+
--#{$content}--h1--FontSize: var(--pf-t--global--font--size--heading--h1);
|
|
21
21
|
--#{$content}--h1--FontWeight: var(--pf-t--global--font--weight--heading);
|
|
22
22
|
|
|
23
23
|
// h2
|
|
24
24
|
--#{$content}--h2--MarginTop: var(--pf-t--global--spacer--lg);
|
|
25
25
|
--#{$content}--h2--MarginBottom: var(--pf-t--global--spacer--sm);
|
|
26
26
|
--#{$content}--h2--LineHeight: var(--pf-t--global--font--line-height--heading);
|
|
27
|
-
--#{$content}--h2--FontSize: var(--pf-t--global--font--size--heading--
|
|
27
|
+
--#{$content}--h2--FontSize: var(--pf-t--global--font--size--heading--h2);
|
|
28
28
|
--#{$content}--h2--FontWeight: var(--pf-t--global--font--weight--heading);
|
|
29
29
|
|
|
30
30
|
// h3
|
|
31
31
|
--#{$content}--h3--MarginTop: var(--pf-t--global--spacer--lg);
|
|
32
32
|
--#{$content}--h3--MarginBottom: var(--pf-t--global--spacer--sm);
|
|
33
33
|
--#{$content}--h3--LineHeight: var(--pf-t--global--font--line-height--heading);
|
|
34
|
-
--#{$content}--h3--FontSize: var(--pf-t--global--font--size--heading--
|
|
34
|
+
--#{$content}--h3--FontSize: var(--pf-t--global--font--size--heading--h3);
|
|
35
35
|
--#{$content}--h3--FontWeight: var(--pf-t--global--font--weight--heading);
|
|
36
36
|
|
|
37
37
|
// h4
|
|
38
38
|
--#{$content}--h4--MarginTop: var(--pf-t--global--spacer--lg);
|
|
39
39
|
--#{$content}--h4--MarginBottom: var(--pf-t--global--spacer--sm);
|
|
40
40
|
--#{$content}--h4--LineHeight: var(--pf-t--global--font--line-height--heading);
|
|
41
|
-
--#{$content}--h4--FontSize: var(--pf-t--global--font--size--heading--
|
|
41
|
+
--#{$content}--h4--FontSize: var(--pf-t--global--font--size--heading--h4);
|
|
42
42
|
--#{$content}--h4--FontWeight: var(--pf-t--global--font--weight--heading);
|
|
43
43
|
|
|
44
44
|
// h5
|
|
45
45
|
--#{$content}--h5--MarginTop: var(--pf-t--global--spacer--lg);
|
|
46
46
|
--#{$content}--h5--MarginBottom: var(--pf-t--global--spacer--sm);
|
|
47
47
|
--#{$content}--h5--LineHeight: var(--pf-t--global--font--line-height--heading);
|
|
48
|
-
--#{$content}--h5--FontSize: var(--pf-t--global--font--size--heading--
|
|
48
|
+
--#{$content}--h5--FontSize: var(--pf-t--global--font--size--heading--h5);
|
|
49
49
|
--#{$content}--h5--FontWeight: var(--pf-t--global--font--weight--heading);
|
|
50
50
|
|
|
51
51
|
// h6
|
|
52
52
|
--#{$content}--h6--MarginTop: var(--pf-t--global--spacer--lg);
|
|
53
53
|
--#{$content}--h6--MarginBottom: var(--pf-t--global--spacer--sm);
|
|
54
54
|
--#{$content}--h6--LineHeight: var(--pf-t--global--font--line-height--heading);
|
|
55
|
-
--#{$content}--h6--FontSize: var(--pf-t--global--font--size--heading--
|
|
55
|
+
--#{$content}--h6--FontSize: var(--pf-t--global--font--size--heading--h6);
|
|
56
56
|
--#{$content}--h6--FontWeight: var(--pf-t--global--font--weight--heading);
|
|
57
57
|
|
|
58
58
|
// Small text
|