File: deleteDialog.css

package info (click to toggle)
cockpit 239-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 67,268 kB
  • sloc: javascript: 245,474; ansic: 72,273; python: 23,634; xml: 6,155; sh: 2,919; makefile: 923; sed: 5
file content (69 lines) | stat: -rw-r--r-- 1,612 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
.modal[id$=delete-modal-dialog] .list-group-item {
    /* Remove padding here and move into the label */
    padding: 0;
}

.modal[id$=delete-modal-dialog] .dialog-list-ct {
    /* Only overflow the dialog when needed */
    --dialog-delete--padding: 18rem;
    /* Screen height - toolbar - dialog padding */
    max-height: calc(100vh - 70px - var(--dialog-delete--padding));
}

.modal .list-group-item > .disk-row > label {
    align-items: center;
    display: grid;
    grid: auto-flow / auto 1fr;
    grid-gap: 0 1rem;
    padding: 1rem 1.5em;
}

.modal .disk-row {
    margin: 0;
}

/* override PatternFly checkmark placement */
.modal .disk-row input[type=checkbox] {
    position: static;
    margin: 0;
}

.modal .disk-row > label + label {
    border-top: 1px solid #d1d1d1;
}

.disk-source {
    --disk-source-grid-columns: 2;
    grid-column-start: 2; /* Align to label in outer grid */
    display: grid;
    grid: auto / repeat(var(--disk-source-grid-columns), auto 1fr);
    grid-gap: 0 0.5rem;
    opacity: 0.85; /* approx pf-black-700; AAA contrast; works with hover */
}

.disk-source > span {
    justify-self: end;
}

.disk-source > strong {
    font-weight: 600;
}

.disk-source > strong:only-of-type {
    /* Stretch single data blurb to the end */
    grid-column: 2 / -1;
}

@media (max-width: 480px) {
    .disk-source {
        /* Collapse mobile */
        --disk-source-grid-columns: 1;
    }
}

@media (max-width: 768px) {
    .modal[id$=delete-modal-dialog] .dialog-list-ct {
        /* Account for no dialog top-margin in mobile */
        --dialog-delete--padding: 14rem;
    }
}