Repository navigation
Expand file tree
/
Copy pathExtn-RecentProjects.less
More file actions
170 lines (142 loc) · 3.58 KB
/
Copy pathExtn-RecentProjects.less
File metadata and controls
170 lines (142 loc) · 3.58 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
@bc-bg-highlight: #e0f0fa;
@bc-menu-text: #000;
@bc-text-quiet: #aaa;
@bc-text-thin: #000;
@bc-text-thin-quiet: #777;
@dark-bc-bg-highlight: #2a3b50;
@dark-bc-menu-text: #fff;
@dark-bc-text-quiet: #aaa;
@dark-bc-text-thin: #fff;
@dark-bc-text-thin-quiet: #bbb;
.dropdown-arrow {
display: inline-block;
width: 7px;
height: 5px;
margin-left: 4px;
background-image: url("images/down-arrow.svg");
background-repeat: no-repeat;
position: relative;
top: 0;
}
.trash-icon {
position: absolute;
left: 7px;
width: 16px;
height: 16px;
font-size: 20px;
color: @bc-text-thin-quiet;
line-height: 15px;
text-align: center;
.dark & {
color: @dark-bc-text-thin-quiet;
}
}
.trash-icon:hover {
color: @bc-text-thin;
.dark & {
color: @dark-bc-text-thin;
}
}
// Reuse the Files project switcher's quiet trigger for sidebar dropdowns. Keep the
// generic .btn class off these controls: its dark hover fill overrides btn-alt-quiet.
.sidebar-project-dropdown {
display: inline-flex;
align-items: center;
appearance: none;
padding: 2px 5px;
background-color: transparent;
color: @project-panel-text-2;
font-family: @sansFontFamily;
font-size: 15px;
font-weight: 400;
line-height: 18px;
letter-spacing: 0.14px;
text-shadow: inherit;
&:active {
background-color: transparent;
}
.dropdown-arrow {
flex: none;
}
}
#project-dropdown-toggle {
display: flex;
/* adjust margins to keep position #project-title position stable after extension is loaded */
overflow: hidden;
white-space: nowrap;
padding: 2px 5px;
margin-left: -5px;
max-width: 60%;
.dropdown-arrow {
display: inline-block;
width: 7px;
height: 5px;
margin-left: 4px;
position: relative;
top: 7px;
}
}
#project-title {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
flex: 1 1 0;
}
#project-dropdown-toggle:hover .dropdown-arrow {
background-image: url("images/down-arrow.svg");
}
#project-dropdown.dropdown-menu:focus {
outline: none;
}
/* TODO: style the dropdown content */
#project-dropdown.dropdown-menu {
position: absolute;
/* offset for better alignment with the button */
margin-top: -1px;
margin-left: 1px;
display: block;
max-width: none;
z-index: 100;
}
#project-dropdown.dropdown-menu .divider {
margin: 5px 1px;
}
.recent-folder-link, .recent-folder, .recent-folder-path {
white-space: nowrap;
}
#project-dropdown.dropdown-menu li a {
padding: 5px 15px;
position: relative;
}
.recent-project-delete {
visibility: hidden;
}
.recent-folder-link:hover > .recent-project-delete {
top: 26%;
visibility: visible;
}
#project-dropdown.dropdown-menu .recent-folder-link, #project-dropdown.dropdown-menu #open-folder-link #new-project-link #download-project-link{
display: block;
padding: 5px 26px 5px 26px;
}
.recent-folder, #open-folder-link, #new-project-link, #download-project-link{
color: @bc-menu-text;
.dark & {
color: @dark-bc-menu-text;
}
}
.recent-folder-path {
color: @bc-text-thin-quiet;
.dark & {
color: @dark-bc-text-thin-quiet;
}
}
#project-dropdown.dropdown-menu a.selected {
background: @bc-bg-highlight;
.dark & {
background: @dark-bc-bg-highlight;
}
}
#project-dropdown.dropdown-menu a:not(.selected):hover {
background: none;
}