Skip to content

Commit 0afaef7

Browse files
committed
storaged: Use PF6 colors for resources
1 parent b5fe87a commit 0afaef7

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

pkg/storaged/storage.scss

+20-20
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
}
3333

3434
.ct-card.pf-v6-c-card .pf-v6-c-card__title-text.ct-card-small-title {
35-
font-size: var(--pf-v5-global--FontSize--xl);
35+
font-size: var(--pf-t--global--font--size--xl);
3636
}
3737

3838
// Only used in iSCSI dialog
@@ -57,7 +57,7 @@
5757

5858
th {font-weight: bold;
5959
text-align: start;
60-
color: var(--pf-v5-global--palette--black-800);
60+
color: var(--pf-t--global--text--color--regular);
6161
padding-block: 0.75em;
6262
padding-inline: 0;
6363
}
@@ -75,7 +75,7 @@
7575

7676
div.progress {
7777
inline-size: 100%;
78-
block-size: var(--pf-v5-global--FontSize-xs);
78+
block-size: var(--pf-t--global--font--size--xs);
7979
}
8080

8181
td.job-description {
@@ -105,21 +105,21 @@ td.job-action {
105105
}
106106

107107
* + .modal-footer-teardown {
108-
padding-block-start: var(--pf-v5-global--spacer--xl);
108+
padding-block-start: var(--pf-t--global--spacer--xl);
109109
}
110110

111111
// FIXME: This is visual only; it needs to be fixed for a11y reasons, likely at the JSX level
112112
.indent {
113-
padding-inline-start: calc(var(--pf-v5-global--spacer--md) * min(var(--level, 0), 10));
113+
padding-inline-start: calc(var(--pf-t--global--spacer--md) * min(var(--level, 0), 10));
114114
white-space: nowrap;
115115
}
116116

117117
// FIXME: Is this used?
118-
a.disabled {
119-
color: var(--pf-v5-global--palette--light-blue-200);
120-
text-decoration: none;
121-
cursor: not-allowed;
122-
}
118+
// a.disabled {
119+
// color: var(--pf-v5-global--palette--light-blue-200);
120+
// text-decoration: none;
121+
// cursor: not-allowed;
122+
// }
123123

124124
.widest-title {
125125
visibility: hidden;
@@ -137,16 +137,16 @@ a.disabled {
137137
}
138138

139139
.delete-resource-dangerous {
140-
color: var(--pf-v5-global--danger-color--200);
140+
color: var(--pf-t--global--color--status--danger--default);
141141
}
142142

143143
.pf-v6-c-modal-box .slot-warning {
144-
color: var(--pf-v5-global--danger-color--200);
144+
color: var(--pf-t--global--color--status--danger--default);
145145
}
146146

147147
// This is needed to avoid showing scrollbar in dialog
148148
.size-slider {
149-
padding-block-end: var(--pf-v5-global--spacer--xs);
149+
padding-block-end: var(--pf-t--global--spacer--xs);
150150
}
151151

152152
.panel-heading {
@@ -172,16 +172,16 @@ a.disabled {
172172
}
173173

174174
// So that "Stored passphrase" fits
175-
.pf-v6-c-description-list.wide-label {
176-
--pf-v5-c-description-list--m-horizontal__term--width: minmax(0, 18ch);
177-
}
175+
// .pf-v6-c-description-list.wide-label {
176+
// --pf-v5-c-description-list--m-horizontal__term--width: minmax(0, 18ch);
177+
// }
178178

179179
.pf-v6-c-description-list .pf-v6-c-progress {
180180
max-inline-size: 30ch;
181181
}
182182

183183
.usage-bar {
184-
--bg-color: var(--pf-v5-global--primary-color--100);
184+
--bg-color: var(--pf-t--chart--theme--colorscales--blue--colorscale--100);
185185
display: inline-block;
186186
inline-size: 20em;
187187
block-size: 1rem;
@@ -195,7 +195,7 @@ a.disabled {
195195
}
196196

197197
&-danger {
198-
--bg-color: var(--pf-v5-global--danger-color--100);
198+
--bg-color: var(--pf-t--chart--global--danger--color--100);
199199
}
200200

201201
&-empty {
@@ -329,11 +329,11 @@ a.disabled {
329329

330330
> svg {
331331
// Bump the icon down to align with text, based on the difference between icon and text size, just for the top
332-
inset-block-start: calc((var(--pf-v5-global--spacer--md) * var(--pf-v5-global--LineHeight--md) - var(--icon-size)) / 2);
332+
inset-block-start: calc((var(--pf-t--global--spacer--md) * var(--pf-t--global--font--line-height--body) - var(--icon-size)) / 2);
333333
position: relative;
334334

335335
path {
336-
fill: var(--pf-v5-global--Color--200);
336+
fill: var(--pf-t--global--text--color--subtle);
337337
}
338338
}
339339
}

0 commit comments

Comments
 (0)