Debian Codegraph @

pkg/lib/cockpit-components-dynamic-list.scss

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 @use "global-variables" as *;
3
4 .dynamic-form-group {
5 .pf-v6-c-empty-state {
6 padding: 0;
7 }
8
9 .pf-v6-c-form__label {
10 // Don't allow labels to wrap
11 white-space: nowrap;
12 }
13
14 .remove-button-group {
15 // Move 'Remove' button the the end of the row
16 grid-column: -1;
17 // Move 'Remove' button to the bottom of the line so as to align with the other form fields
18 display: flex;
19 align-items: flex-end;
20 }
21
22 // Set check to the same height as input widgets and vertically align
23 .pf-v6-c-form__group-control>.pf-v6-c-check {
24 // Set height to the same as inputs
25 // Font height is font size * line height (1rem * 1.5)
26 // Widgets have 5px padding, 1px border (top & bottom): (5 + 1) * 2 = 12
27 // This all equals to 36px
28 block-size: calc(var(--pf-t--global--font--size--md) * var(--pf-v6-global--LineHeight--md) + 12px);
29 align-content: center;
30 }
31
32 // We use FormFieldGroup PF component for the nested look and for ability to add buttons to the header
33 // However we want to save space and not add indent to the left so we need to override it
34 .pf-v6-c-form__field-group-body {
35 // Stretch content fully
36 --pf-v6-c-form__field-group-body--GridColumn: 1 / -1;
37 // Reduce padding at the top
38 --pf-v6-c-form__field-group-body--PaddingTop: var(--pf-t--global--spacer--xs);
39 }
40 }