-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathpf-v5-progress.css
More file actions
229 lines (195 loc) · 7.42 KB
/
Copy pathpf-v5-progress.css
File metadata and controls
229 lines (195 loc) · 7.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
* {
box-sizing: border-box;
}
#container {
--_pf-c-progress__bar--before--BackgroundColorWithOpacity: #0066cc33; /* WARNING: not a recognized token value */
--_pf-c-progress--m-success__bar--BackgroundColorWithOpacity: #3e863533; /* WARNING: not a recognized token value */
--_pf-c-progress--m-warning__bar--BackgroundColorWithOpacity: #f0ab0033; /* WARNING: not a recognized token value */
--_pf-c-progress--m-danger__bar--BackgroundColorWithOpacity: #c9190b33; /* WARNING: not a recognized token value */
/** Gap between sections of progress bar */
--pf-v5-c-progress--GridGap: var(--pf-global--spacer--md, 1rem);
/** Color of progress bar */
--pf-v5-c-progress__bar--before--BackgroundColor: var(--pf-global--primary-color--100, #0066cc);
/** Height of progress bar */
--pf-v5-c-progress__bar--Height: var(--pf-global--spacer--md, 1rem);
/** Background color of progress bar */
--pf-v5-c-progress__bar--BackgroundColor: var(--pf-global--BackgroundColor--light-100, #ffffff);
/** Color of status icon */
--pf-v5-c-progress__status-icon--Color: var(--pf-global--Color--100, #151515);
/** Margin left of status icon */
--pf-v5-c-progress__status-icon--MarginLeft: var(--pf-global--spacer--sm, 0.5rem);
/** Height of progress bar indicator */
--pf-v5-c-progress__indicator--Height: var(--pf-v5-c-progress__bar--Height);
/** Background color of progress bar indicator */
--pf-v5-c-progress__indicator--BackgroundColor: var(--pf-v5-c-progress__bar--before--BackgroundColor);
/** Background color of progress bar when variant is success */
--pf-v5-c-progress--m-success__bar--BackgroundColor: var(--pf-global--success-color--100, #3e8635);
/** Background color of progress bar when variant is warning */
--pf-v5-c-progress--m-warning__bar--BackgroundColor: var(--pf-global--warning-color--100, #f0ab00);
/** Background color of progress bar when variant is danger */
--pf-v5-c-progress--m-danger__bar--BackgroundColor: var(--pf-global--danger-color--100, #c9190b);
/** Color of status icon when variant is success */
--pf-v5-c-progress--m-success__status-icon--Color: var(--pf-global--success-color--100, #3e8635);
/** Color of status icon when variant is warning */
--pf-v5-c-progress--m-warning__status-icon--Color: var(--pf-global--warning-color--100, #f0ab00);
/** Color of status icon when variant is danger */
--pf-v5-c-progress--m-danger__status-icon--Color: var(--pf-global--danger-color--100, #c9190b);
/** Color of progress bar measure when variant is success and measure location is inside */
--pf-v5-c-progress--m-success--m-inside__measure--Color: var(--pf-global--Color--light-100, #ffffff);
/** Font size of progress bar measure when measure location is outside */
--pf-v5-c-progress--m-outside__measure--FontSize: var(--pf-global--FontSize--sm, 0.875rem);
/** Height of progress bar when size is small */
--pf-v5-c-progress--m-sm__bar--Height: var(--pf-global--spacer--sm, 0.5rem);
/** Font size of progress bar description when size is small */
--pf-v5-c-progress--m-sm__description--FontSize: var(--pf-global--FontSize--sm, 0.875rem);
/** Height of progress bar when size is large */
--pf-v5-c-progress--m-lg__bar--Height: var(--pf-global--spacer--lg, 1.5rem);
display: grid;
align-items: end;
grid-gap: var(--pf-v5-c-progress--GridGap);
grid-template-columns: 1fr auto;
grid-template-rows: 1fr auto;
width: 100%;
}
.sm {
--pf-v5-c-progress__bar--Height: var(--pf-v5-c-progress--m-sm__bar--Height);
--pf-v5-c-progress__indicator--Height: var(--pf-v5-c-progress--m-sm__bar--Height);
}
.sm #description {
font-size: var(--pf-v5-c-progress--m-sm__description--FontSize);
}
.lg {
--pf-v5-c-progress__bar--Height: var(--pf-v5-c-progress--m-lg__bar--Height);
--pf-v5-c-progress__indicator--Height: var(--pf-v5-c-progress--m-lg__bar--Height);
}
.outside #description {
grid-column: 1/3;
}
.outside #status {
grid-column: 2/3;
grid-row: 2/3;
align-self: center;
}
.outside progress,
.outside span {
display: inline-block;
font-size: var(--pf-v5-c-progress--m-outside__measure--FontSize);
grid-column: 1/2;
}
.singleline {
grid-template-rows: 1fr;
}
.singleline #description {
display: none;
visibility: hidden;
}
.singleline progress,
.singleline span {
grid-row: 1/2;
grid-column: 1/2;
}
.singleline #status {
grid-row: 1/2;
grid-column: 2/3;
}
.outside, .singleline {
grid-template-columns: 1fr fit-content(50%);
}
#container.success {
--pf-v5-c-progress__bar--before--BackgroundColor: var(--pf-v5-c-progress--m-success__bar--BackgroundColor);
--_pf-c-progress__bar--before--BackgroundColorWithOpacity: var(--_pf-c-progress--m-success__bar--BackgroundColorWithOpacity);
--pf-v5-c-progress__status-icon--Color: var(--pf-v5-c-progress--m-success__status-icon--Color);
}
#container.warning {
--pf-v5-c-progress__bar--before--BackgroundColor: var(--pf-v5-c-progress--m-warning__bar--BackgroundColor);
--_pf-c-progress__bar--before--BackgroundColorWithOpacity: var(--_pf-c-progress--m-warning__bar--BackgroundColorWithOpacity);
--pf-v5-c-progress__status-icon--Color: var(--pf-v5-c-progress--m-warning__status-icon--Color);
}
#container.danger {
--pf-v5-c-progress__bar--before--BackgroundColor: var(--pf-v5-c-progress--m-danger__bar--BackgroundColor);
--_pf-c-progress__bar--before--BackgroundColorWithOpacity: var(--_pf-c-progress--m-danger__bar--BackgroundColorWithOpacity);
--pf-v5-c-progress__status-icon--Color: var(--pf-v5-c-progress--m-danger__status-icon--Color);
}
#description {
word-break: break-word;
grid-column: 1/2;
}
.descriptionTruncated #description {
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#status {
grid-column: 2/3;
grid-row: 1/2;
text-align: right;
word-break: break-word;
display: flex;
align-items: center;
justify-content: end;
}
pf-v5-icon {
margin-left: var(--pf-v5-c-progress__status-icon--MarginLeft);
color: var(--pf-v5-c-progress__status-icon--Color);
}
progress {
position: relative;
grid-column: 1/3;
grid-row: 2/3;
align-self: center;
height: var(--pf-v5-c-progress__bar--Height);
background-color: var(--pf-v5-c-progress__bar--BackgroundColor);
}
.indicator {
position: absolute;
top: 0;
left: 0;
height: var(--pf-v5-c-progress__indicator--Height);
background-color: var(--pf-v5-c-progress__indicator--BackgroundColor);
}
.indicator {
width: 100%;
height: var(--pf-v5-c-progress__bar--Height);
display: block;
}
span {
grid-column: 1/3;
grid-row: 2/3;
text-align: center;
color: var(--pf-v5-c-progress--m-success--m-inside__measure--Color);
}
span::after {
content: attr(data-value);
position: relative;
height: 100%;
}
progress[value] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: var(--_pf-c-progress__bar--before--BackgroundColorWithOpacity);
width: 100%;
height: var(--pf-v5-c-progress__bar--Height);
}
progress:not([value]) {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
progress[value]::-webkit-progress-bar {
background: var(--_pf-c-progress__bar--before--BackgroundColorWithOpacity);
}
progress[value]::-moz-progress-bar {
background: var(--pf-v5-c-progress__bar--before--BackgroundColor);
}
progress[value]::-webkit-progress-value {
background-size: 100% 100%;
background-image: linear-gradient(
90deg,
var(--pf-v5-c-progress__bar--before--BackgroundColor) 100%,
var(--pf-v5-c-progress__bar--before--BackgroundColor) 100%
);
}
pf-v6-tooltip {
height: 0.01px;
}