OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
4 | 4 |
5 html { | 5 html { |
6 height: 100%; | 6 height: 100%; |
7 } | 7 } |
8 | 8 |
9 html.col-resize * { | 9 html.col-resize * { |
10 cursor: col-resize !important; | 10 cursor: col-resize !important; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 } | 153 } |
154 | 154 |
155 /* List/grid and preview are inside this container. */ | 155 /* List/grid and preview are inside this container. */ |
156 .dialog-main { | 156 .dialog-main { |
157 -webkit-box-align: stretch; | 157 -webkit-box-align: stretch; |
158 -webkit-box-flex: 1; | 158 -webkit-box-flex: 1; |
159 -webkit-box-orient: vertical; | 159 -webkit-box-orient: vertical; |
160 display: -webkit-box; | 160 display: -webkit-box; |
161 } | 161 } |
162 | 162 |
163 /* Roots list at the left. */ | 163 /* Directory tree at the left. */ |
164 .dialog-sidebar { | 164 .dialog-sidebar { |
165 -webkit-box-flex: 0; | 165 -webkit-box-flex: 0; |
166 background-color: #e6e6e6; | 166 background-color: #e6e6e6; |
167 display: -webkit-box; | 167 display: -webkit-box; |
168 max-width: 50%; | 168 max-width: 50%; |
169 min-width: 45px; | 169 min-width: 45px; |
170 overflow: hidden; | 170 overflow: hidden; |
171 position: relative; | 171 position: relative; |
172 width: 168px; | 172 width: 168px; |
173 } | 173 } |
174 | 174 |
175 /* A vertical splitter between the roots list and the file list. It is actually | 175 /* A vertical splitter between the roots list and the file list. It is actually |
176 a transparent area centered on the roots list right border.*/ | 176 a transparent area centered on the roots list right border.*/ |
177 div.sidebar-splitter { | 177 div.sidebar-splitter { |
178 -webkit-box-flex: 0; | 178 -webkit-box-flex: 0; |
179 cursor: col-resize; | 179 cursor: col-resize; |
180 margin-left: -4px; /* +1px to accomodate the roots list border */ | 180 margin-left: -4px; /* +1px to accomodate the roots list border */ |
181 margin-right: -3px; | 181 margin-right: -3px; |
182 position: relative; | 182 position: relative; |
183 width: 7px; | 183 width: 7px; |
184 z-index: 2; | 184 z-index: 2; |
185 } | 185 } |
186 | 186 |
187 /* Roots list at the left. */ | 187 #directory-tree { |
188 #roots-list { | |
189 -webkit-box-flex: 1; | |
190 -webkit-box-orient: vertical; | 188 -webkit-box-orient: vertical; |
191 border-right: 1px solid rgb(170, 170, 170); | 189 border-right: 1px solid rgb(170, 170, 170); |
192 display: -webkit-box; | 190 display: -webkit-box; |
| 191 overflow-x: hidden; |
| 192 overflow-y: auto; |
| 193 width: 100%; |
193 } | 194 } |
194 | 195 |
195 #roots-list > * { | 196 #directory-tree .tree-row { |
196 background-color: #e6e6e6; | 197 background-color: #e6e6e6; |
197 background-image: none; | 198 background-image: none; |
198 border: none; | 199 border: none; |
199 height: 39px; | 200 display: -webkit-box; |
| 201 line-height: 39px; |
200 margin: 0; | 202 margin: 0; |
201 padding: 0 5px; | 203 padding: 0 3px; |
202 } | 204 } |
203 | 205 |
204 #roots-list > :hover { | 206 #directory-tree .tree-row > .expand-icon { |
| 207 height: 37px; |
| 208 left: 3px; |
| 209 margin: -13px; |
| 210 top: 0; |
| 211 vertical-align: middle; |
| 212 width: 37px; |
| 213 } |
| 214 |
| 215 #directory-tree .tree-row > .volume-icon { |
| 216 background-position: center 2px; |
| 217 background-repeat: no-repeat; |
| 218 height: 24px; |
| 219 vertical-align: middle; |
| 220 width: 24px; |
| 221 } |
| 222 |
| 223 #directory-tree .tree-row > .label { |
| 224 -webkit-box-flex: 1; |
| 225 display: block; |
| 226 margin: 0 3px; |
| 227 overflow-x: hidden; |
| 228 text-overflow: ellipsis; |
| 229 } |
| 230 |
| 231 #directory-tree .tree-row:hover { |
205 background-color: rgba(0, 0, 0, 0.05); | 232 background-color: rgba(0, 0, 0, 0.05); |
206 border-color: rgba(0, 0, 0, 0.05); | 233 border-color: rgba(0, 0, 0, 0.05); |
207 } | 234 } |
208 | 235 |
209 #roots-list > .accepts, | 236 #directory-tree .accepts, |
210 #roots-list > [lead][selected], | 237 #directory-tree .tree-row[lead][selected], |
211 #roots-list > [lead], | 238 #directory-tree .tree-row[lead], |
212 #roots-list > [selected], | 239 #directory-tree .tree-row[selected], |
213 #roots-list > [anchor] { | 240 #directory-tree .tree-row[anchor] { |
214 background-color: rgb(204, 204, 204); | 241 background-color: rgb(204, 204, 204); |
215 } | 242 } |
216 | 243 |
217 #roots-list:focus > .accepts, | 244 #directory-tree:focus .accepts, |
218 #roots-list:focus > [lead][selected], | 245 #directory-tree:focus .tree-row[lead][selected], |
219 #roots-list:focus > [lead], | 246 #directory-tree:focus .tree-row[lead], |
220 #roots-list:focus > [selected], | 247 #directory-tree:focus .tree-row[selected], |
221 #roots-list:focus > [anchor] { | 248 #directory-tree:focus .tree-row[anchor] { |
222 background-color: rgb(193, 209, 232); | 249 background-color: rgb(193, 209, 232); |
223 } | 250 } |
224 | 251 |
225 #roots-list > .accepts:hover, | 252 #directory-tree .accepts:hover, |
226 #roots-list > [lead]:hover, | 253 #directory-tree .tree-row[lead]:hover, |
227 #roots-list > [lead][selected]:hover, | 254 #directory-tree .tree-row[lead][selected]:hover, |
228 #roots-list > [selected]:hover, | 255 #directory-tree .tree-row[selected]:hover, |
229 #roots-list > [anchor]:hover { | 256 #directory-tree .tree-row[anchor]:hover { |
230 background-color: rgb(192, 192, 192); | 257 background-color: rgb(192, 192, 192); |
231 } | 258 } |
232 | 259 |
233 #roots-list:hover > .accepts:hover, | 260 #directory-tree:hover .accepts:hover, |
234 #roots-list:hover > [lead]:hover, | 261 #directory-tree:hover .tree-row[lead]:hover, |
235 #roots-list:hover > [lead][selected]:hover, | 262 #directory-tree:hover .tree-row[lead][selected]:hover, |
236 #roots-list:hover > [selected]:hover, | 263 #directory-tree:hover .tree-row[selected]:hover, |
237 #roots-list:hover > [anchor]:hover { | 264 #directory-tree:hover .tree-row[anchor]:hover { |
238 background-color: rgb(177, 193, 216); | 265 background-color: rgb(177, 193, 216); |
239 } | 266 } |
240 | 267 |
241 #roots-list li.root-item { | 268 #directory-tree .tree-row > div.root-eject { |
242 -webkit-box-align: center; | |
243 display: -webkit-box; | |
244 line-height: 22px; /* To accomodate for icons. */ | |
245 padding-left: 11px; | |
246 } | |
247 | |
248 li.root-item > .root-label { | |
249 -webkit-box-flex: 1; | |
250 margin: 0 2px; | |
251 overflow: hidden; | |
252 text-overflow: ellipsis; | |
253 white-space: nowrap; | |
254 } | |
255 | |
256 .volume-icon { | |
257 background-position: center 2px; | |
258 background-repeat: no-repeat; | |
259 height: 24px; | |
260 width: 24px; | |
261 } | |
262 | |
263 div.root-eject { | |
264 /* The transition commented out to work around crbug.com/157813 */ | 269 /* The transition commented out to work around crbug.com/157813 */ |
265 /*-webkit-transition: opacity 70ms linear;*/ | 270 /*-webkit-transition: opacity 70ms linear;*/ |
266 background-image: -webkit-image-set( | 271 background-image: -webkit-image-set( |
267 url('../images/files/ui/eject.png') 1x, | 272 url('../images/files/ui/eject.png') 1x, |
268 url('../images/files/ui/2x/eject.png') 2x); | 273 url('../images/files/ui/2x/eject.png') 2x); |
269 background-position: center center; | 274 background-position: center center; |
270 background-repeat: no-repeat; | 275 background-repeat: no-repeat; |
271 cursor: pointer; | 276 cursor: pointer; |
272 height: 20px; | 277 height: 20px; |
273 margin-right: 6px; | 278 margin-right: 6px; |
274 opacity: 0.7; | 279 opacity: 0.7; |
| 280 vertical-align: middle; |
275 width: 20px; | 281 width: 20px; |
276 } | 282 } |
277 | 283 |
278 div.root-eject:hover { | 284 #directory-tree .tree-row > div.root-eject[hidden] { |
| 285 /* [hidden] has alredy set in dialog.css, but it is overridden by the |
| 286 * selector '.tree-item > .tree-row > * 'in tree.js, hence we need to |
| 287 * override it again. */ |
| 288 display: none; |
| 289 } |
| 290 |
| 291 #directory-tree .tree-row > div.root-eject:hover { |
279 opacity: 1; | 292 opacity: 1; |
280 } | 293 } |
281 | 294 |
282 .root-item[selected] > div.root-eject:not(:hover), | 295 #directory-tree .root-item[disabled] { |
283 .root-item:hover > div.root-eject:not(:hover) { | |
284 opacity: 0.7; | |
285 } | |
286 | |
287 .root-item[disabled] { | |
288 opacity: 0.5; | 296 opacity: 0.5; |
289 pointer-events: none; | 297 pointer-events: none; |
290 } | 298 } |
291 | 299 |
292 /* Breadcrumbs and things under the title but above the list view. */ | 300 /* Breadcrumbs and things under the title but above the list view. */ |
293 .dialog-header { | 301 .dialog-header { |
294 -webkit-box-align: center; | 302 -webkit-box-align: center; |
295 -webkit-box-orient: horizontal; | 303 -webkit-box-orient: horizontal; |
296 -webkit-transition: all 180ms ease; | 304 -webkit-transition: all 180ms ease; |
297 display: -webkit-box; | 305 display: -webkit-box; |
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1682 } | 1690 } |
1683 | 1691 |
1684 list.autocomplete-suggestions[hasElementFocus] > [selected], | 1692 list.autocomplete-suggestions[hasElementFocus] > [selected], |
1685 list.autocomplete-suggestions[hasElementFocus] > [lead], | 1693 list.autocomplete-suggestions[hasElementFocus] > [lead], |
1686 list.autocomplete-suggestions:not([hasElementFocus]) > [selected], | 1694 list.autocomplete-suggestions:not([hasElementFocus]) > [selected], |
1687 list.autocomplete-suggestions:not([hasElementFocus]) > [lead] { | 1695 list.autocomplete-suggestions:not([hasElementFocus]) > [lead] { |
1688 background-color: rgb(238, 238, 238); | 1696 background-color: rgb(238, 238, 238); |
1689 background-image: none; | 1697 background-image: none; |
1690 border: 1px solid white; | 1698 border: 1px solid white; |
1691 } | 1699 } |
OLD | NEW |