File: updates.less

package info (click to toggle)
cockpit 188-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 119,768 kB
  • sloc: ansic: 66,833; xml: 5,776; python: 3,122; sh: 2,322; makefile: 1,289; sed: 7
file content (362 lines) | stat: -rw-r--r-- 9,826 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
.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 {
        > .btn,
        > .btn-group {
            margin: 5px 5px 0 0;

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

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

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

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

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

tr.listing-ct-item {
    td, th {
        /* We *should* align to baseline, but names wrap */
        /* Padding and text side is the same, so top works here */
        /* Too bad table doesn't align to "first baseline", like flex/grid */
        vertical-align: top;
    }
    td:not(:first-child) {
        padding-left: 0;
    }

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

    @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), rgb(237, 248, 255) 3em);
                    position: relative;
                    padding: 0.5em 4em 0.5em 0;
                }
            }
        }
    }
    @media screen and (max-width: 640px) {
        /* Mobile: force wrap version strings */
        td.version {
            word-break: break-all;
            width: 16ch;
            max-width: 30vw;
        }
    }

    td.type {
        white-space: nowrap;
    }
    td.changelog {
        vertical-align: top;
        text-align: left;

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

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

.severity-critical {
    color: #a30000;
}

.severity-important {
    color: #ec7a08;
}

.severity-low {
    color: #72767b;
}

// 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,d09GRgABAAAAAAa0AA0AAAAACuwAAwAAAAAAAAAAAAAAAAAAA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B//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;
}

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

tr.security.listing-ct-item {
    background-color: #fbf0f0 !important;  /* keep red background when expanded */
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;

    @media screen and (min-width: 641px) {
        td.version:hover .truncating {
            background: linear-gradient(to left, rgba(251, 240, 240, 0), rgb(251, 240, 240) 3em);
        }
    }
}


/* Hide changelog summaries in narrow widths */
@media screen and (max-width: 80ch) {
    .container-fluid {
        overflow-x: hidden;
    }
    table.listing-ct {
        /* 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 .container-fluid */
        margin-left: -20px;
        margin-right: -20px;

        /* 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;
}

/* stolen from pkg/systemd/host.css */
.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;

    @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;
    }
}

.blank-slate-pf {
    /* PatternFly empty state has a gray background which we don't want here */
    background: inherit;
    border: none;

    /* standard blank-slate-pf does not limit width of paragraph, which looks ugly */
    p {
        max-width: 50rem;
        margin: 0 auto;
        text-align: center;
    }
}


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

.flow-list {
    margin: 1em 1em 3em;
    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 {
    padding-top: 8em;
    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;
    }
    .dropdown {
        width: auto !important;
        padding: 0.5ch;
    }
}
.auto-conf-text {
    padding: 0 1ch;
}
.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;
    }
}