@patternfly/patternfly 6.0.0-alpha.61 → 6.0.0-alpha.62
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/components/AboutModalBox/about-modal-box.css +4 -2
- package/components/AboutModalBox/about-modal-box.scss +4 -2
- package/components/Card/card.css +97 -194
- package/components/Card/card.scss +114 -238
- package/docs/components/Card/examples/Card.md +422 -111
- package/package.json +2 -2
- package/patternfly-no-globals.css +101 -200
- package/patternfly-theme-dark-unversioned.css +101 -200
- package/patternfly.css +101 -200
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/components/Card/themes/dark/card.scss +0 -20
package/CODE_OF_CONDUCT.md
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
This project is governed by the [Contributor Covenant version 1.4][1]. All contributors and participants agree to abide by its terms. To report violations, send an email to [patternfly@redhat.com][2].
|
|
2
2
|
|
|
3
3
|
[1]: https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
|
4
|
-
[2]: mailto:patternfly@redhat.com
|
|
5
|
-
|
|
4
|
+
[2]: mailto:patternfly@redhat.com
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
--pf-v5-c-about-modal-box--BackgroundImage: none;
|
|
3
3
|
--pf-v5-c-about-modal-box--BackgroundColor: var(--pf-t--global--background--color--floating--default);
|
|
4
4
|
--pf-v5-c-about-modal-box--BackgroundPosition: bottom right;
|
|
5
|
-
--pf-v5-c-about-modal-box--BackgroundSize--width:
|
|
6
|
-
--pf-v5-c-about-modal-box--BackgroundSize:
|
|
5
|
+
--pf-v5-c-about-modal-box--BackgroundSize--min-width: 200px;
|
|
6
|
+
--pf-v5-c-about-modal-box--BackgroundSize--width: 60%;
|
|
7
|
+
--pf-v5-c-about-modal-box--BackgroundSize--max-width: 600px;
|
|
8
|
+
--pf-v5-c-about-modal-box--BackgroundSize: clamp(var(--pf-v5-c-about-modal-box--BackgroundSize--min-width), var(--pf-v5-c-about-modal-box--BackgroundSize--width), var(--pf-v5-c-about-modal-box--BackgroundSize--max-width));
|
|
7
9
|
--pf-v5-c-about-modal-box--Height: 100%;
|
|
8
10
|
--pf-v5-c-about-modal-box--lg--Height: 47.625rem;
|
|
9
11
|
--pf-v5-c-about-modal-box--Width: 100%;
|
|
@@ -5,8 +5,10 @@
|
|
|
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;
|
|
8
|
-
--#{$about-modal-box}--BackgroundSize--width:
|
|
9
|
-
--#{$about-modal-box}--BackgroundSize:
|
|
8
|
+
--#{$about-modal-box}--BackgroundSize--min-width: 200px;
|
|
9
|
+
--#{$about-modal-box}--BackgroundSize--width: 60%;
|
|
10
|
+
--#{$about-modal-box}--BackgroundSize--max-width: 600px;
|
|
11
|
+
--#{$about-modal-box}--BackgroundSize: clamp(var(--#{$about-modal-box}--BackgroundSize--min-width), var(--#{$about-modal-box}--BackgroundSize--width), var(--#{$about-modal-box}--BackgroundSize--max-width));
|
|
10
12
|
--#{$about-modal-box}--Height: 100%;
|
|
11
13
|
--#{$about-modal-box}--lg--Height: #{pf-size-prem(762px)}; // Height is optimized for the exact height desired
|
|
12
14
|
--#{$about-modal-box}--Width: 100%;
|
package/components/Card/card.css
CHANGED
|
@@ -1,116 +1,92 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
--pf-v5-c-card--
|
|
4
|
-
--pf-v5-c-card--
|
|
5
|
-
--pf-v5-c-card--
|
|
6
|
-
--pf-v5-c-card--
|
|
7
|
-
--pf-v5-c-card--
|
|
8
|
-
--pf-v5-c-card--
|
|
9
|
-
--pf-v5-c-
|
|
10
|
-
--pf-v5-c-
|
|
11
|
-
--pf-v5-c-
|
|
12
|
-
--pf-v5-c-
|
|
13
|
-
--pf-v5-c-card__title-
|
|
14
|
-
--pf-v5-c-
|
|
15
|
-
--pf-v5-c-
|
|
16
|
-
--pf-v5-c-
|
|
17
|
-
--pf-v5-c-
|
|
1
|
+
:where(:root),
|
|
2
|
+
:where(.pf-v5-c-card) {
|
|
3
|
+
--pf-v5-c-card--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
4
|
+
--pf-v5-c-card--BorderColor: var(--pf-t--global--border--color--default);
|
|
5
|
+
--pf-v5-c-card--BorderStyle: solid;
|
|
6
|
+
--pf-v5-c-card--BorderWidth: var(--pf-t--global--border--width--box--default);
|
|
7
|
+
--pf-v5-c-card--BorderRadius: var(--pf-t--global--border--radius--medium);
|
|
8
|
+
--pf-v5-c-card--first-child--PaddingTop: var(--pf-t--global--spacer--lg);
|
|
9
|
+
--pf-v5-c-card--child--PaddingRight: var(--pf-t--global--spacer--lg);
|
|
10
|
+
--pf-v5-c-card--child--PaddingBottom: var(--pf-t--global--spacer--lg);
|
|
11
|
+
--pf-v5-c-card--child--PaddingLeft: var(--pf-t--global--spacer--lg);
|
|
12
|
+
--pf-v5-c-card--c-divider--child--PaddingTop: var(--pf-t--global--spacer--lg);
|
|
13
|
+
--pf-v5-c-card__title--not--last-child--PaddingBottom: var(--pf-t--global--spacer--md);
|
|
14
|
+
--pf-v5-c-card__title-text--Color: var(--pf-t--global--text--color--regular);
|
|
15
|
+
--pf-v5-c-card__title-text--FontFamily: var(--pf-t--global--font--family--heading);
|
|
16
|
+
--pf-v5-c-card__title-text--FontSize: var(--pf-t--global--font--size--heading--sm);
|
|
17
|
+
--pf-v5-c-card__title-text--FontWeight: var(--pf-t--global--font--weight--heading);
|
|
18
|
+
--pf-v5-c-card__title-text--LineHeight: var(--pf-t--global--font--line-height--heading);
|
|
19
|
+
--pf-v5-c-card--c-button--disabled--Color: var(--pf-t--global--text--color--on-disabled);
|
|
20
|
+
--pf-v5-c-card__body--FontSize: var(--pf-t--global--font--size--body--default);
|
|
21
|
+
--pf-v5-c-card__footer--FontSize: var(--pf-t--global--font--size--body--default);
|
|
22
|
+
--pf-v5-c-card__footer--Color: var(--pf-t--global--text--color--subtle);
|
|
23
|
+
--pf-v5-c-card__actions--PaddingLeft: var(--pf-t--global--spacer--md);
|
|
24
|
+
--pf-v5-c-card__actions--Gap: var(--pf-t--global--spacer--sm);
|
|
18
25
|
--pf-v5-c-card__actions--MarginTop: calc(var(--pf-v5-global--spacer--form-element) * -1);
|
|
19
26
|
--pf-v5-c-card__actions--MarginBottom: calc(var(--pf-v5-global--spacer--form-element) * -1);
|
|
20
27
|
--pf-v5-c-card__header-toggle--MarginTop: calc(var(--pf-v5-global--spacer--form-element) * -1);
|
|
21
|
-
--pf-v5-c-card__header-toggle--MarginRight: var(--pf-
|
|
28
|
+
--pf-v5-c-card__header-toggle--MarginRight: var(--pf-t--global--spacer--xs);
|
|
22
29
|
--pf-v5-c-card__header-toggle--MarginBottom: calc(var(--pf-v5-global--spacer--form-element) * -1);
|
|
23
|
-
--pf-v5-c-card__header-toggle--MarginLeft: calc(var(--pf-
|
|
30
|
+
--pf-v5-c-card__header-toggle--MarginLeft: calc(var(--pf-t--global--spacer--md) * -1);
|
|
24
31
|
--pf-v5-c-card__header-toggle-icon--Transition: var(--pf-v5-global--Transition);
|
|
25
32
|
--pf-v5-c-card--m-expanded__header-toggle-icon--Rotate: 90deg;
|
|
26
|
-
--pf-v5-c-card--m-selectable--BorderWidth: var(--pf-v5-
|
|
27
|
-
--pf-v5-c-card--m-selectable--m-selected--
|
|
28
|
-
--pf-v5-c-card--m-selectable--m-selected--
|
|
29
|
-
--pf-v5-c-card--m-selectable--hover--
|
|
30
|
-
--pf-v5-c-card--m-selectable--
|
|
31
|
-
--pf-v5-c-card--m-selectable--focus--
|
|
32
|
-
--pf-v5-c-card--m-selectable--focus--BorderColor: var(--pf-
|
|
33
|
-
--pf-v5-c-card--m-selectable--m-selected--focus--
|
|
34
|
-
--pf-v5-c-card--m-selectable--m-
|
|
35
|
-
--pf-v5-c-card--m-selectable--m-
|
|
36
|
-
--pf-v5-c-card--m-selectable--m-
|
|
37
|
-
--pf-v5-c-card--m-selectable--m-
|
|
38
|
-
--pf-v5-c-card--m-selectable--m-
|
|
39
|
-
--pf-v5-c-card--m-selectable--m-clickable--m-
|
|
40
|
-
--pf-v5-c-card--m-selectable--m-clickable--m-
|
|
41
|
-
--pf-v5-c-card--m-
|
|
42
|
-
--pf-v5-c-card--m-
|
|
43
|
-
--pf-v5-c-card--m-
|
|
44
|
-
--pf-v5-c-card--m-
|
|
45
|
-
--pf-v5-c-card--m-
|
|
46
|
-
--pf-v5-c-card--m-
|
|
47
|
-
--pf-v5-c-card--m-
|
|
48
|
-
--pf-v5-c-card--m-
|
|
49
|
-
--pf-v5-c-card--m-
|
|
50
|
-
--pf-v5-c-card--m-
|
|
51
|
-
--pf-v5-c-card--m-
|
|
52
|
-
--pf-v5-c-card--m-
|
|
53
|
-
--pf-v5-c-card--m-
|
|
54
|
-
--pf-v5-c-card--m-
|
|
55
|
-
--pf-v5-c-card--m-
|
|
56
|
-
--pf-v5-c-card--m-
|
|
57
|
-
--pf-v5-c-card--m-
|
|
58
|
-
--pf-v5-c-card--m-
|
|
59
|
-
--pf-v5-c-card--m-
|
|
60
|
-
--pf-v5-c-card--m-
|
|
61
|
-
--pf-v5-c-card--m-selectable-raised--active--before--BackgroundColor: var(--pf-v5-global--active-color--400);
|
|
62
|
-
--pf-v5-c-card--m-selectable-raised--m-selected-raised--before--BackgroundColor: var(--pf-v5-global--active-color--100);
|
|
63
|
-
--pf-v5-c-card--m-selectable-raised--m-selected-raised--BoxShadow: var(--pf-v5-global--BoxShadow--lg);
|
|
64
|
-
--pf-v5-c-card--m-selectable-raised--m-selected-raised--TranslateY--base: -0.5rem;
|
|
65
|
-
--pf-v5-c-card--m-selectable-raised--m-selected-raised--TranslateY: var(--pf-v5-c-card--m-selectable-raised--m-selected-raised--TranslateY--base);
|
|
66
|
-
--pf-v5-c-card--m-flat--m-selectable-raised--m-selected-raised--TranslateY: calc(var(--pf-v5-c-card--m-selectable-raised--m-selected-raised--TranslateY--base) + var(--pf-v5-c-card--m-flat--BorderWidth));
|
|
67
|
-
--pf-v5-c-card--m-rounded--m-selectable-raised--m-selected-raised--TranslateY: calc(var(--pf-v5-c-card--m-selectable-raised--m-selected-raised--TranslateY--base) + var(--pf-v5-c-card--m-rounded--BorderRadius));
|
|
68
|
-
--pf-v5-c-card--m-selectable-raised--m-selected-raised--ZIndex: var(--pf-v5-global--ZIndex--xs);
|
|
69
|
-
--pf-v5-c-card--m-selectable-raised--m-selected-raised--Transition: transform .25s linear, box-shadow .25s linear;
|
|
70
|
-
--pf-v5-c-card--m-selectable-raised--m-selected-raised--before--Transition: transform .25s linear;
|
|
71
|
-
--pf-v5-c-card--m-selectable-raised--m-selected-raised--before--TranslateY: calc(var(--pf-v5-c-card--m-selectable-raised--m-selected-raised--TranslateY) * -1);
|
|
72
|
-
--pf-v5-c-card--m-selectable-raised--m-selected-raised--before--ScaleY: 2;
|
|
73
|
-
--pf-v5-c-card--m-non-selectable-raised--BackgroundColor: var(--pf-v5-global--BackgroundColor--light-200);
|
|
74
|
-
--pf-v5-c-card--m-non-selectable-raised--before--BackgroundColor: var(--pf-v5-global--disabled-color--200);
|
|
75
|
-
--pf-v5-c-card--m-non-selectable-raised--before--ScaleY: 2;
|
|
76
|
-
--pf-v5-c-card--m-flat--m-non-selectable-raised--before--BorderColor: var(--pf-v5-global--disabled-color--200);
|
|
77
|
-
--pf-v5-c-card--m-compact__body--FontSize: var(--pf-v5-global--FontSize--sm);
|
|
78
|
-
--pf-v5-c-card--m-compact__footer--FontSize: var(--pf-v5-global--FontSize--sm);
|
|
79
|
-
--pf-v5-c-card--m-compact--first-child--PaddingTop: var(--pf-v5-global--spacer--md);
|
|
80
|
-
--pf-v5-c-card--m-compact--child--PaddingRight: var(--pf-v5-global--spacer--md);
|
|
81
|
-
--pf-v5-c-card--m-compact--child--PaddingBottom: var(--pf-v5-global--spacer--md);
|
|
82
|
-
--pf-v5-c-card--m-compact--child--PaddingLeft: var(--pf-v5-global--spacer--md);
|
|
83
|
-
--pf-v5-c-card--m-compact--c-divider--child--PaddingTop: var(--pf-v5-global--spacer--md);
|
|
84
|
-
--pf-v5-c-card--m-compact__title--not--last-child--PaddingBottom: var(--pf-v5-global--spacer--sm);
|
|
85
|
-
--pf-v5-c-card--m-display-lg__title-text--FontSize: var(--pf-v5-global--FontSize--xl);
|
|
86
|
-
--pf-v5-c-card--m-display-lg--first-child--PaddingTop: var(--pf-v5-global--spacer--xl);
|
|
87
|
-
--pf-v5-c-card--m-display-lg--child--PaddingRight: var(--pf-v5-global--spacer--xl);
|
|
88
|
-
--pf-v5-c-card--m-display-lg--child--PaddingBottom: var(--pf-v5-global--spacer--xl);
|
|
89
|
-
--pf-v5-c-card--m-display-lg--child--PaddingLeft: var(--pf-v5-global--spacer--xl);
|
|
90
|
-
--pf-v5-c-card--m-display-lg--c-divider--child--PaddingTop: var(--pf-v5-global--spacer--xl);
|
|
91
|
-
--pf-v5-c-card--m-display-lg__title--not--last-child--PaddingBottom: var(--pf-v5-global--spacer--lg);
|
|
92
|
-
--pf-v5-c-card--m-flat--BorderWidth: var(--pf-v5-global--BorderWidth--sm);
|
|
93
|
-
--pf-v5-c-card--m-flat--BorderColor: var(--pf-v5-global--BorderColor--100);
|
|
94
|
-
--pf-v5-c-card--m-rounded--BorderRadius: var(--pf-v5-global--BorderRadius--sm);
|
|
33
|
+
--pf-v5-c-card--m-selectable--BorderWidth: var(--pf-v5-c-card--BorderWidth);
|
|
34
|
+
--pf-v5-c-card--m-selectable--m-selected--BorderColor: var(--pf-t--global--border--color--clicked);
|
|
35
|
+
--pf-v5-c-card--m-selectable--m-selected--BorderWidth: var(--pf-t--global--border--width--box--clicked);
|
|
36
|
+
--pf-v5-c-card--m-selectable--hover--BorderColor: var(--pf-t--global--border--color--hover);
|
|
37
|
+
--pf-v5-c-card--m-selectable--focus--BorderColor: var(--pf-t--global--border--color--hover);
|
|
38
|
+
--pf-v5-c-card--m-selectable--focus--BorderWidth: var(--pf-t--global--border--width--box--hover);
|
|
39
|
+
--pf-v5-c-card--m-selectable--m-selected--focus--BorderColor: var(--pf-t--global--border--color--clicked);
|
|
40
|
+
--pf-v5-c-card--m-selectable--m-selected--focus--BorderWidth: var(--pf-t--global--border--width--box--clicked);
|
|
41
|
+
--pf-v5-c-card--m-selectable--m-disabled__title-text--Color: var(--pf-t--global--text--color--on-disabled);
|
|
42
|
+
--pf-v5-c-card--m-selectable--m-disabled__body--Color: var(--pf-t--global--text--color--on-disabled);
|
|
43
|
+
--pf-v5-c-card--m-selectable--m-disabled__footer--Color: var(--pf-t--global--text--color--on-disabled);
|
|
44
|
+
--pf-v5-c-card--m-selectable--m-disabled--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
|
|
45
|
+
--pf-v5-c-card--m-selectable--m-disabled--BorderColor: transparent;
|
|
46
|
+
--pf-v5-c-card--m-selectable--m-clickable--m-current--BorderColor: var(--pf-t--global--border--color--clicked);
|
|
47
|
+
--pf-v5-c-card--m-selectable--m-clickable--m-current--BorderWidth: var(--pf-t--global--border--width--box--clicked);
|
|
48
|
+
--pf-v5-c-card--m-compact__title-text--FontSize: var(--pf-t--global--font--size--heading--xs);
|
|
49
|
+
--pf-v5-c-card--m-compact__body--FontSize: var(--pf-t--global--font--size--body--default);
|
|
50
|
+
--pf-v5-c-card--m-compact__footer--FontSize: var(--pf-t--global--font--size--body--sm);
|
|
51
|
+
--pf-v5-c-card--m-compact--first-child--PaddingTop: var(--pf-t--global--spacer--md);
|
|
52
|
+
--pf-v5-c-card--m-compact--child--PaddingRight: var(--pf-t--global--spacer--md);
|
|
53
|
+
--pf-v5-c-card--m-compact--child--PaddingBottom: var(--pf-t--global--spacer--md);
|
|
54
|
+
--pf-v5-c-card--m-compact--child--PaddingLeft: var(--pf-t--global--spacer--md);
|
|
55
|
+
--pf-v5-c-card--m-compact--c-divider--child--PaddingTop: var(--pf-t--global--spacer--md);
|
|
56
|
+
--pf-v5-c-card--m-compact__title--not--last-child--PaddingBottom: var(--pf-t--global--spacer--sm);
|
|
57
|
+
--pf-v5-c-card--m-display-lg__title-text--FontSize: var(--pf-t--global--font--size--heading--md);
|
|
58
|
+
--pf-v5-c-card--m-display-lg__body--FontSize: var(--pf-t--global--font--size--body--lg);
|
|
59
|
+
--pf-v5-c-card--m-display-lg__footer--FontSize: var(--pf-t--global--font--size--body--default);
|
|
60
|
+
--pf-v5-c-card--m-display-lg--first-child--PaddingTop: var(--pf-t--global--spacer--xl);
|
|
61
|
+
--pf-v5-c-card--m-display-lg--child--PaddingRight: var(--pf-t--global--spacer--xl);
|
|
62
|
+
--pf-v5-c-card--m-display-lg--child--PaddingBottom: var(--pf-t--global--spacer--xl);
|
|
63
|
+
--pf-v5-c-card--m-display-lg--child--PaddingLeft: var(--pf-t--global--spacer--xl);
|
|
64
|
+
--pf-v5-c-card--m-display-lg--c-divider--child--PaddingTop: var(--pf-t--global--spacer--xl);
|
|
65
|
+
--pf-v5-c-card--m-display-lg__title--not--last-child--PaddingBottom: var(--pf-t--global--spacer--lg);
|
|
66
|
+
--pf-v5-c-card--m-secondary--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
67
|
+
--pf-v5-c-card--m-secondary--BorderColor: transparent;
|
|
95
68
|
--pf-v5-c-card--m-full-height--Height: 100%;
|
|
96
|
-
--pf-v5-c-card--m-plain--
|
|
69
|
+
--pf-v5-c-card--m-plain--BorderColor: transparent;
|
|
97
70
|
--pf-v5-c-card--m-plain--BackgroundColor: transparent;
|
|
98
71
|
--pf-v5-c-card__header--m-toggle-right--toggle--MarginRight: calc(var(--pf-v5-global--spacer--form-element) * -1);
|
|
99
|
-
--pf-v5-c-card__header--m-toggle-right--toggle--MarginLeft: var(--pf-
|
|
100
|
-
|
|
101
|
-
|
|
72
|
+
--pf-v5-c-card__header--m-toggle-right--toggle--MarginLeft: var(--pf-t--global--spacer--xs);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.pf-v5-c-card {
|
|
102
76
|
position: relative;
|
|
103
77
|
display: flex;
|
|
104
78
|
flex-direction: column;
|
|
79
|
+
overflow: auto;
|
|
105
80
|
background-color: var(--pf-v5-c-card--BackgroundColor);
|
|
106
|
-
|
|
81
|
+
border: var(--pf-v5-c-card--BorderColor) var(--pf-v5-c-card--BorderStyle) var(--pf-v5-c-card--BorderWidth);
|
|
82
|
+
border-radius: var(--pf-v5-c-card--BorderRadius);
|
|
107
83
|
}
|
|
108
84
|
.pf-v5-c-card.pf-m-selectable .pf-v5-c-card__selectable-actions :is(.pf-v5-c-check, .pf-v5-c-radio) {
|
|
109
85
|
gap: 0;
|
|
110
86
|
}
|
|
111
87
|
.pf-v5-c-card.pf-m-selectable, .pf-v5-c-card.pf-m-clickable {
|
|
112
88
|
isolation: isolate;
|
|
113
|
-
|
|
89
|
+
border: none;
|
|
114
90
|
}
|
|
115
91
|
.pf-v5-c-card.pf-m-selectable.pf-m-clickable .pf-v5-c-card__selectable-actions .pf-v5-c-check__label,
|
|
116
92
|
.pf-v5-c-card.pf-m-selectable.pf-m-clickable .pf-v5-c-card__selectable-actions .pf-v5-c-radio__label {
|
|
@@ -124,77 +100,24 @@
|
|
|
124
100
|
}
|
|
125
101
|
.pf-v5-c-card.pf-m-selectable.pf-m-clickable .pf-v5-c-card__selectable-actions .pf-v5-c-check__input:where(:focus-visible) ~ .pf-v5-c-check__label,
|
|
126
102
|
.pf-v5-c-card.pf-m-selectable.pf-m-clickable .pf-v5-c-card__selectable-actions .pf-v5-c-radio__input:where(:focus-visible) ~ .pf-v5-c-radio__label {
|
|
127
|
-
--pf-v5-c-card--BackgroundColor:
|
|
128
|
-
--pf-v5-c-card--BorderColor:
|
|
103
|
+
--pf-v5-c-card--BackgroundColor: revert;
|
|
104
|
+
--pf-v5-c-card--BorderColor: revert;
|
|
129
105
|
}
|
|
130
106
|
.pf-v5-c-card.pf-m-selectable.pf-m-clickable .pf-v5-c-card__selectable-actions .pf-v5-c-check__input:where(:checked) ~ .pf-v5-c-check__label,
|
|
131
107
|
.pf-v5-c-card.pf-m-selectable.pf-m-clickable .pf-v5-c-card__selectable-actions .pf-v5-c-radio__input:where(:checked) ~ .pf-v5-c-radio__label, .pf-v5-c-card.pf-m-selectable.pf-m-clickable.pf-m-selected {
|
|
132
|
-
--pf-v5-c-card--
|
|
133
|
-
--pf-v5-c-card--
|
|
108
|
+
--pf-v5-c-card--BorderColor: revert;
|
|
109
|
+
--pf-v5-c-card--m-selectable--BorderWidth: revert;
|
|
134
110
|
}
|
|
135
111
|
.pf-v5-c-card.pf-m-selectable.pf-m-clickable.pf-m-current {
|
|
136
|
-
--pf-v5-c-card--BackgroundColor: var(--pf-v5-c-card--m-selectable--m-clickable--m-current--BackgroundColor);
|
|
137
|
-
--pf-v5-c-card--BorderColor: var(--pf-v5-c-card--m-selectable--m-clickable--m-current--BorderColor);
|
|
138
|
-
}
|
|
139
|
-
.pf-v5-c-card.pf-m-selectable.pf-m-clickable.pf-m-current.pf-m-selected, .pf-v5-c-card.pf-m-selectable.pf-m-clickable.pf-m-current .pf-v5-c-card__selectable-actions .pf-v5-c-check__input:where(:checked) ~ .pf-v5-c-check__label, .pf-v5-c-card.pf-m-selectable.pf-m-clickable.pf-m-current .pf-v5-c-card__selectable-actions .pf-v5-c-radio__input:where(:checked) ~ .pf-v5-c-radio__label {
|
|
140
|
-
--pf-v5-c-card--BackgroundColor: var(--pf-v5-c-card--m-selectable--m-clickable--m-current--BackgroundColor);
|
|
141
112
|
--pf-v5-c-card--BorderColor: var(--pf-v5-c-card--m-selectable--m-clickable--m-current--BorderColor);
|
|
113
|
+
--pf-v5-c-card--BorderWidth: var(--pf-v5-c-card--m-selectable--m-clickable--m-current--BorderWidth);
|
|
142
114
|
}
|
|
143
115
|
.pf-v5-c-card.pf-m-selectable.pf-m-clickable .pf-v5-c-card__selectable-actions .pf-v5-c-check__input:where(:disabled) ~ .pf-v5-c-check__label,
|
|
144
116
|
.pf-v5-c-card.pf-m-selectable.pf-m-clickable .pf-v5-c-card__selectable-actions .pf-v5-c-radio__input:where(:disabled) ~ .pf-v5-c-radio__label, .pf-v5-c-card.pf-m-selectable.pf-m-clickable.pf-m-disabled {
|
|
145
117
|
--pf-v5-c-card--BackgroundColor: var(--pf-v5-c-card--m-selectable--m-disabled--BackgroundColor);
|
|
146
|
-
--pf-v5-c-card--BorderColor: var(--pf-v5-c-card--m-selectable--m-disabled--BorderColor);
|
|
147
|
-
--pf-v5-c-card--BoxShadow: var(--pf-v5-c-card--m-selectable--m-disabled--BoxShadow);
|
|
148
|
-
}
|
|
149
|
-
.pf-v5-c-card.pf-m-hoverable-raised::before, .pf-v5-c-card.pf-m-selectable-raised::before, .pf-v5-c-card.pf-m-non-selectable-raised::before {
|
|
150
|
-
position: absolute;
|
|
151
|
-
inset-block-end: var(--pf-v5-c-card--m-selectable-raised--before--Bottom);
|
|
152
|
-
inset-inline-start: var(--pf-v5-c-card--m-selectable-raised--before--Left);
|
|
153
|
-
inset-inline-end: var(--pf-v5-c-card--m-selectable-raised--before--Right);
|
|
154
|
-
height: var(--pf-v5-c-card--m-selectable-raised--before--Height);
|
|
155
|
-
content: "";
|
|
156
|
-
background-color: var(--pf-v5-c-card--m-selectable-raised--before--BackgroundColor);
|
|
157
|
-
transition: var(--pf-v5-c-card--m-selectable-raised--before--Transition);
|
|
158
|
-
transform: translateY(var(--pf-v5-c-card--m-selectable-raised--before--TranslateY)) scaleY(var(--pf-v5-c-card--m-selectable-raised--before--ScaleY));
|
|
159
|
-
transform-origin: center bottom;
|
|
160
|
-
}
|
|
161
|
-
.pf-v5-c-card.pf-m-hoverable-raised:hover {
|
|
162
|
-
--pf-v5-c-card--BoxShadow: var(--pf-v5-c-card--m-hoverable-raised--hover--BoxShadow);
|
|
163
|
-
--pf-v5-c-card--m-selectable-raised--before--BackgroundColor: var(--pf-v5-c-card--m-hoverable-raised--hover--before--BackgroundColor);
|
|
164
|
-
}
|
|
165
|
-
.pf-v5-c-card.pf-m-selectable-raised {
|
|
166
|
-
cursor: pointer;
|
|
167
|
-
}
|
|
168
|
-
.pf-v5-c-card.pf-m-selectable-raised:hover {
|
|
169
|
-
--pf-v5-c-card--BoxShadow: var(--pf-v5-c-card--m-selectable-raised--hover--BoxShadow);
|
|
170
|
-
--pf-v5-c-card--m-selectable-raised--before--BackgroundColor: var(--pf-v5-c-card--m-selectable-raised--hover--before--BackgroundColor);
|
|
171
|
-
}
|
|
172
|
-
.pf-v5-c-card.pf-m-selectable-raised:focus {
|
|
173
|
-
--pf-v5-c-card--BoxShadow: var(--pf-v5-c-card--m-selectable-raised--focus--BoxShadow);
|
|
174
|
-
--pf-v5-c-card--m-selectable-raised--before--BackgroundColor: var(--pf-v5-c-card--m-selectable-raised--focus--before--BackgroundColor);
|
|
175
|
-
}
|
|
176
|
-
.pf-v5-c-card.pf-m-selectable-raised:active {
|
|
177
|
-
--pf-v5-c-card--BoxShadow: var(--pf-v5-c-card--m-selectable-raised--active--BoxShadow);
|
|
178
|
-
--pf-v5-c-card--m-selectable-raised--before--BackgroundColor: var(--pf-v5-c-card--m-selectable-raised--active--before--BackgroundColor);
|
|
179
|
-
}
|
|
180
|
-
.pf-v5-c-card.pf-m-selectable-raised.pf-m-selected-raised {
|
|
181
|
-
--pf-v5-c-card--m-selectable-raised--before--BackgroundColor: var(--pf-v5-c-card--m-selectable-raised--m-selected-raised--before--BackgroundColor);
|
|
182
|
-
--pf-v5-c-card--m-selectable-raised--before--Transition: var(--pf-v5-c-card--m-selectable-raised--m-selected-raised--before--Transition);
|
|
183
|
-
--pf-v5-c-card--m-selectable-raised--before--TranslateY: var(--pf-v5-c-card--m-selectable-raised--m-selected-raised--before--TranslateY);
|
|
184
|
-
--pf-v5-c-card--m-selectable-raised--before--ScaleY: var(--pf-v5-c-card--m-selectable-raised--m-selected-raised--before--ScaleY);
|
|
185
|
-
z-index: var(--pf-v5-c-card--m-selectable-raised--m-selected-raised--ZIndex);
|
|
186
|
-
box-shadow: var(--pf-v5-c-card--m-selectable-raised--m-selected-raised--BoxShadow);
|
|
187
|
-
transition: var(--pf-v5-c-card--m-selectable-raised--m-selected-raised--Transition);
|
|
188
|
-
transform: translateY(var(--pf-v5-c-card--m-selectable-raised--m-selected-raised--TranslateY));
|
|
189
|
-
}
|
|
190
|
-
.pf-v5-c-card.pf-m-non-selectable-raised {
|
|
191
|
-
--pf-v5-c-card--BackgroundColor: var(--pf-v5-c-card--m-non-selectable-raised--BackgroundColor);
|
|
192
|
-
--pf-v5-c-card--BoxShadow: none;
|
|
193
|
-
--pf-v5-c-card--m-flat--BorderColor: var(--pf-v5-c-card--m-flat--m-non-selectable-raised--before--BorderColor);
|
|
194
|
-
--pf-v5-c-card--m-selectable-raised--before--BackgroundColor: var(--pf-v5-c-card--m-non-selectable-raised--before--BackgroundColor);
|
|
195
|
-
--pf-v5-c-card--m-selectable-raised--before--ScaleY: var(--pf-v5-c-card--m-non-selectable-raised--before--ScaleY);
|
|
196
118
|
}
|
|
197
119
|
.pf-v5-c-card.pf-m-compact {
|
|
120
|
+
--pf-v5-c-card__title-text--FontSize: var(--pf-v5-c-card--m-compact__title-text--FontSize);
|
|
198
121
|
--pf-v5-c-card__body--FontSize: var(--pf-v5-c-card--m-compact__body--FontSize);
|
|
199
122
|
--pf-v5-c-card__footer--FontSize: var(--pf-v5-c-card--m-compact__footer--FontSize);
|
|
200
123
|
--pf-v5-c-card--first-child--PaddingTop: var(--pf-v5-c-card--m-compact--first-child--PaddingTop);
|
|
@@ -206,6 +129,8 @@
|
|
|
206
129
|
}
|
|
207
130
|
.pf-v5-c-card.pf-m-display-lg {
|
|
208
131
|
--pf-v5-c-card__title-text--FontSize: var(--pf-v5-c-card--m-display-lg__title-text--FontSize);
|
|
132
|
+
--pf-v5-c-card__body--FontSize: var(--pf-v5-c-card--m-display-lg__body--FontSize);
|
|
133
|
+
--pf-v5-c-card__footer--FontSize: var(--pf-v5-c-card--m-display-lg__footer--FontSize);
|
|
209
134
|
--pf-v5-c-card--first-child--PaddingTop: var(--pf-v5-c-card--m-display-lg--first-child--PaddingTop);
|
|
210
135
|
--pf-v5-c-card--child--PaddingRight: var(--pf-v5-c-card--m-display-lg--child--PaddingRight);
|
|
211
136
|
--pf-v5-c-card--child--PaddingBottom: var(--pf-v5-c-card--m-display-lg--child--PaddingBottom);
|
|
@@ -213,22 +138,14 @@
|
|
|
213
138
|
--pf-v5-c-card--c-divider--child--PaddingTop: var(--pf-v5-c-card--m-display-lg--c-divider--child--PaddingTop);
|
|
214
139
|
--pf-v5-c-card__title--not--last-child--PaddingBottom: var(--pf-v5-c-card--m-display-lg__title--not--last-child--PaddingBottom);
|
|
215
140
|
}
|
|
216
|
-
.pf-v5-c-card.pf-m-
|
|
217
|
-
--pf-v5-c-card--
|
|
218
|
-
--pf-v5-c-card--
|
|
219
|
-
--pf-v5-c-card--m-selectable-raised--before--Bottom: var(--pf-v5-c-card--m-flat--m-selectable-raised--before--Bottom);
|
|
220
|
-
--pf-v5-c-card--m-selectable-raised--before--Left: var(--pf-v5-c-card--m-flat--m-selectable-raised--before--Left);
|
|
221
|
-
--pf-v5-c-card--m-selectable-raised--m-selected-raised--TranslateY: var(--pf-v5-c-card--m-flat--m-selectable-raised--m-selected-raised--TranslateY);
|
|
222
|
-
border: var(--pf-v5-c-card--m-flat--BorderWidth) solid var(--pf-v5-c-card--m-flat--BorderColor);
|
|
141
|
+
.pf-v5-c-card.pf-m-secondary {
|
|
142
|
+
--pf-v5-c-card--BorderColor: var(--pf-v5-c-card--m-secondary--BorderColor);
|
|
143
|
+
--pf-v5-c-card--BackgroundColor: var(--pf-v5-c-card--m-secondary--BackgroundColor);
|
|
223
144
|
}
|
|
224
145
|
.pf-v5-c-card.pf-m-plain {
|
|
225
|
-
--pf-v5-c-card--
|
|
146
|
+
--pf-v5-c-card--BorderColor: var(--pf-v5-c-card--m-plain--BorderColor);
|
|
226
147
|
--pf-v5-c-card--BackgroundColor: var(--pf-v5-c-card--m-plain--BackgroundColor);
|
|
227
148
|
}
|
|
228
|
-
.pf-v5-c-card.pf-m-rounded {
|
|
229
|
-
--pf-v5-c-card--m-selectable-raised--m-selected-raised--TranslateY: var(--pf-v5-c-card--m-rounded--m-selectable-raised--m-selected-raised--TranslateY);
|
|
230
|
-
border-radius: var(--pf-v5-c-card--m-rounded--BorderRadius);
|
|
231
|
-
}
|
|
232
149
|
.pf-v5-c-card.pf-m-expanded .pf-v5-c-card__header-toggle-icon {
|
|
233
150
|
transform: rotate(var(--pf-v5-c-card--m-expanded__header-toggle-icon--Rotate));
|
|
234
151
|
}
|
|
@@ -282,6 +199,7 @@
|
|
|
282
199
|
font-size: var(--pf-v5-c-card__title-text--FontSize);
|
|
283
200
|
font-weight: var(--pf-v5-c-card__title-text--FontWeight);
|
|
284
201
|
line-height: var(--pf-v5-c-card__title-text--LineHeight);
|
|
202
|
+
color: var(--pf-v5-c-card__title-text--Color);
|
|
285
203
|
}
|
|
286
204
|
|
|
287
205
|
.pf-v5-c-card__actions {
|
|
@@ -319,38 +237,40 @@
|
|
|
319
237
|
content: "";
|
|
320
238
|
background-color: var(--pf-v5-c-card--BackgroundColor, transparent);
|
|
321
239
|
border: var(--pf-v5-c-card--m-selectable--BorderWidth) solid var(--pf-v5-c-card--BorderColor, transparent);
|
|
322
|
-
|
|
240
|
+
border-radius: var(--pf-v5-c-card--BorderRadius);
|
|
323
241
|
}
|
|
324
242
|
.pf-v5-c-card__selectable-actions .pf-v5-c-check__label:hover,
|
|
325
243
|
.pf-v5-c-card__selectable-actions .pf-v5-c-radio__label:hover {
|
|
326
|
-
--pf-v5-c-card--
|
|
327
|
-
--pf-v5-c-card--BoxShadow: var(--pf-v5-c-card--m-selectable--hover--BoxShadow);
|
|
244
|
+
--pf-v5-c-card--BorderColor: var(--pf-v5-c-card--m-selectable--hover--BorderColor);
|
|
328
245
|
}
|
|
329
246
|
|
|
330
247
|
.pf-v5-c-card__selectable-actions .pf-v5-c-check__input:where(:checked) ~ .pf-v5-c-check__label,
|
|
331
248
|
.pf-v5-c-card__selectable-actions .pf-v5-c-radio__input:where(:checked) ~ .pf-v5-c-radio__label,
|
|
332
249
|
.pf-v5-c-card.pf-m-selected {
|
|
333
250
|
--pf-v5-c-card--BorderColor: var(--pf-v5-c-card--m-selectable--m-selected--BorderColor);
|
|
334
|
-
--pf-v5-c-card--
|
|
251
|
+
--pf-v5-c-card--m-selectable--BorderWidth: var(--pf-v5-c-card--m-selectable--m-selected--BorderWidth);
|
|
335
252
|
}
|
|
336
253
|
|
|
337
254
|
.pf-v5-c-card__selectable-actions .pf-v5-c-check__input:where(:focus-visible) ~ .pf-v5-c-check__label,
|
|
338
255
|
.pf-v5-c-card__selectable-actions .pf-v5-c-radio__input:where(:focus-visible) ~ .pf-v5-c-radio__label {
|
|
339
256
|
--pf-v5-c-card--BorderColor: var(--pf-v5-c-card--m-selectable--focus--BorderColor);
|
|
340
|
-
--pf-v5-c-card--
|
|
257
|
+
--pf-v5-c-card--BorderWidth: var(--pf-v5-c-card--m-selectable--focus--BorderWidth);
|
|
341
258
|
}
|
|
342
259
|
|
|
343
260
|
.pf-v5-c-card__selectable-actions .pf-v5-c-check__input:where(:focus-visible):where(:checked) ~ .pf-v5-c-check__label,
|
|
344
261
|
.pf-v5-c-card__selectable-actions .pf-v5-c-radio__input:where(:focus-visible):where(:checked) ~ .pf-v5-c-radio__label {
|
|
345
262
|
--pf-v5-c-card--BorderColor: var(--pf-v5-c-card--m-selectable--m-selected--focus--BorderColor);
|
|
263
|
+
--pf-v5-c-card--BorderWidth: var(--pf-v5-c-card--m-selectable--m-selected--focus--BorderWidth);
|
|
346
264
|
}
|
|
347
265
|
|
|
348
266
|
.pf-v5-c-card__selectable-actions .pf-v5-c-check__input:where(:disabled) ~ .pf-v5-c-check__label,
|
|
349
267
|
.pf-v5-c-card__selectable-actions .pf-v5-c-radio__input:where(:disabled) ~ .pf-v5-c-radio__label,
|
|
350
268
|
.pf-v5-c-card.pf-m-disabled {
|
|
269
|
+
--pf-v5-c-card__title-text--Color: var(--pf-v5-c-card--m-selectable--m-disabled__title-text--Color);
|
|
270
|
+
--pf-v5-c-card__body--Color: var(--pf-v5-c-card--m-selectable--m-disabled__body--Color);
|
|
271
|
+
--pf-v5-c-card__footer--Color: var(--pf-v5-c-card--m-selectable--m-disabled__footer--Color);
|
|
351
272
|
--pf-v5-c-card--BackgroundColor: var(--pf-v5-c-card--m-selectable--m-disabled--BackgroundColor);
|
|
352
273
|
--pf-v5-c-card--BorderColor: var(--pf-v5-c-card--m-selectable--m-disabled--BorderColor);
|
|
353
|
-
--pf-v5-c-card--BoxShadow: var(--pf-v5-c-card--m-selectable--m-disabled--BoxShadow);
|
|
354
274
|
}
|
|
355
275
|
|
|
356
276
|
.pf-v5-c-card__header,
|
|
@@ -372,6 +292,10 @@
|
|
|
372
292
|
.pf-v5-c-card__title:not(:last-child) {
|
|
373
293
|
padding-block-end: var(--pf-v5-c-card__title--not--last-child--PaddingBottom);
|
|
374
294
|
}
|
|
295
|
+
.pf-v5-c-card__header button.pf-m-inline.pf-m-disabled,
|
|
296
|
+
.pf-v5-c-card__title button.pf-m-inline.pf-m-disabled {
|
|
297
|
+
--pf-v5-c-button--disabled--Color: var(--pf-v5-c-card--c-button--disabled--Color);
|
|
298
|
+
}
|
|
375
299
|
|
|
376
300
|
.pf-v5-c-card__expandable-content {
|
|
377
301
|
--pf-v5-c-card--first-child--PaddingTop: 0;
|
|
@@ -383,31 +307,10 @@
|
|
|
383
307
|
|
|
384
308
|
.pf-v5-c-card__body {
|
|
385
309
|
font-size: var(--pf-v5-c-card__body--FontSize);
|
|
310
|
+
color: var(--pf-v5-c-card__body--Color);
|
|
386
311
|
}
|
|
387
312
|
|
|
388
313
|
.pf-v5-c-card__footer {
|
|
389
314
|
font-size: var(--pf-v5-c-card__footer--FontSize);
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
.pf-v5-c-card__sr-input:focus + .pf-v5-c-card::after {
|
|
393
|
-
position: absolute;
|
|
394
|
-
inset-block-start: 0;
|
|
395
|
-
inset-block-end: 0;
|
|
396
|
-
inset-inline-start: 0;
|
|
397
|
-
inset-inline-end: 0;
|
|
398
|
-
content: "";
|
|
399
|
-
border: var(--pf-v5-c-card__input--focus--BorderWidth) solid var(--pf-v5-c-card__input--focus--BorderColor);
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
:where(.pf-v5-theme-dark) .pf-v5-c-card,
|
|
403
|
-
:where(.pf-v5-theme-dark) .pf-v5-c-card.pf-m-non-selectable-raised {
|
|
404
|
-
--pf-v5-c-card--BoxShadow: var(--pf-v5-global--BoxShadow--md);
|
|
405
|
-
--pf-v5-c-card--m-selectable--m-disabled--BackgroundColor: var(--pf-v5-global--palette--black-700);
|
|
406
|
-
--pf-v5-c-card--m-selectable--hover--BackgroundColor: var(--pf-v5-global--BackgroundColor--150);
|
|
407
|
-
--pf-v5-c-card--m-selectable--m-clickable--m-current--BackgroundColor: var(--pf-v5-global--BackgroundColor--150);
|
|
408
|
-
--pf-v5-c-card--m-selectable--focus--BackgroundColor: var(--pf-v5-global--palette--blue-600);
|
|
409
|
-
--pf-v5-c-card--m-hoverable-raised--hover--BoxShadow: var(--pf-v5-global--BoxShadow--lg);
|
|
410
|
-
--pf-v5-c-card--m-selectable-raised--hover--BoxShadow: var(--pf-v5-global--BoxShadow--lg);
|
|
411
|
-
--pf-v5-c-card--m-selectable-raised--focus--BoxShadow: var(--pf-v5-global--BoxShadow--lg);
|
|
412
|
-
--pf-v5-c-card--m-selectable-raised--active--BoxShadow: var(--pf-v5-global--BoxShadow--lg);
|
|
315
|
+
color: var(--pf-v5-c-card__footer--Color);
|
|
413
316
|
}
|