| 1 |
/* |
| 2 |
* Copyright (C) 2015 Red Hat, Inc. |
| 3 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 |
*/ |
| 5 |
@use "ct-card"; |
| 6 |
@use "page"; |
| 7 |
@use "table"; |
| 8 |
@use "journal"; |
| 9 |
@use "global-variables" as *; |
| 10 |
@use "@patternfly/patternfly/components/Card/card.scss"; |
| 11 |
@use "@patternfly/patternfly/components/Progress/progress.scss"; |
| 12 |
@use "@patternfly/patternfly/utilities/Flex/flex.scss"; |
| 13 |
@use "@patternfly/patternfly/utilities/Text/text.scss"; |
| 14 |
@use "@patternfly/patternfly/utilities/Alignment/alignment.scss"; |
| 15 |
@use "storage-anaconda.scss"; |
| 16 |
|
| 17 |
#storage .pf-v6-c-card { |
| 18 |
@extend .ct-card; |
| 19 |
} |
| 20 |
|
| 21 |
// Only used in iSCSI dialog |
| 22 |
.dialog-select-row-table { |
| 23 |
inline-size: 100%; |
| 24 |
|
| 25 |
td { |
| 26 |
text-align: start; |
| 27 |
padding-block: 0.75em; |
| 28 |
padding-inline: 0; |
| 29 |
vertical-align: top; |
| 30 |
border: 1px solid #d1d1d1; |
| 31 |
|
| 32 |
&:first-child { |
| 33 |
border-inline-end-width: 0; |
| 34 |
} |
| 35 |
|
| 36 |
&:last-child { |
| 37 |
border-inline-start-width: 0; |
| 38 |
} |
| 39 |
} |
| 40 |
|
| 41 |
th { |
| 42 |
font-weight: var(--pf-t--global--font--weight--body--bold); |
| 43 |
text-align: start; |
| 44 |
color: var(--pf-t--global--text--color--regular); |
| 45 |
padding-block: 0.75em; |
| 46 |
padding-inline: 0; |
| 47 |
} |
| 48 |
|
| 49 |
td, th { |
| 50 |
&:first-child { |
| 51 |
padding-inline-start: 0.75em; |
| 52 |
} |
| 53 |
|
| 54 |
&:last-child { |
| 55 |
padding-inline-end: 0.75em; |
| 56 |
} |
| 57 |
} |
| 58 |
} |
| 59 |
|
| 60 |
div.progress { |
| 61 |
inline-size: 100%; |
| 62 |
block-size: var(--pf-t--global--font--size--xs); |
| 63 |
} |
| 64 |
|
| 65 |
td.job-description { |
| 66 |
inline-size: 50%; |
| 67 |
} |
| 68 |
|
| 69 |
td.job-action { |
| 70 |
text-align: end; |
| 71 |
} |
| 72 |
|
| 73 |
.storage-graph { |
| 74 |
block-size: 180px; |
| 75 |
} |
| 76 |
|
| 77 |
.dialog-item-tooltip { |
| 78 |
margin-inline-start: 5px; |
| 79 |
padding: 0; |
| 80 |
white-space: nowrap; |
| 81 |
} |
| 82 |
|
| 83 |
.modal-footer-teardown { |
| 84 |
text-align: start; |
| 85 |
} |
| 86 |
|
| 87 |
.modal-footer-teardown td { |
| 88 |
vertical-align: baseline; |
| 89 |
} |
| 90 |
|
| 91 |
* + .modal-footer-teardown { |
| 92 |
padding-block-start: var(--pf-t--global--spacer--xl); |
| 93 |
} |
| 94 |
|
| 95 |
// FIXME: This is visual only; it needs to be fixed for a11y reasons, likely at the JSX level |
| 96 |
.indent { |
| 97 |
padding-inline-start: calc(var(--pf-t--global--spacer--md) * min(var(--level, 0), 10)); |
| 98 |
white-space: nowrap; |
| 99 |
} |
| 100 |
|
| 101 |
.widest-title { |
| 102 |
visibility: hidden; |
| 103 |
block-size: 0; |
| 104 |
} |
| 105 |
|
| 106 |
.sigkey-hash { |
| 107 |
font-family: monospace; |
| 108 |
font-size: 140%; |
| 109 |
} |
| 110 |
|
| 111 |
.delete-resource-dangerous { |
| 112 |
color: var(--pf-t--global--color--status--danger--default); |
| 113 |
} |
| 114 |
|
| 115 |
.pf-v6-c-modal-box .slot-warning { |
| 116 |
color: var(--pf-t--global--color--status--danger--default); |
| 117 |
} |
| 118 |
|
| 119 |
// This is needed to avoid showing scrollbar in dialog |
| 120 |
.size-slider { |
| 121 |
padding-block-end: var(--pf-t--global--spacer--xs); |
| 122 |
} |
| 123 |
|
| 124 |
.storage-alert-actions button { |
| 125 |
margin-block: 0.5rem 0.2rem; |
| 126 |
margin-inline: 0 0.2rem; |
| 127 |
} |
| 128 |
|
| 129 |
// FIXME: There's probably a better way to do this. |
| 130 |
// We wrap the data list row with a label to make checkboxes clickable from the whole row |
| 131 |
// we need this HACK in order to make alignRight property take effect |
| 132 |
.data-list-row-checkbox-label { |
| 133 |
display: flex; |
| 134 |
flex-wrap: wrap; |
| 135 |
flex-grow: 1; |
| 136 |
} |
| 137 |
|
| 138 |
.crypto-keyslots-list { |
| 139 |
border: none; |
| 140 |
} |
| 141 |
|
| 142 |
.pf-v6-c-description-list .pf-v6-c-progress { |
| 143 |
max-inline-size: 30ch; |
| 144 |
} |
| 145 |
|
| 146 |
.usage-bar { |
| 147 |
--bg-color: var(--pf-t--chart--theme--colorscales--blue--colorscale--100); |
| 148 |
display: inline-block; |
| 149 |
inline-size: 20em; |
| 150 |
block-size: 1rem; |
| 151 |
margin-inline-start: 1rem; |
| 152 |
position: relative; |
| 153 |
inset-block-start: 0.15rem; // XXX - center it |
| 154 |
inset-inline-start: 0; |
| 155 |
|
| 156 |
&-short { |
| 157 |
inline-size: 3.5rem; |
| 158 |
} |
| 159 |
|
| 160 |
&-danger { |
| 161 |
--bg-color: var(--pf-t--chart--global--danger--color--100); |
| 162 |
} |
| 163 |
|
| 164 |
&-empty { |
| 165 |
--bg-color: none; |
| 166 |
} |
| 167 |
|
| 168 |
&-indicator { |
| 169 |
display: inline-block; |
| 170 |
background: var(--bg-color); |
| 171 |
position: absolute; |
| 172 |
inset-block-start: 0; |
| 173 |
inset-inline-start: 0; |
| 174 |
block-size: 100%; |
| 175 |
} |
| 176 |
|
| 177 |
// Hatched effect for progressbars that are parts of a group, but not the main |
| 178 |
&-other { |
| 179 |
// Use the page's default background color |
| 180 |
--bg-light: transparent; |
| 181 |
// Alternate with the used color of the progress bar |
| 182 |
--bg-dark: var(--bg-color); |
| 183 |
// Repeat a gradient with hard stops, a perfect slant, and a consistency |
| 184 |
// with all "other" hatched backgrounds |
| 185 |
background: repeating-linear-gradient( |
| 186 |
-45deg, |
| 187 |
var(--bg-light), |
| 188 |
var(--bg-light) 25%, |
| 189 |
var(--bg-dark) 25%, |
| 190 |
var(--bg-dark) 50%, |
| 191 |
var(--bg-light) 50% |
| 192 |
) top left; |
| 193 |
background-size: var(--pf-t--global--spacer--sm) var(--pf-t--global--spacer--sm); |
| 194 |
// Overlay at 1/3 to mix the light and dark against the through color |
| 195 |
opacity: 0.333; |
| 196 |
} |
| 197 |
|
| 198 |
&::before { |
| 199 |
display: inline-block; |
| 200 |
content: ""; |
| 201 |
background: var(--bg-color); |
| 202 |
opacity: 0.2; |
| 203 |
position: absolute; |
| 204 |
inset-block-start: 0; |
| 205 |
inset-inline-start: 0; |
| 206 |
inline-size: 100%; |
| 207 |
block-size: 100%; |
| 208 |
} |
| 209 |
} |
| 210 |
|
| 211 |
.storage-pvs-box { |
| 212 |
border: 1px solid var(--pf-t--global--border--color--nonstatus--purple--default); |
| 213 |
background: var(--pf-t--global--color--nonstatus--purple--default); |
| 214 |
color: var(--pf-t--global--text--color--on-highlight); |
| 215 |
border-radius: var(--pf-t--global--border--radius--tiny); |
| 216 |
} |
| 217 |
|
| 218 |
.storage-pvs-pv-box { |
| 219 |
padding: var(--pf-t--global--spacer--sm); |
| 220 |
|
| 221 |
&:not(:last-child) { |
| 222 |
border-block-end: 1px solid var(--pf-t--global--border--color--nonstatus--purple--clicked); |
| 223 |
} |
| 224 |
} |
| 225 |
|
| 226 |
.storage-pvs-pv-box-dev { |
| 227 |
font-size: var(--pf-t--global--font--size--sm); |
| 228 |
font-weight: var(--pf-t--global--font--weight--400); |
| 229 |
} |
| 230 |
|
| 231 |
.storage-stripe-box { |
| 232 |
border: 1px solid var(--pf-t--global--border--color--nonstatus--purple--default); |
| 233 |
background: var(--pf-t--global--color--nonstatus--purple--default); |
| 234 |
color: var(--pf-t--global--text--color--on-highlight); |
| 235 |
border-radius: var(--pf-t--global--border--radius--tiny); |
| 236 |
} |
| 237 |
|
| 238 |
.storage-stripe-pv-box { |
| 239 |
padding: var(--pf-t--global--spacer--sm); |
| 240 |
} |
| 241 |
|
| 242 |
.storage-stripe-pv-box:not(:last-child) { |
| 243 |
border-block-end: 1px solid var(--pf-t--global--border--color--nonstatus--purple--clicked); |
| 244 |
} |
| 245 |
|
| 246 |
.storage-stripe-pv-box-dev { |
| 247 |
font-size: var(--pf-t--global--font--size--sm); |
| 248 |
font-weight: var(--pf-t--global--font--weight--400); |
| 249 |
} |
| 250 |
|
| 251 |
.remove-border { |
| 252 |
border-block-end: 0 !important; |
| 253 |
} |
| 254 |
|
| 255 |
.storage-menu-title { |
| 256 |
text-align: start; |
| 257 |
white-space: nowrap !important; |
| 258 |
} |
| 259 |
|
| 260 |
.pf-v6-c-table__tbody .storage-device-icon { |
| 261 |
--icon-size: 18px; |
| 262 |
// Ensure the icon's cell size is as minimal as the icon allows |
| 263 |
// (WebKit needs a size; 0 doesn't work for it) |
| 264 |
inline-size: 1px; |
| 265 |
// Remove unnecessary padding |
| 266 |
padding-inline-end: 0; |
| 267 |
|
| 268 |
> svg { |
| 269 |
// Bump the icon down to align with text, based on the difference between icon and text size, just for the top |
| 270 |
inset-block-start: calc((var(--pf-t--global--spacer--md) * var(--pf-t--global--font--line-height--body) - var(--icon-size)) / 2); |
| 271 |
position: relative; |
| 272 |
|
| 273 |
path { |
| 274 |
fill: var(--pf-t--global--text--color--subtle); |
| 275 |
} |
| 276 |
} |
| 277 |
} |
| 278 |
|
| 279 |
.storage-size-column { |
| 280 |
text-align: end; |
| 281 |
white-space: nowrap !important; |
| 282 |
} |
| 283 |
|
| 284 |
.storage-size-column-header { |
| 285 |
text-align: end; |
| 286 |
// Align the "Size" header with the text of the usage bars. |
| 287 |
// var(--pf-v6-c-table--cell--PaddingInlineEnd): padding of compact td cells |
| 288 |
// 3.5rem: width of short progress bars |
| 289 |
// 1rem: margin between text and progress bar |
| 290 |
padding-inline-end: calc(var(--pf-v6-c-table--cell--PaddingInlineEnd) + 3.5rem + 1rem) !important; |
| 291 |
} |
| 292 |
|
| 293 |
// HACK - https://github.com/patternfly/patternfly/issues/7255 |
| 294 |
// Bug - Truncate - removes underline from link |
| 295 |
|
| 296 |
.pf-v6-c-button .pf-v6-c-truncate span { |
| 297 |
text-decoration: var(--pf-v6-c-button--TextDecorationLine) var(--pf-v6-c-button--TextDecorationStyle); |
| 298 |
} |