Debian Codegraph @

pkg/lib/ct-card.scss

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 @use "_global-variables.scss" as *;
3
4 /* Rely on the margin from the Card for spacing */
5 .ct-card.pf-v6-c-card .table {
6 margin-block-end: 0;
7 }
8
9 .ct-card.pf-v6-c-card .pf-v6-c-card__title-text {
10 font-size: var(--pf-t--global--font--size--2xl);
11 }
12
13 .ct-cards-grid {
14 --ct-grid-columns: 2;
15 --pf-v6-l-gallery--GridTemplateColumns: repeat(var(--ct-grid-columns), 1fr);
16
17 > .pf-v6-c-card:not(.ct-card-info) {
18 // Extend all non-info cards to be full width;
19 // let ct-card-info fit 1 column of the grid
20 grid-column: 1 / -1;
21 }
22
23 @media screen and (max-width: $pf-v6-global--breakpoint--lg) {
24 // Shrink to 1 column when space is constrained
25 --ct-grid-columns: 1;
26 }
27 }
28
29 // Remove redundant padding from embedded toolbars (handled by header)
30 // Toolbars in card headers are not a common scenario so no need to upstream this
31 .ct-card.pf-v6-c-card .pf-v6-c-toolbar,
32 .ct-card.pf-v6-c-card .pf-v6-c-toolbar__content {
33 padding: 0;
34 }