File: machine-dialogs.scss

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 (93 lines) | stat: -rw-r--r-- 2,312 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#host-edit-color {
    position: relative;
    width: 7rem;
    // Make the height the same as a PF input + padding
    height: calc(var(--pf-global--spacer--xl) + var(--pf-global--spacer--xs));
    border-radius: var(--pf-global--BorderRadius--sm);

    &:not(:hover):not(:focus) {
        box-shadow: inset 0 0 0 1px var(--pf-global--BorderColor--100);
    }

    &:hover,
    &:focus,
    &-popover .color-cell:hover,
    &-popover .color-cell:focus {
        cursor: pointer;
        box-shadow: inset 0 0 0 3px #3337;
    }
    &-popover .color-cell:not(:hover):not(:focus) {
        box-shadow: inset 0 0 0 3px #fff;
    }
}

#host-edit-color-popover {
    --border-color: var(--pf-global--BorderColor--200);
    border-color: var(--border-color);
    box-shadow: var(--pf-global--BoxShadow--md);
    top: 50%;
    left: calc(100% + var(--pf-global--spacer--sm));
    transform: translateY(-50%);
    margin-left: 0.5rem;
    // PF3 defines a max width; we unset it to allow the dialog to size itself
    max-width: auto;

    .ct-popover-arrow {
        --arrow-size: 11px;
        --arrow-color: var(--border-color);
        position: absolute;
        transform: translateY(-50%);
        top: 50%;
        width: 0;
        height: 0;
        left: calc(var(--arrow-size) * -1);

        &, &::after {
            border: 0 solid transparent;
            border-width: var(--arrow-size);
            border-left-width: 0;
            border-right-color: var(--arrow-color);
        }

        &::after {
            --arrow-color: white;
            content: '';
            position: absolute;
            left: 1px;
            top: calc(var(--arrow-size) * -1);
        }
    }

    .popover-content {
        --patch-size: 2rem;
        --row-count: 6;
        --padding: 0.5rem;
        text-align: center;
        padding: 0.5rem;
        display: flex;
        flex-flow: row wrap;
        width: calc(var(--row-count) * var(--patch-size) + (var(--padding) * 2));
    }

    .color-cell {
        width: var(--patch-size);
        height: var(--patch-size);
        margin: 0;
    }
}

// XXX - hot fix

.ct-form p {
    line-height: var(--pf-global--LineHeight--md)
}

.ct-form .radio {
    margin-top: 0px;
    margin-bottom: 0px;
}

.widest-title {
    visibility: hidden;
    height: 0px;
}