Debian Codegraph @

node/@patternfly/react-styles/css/components/Progress/progress.css

raw
1 .pf-v6-c-progress {
2 --pf-v6-c-progress--GridGap: var(--pf-t--global--spacer--md);
3 --pf-v6-c-progress__bar--Height: var(--pf-t--global--spacer--md);
4 --pf-v6-c-progress__bar--BackgroundColor: var(--pf-t--global--color--nonstatus--gray--default);
5 --pf-v6-c-progress__bar--BorderRadius: var(--pf-t--global--border--radius--pill);
6 --pf-v6-c-progress__bar--BorderColor: var(--pf-t--global--border--color--high-contrast);
7 --pf-v6-c-progress__bar--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular);
8 --pf-v6-c-progress__measure--m-static-width--MinWidth: 4.5ch;
9 --pf-v6-c-progress__status--Gap: var(--pf-t--global--spacer--sm);
10 --pf-v6-c-progress__status-icon--Color: var(--pf-t--global--icon--color--regular);
11 --pf-v6-c-progress__indicator--Height: var(--pf-v6-c-progress__bar--Height);
12 --pf-v6-c-progress__indicator--BackgroundColor: var(--pf-t--global--color--brand--default);
13 --pf-v6-c-progress__indicator--BorderWidth: var(--pf-t--global--border--width--high-contrast--extra-strong);
14 --pf-v6-c-progress__indicator--BorderColor: transparent;
15 --pf-v6-c-progress__indicator--BorderRadius: var(--pf-t--global--border--radius--pill);
16 --pf-v6-c-progress__helper-text--MarginBlockStart: calc(var(--pf-t--global--spacer--sm) - var(--pf-v6-c-progress--GridGap));
17 --pf-v6-c-progress--m-success__indicator--BackgroundColor: var(--pf-t--global--color--status--success--default);
18 --pf-v6-c-progress--m-warning__indicator--BackgroundColor: var(--pf-t--global--color--status--warning--default);
19 --pf-v6-c-progress--m-danger__indicator--BackgroundColor: var(--pf-t--global--color--status--danger--default);
20 --pf-v6-c-progress--m-success__status-icon--Color: var(--pf-t--global--icon--color--status--success--default);
21 --pf-v6-c-progress--m-warning__status-icon--Color: var(--pf-t--global--icon--color--status--warning--default);
22 --pf-v6-c-progress--m-danger__status-icon--Color: var(--pf-t--global--icon--color--status--danger--default);
23 --pf-v6-c-progress--m-inside__indicator--MinWidth: var(--pf-t--global--spacer--xl);
24 --pf-v6-c-progress--m-inside__measure--Color: var(--pf-t--global--text--color--on-brand--default);
25 --pf-v6-c-progress--m-success--m-inside__measure--Color: var(--pf-t--global--text--color--status--on-success--default);
26 --pf-v6-c-progress--m-warning--m-inside__measure--Color: var(--pf-t--global--text--color--status--on-warning--default);
27 --pf-v6-c-progress--m-danger--m-inside__measure--Color: var(--pf-t--global--text--color--status--on-danger--default);
28 --pf-v6-c-progress--m-inside__measure--FontSize: var(--pf-t--global--font--size--sm);
29 --pf-v6-c-progress--m-outside__measure--FontSize: var(--pf-t--global--font--size--sm);
30 --pf-v6-c-progress--m-sm__bar--Height: var(--pf-t--global--spacer--sm);
31 --pf-v6-c-progress--m-sm__measure--FontSize: var(--pf-t--global--font--size--body--sm);
32 --pf-v6-c-progress--m-lg__bar--Height: var(--pf-t--global--spacer--lg);
33 }
34
35 .pf-v6-c-progress {
36 display: grid;
37 grid-template-rows: 1fr auto;
38 grid-template-columns: auto auto;
39 gap: var(--pf-v6-c-progress--GridGap);
40 align-items: end;
41 }
42 .pf-v6-c-progress.pf-m-sm {
43 --pf-v6-c-progress__bar--Height: var(--pf-v6-c-progress--m-sm__bar--Height);
44 }
45 .pf-v6-c-progress.pf-m-sm .pf-v6-c-progress__measure {
46 font-size: var(--pf-v6-c-progress--m-sm__measure--FontSize);
47 }
48 .pf-v6-c-progress.pf-m-lg {
49 --pf-v6-c-progress__bar--Height: var(--pf-v6-c-progress--m-lg__bar--Height);
50 }
51 .pf-v6-c-progress.pf-m-inside .pf-v6-c-progress__indicator {
52 display: flex;
53 align-items: center;
54 justify-content: center;
55 min-width: var(--pf-v6-c-progress--m-inside__indicator--MinWidth);
56 }
57 .pf-v6-c-progress.pf-m-inside .pf-v6-c-progress__measure {
58 font-size: var(--pf-v6-c-progress--m-inside__measure--FontSize);
59 color: var(--pf-v6-c-progress--m-inside__measure--Color);
60 text-align: center;
61 }
62 .pf-v6-c-progress.pf-m-outside .pf-v6-c-progress__description {
63 grid-column: 1/3;
64 }
65 .pf-v6-c-progress.pf-m-outside .pf-v6-c-progress__status {
66 grid-row: 2/3;
67 grid-column: 2/3;
68 align-self: center;
69 }
70 .pf-v6-c-progress.pf-m-outside .pf-v6-c-progress__measure {
71 display: inline-block;
72 font-size: var(--pf-v6-c-progress--m-outside__measure--FontSize);
73 }
74 .pf-v6-c-progress.pf-m-outside .pf-v6-c-progress__measure.pf-m-static-width {
75 min-width: var(--pf-v6-c-progress__measure--m-static-width--MinWidth);
76 text-align: start;
77 }
78 .pf-v6-c-progress.pf-m-outside .pf-v6-c-progress__bar,
79 .pf-v6-c-progress.pf-m-outside .pf-v6-c-progress__indicator {
80 grid-column: 1/2;
81 }
82 .pf-v6-c-progress.pf-m-singleline {
83 grid-template-rows: 1fr;
84 }
85 .pf-v6-c-progress.pf-m-singleline .pf-v6-c-progress__description {
86 display: none;
87 }
88 .pf-v6-c-progress.pf-m-singleline .pf-v6-c-progress__bar {
89 grid-row: 1/2;
90 grid-column: 1/2;
91 }
92 .pf-v6-c-progress.pf-m-singleline .pf-v6-c-progress__status {
93 grid-row: 1/2;
94 grid-column: 2/3;
95 }
96 .pf-v6-c-progress.pf-m-outside, .pf-v6-c-progress.pf-m-singleline {
97 grid-template-columns: 1fr fit-content(50%);
98 }
99 .pf-v6-c-progress.pf-m-success {
100 --pf-v6-c-progress__indicator--BackgroundColor: var(--pf-v6-c-progress--m-success__indicator--BackgroundColor);
101 --pf-v6-c-progress__status-icon--Color: var(--pf-v6-c-progress--m-success__status-icon--Color);
102 --pf-v6-c-progress--m-inside__measure--Color: var(--pf-v6-c-progress--m-success--m-inside__measure--Color);
103 }
104 .pf-v6-c-progress.pf-m-warning {
105 --pf-v6-c-progress__indicator--BackgroundColor: var(--pf-v6-c-progress--m-warning__indicator--BackgroundColor);
106 --pf-v6-c-progress__status-icon--Color: var(--pf-v6-c-progress--m-warning__status-icon--Color);
107 --pf-v6-c-progress--m-inside__measure--Color: var(--pf-v6-c-progress--m-warning--m-inside__measure--Color);
108 }
109 .pf-v6-c-progress.pf-m-danger {
110 --pf-v6-c-progress__indicator--BackgroundColor: var(--pf-v6-c-progress--m-danger__indicator--BackgroundColor);
111 --pf-v6-c-progress__status-icon--Color: var(--pf-v6-c-progress--m-danger__status-icon--Color);
112 --pf-v6-c-progress--m-inside__measure--Color: var(--pf-v6-c-progress--m-danger--m-inside__measure--Color);
113 }
114 @media (prefers-reduced-motion: no-preference) {
115 .pf-v6-c-progress.pf-m-danger .pf-v6-c-progress__bar {
116 translate: var(--pf-v6-global--danger-jiggle--TranslateX, 0);
117 animation-name: pf-v6-global-danger-jiggle-motion;
118 animation-duration: var(--pf-v6-global--danger-jiggle--AnimationDuration--Transform);
119 animation-timing-function: var(--pf-v6-global--danger-jiggle--AnimationTimingFunction--Transform);
120 animation-fill-mode: both;
121 }
122 }
123 .pf-v6-c-progress.pf-m-danger .pf-v6-c-progress__status-icon {
124 --pf-v6-c-progress--TransitionDuration--Opacity: var(--pf-t--global--motion--duration--fade--default);
125 --pf-v6-c-progress--TransitionTimingFunction--Opacity: var(--pf-t--global--motion--timing-function--default);
126 animation-name: pf-v6-global-fade-in;
127 animation-duration: var(--pf-v6-c-progress--TransitionDuration--Opacity);
128 animation-timing-function: var(--pf-v6-c-progress--TransitionTimingFunction--Opacity);
129 }
130
131 .pf-v6-c-progress__description {
132 grid-column: 1/2;
133 overflow-wrap: anywhere;
134 }
135 .pf-v6-c-progress__description.pf-m-truncate {
136 overflow: hidden;
137 text-overflow: ellipsis;
138 white-space: nowrap;
139 }
140
141 .pf-v6-c-progress__status {
142 display: flex;
143 grid-row: 1/2;
144 grid-column: 2/3;
145 gap: var(--pf-v6-c-progress__status--Gap);
146 align-items: flex-start;
147 justify-content: flex-end;
148 text-align: end;
149 overflow-wrap: anywhere;
150 }
151
152 .pf-v6-c-progress__status-icon {
153 color: var(--pf-v6-c-progress__status-icon--Color);
154 }
155
156 .pf-v6-c-progress__bar::before,
157 .pf-v6-c-progress__indicator {
158 inset-block-start: 0;
159 inset-inline-start: 0;
160 }
161
162 .pf-v6-c-progress__bar {
163 position: relative;
164 grid-row: 2/3;
165 grid-column: 1/3;
166 align-self: center;
167 height: var(--pf-v6-c-progress__bar--Height);
168 overflow: hidden;
169 background-color: var(--pf-v6-c-progress__bar--BackgroundColor);
170 border-radius: var(--pf-v6-c-progress__bar--BorderRadius);
171 }
172 .pf-v6-c-progress__bar::before {
173 position: absolute;
174 inset: 0;
175 pointer-events: none;
176 content: "";
177 border: var(--pf-v6-c-progress__bar--BorderWidth) solid var(--pf-v6-c-progress__bar--BorderColor);
178 border-radius: inherit;
179 }
180
181 .pf-v6-c-progress__indicator {
182 position: absolute;
183 height: var(--pf-v6-c-progress__indicator--Height);
184 background-color: var(--pf-v6-c-progress__indicator--BackgroundColor);
185 border-radius: var(--pf-v6-c-progress__indicator--BorderRadius);
186 }
187 .pf-v6-c-progress__indicator::before {
188 position: absolute;
189 inset: 0;
190 content: "";
191 border: var(--pf-v6-c-progress__indicator--BorderWidth) solid var(--pf-v6-c-progress__indicator--BorderColor);
192 border-radius: var(--pf-v6-c-progress__bar--BorderRadius);
193 }
194
195 .pf-v6-c-progress__helper-text {
196 grid-row: 3/4;
197 grid-column: 1/3;
198 margin-block-start: var(--pf-v6-c-progress__helper-text--MarginBlockStart);
199 }
200
201 .pf-v6-c-progress__measure {
202 font-variant-numeric: tabular-nums;
203 }