-
-
Notifications
You must be signed in to change notification settings - Fork 196
Expand file tree
/
Copy pathExtn-SidebarTabs.less
More file actions
113 lines (100 loc) · 2.71 KB
/
Copy pathExtn-SidebarTabs.less
File metadata and controls
113 lines (100 loc) · 2.71 KB
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
/*
* GNU AGPL-3.0 License
*
* Copyright (c) 2021 - present core.ai . All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
* for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see https://opensource.org/licenses/AGPL-3.0.
*
*/
/* Sidebar tab bar — switches between tab panes within #sidebar */
#navTabBar {
display: none;
align-items: stretch;
gap: 2px;
margin: 0.5rem 0.5rem 0.4rem;
padding: 3px;
background-color: rgba(0, 0, 0, 0.3);
border-radius: 7px;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25);
user-select: none;
&.has-tabs {
display: flex;
}
}
.sidebar-tab {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 1 1 0;
gap: 0.4rem;
padding: 0.25rem 0.75rem;
cursor: pointer;
color: @project-panel-text-2;
font-size: 0.8rem;
font-weight: 500;
border-radius: 5px;
transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
i {
font-size: 0.78rem;
opacity: 0.85;
}
&:hover:not(.active) {
color: @project-panel-text-1;
background-color: rgba(255, 255, 255, 0.04);
}
&.active {
color: @project-panel-text-1;
background-color: rgba(255, 255, 255, 0.09);
box-shadow:
0 1px 0 rgba(255, 255, 255, 0.05) inset,
0 1px 2px rgba(0, 0, 0, 0.2);
i {
opacity: 1;
}
}
}
/* Hide sidebar children not belonging to the active tab */
.sidebar-tab-hidden {
display: none !important;
}
/* AI tab placeholder content */
.ai-tab-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.box-flex(1);
flex: 1;
color: @project-panel-text-2;
padding: 2rem;
text-align: center;
min-height: 0;
height: 100%;
.ai-tab-icon {
font-size: 2.5rem;
margin-bottom: 1rem;
opacity: 0.6;
}
.ai-tab-title {
font-size: 1rem;
font-weight: 600;
color: @project-panel-text-1;
margin-bottom: 0.5rem;
}
.ai-tab-message {
font-size: 0.8rem;
line-height: 1.4;
opacity: 0.7;
}
}