|
20 | 20 | //
|
21 | 21 | // When we have the upcoming version of PF4 in Cockpit, we should drop this code
|
22 | 22 | // (and adjust things for the button to show up on the side of desktop mode instead)
|
23 |
| - @media (max-width: $pf-v6-global--breakpoint--lg) { |
24 |
| - grid-template-areas: "icon title" ". content" ". action"; |
25 |
| - grid-gap: var(--pf-v5-global--spacer--sm) 0; |
| 23 | + @media (max-width: $pf-v6-global--breakpoint--md) { |
| 24 | + --pf-v6-c-alert--GridTemplateAreas: "icon title" ". description" ". action"; |
| 25 | + --pf-v6-c-alert__action--MarginBlockStart: 0; |
26 | 26 | }
|
27 | 27 |
|
28 | 28 | @media (max-width: 320px) {
|
29 | 29 | // Allow the action button to have a bit more space on iPhone SE sized phones
|
30 |
| - grid-template-areas: "icon title" ". content" "action action"; |
31 |
| - } |
32 |
| - |
33 |
| - > .pf-v6-c-alert__action { |
34 |
| - margin-inline: var(--pf-v5-global--spacer--md) 0; |
35 |
| - } |
36 |
| - |
37 |
| - // Align left content with the rest of the page |
38 |
| - @media (min-width: $pf-v6-global--breakpoint--xl) { |
39 |
| - padding-inline-start: var(--pf-v5-global--spacer--lg); |
| 30 | + --pf-v6-c-alert--GridTemplateAreas: "icon title" "description description" "action action"; |
| 31 | + --pf-v6-c-alert__action--MarginBlockStart: 0; |
40 | 32 | }
|
41 | 33 | }
|
42 | 34 |
|
|
83 | 75 |
|
84 | 76 | .pf-v6-l-gallery.ct-system-overview {
|
85 | 77 | --cards: 2;
|
86 |
| - --pf-v5-l-gallery--GridTemplateColumns: repeat(var(--cards), 1fr); |
| 78 | + --pf-v6-l-gallery--GridTemplateColumns: repeat(var(--cards), 1fr); |
87 | 79 |
|
88 | 80 | // Small mobile: Reduce spacing
|
89 | 81 | @media (max-width: 320px) {
|
90 |
| - // --pf-v5-l-gallery--m-gutter--GridGap: 0.25rem; |
| 82 | + --pf-v6-l-gallery--m-gutter--GridGap: 0.25rem; |
91 | 83 | }
|
92 | 84 |
|
93 | 85 | // Mobile: reduce to 1 card wide and minimize spacing
|
94 | 86 | @media (max-width: 680px) {
|
95 |
| - --pf-v5-l-gallery--m-gutter--GridGap: var(--pf-v5-global--spacer--sm); |
| 87 | + --pf-v6-l-gallery--m-gutter--GridGap: var(--pf-t--global--spacer--sm); |
96 | 88 | --cards: 1;
|
97 | 89 | }
|
98 | 90 |
|
|
102 | 94 | }
|
103 | 95 |
|
104 | 96 | // Extra large desktop: Let cards align to the left at an optimal size
|
105 |
| - @media (min-width: 110rem) { |
106 |
| - --pf-v5-l-gallery--GridTemplateColumns: repeat(auto-fill, minmax(min-content, 26rem)); |
| 97 | + @media (min-width: 113rem) { |
| 98 | + --pf-v6-l-gallery--GridTemplateColumns: repeat(auto-fill, minmax(min-content, 26rem)); |
107 | 99 | }
|
108 | 100 |
|
109 | 101 | // VMs @ 1024x768; add a little leeway For titlebars, start bar, etc.
|
110 | 102 | @media (orientation: landscape) and (min-width: 684px) and (max-width: 832px) and (max-height: 703px) {
|
111 |
| - --pf-v5-l-gallery--m-gutter--GridGap: var(--pf-v5-global--spacer--sm); |
| 103 | + --pf-v6-l-gallery--m-gutter--GridGap: var(--pf-t--global--spacer--sm); |
112 | 104 |
|
113 | 105 | // Also skim off some vertical space for the cards
|
114 | 106 | .pf-v6-c-card {
|
115 |
| - --pf-v5-c-card--first-child--PaddingTop: var(--pf-v5-global--spacer--md); |
116 |
| - --pf-v5-c-card--child--PaddingRight: var(--pf-v5-global--spacer--md); |
| 107 | + --pf-v6-c-card--first-child--PaddingTop: var(--pf-t--global--spacer--md); |
| 108 | + --pf-v6-c-card--child--PaddingRight: var(--pf-t--global--spacer--md); |
117 | 109 | }
|
118 | 110 | }
|
119 | 111 |
|
|
123 | 115 |
|
124 | 116 | .pf-v6-c-card {
|
125 | 117 | &__title-text {
|
126 |
| - font-size: var(--pf-v5-global--FontSize--xl); |
127 |
| - font-weight: var(--pf-v5-global--FontWeight--normal); |
| 118 | + font-size: var(--pf-t--global--font--size--xl); |
| 119 | + font-weight: var(--pf-t--global--font--weight--body); |
128 | 120 | }
|
129 | 121 |
|
130 | 122 | &__body {
|
|
136 | 128 | p {
|
137 | 129 | + p,
|
138 | 130 | + button {
|
139 |
| - margin-block-start: calc(var(--pf-v5-global--LineHeight--md) * 1rem); |
| 131 | + margin-block-start: calc(var(--pf-t--global--font--line-height--body) * 1rem); |
140 | 132 | }
|
141 | 133 | }
|
142 | 134 |
|
|
145 | 137 | }
|
146 | 138 |
|
147 | 139 | th {
|
148 |
| - font-size: var(--pf-v5-global--FontSize--sm); |
| 140 | + font-size: var(--pf-t--global--font--size--sm); |
149 | 141 | }
|
150 | 142 | }
|
151 | 143 | }
|
|
191 | 183 | /* Reduce gutter & padding on smaller widths, for desktop & mobile */
|
192 | 184 |
|
193 | 185 | .pf-v6-l-gallery.ct-system-overview {
|
194 |
| - --pf-v5-l-gallery--m-gutter--GridGap: calc(var(--pf-v5-global--gutter--md)/2); |
| 186 | + --pf-v6-l-gallery--m-gutter--GridGap: calc(var(--pf-t--global--spacer--md)/2); |
195 | 187 | }
|
196 | 188 |
|
197 | 189 | .pf-v6-c-card {
|
198 |
| - --pf-v5-c-card--first-child--PaddingTop: var(--pf-v5-global--spacer--md); |
199 |
| - --pf-v5-c-card--child--PaddingRight: var(--pf-v5-global--spacer--md); |
200 |
| - --pf-v5-c-card--child--PaddingBottom: var(--pf-v5-global--spacer--md); |
201 |
| - --pf-v5-c-card--child--PaddingLeft: var(--pf-v5-global--spacer--md); |
202 |
| - --pf-v5-c-card__title--not-last-child--PaddingBottom: var(--pf-v5-global--spacer--sm); |
| 190 | + --pf-v6-c-card--first-child--PaddingTop: var(--pf-t--global--spacer--md); |
| 191 | + --pf-v6-c-card--child--PaddingRight: var(--pf-t--global--spacer--md); |
| 192 | + --pf-v6-c-card--child--PaddingBottom: var(--pf-t--global--spacer--md); |
| 193 | + --pf-v6-c-card--child--PaddingLeft: var(--pf-t--global--spacer--md); |
| 194 | + --pf-v6-c-card__title--not-last-child--PaddingBottom: var(--pf-t--global--spacer--sm); |
203 | 195 | }
|
204 | 196 | }
|
205 | 197 |
|
|
0 commit comments