Debian Codegraph @

pkg/systemd/logs.scss

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 @use "../lib/table.css";
3 @use "../lib/journal.css";
4 @use "./system-global.scss";
5 @use "global-variables.scss";
6 @use "@patternfly/patternfly/utilities/Flex/flex.scss";
7
8 // https://github.com/patternfly/patternfly-react/issues/5993
9 .pf-v6-c-popover.pf-m-width-auto {
10 --pf-v6-c-popover--MaxWidth: min(300px, 90%);
11 }
12
13 .journal-filters {
14 grid-template-rows: auto 1fr;
15
16 .cockpit-log-panel {
17 border: none;
18 }
19
20 .pf-v6-c-page__main {
21 // Constrain page to viewport height, so journal can overflow
22 max-block-size: 100vh;
23 }
24
25 // Static width for the service selector as it likes to resize a lot while loading
26 .journal-filters-identifier-menu ul.pf-v6-c-select__menu {
27 inline-size: 10rem;
28 }
29
30 // Long names without spaces do not wrap; triggers overflow and overlaps with check icon
31 .journal-filters-identifier-menu .pf-v6-c-select__menu-item {
32 white-space: normal;
33 }
34
35 // PatternFly added align-self oddly; this shouldn't be used in general, except for one-offs. It caused a rendering issue on the way we use the toolbar components in the logs page.
36 .pf-v6-c-toolbar .pf-v6-c-toolbar__item {
37 align-self: unset;
38 }
39 }
40
41 .log-details {
42 .pf-v6-l-gallery {
43 --pf-v6-l-gallery--GridTemplateColumns: 1fr;
44 }
45
46 .pf-v6-c-page__main-breadcrumb {
47 padding: var(--pf-t--global--spacer--md);
48 }
49
50 .pf-v6-c-card__title,
51 .multiline {
52 word-break: break-all;
53 white-space: pre-wrap !important;
54 }
55
56 .multiline {
57 font-family: monospace, monospace;
58 }
59
60 .pf-v6-l-split {
61 padding-block-end: var(--pf-t--global--spacer--md);
62 align-items: center;
63 }
64
65 .pf-v6-c-description-list {
66 --pf-v6-c-description-list--m-horizontal__term--width: 25ch;
67 }
68
69 // For abrt log details: add some gutter between the tabs and their content
70 .pf-v6-c-tab-content > .pf-v6-c-description-list {
71 padding-block-start: var(--pf-t--global--spacer--md);
72 }
73
74 .table-hide-labels {
75 [data-label] {
76 display: revert;
77 }
78
79 [data-label]::before {
80 display: none;
81 }
82 }
83
84 // Let the description list set the color, not the wrapper accordion component
85 .pf-v6-c-accordion__expanded-content {
86 color: unset;
87 }
88 }
89
90 .journal-filters-box {
91 flex: auto;
92
93 .panel-heading {
94 position: sticky;
95 inset-block-start: 0;
96 color: var(--pf-t--global--text--color--regular);
97 background-color: var(--pf-t--global--background--color--primary--default);
98 border: none;
99 font-size: var(--pf-t--global--font--size--heading--h2);
100 font-family: var(--pf-t--global--font--family--heading);
101 font-weight: var(--pf-t--global--font--weight--heading--default);
102 padding-block: var(--pf-t--global--spacer--lg) var(--pf-t--global--spacer--sm);
103 padding-inline: var(--pf-t--global--spacer--lg);
104 font-variant: none; /* Don't use tabular styling */
105 }
106 }
107
108 .pf-v6-theme-dark {
109 .journal-filters-box .panel-heading {
110 color: var(--pf-t--global--text--color--subtle);
111 }
112 }
113
114 /* Set min width for services in the journal view */
115 .journal-filters .cockpit-logline {
116 --log-service-min: 8rem;
117 }
118
119 .pf-v6-c-toolbar {
120 // Make toolbar stretch to all the available space and wrap up to two lines
121 .pf-v6-c-toolbar__group:nth-child(3) {
122 flex-grow: 1;
123 }
124
125 // Make text filter stretch to all the available space
126 .pf-v6-c-toolbar__item.text-search, .journal-filters-grep {
127 flex-grow: 1;
128 }
129
130 .text-help {
131 padding-inline-start: var(--pf-t--global--spacer--xs);
132 }
133
134 // Hide filters from advanced search dropdown entries which already exist in the toolbar
135 .journal-filters-grep .pf-v6-c-panel__main-body {
136 .pf-v6-c-form__group:nth-child(5), .pf-v6-c-form__group:nth-child(6) {
137 display: none;
138 }
139 }
140
141 .pf-v6-c-toolbar__expandable-content.pf-m-expanded .pf-v6-c-divider {
142 display: none;
143 }
144
145 // FIXME: When porting the selects to the PF5 select implementation drop this
146 .pf-v6-c-toolbar__item {
147 align-self: center;
148 }
149 }
150
151 .log-text-filter-popover-button {
152 padding: unset;
153 padding-inline-start: var(--pf-t--global--spacer--sm);
154
155 svg {
156 color: var(--pf-t--global--icon--color--regular);
157 }
158 }