Debian Codegraph @

pkg/lib/table.css

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 .panel .table {
3 font-size: var(--pf-t--global--font--size-sm);
4 }
5
6 /* Panels don't draw borders between them */
7 .panel > .table > tbody:first-child td {
8 border-block-start: 1px solid rgb(221 221 221);
9 }
10
11 /* Table headers should not generate a double border */
12 .panel .table thead tr th {
13 border-block-end: none;
14 }
15
16 /* Fix panel heading alignment & mobile layout */
17
18 .panel-heading {
19 align-items: center;
20 background: #f5f5f5;
21 display: flex;
22 flex-wrap: wrap;
23 /* (28px small size widget height) + (0.5rem * 2) */
24 min-block-size: calc(28px + 1rem);
25 padding-block: 0.5rem;
26 padding-inline: 1rem;
27 position: relative;
28 z-index: 100;
29 }
30
31 .panel-title {
32 font: inherit;
33 margin: 0;
34 padding: 0;
35 }
36
37 .panel-title > a {
38 color: var(--ct-color-link);
39 display: inline-block;
40 }
41
42 .panel-title > a:hover,
43 .panel-title > a:focus {
44 color: var(--alert-info-text);
45 }
46
47 /* Allow children in the title to wrap */
48 .panel-title > h3,
49 .panel-title > a,
50 .panel-title > div,
51 .panel-title > span {
52 flex-shrink: 1;
53 word-break: break-all;
54 }
55
56 .panel-heading > :last-child:not(:first-child),
57 .panel-heading > .panel-heading-actions {
58 flex: auto;
59 text-align: end;
60 }
61
62 @media screen and (max-width: 640px) {
63 /* Remove _most_ of the gaps on the sides of small screens */
64 /* to maximize space, but still keep the boxy panel look */
65 .col-md-12 > .panel {
66 margin-inline: -10px;
67 }
68
69 .panel {
70 /* Background fade */
71 --hi-color: #d1d1d1;
72 --hi-color2: var(--ct-global--palette--black-250);
73 --bg-color: var(--ct-color-bg);
74 --hi-width: 20px;
75 --hi-width3: calc(var(--hi-width) * 3);
76 --transparent: rgb(255 255 255 / 0%); /* WebKit needs white transparent */
77 max-inline-size: 100vw;
78 overflow-x: auto;
79 position: relative;
80 background-image:
81 linear-gradient(to left, var(--bg-color) var(--hi-width), var(--transparent) var(--hi-width3)),
82 linear-gradient(to left, var(--hi-color) 1px, var(--transparent) 2px, var(--hi-color2) 4px, var(--bg-color) var(--hi-width)),
83 linear-gradient(to right, var(--bg-color) var(--hi-width), var(--transparent) var(--hi-width3)),
84 linear-gradient(to right, var(--hi-color) 1px, var(--transparent) 2px, var(--hi-color2) 4px, var(--bg-color) var(--hi-width));
85 background-attachment: local, scroll, local, scroll;
86 background-position: right, right, left, left;
87 background-repeat: no-repeat;
88 background-size: var(--hi-width3) 100%;
89 }
90
91 .panel > .panel-heading {
92 position: sticky;
93 inset-inline-start: 0;
94 inset-block-start: 0;
95 }
96
97 .panel .table thead th {
98 white-space: nowrap;
99 }
100
101 .panel .table:not(:hover):not(:focus):not(:active) {
102 background: transparent;
103 }
104
105 .panel .table thead:not(:hover):not(:focus):not(:active) {
106 background: transparent;
107 }
108 }
109
110 .pf-v6-c-table__tr.pf-m-clickable:hover > td,
111 .pf-v6-c-table__tr.pf-m-clickable:hover > th {
112 /* PF5 has no hover background color; we have to force the override for hover colors */
113 background-color: var(--ct-color-list-hover-bg) !important;
114 color: var(--ct-color-list-hover-text) !important;
115 }
116
117 /* Override patternfly to fit buttons and such */
118 .table > thead > tr > th,
119 .table > tbody > tr > td {
120 padding: 0.5rem;
121 vertical-align: baseline;
122 }
123
124 /* Override the heavy patternfly headers */
125 .table > thead {
126 background-image: none;
127 background-color: var(--ct-color-bg);
128 }
129
130 /* Make things line up */
131 .table tbody tr > :first-child,
132 .table thead tr > :first-child {
133 padding-inline-start: 1rem;
134 }
135
136 .table tbody tr > :last-child,
137 .table thead tr > :last-child {
138 padding-inline-end: 1rem;
139 }