-
-
Notifications
You must be signed in to change notification settings - Fork 193
Expand file tree
/
Copy pathExtn-SidebarTabs.less
More file actions
111 lines (98 loc) · 2.62 KB
/
Extn-SidebarTabs.less
File metadata and controls
111 lines (98 loc) · 2.62 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
/*
* 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: center;
background-color: @bc-ai-sidebar-bg;
height: 2rem;
overflow: hidden;
user-select: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
&.has-tabs {
display: flex;
}
}
.sidebar-tab {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0 0.75rem;
height: 100%;
cursor: pointer;
position: relative;
color: @project-panel-text-2;
font-size: 0.85rem;
transition: color 0.15s ease, background-color 0.15s ease;
i {
font-size: 0.75rem;
}
&:hover {
color: @project-panel-text-1;
background-color: rgba(255, 255, 255, 0.06);
}
&.active {
color: @project-panel-text-1;
background-color: rgba(255, 255, 255, 0.04);
&::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 2px;
background-color: @project-panel-text-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;
}
}