Debian Codegraph @

pkg/packagekit/updates.scss

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 @use "ct-card";
3 @use "page";
4 @use "global-variables" as *;
5
6 @use "@patternfly/patternfly/utilities/Spacing/spacing.css";
7 // For .pf-v6-u-display-flex
8 @use "@patternfly/patternfly/utilities/Display/display.css";
9
10 /* Style the list cards as ct-cards */
11 .pf-v6-c-page__main-section .pf-v6-c-card {
12 @extend .ct-card;
13 }
14
15 .pf-v6-c-table tr:nth-child(1) {
16 > td, th {
17 padding-block: var(--pf-v6-c-table--cell--PaddingBlockStart) var(--pf-v6-c-table--cell--PaddingBlockEnd);
18 padding-inline: var(--pf-v6-c-table--cell--PaddingInlineStart) var(--pf-v6-c-table--cell--PaddingInlineEnd);
19 }
20 }
21
22 .kpatches-labelgroup ul.pf-v6-c-label-group__list,
23 .kpatches-labelgroup li.pf-v6-c-label-group__list-item:last-child {
24 margin-block-end: 0;
25 }
26
27 .pk-updates--header {
28 display: flex;
29 flex-wrap: wrap;
30 align-items: center;
31 justify-content: space-between;
32 padding-block: 1.5rem 1rem;
33 padding-inline: 0;
34
35 &--actions {
36 > .pf-v6-c-button,
37 > .btn-group {
38 margin-block: 5px 0;
39 margin-inline: 0 5px;
40
41 &:last-child {
42 margin-inline-end: 0;
43 }
44 }
45 }
46 }
47
48 @media screen and (min-width: 640px) {
49 .pk-updates--header--auto {
50 justify-content: flex-start;
51 }
52 }
53
54 // Make header's content bold
55 .pf-v6-c-table tr:nth-child(1) td:nth-child(2) {
56 font-weight: var(--pf-t--global--font--weight--body--bold);
57 }
58
59 .ct-table tr {
60 .severity-icon {
61 margin-inline-end: var(--pf-t--global--spacer--xs);
62 }
63
64 td.changelog {
65 vertical-align: top;
66
67 * {
68 display: inline;
69 font: inherit;
70 background: inherit;
71 color: inherit;
72 }
73
74 &, p {
75 max-inline-size: 60vw;
76 margin-block-end: 0; // counter-act <Markdown>
77 overflow: hidden;
78 text-overflow: ellipsis;
79 }
80 }
81
82 th:last-child,
83 td.changelog:last-child {
84 text-align: start;
85 }
86 }
87
88 .severity-critical {
89 color: #a30000;
90 }
91
92 .severity-important {
93 color: #ec7a08;
94 }
95
96 .severity-low {
97 color: var(--ct-color-subtle-copy);
98 }
99
100 div.changelog {
101 max-block-size: 20em;
102 overflow: auto;
103 white-space: pre-wrap;
104 }
105
106 /* Hide changelog summaries in narrow widths */
107 @media screen and (max-width: 80ch) {
108 table.ct-table {
109 /* Hide changelog header (there's no class) & data */
110 thead th:last-child,
111 td.changelog {
112 display: none;
113 }
114 }
115 }
116
117 /* don't let the install progress bar get too wide */
118 .progress-main-view {
119 inline-size: 50vw;
120 max-inline-size: 60rem;
121 margin-block: 10ex 0;
122 margin-inline: auto;
123
124 @media screen and (max-width: $pf-v6-global--breakpoint--sm - 1) {
125 inline-size: 100%;
126 }
127
128 .pf-v6-l-grid {
129 align-items: end;
130 }
131 }
132
133 /* workaround font not supporting tabular numbers yet https://github.com/cockpit-project/cockpit/issues/15090 */
134 .pf-v6-c-progress__status {
135 min-inline-size: 3ch;
136 }
137
138 /* Add some space between the spinner and the text */
139 .progress-description > svg {
140 margin-inline-end: var(--pf-t--global--spacer--sm);
141 }
142
143 .flow-list-blank-slate {
144 margin-block: 0;
145 margin-inline: auto;
146 max-inline-size: 69rem;
147 text-align: center;
148 }
149
150 .flow-list {
151 padding: 0;
152 text-align: start;
153 box-sizing: border-box;
154
155 li {
156 text-align: start;
157 box-sizing: border-box;
158 inline-size: 22rem;
159 padding-block: 0;
160 padding-inline: 0 1ex;
161 display: inline-block;
162 overflow: hidden;
163 white-space: nowrap;
164 text-overflow: ellipsis;
165 }
166 }
167
168 // prevent overflowo on small screens
169 .error-log {
170 max-inline-size: 100%;
171 }
172
173 .update-log {
174 text-align: center;
175
176 th {
177 text-align: start;
178 padding-inline-end: 3ex;
179 }
180
181 td {
182 text-align: start;
183 }
184 }
185
186 .update-log-content {
187 margin-block: 0;
188 margin-inline: 10ex;
189 block-size: 13em;
190 overflow-y: auto;
191 }
192
193 table.header-buttons {
194 margin-block-end: 20px; /* replacement for h2's margin-bottom */
195 td {
196 vertical-align: middle;
197 }
198
199 h2 {
200 /* vertical default ones break vertical alignment */
201 margin-block: 0;
202 margin-inline: 0 4rem;
203 }
204 }
205
206 #auto-update-day {
207 max-inline-size: 10rem;
208 }
209
210 #auto-update-time {
211 max-inline-size: 7rem;
212 }
213
214 .auto-update-group {
215 // Add spacing between rows for when the flex items wrap
216 row-gap: var(--pf-t--global--spacer--sm);
217 }
218
219 .pk-updates .pf-v6-c-description-list + div {
220 padding-block-start: var(--pf-t--global--spacer--md);
221 }
222
223 .restart-services-modal-body {
224 padding-block: 1em;
225 padding-inline: 0;
226 }
227
228 .pf-v6-c-content ul {
229 list-style-type: none;
230 }
231
232 .updates-history {
233 // Constrain time's width
234 .history-time {
235 inline-size: 0;
236 white-space: nowrap;
237 }
238
239 // Fix alignment of the package count's icon
240 .list-view-pf-additional-info-item {
241 align-items: baseline;
242
243 > svg {
244 margin-inline-end: 1ex;
245 }
246 }
247 }
248
249 .updates-success-table {
250 margin-block-end: 1em;
251 }
252
253 .update-success-actions > button {
254 margin-block: var(--pf-t--global--spacer--xs);
255 margin-inline: var(--pf-t--global--spacer--sm) 0;
256 }
257
258 .update-success-table-title {
259 padding-inline-start: var(--pf-t--global--spacer--sm);
260 }
261
262 .cockpit-update-warning {
263 margin-inline-end: var(--pf-t--global--spacer--md);
264 }
265
266 .cockpit-update-warning-icon {
267 margin-inline-end: var(--pf-t--global--spacer--sm);
268 }
269
270 // TODO @Venefilyn: Cleanup and remove
271 // Alerts no longer need yellow background
272 .cockpit-update-warning-text {
273 color: var(--pf-t--global--text--color--regular);
274 }
275
276 .autoupdates-card-error {
277 margin-block-end: var(--pf-t--global--spacer--md);
278 }
279
280 // TODO @Venefilyn: Can be replaced with normal icon now
281 .ct-info-circle {
282 color: var(--pf-t--global--icon--color--status--info--default);
283 }