File size: 2,569 Bytes
a3689a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
:root {
    --vscode-overlay-background: rgb(0 0 0 / 50%);
    --vscode-modal-background: var(--vscode-sideBar-background);
}

/*
    Root element which only exists to use container query
    for changing header tabs layout.
*/
.tabs-root {
    container-type: inline-size;
    container-name: tabs-container;
    isolation: isolate;
}

.tabs-container {
    display: flex;
    width: 100%;
    padding: 0;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    border-bottom: 1px solid var(--vscode-dropdown-border);
    background-color: var(--vscode-sideBar-background);
}

.tabs {
    display: flex;
    flex-shrink: 0;
    gap: 2px;
    width: 100%;
    padding: 0 8px;
    border-bottom: 1px solid var(--vscode-dropdown-border);

    & > * {
        flex-shrink: 0;
    }
}

.sub-tabs {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
    padding: 0 8px;

    & > * {
        flex-shrink: 0;
    }
}

.tab-action-label {
    display: inline;
}

/*
    For small container turn off tabs labels completely and go back
    to one row layout for tabs and its sub actions. Note that for
    Cody Web we have a special override since it has different tabs
    configurations (later we switch to dynamic items query and remove
    this override)
*/
@container tabs-container (width < 575px) {
    .tabs-root:not(.tabs-root--cody-web) {
        .tab-action-label {
            display: none;
        }
    }
}

/* Special override for Cody Web tabs */
@container tabs-container (width < 375px) {
    .tabs-root--cody-web .tab-action-label {
        display: none;
    }
}

.dialog {
    &-overlay {
        inset: 0;
        position: fixed;
        background-color: var(--vscode-overlay-background);
    }

    &-content {
        width: 90vw;
        max-width: 450px;
        max-height: 85vh;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 25px;
        border-radius: 6px;
        background-color: var(--vscode-modal-background);
        box-shadow: hsl(206deg 22% 7% / 35%) 0 10px 38px -10px, hsl(206deg 22% 7% / 20%) 0 10px 20px -15px;

        &:focus {
            outline: none;
        }
    }

    &-title {
        margin: 0;
        font-weight: 500;
        font-size: 17px;
    }

    &-description {
        margin: 10px 0 20px;
        font-size: 15px;
        line-height: 1.5;
    }

    &-footer {
        margin-top: 1.5rem;
        width: 100%;
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
    }
}