Debian Codegraph @

pkg/systemd/services.scss

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 @use "./system-global.scss";
3 @use "global-variables" as *;
4
5 // The service list lacks a top border.
6 // However, the toolbar also lacks a border and is sticky, so add a bottom
7 // border to the toolbar to separate the toolbar and list.
8 .pf-m-grid-lg.pf-v6-c-table tbody:where(.pf-v6-c-table__tbody):first-of-type {
9 border-block-start: var(--pf-v6-c-table__tbody--responsive--border-width--base) solid var(--pf-v6-c-table--responsive--BorderColor);
10 }
11
12 // Magic pixie dust to make the list a bit faster and more furious
13 .services-list tbody {
14 // Skip a lot of computations
15 contain: content;
16 }
17
18 .service-unit-failed {
19 background-color: var(--ct-color-list-critical-bg);
20
21 .service-unit-status {
22 color: var(--ct-color-list-critical-alert-text);
23 }
24 }
25
26 .service-unit-status {
27 white-space: nowrap;
28
29 &-failed {
30 color: red;
31 }
32 }
33
34 .service-unit-file-state {
35 display: inline-block;
36 min-inline-size: 5rem;
37 text-align: center;
38 }
39
40 .service-unit-file-state:not(.pf-v6-c-badge) {
41 text-align: center;
42 opacity: 0.8;
43 }
44
45 // Add some spacing between the tab label and the icon
46 .pf-v6-c-nav__link > .ct-exclamation-circle {
47 margin-inline-start: 0.5rem;
48 }
49 // Add some spacing between the icon and the status string in the list
50 .service-unit-status-failed > .ct-exclamation-circle {
51 margin-inline-end: 0.5rem;
52 }
53
54 .service-unit-first-column {
55 min-inline-size: 20rem;
56 display: grid;
57 grid-template-columns: repeat(auto-fill, minmax(5rem, 25rem));
58 gap: var(--pf-t--global--spacer--sm);
59
60 .service-unit-description {
61 font-weight: var(--pf-t--global--font--weight--body--bold);
62 }
63 }
64
65 // FIXME @Venefilyn: Long-named services causes the cell to exceed its length
66 // as it won't wrap correctly. It does seem like (inline-)flex itself cause the
67 // issues. For now we go to how it was in PF5 and set it to display: block.
68 #services .service-unit-id {
69 --pf-v6-c-button--Display: block;
70 }
71
72 .service-unit-triggers {
73 min-inline-size: 20ch;
74 }
75
76 /* Ensure there's spacing between text and icons in the services switcher (failed units) */
77 .services-header .pf-v6-c-button__text {
78 align-items: center;
79 display: flex;
80 gap: var(--pf-t--global--spacer--xs);
81 }
82
83 .pf-v6-c-table .service-unit-second-column {
84 --pf-v6-c-table--cell--Width: 20%;
85 }
86
87 // Don't show labels from mobile mode
88 .pf-v6-c-table [data-label]::before {
89 display: none;
90 }
91
92 .pf-v6-c-table [data-label] {
93 display: revert;
94 }
95
96 // FIXME: When porting the selects to the PF5 select implementation drop this
97 .pf-v6-c-toolbar__item {
98 align-self: center;
99 }