@patternfly/patternfly 6.0.0-alpha.119 → 6.0.0-alpha.120
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/assets/fontawesome/_animated.scss +1 -0
- package/assets/fontawesome/_bordered-pulled.scss +1 -0
- package/assets/fontawesome/_core.scss +2 -0
- package/assets/fontawesome/_fixed-width.scss +2 -0
- package/assets/fontawesome/_icons.scss +1 -0
- package/assets/fontawesome/_index.scss +12 -0
- package/assets/fontawesome/_larger.scss +4 -2
- package/assets/fontawesome/_list.scss +4 -2
- package/assets/fontawesome/_rotated-flipped.scss +2 -0
- package/assets/fontawesome/_screen-reader.scss +1 -0
- package/assets/fontawesome/_stacked.scss +3 -1
- package/assets/fontawesome/_variables.scss +3 -2
- package/assets/fontawesome/fontawesome.scss +12 -12
- package/assets/pficon/pficon.scss +3 -0
- package/base/_index.scss +10 -0
- package/base/{_globals.scss → normalize.scss} +5 -35
- package/base/patternfly-common.scss +50 -2
- package/base/patternfly-fa-icons.css +1 -1
- package/base/patternfly-fa-icons.scss +35 -2
- package/base/patternfly-fonts.scss +49 -2
- package/base/patternfly-pf-icons.scss +1 -2
- package/base/patternfly-svg-icons.css +5 -0
- package/base/{_svg-icons.scss → patternfly-svg-icons.scss} +2 -0
- package/base/patternfly-variables.scss +14 -2
- package/base/reset.scss +33 -0
- package/base/tokens/_index.scss +6 -0
- package/components/AboutModalBox/about-modal-box.css +8 -8
- package/components/AboutModalBox/about-modal-box.scss +3 -4
- package/components/Accordion/accordion.css +1 -1
- package/components/Accordion/accordion.scss +8 -8
- package/components/ActionList/action-list.css +1 -1
- package/components/ActionList/action-list.scss +3 -1
- package/components/Alert/alert-group.scss +1 -1
- package/components/Alert/alert.css +1 -1
- package/components/Alert/alert.scss +3 -3
- package/components/AppLauncher/app-launcher.scss +1 -3
- package/components/Avatar/avatar.css +1 -1
- package/components/Avatar/avatar.scss +3 -2
- package/components/BackToTop/back-to-top.css +2 -2
- package/components/BackToTop/back-to-top.scss +2 -2
- package/components/Backdrop/backdrop.css +1 -2
- package/components/Backdrop/backdrop.scss +2 -3
- package/components/BackgroundImage/background-image.css +1 -2
- package/components/BackgroundImage/background-image.scss +2 -3
- package/components/Badge/badge.css +1 -1
- package/components/Badge/badge.scss +2 -2
- package/components/Banner/banner.css +2 -2
- package/components/Banner/banner.scss +3 -3
- package/components/Brand/brand.scss +2 -1
- package/components/Breadcrumb/breadcrumb.css +1 -2
- package/components/Breadcrumb/breadcrumb.scss +3 -2
- package/components/Button/button.css +1 -2
- package/components/Button/button.scss +3 -2
- package/components/CalendarMonth/calendar-month.css +1 -2
- package/components/CalendarMonth/calendar-month.scss +5 -5
- package/components/Card/card.css +1 -2
- package/components/Card/card.scss +4 -5
- package/components/Check/check.css +1 -2
- package/components/Check/check.scss +2 -3
- package/components/Chip/chip-group.scss +1 -1
- package/components/Chip/chip.scss +1 -1
- package/components/ClipboardCopy/clipboard-copy.css +1 -2
- package/components/ClipboardCopy/clipboard-copy.scss +2 -3
- package/components/CodeBlock/code-block.css +1 -1
- package/components/CodeBlock/code-block.scss +2 -2
- package/components/CodeEditor/code-editor.css +1 -1
- package/components/CodeEditor/code-editor.scss +2 -2
- package/components/Content/content.css +1 -2
- package/components/Content/content.scss +2 -3
- package/components/ContextSelector/context-selector.scss +1 -1
- package/components/DataList/data-list-grid.scss +2 -0
- package/components/DataList/data-list.css +3 -3
- package/components/DataList/data-list.scss +5 -5
- package/components/DatePicker/date-picker.css +1 -2
- package/components/DatePicker/date-picker.scss +2 -3
- package/components/DescriptionList/description-list-order.scss +2 -0
- package/components/DescriptionList/description-list.css +7 -7
- package/components/DescriptionList/description-list.scss +5 -4
- package/components/Divider/divider.css +1 -2
- package/components/Divider/divider.scss +3 -3
- package/components/DragDrop/drag-drop.css +2 -2
- package/components/DragDrop/drag-drop.scss +3 -3
- package/components/Drawer/drawer.css +3 -6
- package/components/Drawer/drawer.scss +14 -13
- package/components/Dropdown/dropdown.scss +2 -1
- package/components/DualListSelector/dual-list-selector.css +1 -1
- package/components/DualListSelector/dual-list-selector.scss +4 -3
- package/components/EmptyState/empty-state.css +1 -1
- package/components/EmptyState/empty-state.scss +2 -2
- package/components/ExpandableSection/expandable-section.css +1 -1
- package/components/ExpandableSection/expandable-section.scss +7 -9
- package/components/FileUpload/file-upload.css +1 -2
- package/components/FileUpload/file-upload.scss +2 -3
- package/components/Form/form.css +1 -2
- package/components/Form/form.scss +4 -4
- package/components/FormControl/form-control.css +1 -2
- package/components/FormControl/form-control.scss +6 -5
- package/components/HelperText/helper-text.css +1 -1
- package/components/HelperText/helper-text.scss +4 -3
- package/components/Hint/hint.css +1 -1
- package/components/Hint/hint.scss +2 -2
- package/components/Icon/icon.css +1 -2
- package/components/Icon/icon.scss +2 -3
- package/components/InlineEdit/inline-edit.css +1 -2
- package/components/InlineEdit/inline-edit.scss +2 -3
- package/components/InputGroup/input-group.css +1 -2
- package/components/InputGroup/input-group.scss +2 -3
- package/components/JumpLinks/jump-links.css +1 -2
- package/components/JumpLinks/jump-links.scss +3 -3
- package/components/Label/label-group.css +1 -2
- package/components/Label/label-group.scss +2 -3
- package/components/Label/label.css +1 -2
- package/components/Label/label.scss +2 -4
- package/components/List/list.scss +1 -1
- package/components/LogViewer/log-viewer.scss +1 -1
- package/components/Login/login.css +9 -9
- package/components/Login/login.scss +2 -2
- package/components/Masthead/masthead.css +1 -2
- package/components/Masthead/masthead.scss +3 -2
- package/components/Menu/menu.css +1 -2
- package/components/Menu/menu.scss +3 -2
- package/components/MenuToggle/menu-toggle.css +1 -2
- package/components/MenuToggle/menu-toggle.scss +2 -3
- package/components/ModalBox/modal-box.css +2 -2
- package/components/ModalBox/modal-box.scss +3 -3
- package/components/MultipleFileUpload/multiple-file-upload.css +1 -2
- package/components/MultipleFileUpload/multiple-file-upload.scss +2 -3
- package/components/Nav/nav.css +1 -2
- package/components/Nav/nav.scss +3 -2
- package/components/NotificationBadge/notification-badge.css +1 -1
- package/components/NotificationBadge/notification-badge.scss +2 -2
- package/components/NotificationDrawer/notification-drawer.css +1 -2
- package/components/NotificationDrawer/notification-drawer.scss +2 -3
- package/components/NumberInput/number-input.css +1 -2
- package/components/NumberInput/number-input.scss +2 -3
- package/components/OptionsMenu/options-menu.scss +1 -1
- package/components/OverflowMenu/overflow-menu.css +1 -1
- package/components/OverflowMenu/overflow-menu.scss +3 -1
- package/components/Page/page.css +5 -5
- package/components/Page/page.scss +3 -2
- package/components/Pagination/pagination.css +3 -6
- package/components/Pagination/pagination.scss +3 -3
- package/components/Panel/panel.css +1 -2
- package/components/Panel/panel.scss +2 -3
- package/components/Popover/popover.scss +1 -1
- package/components/Progress/progress.css +1 -2
- package/components/Progress/progress.scss +5 -6
- package/components/ProgressStepper/progress-stepper.css +2 -4
- package/components/ProgressStepper/progress-stepper.scss +3 -3
- package/components/Radio/radio.css +1 -2
- package/components/Radio/radio.scss +2 -3
- package/components/Select/select.scss +1 -1
- package/components/Sidebar/sidebar.css +1 -2
- package/components/Sidebar/sidebar.scss +5 -5
- package/components/SimpleList/simple-list.css +1 -1
- package/components/SimpleList/simple-list.scss +3 -3
- package/components/Skeleton/skeleton.css +1 -2
- package/components/Skeleton/skeleton.scss +2 -3
- package/components/SkipToContent/skip-to-content.css +1 -1
- package/components/SkipToContent/skip-to-content.scss +2 -2
- package/components/Slider/slider.css +1 -2
- package/components/Slider/slider.scss +12 -13
- package/components/Spinner/spinner.css +1 -2
- package/components/Spinner/spinner.scss +4 -5
- package/components/Switch/switch.css +1 -2
- package/components/Switch/switch.scss +2 -3
- package/components/TabContent/tab-content.css +1 -2
- package/components/TabContent/tab-content.scss +3 -3
- package/components/Table/table-grid.scss +2 -0
- package/components/Table/table-scrollable.css +1 -2
- package/components/Table/table-scrollable.scss +3 -3
- package/components/Table/table-tree-view.css +1 -2
- package/components/Table/table-tree-view.scss +3 -2
- package/components/Table/table.css +1 -2
- package/components/Table/table.scss +3 -2
- package/components/Tabs/tabs.css +1 -2
- package/components/Tabs/tabs.scss +7 -7
- package/components/TextInputGroup/text-input-group.css +1 -2
- package/components/TextInputGroup/text-input-group.scss +4 -4
- package/components/Tile/tile.css +1 -2
- package/components/Tile/tile.scss +2 -3
- package/components/Timestamp/timestamp.css +1 -1
- package/components/Timestamp/timestamp.scss +4 -3
- package/components/Title/title.css +1 -1
- package/components/Title/title.scss +3 -3
- package/components/ToggleGroup/toggle-group.css +1 -2
- package/components/ToggleGroup/toggle-group.scss +3 -4
- package/components/Toolbar/toolbar.css +1 -2
- package/components/Toolbar/toolbar.scss +3 -2
- package/components/Tooltip/tooltip.css +1 -1
- package/components/Tooltip/tooltip.scss +5 -4
- package/components/TreeView/tree-view.css +1 -2
- package/components/TreeView/tree-view.scss +3 -3
- package/components/Truncate/truncate.css +1 -2
- package/components/Truncate/truncate.scss +2 -3
- package/components/Wizard/wizard.css +2 -4
- package/components/Wizard/wizard.scss +2 -3
- package/components/_index.css +25850 -0
- package/components/_index.scss +91 -0
- package/layouts/Bullseye/bullseye.css +1 -2
- package/layouts/Bullseye/bullseye.scss +3 -2
- package/layouts/Flex/flex.css +1 -2
- package/layouts/Flex/flex.scss +5 -4
- package/layouts/Gallery/gallery.css +1 -2
- package/layouts/Gallery/gallery.scss +3 -2
- package/layouts/Grid/grid.css +1 -2
- package/layouts/Grid/grid.scss +3 -2
- package/layouts/Level/level.css +1 -2
- package/layouts/Level/level.scss +3 -2
- package/layouts/Split/split.css +1 -2
- package/layouts/Split/split.scss +3 -2
- package/layouts/Stack/stack.css +1 -2
- package/layouts/Stack/stack.scss +3 -2
- package/layouts/_index.css +3454 -0
- package/layouts/_index.scss +8 -0
- package/package.json +1 -2
- package/patternfly-addons.scss +2 -12
- package/patternfly-base-no-globals.css +1156 -1156
- package/patternfly-base-no-globals.scss +5 -3
- package/patternfly-base.css +1251 -1251
- package/patternfly-base.scss +2 -5
- package/patternfly-charts.scss +1 -1
- package/patternfly-no-globals.css +1278 -1341
- package/patternfly-no-globals.scss +5 -4
- package/patternfly.css +1374 -1437
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/patternfly.scss +3 -4
- package/sass-utilities/_index.scss +6 -0
- package/sass-utilities/functions.scss +10 -4
- package/sass-utilities/mixins.scss +9 -7
- package/sass-utilities/{component-namespaces.scss → namespaces-components.scss} +3 -0
- package/sass-utilities/{layout-namespaces.scss → namespaces-layouts.scss} +3 -1
- package/sass-utilities/scss-variables.scss +0 -2
- package/utilities/Accessibility/accessibility.scss +2 -0
- package/utilities/Alignment/alignment.scss +2 -0
- package/utilities/BackgroundColor/{BackgroundColor.scss → background-color.scss} +1 -4
- package/utilities/BoxShadow/box-shadow.scss +2 -1
- package/utilities/Display/display.scss +2 -1
- package/utilities/Flex/flex.scss +2 -1
- package/utilities/Float/float.scss +4 -4
- package/utilities/Sizing/sizing.scss +2 -0
- package/utilities/Spacing/spacing.scss +2 -2
- package/utilities/Text/text.scss +2 -1
- package/utilities/_index.css +7777 -0
- package/utilities/_index.scss +10 -0
- package/base/_base.scss +0 -2
- package/base/_common.scss +0 -50
- package/base/_fa-icons.scss +0 -33
- package/base/_fonts.scss +0 -48
- package/base/_icons.scss +0 -3
- package/base/_pficons.scss +0 -2
- package/base/_variables.scss +0 -14
- package/base/patternfly-globals.css +0 -116
- package/base/patternfly-globals.scss +0 -2
- package/base/patternfly-icons.css +0 -4728
- package/base/patternfly-icons.scss +0 -2
- package/components/_all.scss +0 -91
- package/layouts/_all.scss +0 -7
- package/sass-utilities/_all.scss +0 -7
- package/sass-utilities/div.import.scss +0 -3
- package/sass-utilities/div.scss +0 -4
- /package/base/tokens/{_tokens-charts.scss → tokens-charts.scss} +0 -0
- /package/base/tokens/{_tokens-dark.scss → tokens-dark.scss} +0 -0
- /package/base/tokens/{_tokens-default.scss → tokens-default.scss} +0 -0
- /package/base/tokens/{_tokens-font.scss → tokens-font.scss} +0 -0
- /package/base/tokens/{_tokens-palette.scss → tokens-palette.scss} +0 -0
- /package/base/tokens/{_workspace-overrides.scss → workspace-overrides.scss} +0 -0
- /package/sass-utilities/{_init.scss → init.scss} +0 -0
- /package/utilities/BackgroundColor/{BackgroundColor.css → background-color.css} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
|
|
2
2
|
// readers do not read off random characters that represent icons
|
|
3
|
+
@use './variables.scss' as *;
|
|
3
4
|
|
|
4
5
|
.#{$fa-css-prefix}-500px:before { content: fa-content($fa-var-500px); }
|
|
5
6
|
.#{$fa-css-prefix}-accessible-icon:before { content: fa-content($fa-var-accessible-icon); }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@forward 'variables';
|
|
2
|
+
@forward 'mixins';
|
|
3
|
+
@forward 'core';
|
|
4
|
+
@forward 'larger';
|
|
5
|
+
@forward 'fixed-width';
|
|
6
|
+
@forward 'list';
|
|
7
|
+
@forward 'bordered-pulled';
|
|
8
|
+
@forward 'animated';
|
|
9
|
+
@forward 'rotated-flipped';
|
|
10
|
+
@forward 'stacked';
|
|
11
|
+
@forward 'icons';
|
|
12
|
+
@forward 'screen-reader';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
// Icon sizes
|
|
2
2
|
// -------------------------
|
|
3
|
+
@use './variables.scss' as *;
|
|
4
|
+
@use 'sass:math';
|
|
3
5
|
|
|
4
6
|
// makes the font 33% larger relative to the icon container
|
|
5
7
|
.#{$fa-css-prefix}-lg {
|
|
6
|
-
font-size: div(4em, 3);
|
|
7
|
-
line-height: div(3em, 4);
|
|
8
|
+
font-size: math.div(4em, 3);
|
|
9
|
+
line-height: math.div(3em, 4);
|
|
8
10
|
vertical-align: -.0667em;
|
|
9
11
|
}
|
|
10
12
|
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
// List icons
|
|
2
2
|
// -------------------------
|
|
3
|
+
@use './variables.scss' as *;
|
|
4
|
+
@use 'sass:math';
|
|
3
5
|
|
|
4
6
|
.#{$fa-css-prefix}-ul {
|
|
5
7
|
list-style-type: none;
|
|
6
|
-
margin-left: div($fa-li-width * 5, 4);
|
|
8
|
+
margin-left: math.div($fa-li-width * 5, 4);
|
|
7
9
|
padding-left: 0;
|
|
8
10
|
|
|
9
11
|
> li { position: relative; }
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
.#{$fa-css-prefix}-li {
|
|
13
|
-
left:
|
|
15
|
+
left: -#{$fa-li-width};
|
|
14
16
|
position: absolute;
|
|
15
17
|
text-align: center;
|
|
16
18
|
width: $fa-li-width;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// Stacked icons
|
|
2
2
|
// -------------------------
|
|
3
|
+
@use './variables.scss' as *;
|
|
4
|
+
@use 'sass:math';
|
|
3
5
|
|
|
4
6
|
.#{$fa-css-prefix}-stack {
|
|
5
7
|
display: inline-block;
|
|
@@ -7,7 +9,7 @@
|
|
|
7
9
|
line-height: 2em;
|
|
8
10
|
position: relative;
|
|
9
11
|
vertical-align: middle;
|
|
10
|
-
width: ($fa-fw-width
|
|
12
|
+
width: math.div($fa-fw-width, 2);
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
.#{$fa-css-prefix}-stack-1x,
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
// Variables
|
|
2
2
|
// --------------------------
|
|
3
|
+
@use 'sass:math';
|
|
3
4
|
|
|
4
5
|
$fa-font-path: "../webfonts" !default;
|
|
5
6
|
$fa-font-size-base: 16px !default;
|
|
6
|
-
$fa-css-prefix: fa !default;
|
|
7
|
+
$fa-css-prefix: 'fa' !default;
|
|
7
8
|
$fa-version: "5.6.3" !default;
|
|
8
9
|
$fa-border-color: #eee !default;
|
|
9
10
|
$fa-inverse: #fff !default;
|
|
10
11
|
$fa-li-width: 2em !default;
|
|
11
|
-
$fa-fw-width: div(20em, 16);
|
|
12
|
+
$fa-fw-width: math.div(20em, 16);
|
|
12
13
|
|
|
13
14
|
// Convenience function used to set content property
|
|
14
15
|
@function fa-content($fa-var) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
1
|
+
@forward 'variables';
|
|
2
|
+
@forward 'mixins';
|
|
3
|
+
@forward 'core';
|
|
4
|
+
@forward 'larger';
|
|
5
|
+
@forward 'fixed-width';
|
|
6
|
+
@forward 'list';
|
|
7
|
+
@forward 'bordered-pulled';
|
|
8
|
+
@forward 'animated';
|
|
9
|
+
@forward 'rotated-flipped';
|
|
10
|
+
@forward 'stacked';
|
|
11
|
+
@forward 'icons';
|
|
12
|
+
@forward 'screen-reader';
|
package/base/_index.scss
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// @use '../sass-utilities' as *;
|
|
2
|
+
|
|
3
|
+
@forward './normalize';
|
|
4
|
+
@forward './reset';
|
|
5
|
+
@forward './patternfly-common';
|
|
6
|
+
@forward './patternfly-fonts';
|
|
7
|
+
@forward './patternfly-fa-icons';
|
|
8
|
+
@forward './patternfly-pf-icons';
|
|
9
|
+
@forward './patternfly-svg-icons';
|
|
10
|
+
@forward './patternfly-variables';
|
|
@@ -1,34 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
@if $pf-v6-global--enable-reset {
|
|
3
|
-
:where(
|
|
4
|
-
html,
|
|
5
|
-
body,
|
|
6
|
-
p,
|
|
7
|
-
ol,
|
|
8
|
-
ul,
|
|
9
|
-
li,
|
|
10
|
-
dl,
|
|
11
|
-
dt,
|
|
12
|
-
dd,
|
|
13
|
-
blockquote,
|
|
14
|
-
figure,
|
|
15
|
-
fieldset,
|
|
16
|
-
legend,
|
|
17
|
-
textarea,
|
|
18
|
-
pre,
|
|
19
|
-
iframe,
|
|
20
|
-
hr,
|
|
21
|
-
h1,
|
|
22
|
-
h2,
|
|
23
|
-
h3,
|
|
24
|
-
h4,
|
|
25
|
-
h5,
|
|
26
|
-
h6
|
|
27
|
-
) {
|
|
28
|
-
padding: 0;
|
|
29
|
-
margin: 0;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
1
|
+
@use '../sass-utilities' as *;
|
|
32
2
|
|
|
33
3
|
// Normalize
|
|
34
4
|
@if $pf-v6-global--enable-normalize {
|
|
@@ -41,7 +11,7 @@
|
|
|
41
11
|
:where(
|
|
42
12
|
html,
|
|
43
13
|
body
|
|
44
|
-
|
|
14
|
+
) {
|
|
45
15
|
height: 100%;
|
|
46
16
|
}
|
|
47
17
|
|
|
@@ -60,7 +30,7 @@
|
|
|
60
30
|
h4,
|
|
61
31
|
h5,
|
|
62
32
|
h6
|
|
63
|
-
|
|
33
|
+
) {
|
|
64
34
|
font-size: 100%;
|
|
65
35
|
font-weight: var(--pf-t--global--font--weight--body);
|
|
66
36
|
}
|
|
@@ -75,7 +45,7 @@
|
|
|
75
45
|
optgroup,
|
|
76
46
|
select,
|
|
77
47
|
textarea
|
|
78
|
-
|
|
48
|
+
) {
|
|
79
49
|
margin: 0;
|
|
80
50
|
font-family: inherit;
|
|
81
51
|
font-size: 100%;
|
|
@@ -90,7 +60,7 @@
|
|
|
90
60
|
object,
|
|
91
61
|
audio,
|
|
92
62
|
video
|
|
93
|
-
|
|
63
|
+
) {
|
|
94
64
|
max-width: 100%;
|
|
95
65
|
height: auto;
|
|
96
66
|
}
|
|
@@ -1,2 +1,50 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
1
|
+
@use '../sass-utilities' as *;
|
|
2
|
+
|
|
3
|
+
.#{$pf-prefix}screen-reader {
|
|
4
|
+
@include pf-v6-u-screen-reader; // for use with assistive technologies
|
|
5
|
+
|
|
6
|
+
&.pf-m-full-size {
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&.pf-m-absolute {
|
|
12
|
+
position: absolute;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.#{$pf-prefix}m-tabular-nums {
|
|
17
|
+
font-variant-numeric: tabular-nums;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Variable font opt-in
|
|
21
|
+
.#{$pf-prefix}m-legacy-font {
|
|
22
|
+
--pf-t--global--font--family--body: var(--pf-t--global--font--family--body--legacy);
|
|
23
|
+
--pf-t--global--font--family--heading: var(--pf-t--global--font--family--heading--legacy);
|
|
24
|
+
--pf-t--global--font--family--mono: var(--pf-t--global--font--family--mono--legacy);
|
|
25
|
+
--pf-t--global--font--weight--body: var(--pf-t--global--font--weight--body--legacy);
|
|
26
|
+
--pf-t--global--font--weight--body--bold: var(--pf-t--global--font--weight--body--bold--legacy);
|
|
27
|
+
--pf-t--global--font--weight--heading: var(--pf-t--global--font--weight--heading--legacy);
|
|
28
|
+
--pf-t--global--font--weight--heading--bold: var(--pf-t--global--font--weight--heading--bold--legacy);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// RTL helpers
|
|
32
|
+
|
|
33
|
+
// Sets a block to RTL
|
|
34
|
+
.#{$pf-prefix}m-dir-rtl {
|
|
35
|
+
@include pf-v6-set-inverse;
|
|
36
|
+
|
|
37
|
+
direction: rtl;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Sets a block to LTR
|
|
41
|
+
.#{$pf-prefix}m-dir-ltr {
|
|
42
|
+
@include pf-v6-set-inverse(false);
|
|
43
|
+
|
|
44
|
+
direction: ltr;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Mirrors/flips something horizontally/inline in RTL
|
|
48
|
+
.#{$pf-prefix}m-mirror-inline-rtl {
|
|
49
|
+
@include pf-v6-mirror-inline-on-rtl;
|
|
50
|
+
}
|
|
@@ -1,2 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
@
|
|
1
|
+
// Font Awesome 5 icons https://fontawesome.com
|
|
2
|
+
@use '../sass-utilities' as *;
|
|
3
|
+
|
|
4
|
+
%pf-fa-local {
|
|
5
|
+
@import "../assets/fontawesome/fontawesome";
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@if not($pf-v6-global--disable-fontawesome) {
|
|
9
|
+
@if $pf-v6-global--enable-fontawesome-cdn {
|
|
10
|
+
// stylelint-disable no-invalid-position-at-import-rule
|
|
11
|
+
@import "https://use.fontawesome.com/releases/v5.7.2/css/solid.css";
|
|
12
|
+
@import "https://use.fontawesome.com/releases/v5.7.2/css/fontawesome.css";
|
|
13
|
+
// stylelint-enable no-invalid-position-at-import-rule
|
|
14
|
+
} @else {
|
|
15
|
+
@font-face {
|
|
16
|
+
font-family: "Font Awesome 5 Free";
|
|
17
|
+
font-style: normal;
|
|
18
|
+
font-weight: 900;
|
|
19
|
+
src:
|
|
20
|
+
url("#{$fa-font-path}/fa-solid-900.woff2") format("woff2");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// stylelint-disable
|
|
24
|
+
.fa,
|
|
25
|
+
.fas {
|
|
26
|
+
font-family: "Font Awesome 5 Free";
|
|
27
|
+
font-weight: 900;
|
|
28
|
+
}
|
|
29
|
+
// stylelint-enable
|
|
30
|
+
|
|
31
|
+
* {
|
|
32
|
+
@extend %pf-fa-local;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,2 +1,49 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
1
|
+
@use '../sass-utilities' as *;
|
|
2
|
+
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: RedHatTextVF;
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-weight: 400 500;
|
|
7
|
+
src: url("#{$pf-v6-global--font-path}/RedHatText/RedHatTextVF.woff2") format("woff2-variations");
|
|
8
|
+
font-display: fallback;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@font-face {
|
|
12
|
+
font-family: RedHatTextVF;
|
|
13
|
+
font-style: italic;
|
|
14
|
+
font-weight: 400 500;
|
|
15
|
+
src: url("#{$pf-v6-global--font-path}/RedHatText/RedHatTextVF-Italic.woff2") format("woff2-variations");
|
|
16
|
+
font-display: fallback;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@font-face {
|
|
20
|
+
font-family: RedHatDisplayVF;
|
|
21
|
+
font-style: normal;
|
|
22
|
+
font-weight: 400 700;
|
|
23
|
+
src: url("#{$pf-v6-global--font-path}/RedHatDisplay/RedHatDisplayVF.woff2") format("woff2-variations");
|
|
24
|
+
font-display: fallback;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@font-face {
|
|
28
|
+
font-family: RedHatDisplayVF;
|
|
29
|
+
font-style: italic;
|
|
30
|
+
font-weight: 400 700;
|
|
31
|
+
src: url("#{$pf-v6-global--font-path}/RedHatDisplay/RedHatDisplayVF-Italic.woff2") format("woff2-variations");
|
|
32
|
+
font-display: fallback;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@font-face {
|
|
36
|
+
font-family: RedHatMonoVF;
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
src: url("#{$pf-v6-global--font-path}/RedHatMono/RedHatMonoVF.woff2") format("woff2-variations");
|
|
40
|
+
font-display: fallback;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@font-face {
|
|
44
|
+
font-family: RedHatMonoVF;
|
|
45
|
+
font-style: italic;
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
src: url("#{$pf-v6-global--font-path}/RedHatMono/RedHatMonoVF-Italic.woff2") format("woff2-variations");
|
|
48
|
+
font-display: fallback;
|
|
49
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import "pficons";
|
|
1
|
+
@forward '../assets/pficon/pficon.scss';
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use '../sass-utilities' as *;
|
|
2
|
+
@use "./tokens/workspace-overrides" as *;
|
|
3
|
+
@use "./tokens/tokens-font" as *;
|
|
4
|
+
@use "./tokens/tokens-palette" as *;
|
|
5
|
+
@use "./tokens/tokens-default" as *;
|
|
6
|
+
@use "./tokens/tokens-dark" as *;
|
|
7
|
+
|
|
8
|
+
:where(:root) {
|
|
9
|
+
@include pf-v6-set-inverse(false);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@include pf-v6-rtl {
|
|
13
|
+
@include pf-v6-set-inverse;
|
|
14
|
+
}
|
package/base/reset.scss
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@use '../sass-utilities/scss-variables.scss' as *;
|
|
2
|
+
|
|
3
|
+
// Reset - based on minireset.css v0.0.3 | MIT License github.com/jgthms/minireset.css
|
|
4
|
+
@if $pf-v6-global--enable-reset {
|
|
5
|
+
:where(
|
|
6
|
+
html,
|
|
7
|
+
body,
|
|
8
|
+
p,
|
|
9
|
+
ol,
|
|
10
|
+
ul,
|
|
11
|
+
li,
|
|
12
|
+
dl,
|
|
13
|
+
dt,
|
|
14
|
+
dd,
|
|
15
|
+
blockquote,
|
|
16
|
+
figure,
|
|
17
|
+
fieldset,
|
|
18
|
+
legend,
|
|
19
|
+
textarea,
|
|
20
|
+
pre,
|
|
21
|
+
iframe,
|
|
22
|
+
hr,
|
|
23
|
+
h1,
|
|
24
|
+
h2,
|
|
25
|
+
h3,
|
|
26
|
+
h4,
|
|
27
|
+
h5,
|
|
28
|
+
h6
|
|
29
|
+
) {
|
|
30
|
+
padding: 0;
|
|
31
|
+
margin: 0;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:root {
|
|
1
|
+
:where(:root, .pf-v6-c-about-modal-box) {
|
|
2
2
|
--pf-v6-c-about-modal-box--BackgroundImage: none;
|
|
3
3
|
--pf-v6-c-about-modal-box--BackgroundColor: var(--pf-t--global--background--color--floating--default);
|
|
4
4
|
--pf-v6-c-about-modal-box--BackgroundPosition: bottom right;
|
|
@@ -45,40 +45,40 @@
|
|
|
45
45
|
--pf-v6-c-about-modal-box__content--sm--MarginBottom: var(--pf-t--global--spacer--2xl);
|
|
46
46
|
--pf-v6-c-about-modal-box__content--sm--MarginLeft: var(--pf-t--global--spacer--3xl);
|
|
47
47
|
}
|
|
48
|
-
:where(.pf-v6-m-dir-rtl, [dir=rtl]) :root {
|
|
48
|
+
:where(.pf-v6-m-dir-rtl, [dir=rtl]) :where(:root, .pf-v6-c-about-modal-box) {
|
|
49
49
|
--pf-v6-c-about-modal-box--BackgroundPosition: bottom left;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
@media screen and (min-width: 576px) {
|
|
53
|
-
:root {
|
|
53
|
+
:where(:root, .pf-v6-c-about-modal-box) {
|
|
54
54
|
--pf-v6-c-about-modal-box__brand--PaddingRight: var(--pf-v6-c-about-modal-box__brand--sm--PaddingRight);
|
|
55
55
|
--pf-v6-c-about-modal-box__brand--PaddingLeft: var(--pf-v6-c-about-modal-box__brand--sm--PaddingLeft);
|
|
56
56
|
--pf-v6-c-about-modal-box__brand--PaddingBottom: var(--pf-v6-c-about-modal-box__brand--sm--PaddingBottom);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
@media only screen and (min-width: 576px) {
|
|
60
|
-
:root {
|
|
60
|
+
:where(:root, .pf-v6-c-about-modal-box) {
|
|
61
61
|
--pf-v6-c-about-modal-box__close--PaddingBottom: var(--pf-v6-c-about-modal-box__close--sm--PaddingBottom);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
@media only screen and (min-width: 992px) {
|
|
65
|
-
:root {
|
|
65
|
+
:where(:root, .pf-v6-c-about-modal-box) {
|
|
66
66
|
--pf-v6-c-about-modal-box__close--PaddingRight: var(--pf-v6-c-about-modal-box__close--lg--PaddingRight);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
@media only screen and (min-width: 576px) {
|
|
70
|
-
:root {
|
|
70
|
+
:where(:root, .pf-v6-c-about-modal-box) {
|
|
71
71
|
--pf-v6-c-about-modal-box__header--PaddingRight: var(--pf-v6-c-about-modal-box__header--sm--PaddingRight);
|
|
72
72
|
--pf-v6-c-about-modal-box__header--PaddingLeft: var(--pf-v6-c-about-modal-box__header--sm--PaddingLeft);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
@media only screen and (min-width: 576px) {
|
|
76
|
-
:root {
|
|
76
|
+
:where(:root, .pf-v6-c-about-modal-box) {
|
|
77
77
|
--pf-v6-c-about-modal-box__strapline--PaddingTop: var(--pf-v6-c-about-modal-box__strapline--sm--PaddingTop);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
@media only screen and (min-width: 576px) {
|
|
81
|
-
:root {
|
|
81
|
+
:where(:root, .pf-v6-c-about-modal-box) {
|
|
82
82
|
--pf-v6-c-about-modal-box__content--MarginTop: var(--pf-v6-c-about-modal-box__content--sm--MarginTop);
|
|
83
83
|
--pf-v6-c-about-modal-box__content--MarginRight: var(--pf-v6-c-about-modal-box__content--sm--MarginRight);
|
|
84
84
|
--pf-v6-c-about-modal-box__content--MarginBottom: var(--pf-v6-c-about-modal-box__content--sm--MarginBottom);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
@use '../../sass-utilities' as *;
|
|
2
2
|
|
|
3
|
-
:root {
|
|
4
|
-
|
|
3
|
+
:where(:root, .#{$about-modal-box}) {
|
|
4
|
+
// Component variables
|
|
5
5
|
--#{$about-modal-box}--BackgroundImage: none;
|
|
6
6
|
--#{$about-modal-box}--BackgroundColor: var(--pf-t--global--background--color--floating--default);
|
|
7
7
|
--#{$about-modal-box}--BackgroundPosition: bottom right;
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
$rtl-val: bottom left
|
|
22
22
|
);
|
|
23
23
|
|
|
24
|
-
|
|
25
24
|
// Brand
|
|
26
25
|
--#{$about-modal-box}__brand--PaddingTop: var(--pf-t--global--spacer--2xl);
|
|
27
26
|
--#{$about-modal-box}__brand--PaddingRight: var(--pf-t--global--spacer--xl);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:root {
|
|
1
|
+
:where(:root, .pf-v6-c-accordion) {
|
|
2
2
|
--pf-v6-c-accordion--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
3
3
|
--pf-v6-c-accordion--RowGap: var(--pf-t--global--spacer--xs);
|
|
4
4
|
--pf-v6-c-accordion__item--BorderRadius: var(--pf-t--global--border--radius--200);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
@use '../../sass-utilities' as *;
|
|
2
2
|
|
|
3
|
-
:root {
|
|
3
|
+
:where(:root, .#{$accordion}) {
|
|
4
4
|
// accordion
|
|
5
5
|
--#{$accordion}--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
6
6
|
--#{$accordion}--RowGap: var(--pf-t--global--spacer--xs);
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
--#{$accordion}__toggle-text--Color: var(--pf-t--global--text--color--regular);
|
|
28
28
|
--#{$accordion}__toggle-text--FontWeight: var(--pf-t--global--font--weight--body);
|
|
29
29
|
--#{$accordion}__toggle--m-expanded__toggle-text--FontWeight: var(--pf-t--global--font--weight--body--bold);
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
// accordion toggle icon
|
|
32
32
|
--#{$accordion}__toggle-icon--Transition: .2s ease-in 0s;
|
|
33
33
|
--#{$accordion}__toggle--m-expanded__toggle-icon--Rotate: 90deg;
|
|
34
|
-
|
|
34
|
+
|
|
35
35
|
// accordion expandable content
|
|
36
36
|
--#{$accordion}__expandable-content--MarginRight: var(--pf-t--global--spacer--md);
|
|
37
37
|
--#{$accordion}__expandable-content--MarginBottom: var(--pf-t--global--spacer--md);
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
--#{$accordion}__expandable-content-body--PaddingBottom: var(--pf-t--global--spacer--sm);
|
|
49
49
|
--#{$accordion}__expandable-content-body--PaddingLeft: var(--pf-t--global--spacer--sm);
|
|
50
50
|
--#{$accordion}__expandable-content-body--expandable-content-body--PaddingTop: 0;
|
|
51
|
-
|
|
51
|
+
|
|
52
52
|
// large
|
|
53
53
|
--#{$accordion}--m-display-lg__toggle--PaddingTop: var(--pf-t--global--spacer--md);
|
|
54
54
|
--#{$accordion}--m-display-lg__toggle--PaddingRight: var(--pf-t--global--spacer--md);
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
--#{$accordion}--m-display-lg__toggle--m-expanded__toggle-text--FontWeight: var(--pf-t--global--font--weight--heading--bold);
|
|
62
62
|
--#{$accordion}--m-display-lg__expandable-content--FontSize: var(--pf-t--global--font--size--body--lg);
|
|
63
63
|
--#{$accordion}--m-display-lg__expandable-content--Color: var(--pf-t--global--text--color--regular);
|
|
64
|
-
|
|
64
|
+
|
|
65
65
|
// bordered
|
|
66
66
|
--#{$accordion}--m-bordered--RowGap: 0;
|
|
67
67
|
--#{$accordion}__item--m-bordered--BorderBottomWidth: var(--pf-t--global--border--width--divider--default);
|
|
@@ -105,11 +105,11 @@
|
|
|
105
105
|
|
|
106
106
|
.#{$accordion}__item {
|
|
107
107
|
border-radius: var(--#{$accordion}__item--BorderRadius);
|
|
108
|
-
|
|
108
|
+
|
|
109
109
|
&.pf-m-expanded {
|
|
110
110
|
--#{$accordion}__toggle--PaddingBottom: var(--#{$accordion}__toggle--m-expanded--PaddingBottom);
|
|
111
111
|
--#{$accordion}__toggle-text--FontWeight: var(--#{$accordion}__toggle--m-expanded__toggle-text--FontWeight);
|
|
112
|
-
|
|
112
|
+
|
|
113
113
|
background-color: var(--#{$accordion}__item--m-expanded--BackgroundColor);
|
|
114
114
|
|
|
115
115
|
.#{$accordion}__toggle-icon {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:root {
|
|
1
|
+
:where(:root, .pf-v6-c-alert) {
|
|
2
2
|
--pf-v6-c-alert--BoxShadow: var(--pf-t--global--box-shadow--lg);
|
|
3
3
|
--pf-v6-c-alert--BackgroundColor: var(--pf-t--global--background--color--floating--default);
|
|
4
4
|
--pf-v6-c-alert--GridTemplateColumns: max-content 1fr max-content;
|