Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sidebar.scss « components « notebook « plugins « src - github.com/nasa/openmct.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 91e8b1699629fe4bb2c7914207c347346855ebcf (plain)
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
94
95
96
97
98
99
100
101
.c-sidebar {
    @include userSelectNone();
    background: $sideBarBg;
    display: flex;
    justify-content: stretch;
    max-width: 600px;

    &.c-drawer--push.is-expanded {
        margin-right: $interiorMargin;
        width: 30%;
    }

    &.c-drawer--overlays.is-expanded {
        width: 95%;
    }

    &__pane {
        background: $sideBarBg;
        display: flex;
        flex: 1 1 50%;
        flex-direction: column;

        + * {
            margin-left: $interiorMarginSm;
        }

        > * + * {
            // Add margin-top to first and second level children
            margin-top: $interiorMargin;
        }
    }

    &__right-edge {
        flex: 0 0 auto;
        padding: $interiorMarginSm;
    }

    &__header-w {
        // Wraps header, used for page pane with collapse buttons
        display: flex;
        flex: 0 0 auto;
        background: $sideBarHeaderBg;
        align-items: center;
    }

    &__header {
        color: $sideBarHeaderFg;
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        padding: $interiorMarginSm $interiorMargin;
        text-transform: uppercase;

        &-label {
            @include ellipsize();
            flex: 1 1 auto;
        }
    }

    &__contents-and-controls {
        // Encloses pane buttons and contents elements
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;

        > * + * {
            margin-top: $interiorMargin;
        }
    }

    &__contents {
        flex: 1 1 auto;
        overflow-x: hidden;
        overflow-y: auto;
        padding: auto $interiorMargin;
    }

    .c-list__item {
        @include hover() {
            [class*="__menu-indicator"] {
                opacity: 0.7;
                transition: $transIn;
            }
        }

        > * + * {
            margin-left: $interiorMargin;
        }

        &__name {
            flex: 0 1 auto;
        }

        &__menu-indicator {
            flex: 0 0 auto;
            font-size: 0.8em;
            opacity: 0;
            transition: $transOut;
        }
    }
}