File: updates.scss

package info (click to toggle)
cockpit 239-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 67,268 kB
  • sloc: javascript: 245,474; ansic: 72,273; python: 23,634; xml: 6,155; sh: 2,919; makefile: 923; sed: 5
file content (420 lines) | stat: -rw-r--r-- 10,636 bytes parent folder | download
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
@import "../lib/page.scss";
@import "../lib/ct-card.scss";

/* Style the list cards as ct-cards */
.pf-c-page__main-section .pf-c-card {
    @extend .ct-card;
}

.pf-c-table tr:nth-child(1) {
    > td, th {
        --pf-c-table--cell--PaddingTop: 0.5rem;
        --pf-c-table--cell--PaddingBottom: 0.5rem;

        padding: var(--pf-c-table--cell--PaddingTop) var(--pf-c-table--cell--PaddingRight) var(--pf-c-table--cell--PaddingBottom) var(--pf-c-table--cell--PaddingLeft);
    }
}

.pk-updates--header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0 1rem;

    &--heading,
    &--actions {
        padding: 0.5rem 0 0;
    }
    &--heading {
        margin: 0;
        padding-right: 15px;
    }
    &--actions {
        > .pf-c-button,
        > .btn-group {
            margin: 5px 5px 0 0;

            &:last-child {
                margin-right: 0;
            }
        }
    }
}

@media screen and (min-width: 640px) {
    .pk-updates--header--auto {
        justify-content: flex-start;
    }
}

/* override default cockpit CSS, as this doesn't fit our table */
table.listing-ct {
    margin-top: 0;
    margin-bottom: 3rem;
    width: 100%;
}

table.listing-ct thead th {
    padding-left: 0;

    &:last-child {
        text-align: left;
    }
}

// Make header's content bold
.pf-c-table tr:nth-child(1) td:nth-child(2) {
    font-weight: var(--pf-global--FontWeight--bold);
}

