@patternfly/patternfly 5.2.0-prerelease.3 → 6.0.0-alpha.10
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 +2 -1
- package/assets/images/logo__pf--reverse-on-md.svg +1 -1
- package/assets/images/pf-c-brand__logo-on-sm.svg +1 -1
- package/base/_globals.scss +13 -13
- package/base/_variables.scss +5 -0
- package/base/patternfly-globals.css +12 -13
- package/base/patternfly-variables.css +860 -0
- package/base/tokens/_tokens-dark.scss +331 -0
- package/base/tokens/_tokens-default.scss +379 -0
- package/base/tokens/_tokens-font.scss +96 -0
- package/base/tokens/_tokens-palette.scss +75 -0
- package/components/Alert/alert-group.css +20 -16
- package/components/Alert/alert-group.scss +20 -16
- package/components/Alert/alert.css +57 -84
- package/components/Alert/alert.scss +60 -78
- package/components/Button/button.css +142 -179
- package/components/Button/button.scss +161 -141
- package/components/Check/check.css +8 -10
- package/components/Check/check.scss +10 -15
- package/components/Content/content.css +67 -67
- package/components/Content/content.scss +68 -68
- package/components/Dropdown/dropdown.css +3 -1
- package/components/Dropdown/dropdown.scss +6 -2
- package/components/Masthead/masthead.css +49 -103
- package/components/Masthead/masthead.scss +105 -132
- package/components/Menu/menu.css +0 -3
- package/components/Menu/menu.scss +3 -7
- package/components/MenuToggle/menu-toggle.css +59 -80
- package/components/MenuToggle/menu-toggle.scss +65 -89
- package/components/Nav/nav.css +42 -40
- package/components/Nav/nav.scss +42 -42
- package/components/NotificationBadge/notification-badge.css +56 -81
- package/components/NotificationBadge/notification-badge.scss +60 -97
- package/components/Page/page.css +80 -70
- package/components/Page/page.scss +80 -68
- package/components/Radio/radio.css +10 -13
- package/components/Radio/radio.scss +11 -17
- package/components/Switch/switch.css +1 -1
- package/components/Switch/switch.scss +1 -1
- package/components/Table/table-grid.css +8 -8
- package/components/Table/table-grid.scss +8 -8
- package/components/Table/table.css +92 -95
- package/components/Table/table.scss +94 -103
- package/components/Toolbar/toolbar.css +5 -11
- package/components/Toolbar/toolbar.scss +7 -19
- package/docs/components/Alert/examples/Alert.md +1 -1
- package/docs/components/Brand/examples/Brand.md +32 -75
- package/docs/components/Card/examples/Card.md +2 -110
- package/docs/components/Masthead/examples/masthead.md +7 -54
- package/docs/components/MenuToggle/examples/MenuToggle.md +42 -42
- package/docs/components/Nav/examples/Navigation.css +2 -1
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +5 -7
- package/docs/components/Toolbar/examples/Toolbar.md +9 -11
- package/docs/demos/AboutModal/examples/AboutModal.md +83 -8
- package/docs/demos/Alert/examples/Alert.md +249 -24
- package/docs/demos/BackToTop/examples/BackToTop.md +83 -8
- package/docs/demos/Banner/examples/Banner.md +168 -16
- package/docs/demos/CardView/examples/CardView.md +83 -8
- package/docs/demos/ContextSelector/examples/ContextSelector.md +332 -32
- package/docs/demos/Dashboard/examples/Dashboard.md +83 -8
- package/docs/demos/DataList/examples/DataList.md +332 -32
- package/docs/demos/DescriptionList/examples/DescriptionList.md +249 -24
- package/docs/demos/Drawer/examples/Drawer.md +415 -40
- package/docs/demos/JumpLinks/examples/JumpLinks.md +498 -48
- package/docs/demos/Masthead/examples/Masthead.md +742 -67
- package/docs/demos/Modal/examples/Modal.md +498 -48
- package/docs/demos/Nav/examples/Nav.md +664 -64
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +415 -40
- package/docs/demos/Page/examples/Page.md +747 -72
- package/docs/demos/Page/examples/Penta.md +746 -0
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +581 -56
- package/docs/demos/Skeleton/examples/Skeleton.md +83 -8
- package/docs/demos/Table/examples/Table.md +1245 -120
- package/docs/demos/Tabs/examples/Tabs.md +498 -48
- package/docs/demos/Toolbar/examples/Toolbar.md +166 -16
- package/docs/demos/Wizard/examples/Wizard.md +747 -72
- package/package.json +4 -3
- package/patternfly-base-no-globals-theme-dark-unversioned.css +860 -0
- package/patternfly-base-no-globals.css +860 -0
- package/patternfly-base-theme-dark-unversioned.css +872 -13
- package/patternfly-base.css +872 -13
- package/patternfly-no-globals.css +1609 -897
- package/patternfly-theme-dark-unversioned.css +1621 -910
- package/patternfly.css +1621 -910
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/assets/images/pf-c-brand__logo-on-lg-white.svg +0 -32
- package/assets/images/pf-c-brand__logo-on-md-white.svg +0 -42
- package/assets/images/pf-c-brand__logo-on-sm-white.svg +0 -17
- package/assets/images/pf-c-brand__logo-on-xl-white.svg +0 -39
- package/assets/images/pf_logo_white.hbs +0 -35
- package/assets/images/pf_logo_white.svg +0 -38
- package/components/Alert/themes/dark/alert.scss +0 -17
- package/components/Masthead/themes/dark/masthead.scss +0 -14
- package/components/NotificationBadge/themes/dark/notification-badge.scss +0 -10
- package/docs/components/Brand/examples/Brand.css +0 -12
- package/docs/components/NotificationBadge/examples/NotificationBadge.css +0 -3
|
@@ -2,187 +2,194 @@
|
|
|
2
2
|
|
|
3
3
|
.#{$button} {
|
|
4
4
|
// Component
|
|
5
|
-
--#{$button}--PaddingTop: var(
|
|
6
|
-
--#{$button}--PaddingRight: var(
|
|
7
|
-
--#{$button}--PaddingBottom: var(
|
|
8
|
-
--#{$button}--PaddingLeft: var(
|
|
9
|
-
--#{$button}--LineHeight: var(
|
|
10
|
-
--#{$button}--FontWeight: var(
|
|
11
|
-
--#{$button}--FontSize: var(
|
|
5
|
+
--#{$button}--PaddingTop: var(--pf-t--global--spacer--sm);
|
|
6
|
+
--#{$button}--PaddingRight: var(--pf-t--global--spacer--lg);
|
|
7
|
+
--#{$button}--PaddingBottom: var(--pf-t--global--spacer--sm);
|
|
8
|
+
--#{$button}--PaddingLeft: var(--pf-t--global--spacer--lg);
|
|
9
|
+
--#{$button}--LineHeight: var(--pf-t--global--font--line-height--body);
|
|
10
|
+
--#{$button}--FontWeight: var(--pf-t--global--font--weight--body);
|
|
11
|
+
--#{$button}--FontSize: var(--pf-t--global--font--size--body--md);
|
|
12
12
|
--#{$button}--BackgroundColor: transparent;
|
|
13
|
-
--#{$button}--BorderRadius: var(
|
|
14
|
-
--#{$button}--after--BorderRadius: var(--#{$pf-global}--BorderRadius--sm);
|
|
13
|
+
--#{$button}--BorderRadius: var(--pf-t--global--border--radius--pill);
|
|
15
14
|
--#{$button}--after--BorderColor: transparent;
|
|
16
|
-
--#{$button}--after--BorderWidth: var(
|
|
15
|
+
--#{$button}--after--BorderWidth: var(--pf-t--global--border--width--button--default);
|
|
17
16
|
|
|
18
17
|
// Hover state variables
|
|
19
|
-
--#{$button}--hover--after--BorderWidth: var(
|
|
18
|
+
--#{$button}--hover--after--BorderWidth: var(--pf-t--global--border--width--button--hover);
|
|
20
19
|
|
|
21
20
|
// Focus state variables
|
|
22
|
-
--#{$button}--focus--after--BorderWidth: var(
|
|
21
|
+
--#{$button}--focus--after--BorderWidth: var(--pf-t--global--border--width--button--active);
|
|
23
22
|
|
|
24
23
|
// Active state variables
|
|
25
|
-
--#{$button}--active--after--BorderWidth: var(
|
|
24
|
+
--#{$button}--active--after--BorderWidth: var(--pf-t--global--border--width--button--active);
|
|
26
25
|
|
|
27
26
|
// Disabled state variables
|
|
28
|
-
--#{$button}--disabled--Color: var(
|
|
29
|
-
--#{$button}--disabled--BackgroundColor: var(
|
|
27
|
+
--#{$button}--disabled--Color: var(--pf-t--global--text--color--disabled--default);
|
|
28
|
+
--#{$button}--disabled--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
|
|
30
29
|
--#{$button}--disabled--after--BorderColor: transparent;
|
|
31
30
|
|
|
32
31
|
// Primary btn
|
|
33
|
-
--#{$button}--m-primary--BackgroundColor: var(
|
|
34
|
-
--#{$button}--m-primary--Color: var(
|
|
35
|
-
--#{$button}--m-primary--hover--BackgroundColor: var(
|
|
36
|
-
--#{$button}--m-primary--hover--Color: var(
|
|
37
|
-
--#{$button}--m-primary--focus--BackgroundColor: var(
|
|
38
|
-
--#{$button}--m-primary--focus--Color: var(
|
|
39
|
-
--#{$button}--m-primary--active--BackgroundColor: var(
|
|
40
|
-
--#{$button}--m-primary--active--Color: var(
|
|
32
|
+
--#{$button}--m-primary--BackgroundColor: var(--pf-t--global--color--brand--default);
|
|
33
|
+
--#{$button}--m-primary--Color: var(--pf-t--global--text--color--on-brand--default);
|
|
34
|
+
--#{$button}--m-primary--hover--BackgroundColor: var(--pf-t--global--color--brand--hover);
|
|
35
|
+
--#{$button}--m-primary--hover--Color: var(--pf-t--global--text--color--on-brand--hover);
|
|
36
|
+
--#{$button}--m-primary--focus--BackgroundColor: var(--pf-t--global--color--brand--active);
|
|
37
|
+
--#{$button}--m-primary--focus--Color: var(--pf-t--global--text--color--on-brand--active);
|
|
38
|
+
--#{$button}--m-primary--active--BackgroundColor: var(--pf-t--global--color--brand--active);
|
|
39
|
+
--#{$button}--m-primary--active--Color: var(--pf-t--global--text--color--on-brand--active);
|
|
41
40
|
|
|
42
41
|
// Secondary btn
|
|
43
42
|
--#{$button}--m-secondary--BackgroundColor: transparent;
|
|
44
|
-
--#{$button}--m-secondary--after--BorderColor: var(
|
|
45
|
-
--#{$button}--m-secondary--Color: var(
|
|
43
|
+
--#{$button}--m-secondary--after--BorderColor: var(--pf-t--global--border--color--brand--default);
|
|
44
|
+
--#{$button}--m-secondary--Color: var(--pf-t--global--text--color--brand--default);
|
|
46
45
|
--#{$button}--m-secondary--hover--BackgroundColor: transparent;
|
|
47
|
-
--#{$button}--m-secondary--hover--after--BorderColor: var(
|
|
48
|
-
--#{$button}--m-secondary--hover--Color: var(
|
|
46
|
+
--#{$button}--m-secondary--hover--after--BorderColor: var(--pf-t--global--border--color--brand--hover);
|
|
47
|
+
--#{$button}--m-secondary--hover--Color: var(--pf-t--global--text--color--brand--hover);
|
|
49
48
|
--#{$button}--m-secondary--focus--BackgroundColor: transparent;
|
|
50
|
-
--#{$button}--m-secondary--focus--after--BorderColor: var(
|
|
51
|
-
--#{$button}--m-secondary--focus--Color: var(
|
|
49
|
+
--#{$button}--m-secondary--focus--after--BorderColor: var(--pf-t--global--border--color--brand--active);
|
|
50
|
+
--#{$button}--m-secondary--focus--Color: var(--pf-t--global--text--color--brand--active);
|
|
52
51
|
--#{$button}--m-secondary--active--BackgroundColor: transparent;
|
|
53
|
-
--#{$button}--m-secondary--active--after--BorderColor: var(
|
|
54
|
-
--#{$button}--m-secondary--active--Color: var(
|
|
52
|
+
--#{$button}--m-secondary--active--after--BorderColor: var(--pf-t--global--border--color--brand--active);
|
|
53
|
+
--#{$button}--m-secondary--active--Color: var(--pf-t--global--text--color--brand--active);
|
|
55
54
|
|
|
56
55
|
// Secondary danger
|
|
57
56
|
--#{$button}--m-secondary--m-danger--BackgroundColor: transparent;
|
|
58
|
-
--#{$button}--m-secondary--m-danger--Color: var(
|
|
59
|
-
--#{$button}--m-secondary--m-danger--after--BorderColor: var(
|
|
57
|
+
--#{$button}--m-secondary--m-danger--Color: var(--pf-t--global--text--color--status--danger--default);
|
|
58
|
+
--#{$button}--m-secondary--m-danger--after--BorderColor: var(--pf-t--global--border--color--status--danger--default);
|
|
60
59
|
--#{$button}--m-secondary--m-danger--hover--BackgroundColor: transparent;
|
|
61
|
-
--#{$button}--m-secondary--m-danger--hover--Color: var(
|
|
62
|
-
--#{$button}--m-secondary--m-danger--hover--after--BorderColor: var(
|
|
60
|
+
--#{$button}--m-secondary--m-danger--hover--Color: var(--pf-t--global--text--color--status--danger--hover);
|
|
61
|
+
--#{$button}--m-secondary--m-danger--hover--after--BorderColor: var(--pf-t--global--border--color--status--danger--hover);
|
|
63
62
|
--#{$button}--m-secondary--m-danger--focus--BackgroundColor: transparent;
|
|
64
|
-
--#{$button}--m-secondary--m-danger--focus--Color: var(
|
|
65
|
-
--#{$button}--m-secondary--m-danger--focus--after--BorderColor: var(
|
|
63
|
+
--#{$button}--m-secondary--m-danger--focus--Color: var(--pf-t--global--text--color--status--danger--active);
|
|
64
|
+
--#{$button}--m-secondary--m-danger--focus--after--BorderColor: var(--pf-t--global--border--color--status--danger--active);
|
|
66
65
|
--#{$button}--m-secondary--m-danger--active--BackgroundColor: transparent;
|
|
67
|
-
--#{$button}--m-secondary--m-danger--active--Color: var(
|
|
68
|
-
--#{$button}--m-secondary--m-danger--active--after--BorderColor: var(
|
|
66
|
+
--#{$button}--m-secondary--m-danger--active--Color: var(--pf-t--global--text--color--status--danger--active);
|
|
67
|
+
--#{$button}--m-secondary--m-danger--active--after--BorderColor: var(--pf-t--global--border--color--status--danger--active);
|
|
69
68
|
|
|
70
69
|
// Tertiary btn
|
|
71
70
|
--#{$button}--m-tertiary--BackgroundColor: transparent;
|
|
72
|
-
--#{$button}--m-tertiary--after--BorderColor: var(
|
|
73
|
-
--#{$button}--m-tertiary--Color: var(
|
|
71
|
+
--#{$button}--m-tertiary--after--BorderColor: var(--pf-t--global--border--color--default);
|
|
72
|
+
--#{$button}--m-tertiary--Color: var(--pf-t--global--text--color--regular);
|
|
74
73
|
--#{$button}--m-tertiary--hover--BackgroundColor: transparent;
|
|
75
|
-
--#{$button}--m-tertiary--hover--after--BorderColor: var(
|
|
76
|
-
--#{$button}--m-tertiary--hover--Color: var(
|
|
74
|
+
--#{$button}--m-tertiary--hover--after--BorderColor: var(--pf-t--global--border--color--hover);
|
|
75
|
+
--#{$button}--m-tertiary--hover--Color: var(--pf-t--global--text--color--regular);
|
|
77
76
|
--#{$button}--m-tertiary--focus--BackgroundColor: transparent;
|
|
78
|
-
--#{$button}--m-tertiary--focus--after--BorderColor: var(
|
|
79
|
-
--#{$button}--m-tertiary--focus--Color: var(
|
|
77
|
+
--#{$button}--m-tertiary--focus--after--BorderColor: var(--pf-t--global--border--color--active);
|
|
78
|
+
--#{$button}--m-tertiary--focus--Color: var(--pf-t--global--text--color--regular);
|
|
80
79
|
--#{$button}--m-tertiary--active--BackgroundColor: transparent;
|
|
81
|
-
--#{$button}--m-tertiary--active--after--BorderColor: var(
|
|
82
|
-
--#{$button}--m-tertiary--active--Color: var(
|
|
80
|
+
--#{$button}--m-tertiary--active--after--BorderColor: var(--pf-t--global--border--color--active);
|
|
81
|
+
--#{$button}--m-tertiary--active--Color: var(--pf-t--global--text--color--regular);
|
|
83
82
|
|
|
84
83
|
// Warning btn
|
|
85
|
-
|
|
86
|
-
--#{$button}--m-warning--
|
|
87
|
-
--#{$button}--m-warning--
|
|
88
|
-
--#{$button}--m-warning--hover--
|
|
89
|
-
--#{$button}--m-warning--
|
|
90
|
-
--#{$button}--m-warning--focus--
|
|
91
|
-
--#{$button}--m-warning--
|
|
92
|
-
--#{$button}--m-warning--active--
|
|
84
|
+
// TODO need active state text?
|
|
85
|
+
--#{$button}--m-warning--BackgroundColor: var(--pf-t--global--color--status--warning--default);
|
|
86
|
+
--#{$button}--m-warning--Color: var(--pf-t--global--text--color--status--on-warning--default);
|
|
87
|
+
--#{$button}--m-warning--hover--BackgroundColor: var(--pf-t--global--color--status--warning--hover);
|
|
88
|
+
--#{$button}--m-warning--hover--Color: var(--pf-t--global--text--color--status--on-warning--hover);
|
|
89
|
+
--#{$button}--m-warning--focus--BackgroundColor: var(--pf-t--global--color--status--warning--active);
|
|
90
|
+
--#{$button}--m-warning--focus--Color: var(--pf-t--global--text--color--status--on-warning--hover);
|
|
91
|
+
--#{$button}--m-warning--active--BackgroundColor: var(--pf-t--global--color--status--warning--active);
|
|
92
|
+
--#{$button}--m-warning--active--Color: var(--pf-t--global--text--color--status--on-warning--hover);
|
|
93
93
|
|
|
94
94
|
// Danger btn
|
|
95
|
-
|
|
96
|
-
--#{$button}--m-danger--
|
|
97
|
-
--#{$button}--m-danger--
|
|
98
|
-
--#{$button}--m-danger--hover--
|
|
99
|
-
--#{$button}--m-danger--
|
|
100
|
-
--#{$button}--m-danger--focus--
|
|
101
|
-
--#{$button}--m-danger--
|
|
102
|
-
--#{$button}--m-danger--active--
|
|
95
|
+
// TODO need active state text?
|
|
96
|
+
--#{$button}--m-danger--BackgroundColor: var(--pf-t--global--color--status--danger--default);
|
|
97
|
+
--#{$button}--m-danger--Color: var(--pf-t--global--text--color--status--on-danger--default);
|
|
98
|
+
--#{$button}--m-danger--hover--BackgroundColor: var(--pf-t--global--color--status--danger--hover);
|
|
99
|
+
--#{$button}--m-danger--hover--Color: var(--pf-t--global--text--color--status--on-danger--hover);
|
|
100
|
+
--#{$button}--m-danger--focus--BackgroundColor: var(--pf-t--global--color--status--danger--active);
|
|
101
|
+
--#{$button}--m-danger--focus--Color: var(--pf-t--global--text--color--status--on-danger--hover);
|
|
102
|
+
--#{$button}--m-danger--active--BackgroundColor: var(--pf-t--global--color--status--danger--active);
|
|
103
|
+
--#{$button}--m-danger--active--Color: var(--pf-t--global--text--color--status--on-danger--hover);
|
|
103
104
|
|
|
104
105
|
// Link btn
|
|
105
106
|
--#{$button}--m-link--BackgroundColor: transparent;
|
|
106
|
-
--#{$button}--m-link--Color: var(
|
|
107
|
+
--#{$button}--m-link--Color: var(--pf-t--global--text--color--link--default);
|
|
107
108
|
--#{$button}--m-link--hover--BackgroundColor: transparent;
|
|
108
|
-
--#{$button}--m-link--hover--Color: var(
|
|
109
|
+
--#{$button}--m-link--hover--Color: var(--pf-t--global--text--color--link--hover);
|
|
109
110
|
--#{$button}--m-link--focus--BackgroundColor: transparent;
|
|
110
|
-
--#{$button}--m-link--focus--Color: var(
|
|
111
|
+
--#{$button}--m-link--focus--Color: var(--pf-t--global--text--color--link--hover);
|
|
111
112
|
--#{$button}--m-link--active--BackgroundColor: transparent;
|
|
112
|
-
--#{$button}--m-link--active--Color: var(
|
|
113
|
+
--#{$button}--m-link--active--Color: var(--pf-t--global--text--color--link--hover);
|
|
113
114
|
--#{$button}--m-link--disabled--BackgroundColor: transparent;
|
|
114
|
-
--#{$button}--m-link--disabled--Color: var(
|
|
115
|
+
--#{$button}--m-link--disabled--Color: var(--pf-t--global--text--color--disabled--light);
|
|
116
|
+
--#{$button}--m-link--not--m-inline--TextDecoration: none;
|
|
115
117
|
--#{$button}--m-link--m-inline--FontSize: inherit;
|
|
116
|
-
--#{$button}--m-link--m-inline--hover--TextDecoration: var(
|
|
117
|
-
--#{$button}--m-link--m-inline--hover--Color: var(
|
|
118
|
+
--#{$button}--m-link--m-inline--hover--TextDecoration: var(--pf-t--global--link--text-decoration--hover);
|
|
119
|
+
--#{$button}--m-link--m-inline--hover--Color: var(--pf-t--global--text--color--link--hover);
|
|
118
120
|
--#{$button}--m-link--m-inline--PaddingTop: 0;
|
|
119
121
|
--#{$button}--m-link--m-inline--PaddingRight: 0;
|
|
120
122
|
--#{$button}--m-link--m-inline--PaddingBottom: 0;
|
|
121
123
|
--#{$button}--m-link--m-inline--PaddingLeft: 0;
|
|
122
|
-
--#{$button}--m-link--m-inline__progress--Left: var(
|
|
123
|
-
--#{$button}--m-link--m-inline--m-in-progress--PaddingLeft: calc(var(--#{$button}--m-link--m-inline__progress--Left) + 1rem + var(
|
|
124
|
+
--#{$button}--m-link--m-inline__progress--Left: var(--pf-t--global--spacer--xs);
|
|
125
|
+
--#{$button}--m-link--m-inline--m-in-progress--PaddingLeft: calc(var(--#{$button}--m-link--m-inline__progress--Left) + 1rem + var(--pf-t--global--spacer--sm));
|
|
124
126
|
|
|
125
127
|
// Link danger
|
|
126
128
|
--#{$button}--m-link--m-danger--BackgroundColor: transparent;
|
|
127
|
-
--#{$button}--m-link--m-danger--Color: var(
|
|
129
|
+
--#{$button}--m-link--m-danger--Color: var(--pf-t--global--text--color--status--danger--default);
|
|
128
130
|
--#{$button}--m-link--m-danger--hover--BackgroundColor: transparent;
|
|
129
|
-
--#{$button}--m-link--m-danger--hover--Color: var(
|
|
131
|
+
--#{$button}--m-link--m-danger--hover--Color: var(--pf-t--global--text--color--status--danger--hover);
|
|
130
132
|
--#{$button}--m-link--m-danger--focus--BackgroundColor: transparent;
|
|
131
|
-
--#{$button}--m-link--m-danger--focus--Color: var(
|
|
133
|
+
--#{$button}--m-link--m-danger--focus--Color: var(--pf-t--global--text--color--status--danger--active);
|
|
132
134
|
--#{$button}--m-link--m-danger--active--BackgroundColor: transparent;
|
|
133
|
-
--#{$button}--m-link--m-danger--active--Color: var(
|
|
135
|
+
--#{$button}--m-link--m-danger--active--Color: var(--pf-t--global--text--color--status--danger--active);
|
|
134
136
|
|
|
135
137
|
// Plain btn
|
|
136
|
-
--#{$button}--m-plain--BackgroundColor:
|
|
137
|
-
--#{$button}--m-plain--
|
|
138
|
-
--#{$button}--m-plain--
|
|
139
|
-
--#{$button}--m-plain--
|
|
138
|
+
--#{$button}--m-plain--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
|
|
139
|
+
--#{$button}--m-plain--BorderRadius: var(--pf-t--global--border--radius--small);
|
|
140
|
+
--#{$button}--m-plain--PaddingTop: var(--pf-t--global--spacer--sm);
|
|
141
|
+
--#{$button}--m-plain--PaddingRight: var(--pf-t--global--spacer--sm);
|
|
142
|
+
--#{$button}--m-plain--PaddingBottom: var(--pf-t--global--spacer--sm);
|
|
143
|
+
--#{$button}--m-plain--PaddingLeft: var(--pf-t--global--spacer--sm);
|
|
144
|
+
--#{$button}--m-plain--Color: var(--pf-t--global--icon--color--regular);
|
|
145
|
+
--#{$button}--m-plain--hover--BackgroundColor: var(--pf-t--global--background--color--action--plain--hover);
|
|
146
|
+
--#{$button}--m-plain--hover--Color: var(--pf-t--global--text--color--regular);
|
|
140
147
|
--#{$button}--m-plain--focus--BackgroundColor: transparent;
|
|
141
|
-
--#{$button}--m-plain--focus--Color: var(
|
|
148
|
+
--#{$button}--m-plain--focus--Color: var(--pf-t--global--text--color--regular);
|
|
142
149
|
--#{$button}--m-plain--active--BackgroundColor: transparent;
|
|
143
|
-
--#{$button}--m-plain--active--Color: var(
|
|
144
|
-
--#{$button}--m-plain--disabled--Color: var(
|
|
150
|
+
--#{$button}--m-plain--active--Color: var(--pf-t--global--text--color--regular);
|
|
151
|
+
--#{$button}--m-plain--disabled--Color: var(--pf-t--global--icon--color--disabled);
|
|
145
152
|
--#{$button}--m-plain--disabled--BackgroundColor: transparent;
|
|
146
153
|
|
|
147
154
|
// Control Button
|
|
148
|
-
--#{$button}--m-control--BackgroundColor: var(
|
|
149
|
-
--#{$button}--m-control--Color: var(
|
|
150
|
-
--#{$button}--m-control--BorderRadius:
|
|
151
|
-
--#{$button}--m-control--after--BorderWidth: var(
|
|
152
|
-
--#{$button}--m-control--after--BorderTopColor: var(
|
|
153
|
-
--#{$button}--m-control--after--BorderRightColor: var(
|
|
154
|
-
--#{$button}--m-control--after--BorderBottomColor: var(
|
|
155
|
-
--#{$button}--m-control--after--BorderLeftColor: var(
|
|
156
|
-
--#{$button}--m-control--disabled--BackgroundColor: var(
|
|
157
|
-
--#{$button}--m-control--hover--BackgroundColor: var(
|
|
158
|
-
--#{$button}--m-control--hover--Color: var(
|
|
159
|
-
--#{$button}--m-control--hover--after--BorderBottomWidth: var(
|
|
160
|
-
--#{$button}--m-control--hover--after--BorderBottomColor: var(
|
|
161
|
-
--#{$button}--m-control--active--BackgroundColor: var(
|
|
162
|
-
--#{$button}--m-control--active--Color: var(
|
|
163
|
-
--#{$button}--m-control--active--after--BorderBottomWidth: var(
|
|
164
|
-
--#{$button}--m-control--active--after--BorderBottomColor: var(
|
|
165
|
-
--#{$button}--m-control--focus--BackgroundColor: var(
|
|
166
|
-
--#{$button}--m-control--focus--Color: var(
|
|
167
|
-
--#{$button}--m-control--focus--after--BorderBottomWidth: var(
|
|
168
|
-
--#{$button}--m-control--focus--after--BorderBottomColor: var(
|
|
169
|
-
--#{$button}--m-control--m-expanded--BackgroundColor: var(
|
|
170
|
-
--#{$button}--m-control--m-expanded--Color: var(
|
|
171
|
-
--#{$button}--m-control--m-expanded--after--BorderBottomWidth: var(
|
|
172
|
-
--#{$button}--m-control--m-expanded--after--BorderBottomColor: var(
|
|
155
|
+
--#{$button}--m-control--BackgroundColor: var(--pf-t--global--background--color--control--default);
|
|
156
|
+
--#{$button}--m-control--Color: var(--pf-t--global--text--color--subtle);
|
|
157
|
+
--#{$button}--m-control--BorderRadius: var(--pf-t--global--border--radius--small);
|
|
158
|
+
--#{$button}--m-control--after--BorderWidth: var(--pf-t--global--border--width--control--default);
|
|
159
|
+
--#{$button}--m-control--after--BorderTopColor: var(--pf-t--global--border--color--default);
|
|
160
|
+
--#{$button}--m-control--after--BorderRightColor: var(--pf-t--global--border--color--default);
|
|
161
|
+
--#{$button}--m-control--after--BorderBottomColor: var(--pf-t--global--border--color--default);
|
|
162
|
+
--#{$button}--m-control--after--BorderLeftColor: var(--pf-t--global--border--color--default);
|
|
163
|
+
--#{$button}--m-control--disabled--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
|
|
164
|
+
--#{$button}--m-control--hover--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
165
|
+
--#{$button}--m-control--hover--Color: var(--pf-t--global--text--color--regular);
|
|
166
|
+
--#{$button}--m-control--hover--after--BorderBottomWidth: var(--pf-t--global--border--width--control--hover);
|
|
167
|
+
--#{$button}--m-control--hover--after--BorderBottomColor: var(--pf-t--global--background--color--secondary--hover);
|
|
168
|
+
--#{$button}--m-control--active--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
169
|
+
--#{$button}--m-control--active--Color: var(--pf-t--global--text--color--regular);
|
|
170
|
+
--#{$button}--m-control--active--after--BorderBottomWidth: var(--pf-t--global--border--width--control--active);
|
|
171
|
+
--#{$button}--m-control--active--after--BorderBottomColor: var(--pf-t--global--color--brand--active);
|
|
172
|
+
--#{$button}--m-control--focus--BackgroundColor: var(--pf-t--global--background--color--brand--active);
|
|
173
|
+
--#{$button}--m-control--focus--Color: var(--pf-t--global--text--color--regular);
|
|
174
|
+
--#{$button}--m-control--focus--after--BorderBottomWidth: var(--pf-t--global--border--width--control--active);
|
|
175
|
+
--#{$button}--m-control--focus--after--BorderBottomColor: var(--pf-t--global--color--brand--hover);
|
|
176
|
+
--#{$button}--m-control--m-expanded--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
177
|
+
--#{$button}--m-control--m-expanded--Color: var(--pf-t--global--text--color--inverse);
|
|
178
|
+
--#{$button}--m-control--m-expanded--after--BorderBottomWidth: var(--pf-t--global--border--width--200);
|
|
179
|
+
--#{$button}--m-control--m-expanded--after--BorderBottomColor: var(--pf-t--global--color--brand--hover);
|
|
173
180
|
--#{$button}--m-small--FontSize: var(--#{$pf-global}--FontSize--sm);
|
|
174
181
|
|
|
175
182
|
// CTA Button
|
|
176
|
-
--#{$button}--m-display-lg--PaddingTop: var(
|
|
177
|
-
--#{$button}--m-display-lg--PaddingRight: var(
|
|
178
|
-
--#{$button}--m-display-lg--PaddingBottom: var(
|
|
179
|
-
--#{$button}--m-display-lg--PaddingLeft: var(
|
|
180
|
-
--#{$button}--m-display-lg--FontWeight: var(
|
|
181
|
-
--#{$button}--m-link--m-display-lg--FontSize: var(
|
|
183
|
+
--#{$button}--m-display-lg--PaddingTop: var(--pf-t--global--spacer--md);
|
|
184
|
+
--#{$button}--m-display-lg--PaddingRight: var(--pf-t--global--spacer--xl);
|
|
185
|
+
--#{$button}--m-display-lg--PaddingBottom: var(--pf-t--global--spacer--md);
|
|
186
|
+
--#{$button}--m-display-lg--PaddingLeft: var(--pf-t--global--spacer--xl);
|
|
187
|
+
--#{$button}--m-display-lg--FontWeight: var(--pf-t--global--font--weight--body--bold);
|
|
188
|
+
--#{$button}--m-link--m-display-lg--FontSize: var(--pf-t--global--font--size--body--lg);
|
|
182
189
|
|
|
183
190
|
// Styles for an icon in button
|
|
184
|
-
--#{$button}__icon--m-start--MarginRight: var(
|
|
185
|
-
--#{$button}__icon--m-end--MarginLeft: var(
|
|
191
|
+
--#{$button}__icon--m-start--MarginRight: var(--pf-t--global--spacer--xs);
|
|
192
|
+
--#{$button}__icon--m-end--MarginLeft: var(--pf-t--global--spacer--xs);
|
|
186
193
|
|
|
187
194
|
// Progress
|
|
188
195
|
--#{$button}__progress--width: calc(var(--#{$pf-global}--icon--FontSize--md) + var(--#{$pf-global}--spacer--sm)); // matches medium spinner diameter plus a spacer
|
|
@@ -190,23 +197,23 @@
|
|
|
190
197
|
--#{$button}__progress--TranslateY: -50%;
|
|
191
198
|
--#{$button}__progress--TranslateX: 0;
|
|
192
199
|
--#{$button}__progress--Top: 50%;
|
|
193
|
-
--#{$button}__progress--Left: var(
|
|
200
|
+
--#{$button}__progress--Left: var(--pf-t--global--spacer--md);
|
|
194
201
|
--#{$button}--m-progress--TransitionProperty: padding;
|
|
195
202
|
--#{$button}--m-progress--TransitionDuration: var(--#{$pf-global}--TransitionDuration);
|
|
196
|
-
--#{$button}--m-progress--PaddingRight: calc(var(
|
|
197
|
-
--#{$button}--m-progress--PaddingLeft: calc(var(
|
|
198
|
-
--#{$button}--m-in-progress--PaddingRight: var(
|
|
199
|
-
--#{$button}--m-in-progress--PaddingLeft: calc(var(
|
|
200
|
-
--#{$button}--m-in-progress--m-plain--Color: var(
|
|
203
|
+
--#{$button}--m-progress--PaddingRight: calc(var(--pf-t--global--spacer--md) + var(--#{$button}__progress--width) / 2);
|
|
204
|
+
--#{$button}--m-progress--PaddingLeft: calc(var(--pf-t--global--spacer--md) + var(--#{$button}__progress--width) / 2);
|
|
205
|
+
--#{$button}--m-in-progress--PaddingRight: var(--pf-t--global--spacer--md);
|
|
206
|
+
--#{$button}--m-in-progress--PaddingLeft: calc(var(--pf-t--global--spacer--md) + var(--#{$button}__progress--width));
|
|
207
|
+
--#{$button}--m-in-progress--m-plain--Color: var(--pf-t--global--color--brand--default);
|
|
201
208
|
--#{$button}--m-in-progress--m-plain__progress--Left: 50%;
|
|
202
209
|
--#{$button}--m-in-progress--m-plain__progress--TranslateX: -50%;
|
|
203
210
|
|
|
204
211
|
// Count
|
|
205
212
|
--#{$button}__count--MarginLeft: var(--#{$pf-global}--spacer--sm);
|
|
206
|
-
--#{$button}--disabled__c-badge--Color: var(
|
|
207
|
-
--#{$button}--disabled__c-badge--BackgroundColor: var(
|
|
208
|
-
--#{$button}--m-primary__c-badge--BorderColor: var(
|
|
209
|
-
--#{$button}--m-primary__c-badge--BorderWidth: var(
|
|
213
|
+
--#{$button}--disabled__c-badge--Color: var(--pf-t--global--text--color--disabled--default);
|
|
214
|
+
--#{$button}--disabled__c-badge--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
|
|
215
|
+
--#{$button}--m-primary__c-badge--BorderColor: var(--pf-t--global--border--color--default);
|
|
216
|
+
--#{$button}--m-primary__c-badge--BorderWidth: var(--pf-t--global--border--width--300); // used only for primary, unread, not disabled
|
|
210
217
|
|
|
211
218
|
position: relative;
|
|
212
219
|
display: inline-block;
|
|
@@ -233,7 +240,7 @@
|
|
|
233
240
|
content: "";
|
|
234
241
|
border: var(--#{$button}--after--BorderWidth) solid;
|
|
235
242
|
border-color: var(--#{$button}--after--BorderColor);
|
|
236
|
-
border-radius: var(--#{$button}--
|
|
243
|
+
border-radius: var(--#{$button}--BorderRadius);
|
|
237
244
|
}
|
|
238
245
|
|
|
239
246
|
&:hover {
|
|
@@ -288,11 +295,11 @@
|
|
|
288
295
|
--#{$button}--m-primary--BackgroundColor: var(--#{$button}--m-primary--focus--BackgroundColor);
|
|
289
296
|
}
|
|
290
297
|
|
|
291
|
-
&:active,
|
|
292
|
-
&.pf-m-active {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
298
|
+
// &:active,
|
|
299
|
+
// &.pf-m-active {
|
|
300
|
+
// --#{$button}--m-primary--Color: var(--#{$button}--m-primary--active--Color);
|
|
301
|
+
// --#{$button}--m-primary--BackgroundColor: var(--#{$button}--m-primary--active--BackgroundColor);
|
|
302
|
+
// }
|
|
296
303
|
|
|
297
304
|
.#{$badge}.pf-m-unread {
|
|
298
305
|
border: var(--#{$button}--m-primary__c-badge--BorderWidth) solid var(--#{$button}--m-primary__c-badge--BorderColor);
|
|
@@ -362,6 +369,12 @@
|
|
|
362
369
|
background-color: var(--#{$button}--m-link--BackgroundColor);
|
|
363
370
|
|
|
364
371
|
&:not(.pf-m-inline) {
|
|
372
|
+
&:hover,
|
|
373
|
+
&:focus,
|
|
374
|
+
&:active {
|
|
375
|
+
text-decoration: var(--pf-t--global--link--text-decoration--hover); // TODO use variable?
|
|
376
|
+
}
|
|
377
|
+
|
|
365
378
|
&:hover {
|
|
366
379
|
--#{$button}--m-link--Color: var(--#{$button}--m-link--hover--Color);
|
|
367
380
|
--#{$button}--m-link--BackgroundColor: var(--#{$button}--m-link--hover--BackgroundColor);
|
|
@@ -394,8 +407,6 @@
|
|
|
394
407
|
|
|
395
408
|
&:hover {
|
|
396
409
|
--#{$button}--m-link--Color: var(--#{$button}--m-link--m-inline--hover--Color);
|
|
397
|
-
|
|
398
|
-
text-decoration: var(--#{$button}--m-link--m-inline--hover--TextDecoration);
|
|
399
410
|
}
|
|
400
411
|
}
|
|
401
412
|
|
|
@@ -555,17 +566,26 @@
|
|
|
555
566
|
&.pf-m-plain {
|
|
556
567
|
--#{$button}--disabled--Color: var(--#{$button}--m-plain--disabled--Color);
|
|
557
568
|
--#{$button}--disabled--BackgroundColor: var(--#{$button}--m-plain--disabled--BackgroundColor);
|
|
569
|
+
--#{$button}--PaddingTop: var(--#{$button}--m-plain--PaddingTop);
|
|
570
|
+
--#{$button}--PaddingRight: var(--#{$button}--m-plain--PaddingRight);
|
|
571
|
+
--#{$button}--PaddingBottom: var(--#{$button}--m-plain--PaddingBottom);
|
|
572
|
+
--#{$button}--PaddingLeft: var(--#{$button}--m-plain--PaddingLeft);
|
|
573
|
+
--#{$button}--BorderRadius: var(--#{$button}--m-plain--BorderRadius);
|
|
558
574
|
|
|
559
575
|
color: var(--#{$button}--m-plain--Color);
|
|
560
576
|
background-color: var(--#{$button}--m-plain--BackgroundColor);
|
|
561
577
|
|
|
578
|
+
|
|
562
579
|
&.pf-m-no-padding {
|
|
563
580
|
padding: 0;
|
|
564
581
|
}
|
|
565
582
|
|
|
566
|
-
&:hover
|
|
567
|
-
|
|
583
|
+
&:hover,
|
|
584
|
+
&:focus,
|
|
585
|
+
&:active {
|
|
568
586
|
--#{$button}--m-plain--BackgroundColor: var(--#{$button}--m-plain--hover--BackgroundColor);
|
|
587
|
+
|
|
588
|
+
mix-blend-mode: var(--pf-t--global--background--color--action--plain--hover--blend);
|
|
569
589
|
}
|
|
570
590
|
|
|
571
591
|
&:active,
|
|
@@ -666,9 +686,9 @@
|
|
|
666
686
|
margin-inline-start: var(--#{$button}__count--MarginLeft);
|
|
667
687
|
}
|
|
668
688
|
|
|
669
|
-
// stylelint-disable no-invalid-position-at-import-rule
|
|
670
|
-
@import "themes/dark/button";
|
|
689
|
+
// // stylelint-disable no-invalid-position-at-import-rule
|
|
690
|
+
// @import "themes/dark/button";
|
|
671
691
|
|
|
672
|
-
@include pf-v5-theme-dark {
|
|
673
|
-
|
|
674
|
-
}
|
|
692
|
+
// @include pf-v5-theme-dark {
|
|
693
|
+
// @include pf-v5-theme-dark-button;
|
|
694
|
+
// }
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
--pf-v5-c-check__label--FontWeight: var(--pf-v5-global--FontWeight--normal);
|
|
6
6
|
--pf-v5-c-check__label--FontSize: var(--pf-v5-global--FontSize--md);
|
|
7
7
|
--pf-v5-c-check__label--LineHeight: var(--pf-v5-global--LineHeight--md);
|
|
8
|
-
--pf-v5-c-check__input--TranslateY:
|
|
9
|
-
--pf-v5-c-check__input--TranslateY--moz: var(--pf-v5-c-check__input--TranslateY);
|
|
8
|
+
--pf-v5-c-check__input--TranslateY--moz: 5px;
|
|
10
9
|
--pf-v5-c-check__description--FontSize: var(--pf-v5-global--FontSize--sm);
|
|
11
10
|
--pf-v5-c-check__description--Color: var(--pf-v5-global--Color--200);
|
|
12
11
|
--pf-v5-c-check__body--MarginTop: var(--pf-v5-global--spacer--sm);
|
|
@@ -16,21 +15,15 @@
|
|
|
16
15
|
display: grid;
|
|
17
16
|
grid-template-columns: auto 1fr;
|
|
18
17
|
grid-gap: var(--pf-v5-c-check--GridGap);
|
|
19
|
-
align-items: baseline;
|
|
20
18
|
}
|
|
21
19
|
.pf-v5-c-check.pf-m-standalone {
|
|
22
20
|
--pf-v5-c-check--GridGap: 0;
|
|
23
|
-
--pf-v5-c-check__input--TranslateY:
|
|
21
|
+
--pf-v5-c-check__input--TranslateY--moz: 0;
|
|
24
22
|
display: inline-grid;
|
|
25
23
|
}
|
|
26
24
|
|
|
27
|
-
.pf-v5-c-check__input {
|
|
28
|
-
align-self: start;
|
|
29
|
-
-moz-transform: translateY(var(--pf-v5-c-check__input--TranslateY--moz));
|
|
30
|
-
transform: translateY(var(--pf-v5-c-check__input--TranslateY));
|
|
31
|
-
}
|
|
32
|
-
|
|
33
25
|
.pf-v5-c-check__label {
|
|
26
|
+
align-self: baseline;
|
|
34
27
|
font-size: var(--pf-v5-c-check__label--FontSize);
|
|
35
28
|
font-weight: var(--pf-v5-c-check__label--FontWeight);
|
|
36
29
|
line-height: var(--pf-v5-c-check__label--LineHeight);
|
|
@@ -48,6 +41,11 @@
|
|
|
48
41
|
margin-block-start: var(--pf-v5-c-check__body--MarginTop);
|
|
49
42
|
}
|
|
50
43
|
|
|
44
|
+
.pf-v5-c-check__input {
|
|
45
|
+
align-self: baseline;
|
|
46
|
+
-moz-transform: translateY(var(--pf-v5-c-check__input--TranslateY--moz));
|
|
47
|
+
}
|
|
48
|
+
|
|
51
49
|
.pf-v5-c-check__label,
|
|
52
50
|
.pf-v5-c-check__input {
|
|
53
51
|
justify-self: start;
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
--#{$check}__label--FontWeight: var(--#{$pf-global}--FontWeight--normal);
|
|
8
8
|
--#{$check}__label--FontSize: var(--#{$pf-global}--FontSize--md);
|
|
9
9
|
--#{$check}__label--LineHeight: var(--#{$pf-global}--LineHeight--md);
|
|
10
|
-
--#{$check}__input--TranslateY:
|
|
11
|
-
--#{$check}__input--TranslateY--moz: var(--#{$check}__input--TranslateY); // remove at breaking change
|
|
10
|
+
--#{$check}__input--TranslateY--moz: 5px;
|
|
12
11
|
--#{$check}__description--FontSize: var(--#{$pf-global}--FontSize--sm);
|
|
13
12
|
--#{$check}__description--Color: var(--#{$pf-global}--Color--200);
|
|
14
13
|
--#{$check}__body--MarginTop: var(--#{$pf-global}--spacer--sm);
|
|
@@ -21,28 +20,17 @@
|
|
|
21
20
|
display: grid;
|
|
22
21
|
grid-template-columns: auto 1fr;
|
|
23
22
|
grid-gap: var(--#{$check}--GridGap);
|
|
24
|
-
align-items: baseline;
|
|
25
23
|
|
|
26
24
|
&.pf-m-standalone {
|
|
27
25
|
--#{$check}--GridGap: 0;
|
|
28
|
-
--#{$check}__input--TranslateY:
|
|
26
|
+
--#{$check}__input--TranslateY--moz: 0;
|
|
29
27
|
|
|
30
28
|
display: inline-grid;
|
|
31
29
|
}
|
|
32
30
|
}
|
|
33
31
|
|
|
34
|
-
.#{$check}__input {
|
|
35
|
-
align-self: start;
|
|
36
|
-
|
|
37
|
-
// stylelint-disable property-no-vendor-prefix
|
|
38
|
-
-moz-transform: translateY(var(--#{$check}__input--TranslateY--moz)); // remove at breaking change - no longer needed
|
|
39
|
-
// stylelint-enable
|
|
40
|
-
|
|
41
|
-
// find height of single label, divide by two, offset by 50% of own height
|
|
42
|
-
transform: translateY(var(--#{$check}__input--TranslateY));
|
|
43
|
-
}
|
|
44
|
-
|
|
45
32
|
.#{$check}__label {
|
|
33
|
+
align-self: baseline;
|
|
46
34
|
font-size: var(--#{$check}__label--FontSize);
|
|
47
35
|
font-weight: var(--#{$check}__label--FontWeight);
|
|
48
36
|
line-height: var(--#{$check}__label--LineHeight);
|
|
@@ -60,6 +48,13 @@
|
|
|
60
48
|
margin-block-start: var(--#{$check}__body--MarginTop);
|
|
61
49
|
}
|
|
62
50
|
|
|
51
|
+
// stylelint-disable property-no-vendor-prefix
|
|
52
|
+
.#{$check}__input {
|
|
53
|
+
align-self: baseline;
|
|
54
|
+
-moz-transform: translateY(var(--#{$check}__input--TranslateY--moz));
|
|
55
|
+
}
|
|
56
|
+
// stylelint-enable
|
|
57
|
+
|
|
63
58
|
.#{$check}__label,
|
|
64
59
|
.#{$check}__input {
|
|
65
60
|
justify-self: start;
|