.ct-table tr {
    td.type {
        min-width: 10ch;
    }

    @media screen and (min-width: 641px) {
        /* Desktop: Truncate version by default and untruncate on hover */
        td.version {
            width: 18ex;
            /* Tables are stretchy, so we *also* need the max-width */
            max-width: 18ex;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;

            /* Expand version string when hovering */
            &:hover {
                overflow: visible;

                .truncating {
                    background: linear-gradient(to left, rgba(237, 248, 255, 0), var(--ct-color-list-hover-bg) 3em);
                    position: relative;
                    padding: 0.5em 4em 0.5em 0;
                }
            }
        }
    }

    td.type {
        white-space: nowrap;
    }

    td.changelog {
        vertical-align: top;

        * {
            display: inline;
            font: inherit;
            background: inherit;
            color: inherit;
        }

        &, p {
            max-width: 60vw;
            margin-bottom: 0;  // counter-act <Markdown>
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }

    th:last-child,
    td.changelog:last-child {
        text-align: left;
    }
}

.severity-critical {
    color: #a30000;
}

.severity-important {
    color: #ec7a08;
}

.severity-low {
    color: var(--ct-color-subtle-copy);
}

// backport "pficon-*" for usage on RHEL/CentOS 7
@font-face {
    font-family: "pf-symbols";
    font-style: normal;
    font-weight: 400;
    src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAa0AA0AAAAACuwAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGmAAAABwAAAAchPYqgUdERUYAAAZ8AAAAGwAAAB4AJwALT1MvMgAAAaAAAAA/AAAAYPhMBnFjbWFwAAAB9AAAAEoAAAFa6UPtOGdhc3AAAAZ0AAAACAAAAAgAAAAQZ2x5ZgAAAkwAAAI6AAADWNr0KC9oZWFkAAABMAAAADYAAAA2EXEBlmhoZWEAAAFoAAAAHQAAACQHugPFaG10eAAAAeAAAAARAAAAEgxVAAhsb2NhAAACQAAAAAwAAAAMAQ4BrG1heHAAAAGIAAAAGAAAACAACQDCbmFtZQAABIgAAAHAAAAD1V8VF11wb3N0AAAGSAAAACwAAABD1h/oGAABAAAAAwAAdc67CF8PPPUACwQAAAAAANbtH7AAAAAA12KdewAI/7QD+AO6AAAACAACAAAAAAAAeJxjYGRgYD7w/wADAwsDCDD/YGBkQAUsAF6qA4gAAAB4nGNgZGBgYGU4wMDMAAJMDGgAABPtAMx4nGNgZmFgnMDAysDANJPpDAMDQz+EZnzNYMzIyYAKGAXQBBgcXlq9dGM+8P8AgwMzEIPUIMkqMDACAEazC7IAeJxjYYAAFgjmYAgFAAEHAGoAAAB4nGNgYGBmgGAZBkYGEAgB8hjBfBYGCyDNxcDBwASEDC+tXrr9//v/P0gRnM0odlJsH1QHHDCyMcAFGIE6QbpRACPDsAcAcgEPSAAAAAAAAAAAAAABDgGseJxtUktr20AQ3tndWUmWZEvWSgp+h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hZLsM27yYZ2l4orub86pm8kiPgdfjTB7DgSH05WTIiVlS5WO8X1U9plsofpd8q1r+IX1KhlOb2tw4Co1XId0usyxlbubbXbC5U0RcpV+aka8XmfiLaArmNMbMuUVxGkVlWerF+gqTZKWznLkzfzSmsGUvx+sZnS1MPLPhcTWiT8fvfubLsU+fiK5zxqwfnuUbYcTrnaOHK9zy2xED7VWfWO97k9aMd63aipJ5bNPCFtFoeN67uu112IqeuacE/wGTkbVXeJxjYGJABowM6IAVKMjEwMTIzMjClp5TWZBhyF6al+lqaewIoU3MAFiyBvIAAQAB//8AD3icY2BkYGDgAWIxIGZiYARCFjAG8RgAA8oAMwAAAAABAAAAANambVUAAAAA1u0fsAAAAADXYp17) format("woff");

    unicode-range: U+E946, U+E93A;
}

.pficon-security:before {
    content: "\e946";
    font-family: pf-symbols;
}

.pficon-enhancement:before {
    content: "\e93a";
    font-family: pf-symbols;
}

td.type {
    > .pficon,
    > .fa {
        margin: calc(-0.5 * var(--pf-global--spacer--xs)) var(--pf-global--spacer--xs) 0 0;
        vertical-align: middle;
    }
}

div.changelog {
    max-height: 20em;
    overflow: auto;
    white-space: pre-wrap;
}

/* Hide changelog summaries in narrow widths */
@media screen and (max-width: 80ch) {
    table.ct-table {
        /* Hide changelog header (there's no class) & data */
        thead th:last-child,
        td.changelog {
            display: none;
        }
    }
}
/* Remove listing table margins in cramped space (mobile) */
@media screen and (max-width: 640px) {
    table.listing-ct {
        /* counteract .pf-c-page__main-section padding */
        margin-left: -1rem;
        margin-right: -1rem;

        /* Mobile mode table should be full width */
        width: 100vw;
    }
    tbody.open > tr.listing-ct-item,
    tbody.open > tr.listing-ct-panel {
        border-left: none;
        border-right: none;
    }
}

/* don't let the install progress bar get too wide */
.progress-main-view {
    max-width: 60rem;
    margin: 10ex auto 0;
}

/* don't let the install progress bar get too wide */
.progress-cancel {
    display: flex;
    margin: 1em auto;
}

/* Add some space betweent the spinner and the text */
.progress-description > svg {
    margin-right: var(--pf-global--spacer--sm);
}

/* stolen from pkg/systemd/overview.scss */
.content-header-extra {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    width: 100%;
    z-index: 900;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    min-height: 4rem;

    @media screen and (min-width: 640px) {
        position: sticky;
    }

    &--state,
    &--updated {
        /* Make the height similar to the button (2px padding + 1px border) */
        padding: 3px 0;
    }

    &--state {
        flex: 100 1 auto;
        padding-right: 1ex;
    }
    &--updated {
        flex: auto;
    }
    &--action {
        text-align: right;
        padding-left: 1ex;
    }
}

/* fixed width to avoid jumpy text between expanded/collapsed */
.expander-caret {
    width: 2ex;
}

.expander-title {
    margin-bottom: 2em;
    display: flex;
    align-items: center;
    hr {
        flex: auto;
    }
    span {
        padding: 1ex;
        flex: none;
    }
}

.flow-list-blank-slate {
    margin: 0 auto;
    max-width: 69rem;
    text-align: center;
}

.flow-list {
    padding: 0;
    max-width: 110rem;
    text-align: left;
    box-sizing: border-box;

    li {
        text-align: left;
        box-sizing: border-box;
        width: 22rem;
        padding: 0 1ex;
        display: inline-block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-weight: 600;
    }
}

.update-log {
    margin: 0 auto;
    max-width: 69rem;
    text-align: center;
    th {
        text-align: left;
        padding-right: 3ex;
    }
    td {
        text-align: left;
    }
}

.update-log-content {
    margin: 0 10ex;
    height: 13em;
    overflow-y: auto;
}

table.header-buttons {
    margin-bottom: 20px; /* replacement for h2's margin-bottom */
    td {
        vertical-align: middle;
    }
    h2 {
        margin: 0 4rem 0 0; /* vertical default ones break vertical alignment */
    }
}

.auto-conf {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    margin: 1em 0 2em;
    width: 100%;

    /* bootstrap sets widths to 100%, way too wide for Select widgets */
    .dropdown-toggle {
        width: auto;
    }
    .ct-select,
    .dropdown {
        width: auto !important;
    }
    .ct-select {
        margin: 0.5ch;
    }
    .dropdown {
        padding: 0.5ch;
    }
}
.auto-conf-text {
    padding: 0 1ch;
}
.auto-conf-group:first-child > .ct-select {
    margin-left: 0;
}
.auto-conf-group:first-child > .dropdown {
    padding-left: 0;
}

/* three columns for auto update hour picker */
#auto-update-time {
    ul {
        width: 25ex;
    }
    li {
        width: 8ex;
        display: inline-block;
        text-align: right;
    }
}

.pk-updates .pf-c-description-list + div {
    padding-top: var(--pf-global--spacer--md);
}

.restart-services-modal-body {
    padding: 1em 0;
}

.pf-c-content ul {
    list-style-type: none;
}

.updates-success-table {
    margin-bottom: 1em;
}

.update-success-actions > button {
    margin: 0.25rem 0 0.25rem 0.5rem;
}

.update-success-table-title {
    padding-left: 0.5em;
}

.status-notification {
    margin-bottom: 1rem;
    #icon {
        vertical-align: -25% !important;
    }
    .fa-lg {
        font-size: 1.5rem;
    }
    #state {
        margin-bottom: 0.3rem;
    }
    .pf-l-flex.pf-m-column > * {
        margin: 0;
    }
}

.cockpit-update-warning {
    margin-right: 1rem;
}

.cockpit-update-warning-icon {
    margin-right: 0.5rem;
}

.cockpit-update-warning-text {
    color: var(--pf-global--warning-color--200);
}