OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 /* Outer frame of the dialog. */ | 7 /* Outer frame of the dialog. */ |
8 body { | 8 body { |
9 -webkit-box-flex: 1; | 9 -webkit-box-flex: 1; |
10 -webkit-box-orient: vertical; | 10 -webkit-box-orient: vertical; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 background-image: -webkit-linear-gradient(top, #fff,#f6f6f6); | 93 background-image: -webkit-linear-gradient(top, #fff,#f6f6f6); |
94 border-bottom: 1px #d6d9e3 solid; | 94 border-bottom: 1px #d6d9e3 solid; |
95 color: #42506c; | 95 color: #42506c; |
96 font-size: 15px; | 96 font-size: 15px; |
97 font-weight: bold; | 97 font-weight: bold; |
98 height: 32px; | 98 height: 32px; |
99 padding-top: 8px; | 99 padding-top: 8px; |
100 padding-bottom: 8px; | 100 padding-bottom: 8px; |
101 } | 101 } |
102 | 102 |
| 103 /* Main part of the dialog between header and footer. */ |
| 104 .dialog-container { |
| 105 display: -webkit-box; |
| 106 -webkit-box-orient: horizontal; |
| 107 -webkit-box-align: stretch; |
| 108 overflow: hidden; |
| 109 -webkit-box-flex: 1; |
| 110 } |
| 111 |
| 112 /* List/grid and preview are inside this container. */ |
| 113 .dialog-main { |
| 114 -webkit-box-flex: 1; |
| 115 display:-webkit-box; |
| 116 -webkit-box-orient: vertical; |
| 117 -webkit-box-align: stretch; |
| 118 } |
| 119 |
| 120 /* Roots list at the left. */ |
| 121 .dialog-sidebar { |
| 122 position: relative; |
| 123 -webkit-box-flex: 0; |
| 124 width: 200px; |
| 125 margin-left: -200px; |
| 126 background-color: rgba(240, 240, 240, 1); |
| 127 margin-bottom: 15px; |
| 128 margin-top: 15px; |
| 129 -webkit-border-top-right-radius: 4px; |
| 130 -webkit-border-top-left-radius: 4px; |
| 131 -webkit-border-bottom-left-radius: 4px; |
| 132 -webkit-transition: margin-left 180ms ease; |
| 133 overflow: hidden; |
| 134 } |
| 135 |
| 136 .dialog-container[sidebar] .dialog-sidebar { |
| 137 margin-left: 15px; |
| 138 } |
| 139 |
| 140 /* Roots list at the left. */ |
| 141 list.roots-list { |
| 142 width: 100%; |
| 143 } |
| 144 |
| 145 list.roots-list > * { |
| 146 border: none; |
| 147 border-radius: 0; |
| 148 line-height: 35px; |
| 149 margin: 0; |
| 150 padding: 0 5px; |
| 151 background-color: rgba(240,240,240,1); |
| 152 } |
| 153 |
| 154 list.roots-list > [lead], |
| 155 list.roots-list > [selected], |
| 156 list.roots-list > [anchor] { |
| 157 background-color: hsl(214,91%,89%); |
| 158 } |
| 159 |
| 160 list.roots-list > [lead]:hover, |
| 161 list.roots-list > [selected]:hover, |
| 162 list.roots-list > [anchor]:hover { |
| 163 background-color: hsl(214,91%,87%); |
| 164 } |
| 165 |
| 166 list.roots-list li.root-item { |
| 167 display: -webkit-box; |
| 168 -webkit-box-align: center; |
| 169 -webkit-box-pack: start; |
| 170 } |
| 171 |
| 172 li.root-item > * { |
| 173 display: block; |
| 174 margin-right: 5px; |
| 175 } |
| 176 |
| 177 li.root-item > .text { |
| 178 max-width: 130px; |
| 179 overflow: hidden; |
| 180 text-overflow: ellipsis; |
| 181 white-space: nowrap; |
| 182 } |
| 183 |
| 184 li.root-item > .spacer { |
| 185 -webkit-box-flex: 1; |
| 186 } |
| 187 |
| 188 img.root-eject { |
| 189 opacity: 0.5; |
| 190 cursor: pointer; |
| 191 width: 15px; |
| 192 height: 12px; |
| 193 } |
| 194 |
| 195 img.root-eject:hover { |
| 196 opacity: 1; |
| 197 } |
| 198 |
103 /* Breadcrumbs and things under the title but above the list view. */ | 199 /* Breadcrumbs and things under the title but above the list view. */ |
104 .dialog-header { | 200 .dialog-header { |
105 -webkit-box-orient: horizontal; | 201 -webkit-box-orient: horizontal; |
106 -webkit-box-align: center; | 202 -webkit-box-align: center; |
107 display: -webkit-box; | 203 display: -webkit-box; |
108 margin: 15px; | 204 margin-top: 15px; |
| 205 margin-right: 15px; |
109 margin-bottom: 4px; | 206 margin-bottom: 4px; |
| 207 margin-left: 15px; |
| 208 -webkit-transition: all 180ms ease; |
| 209 } |
| 210 |
| 211 /* Container for the detail and thumbnail (not implemented yet) list views. */ |
| 212 .dialog-container[sidebar] .dialog-header { |
| 213 margin-left: 0; |
110 } | 214 } |
111 | 215 |
112 /* Container for the detail and thumbnail (not implemented yet) list views. */ | 216 /* Close sidebar button. */ |
| 217 div.close-sidebar { |
| 218 cursor: pointer; |
| 219 position: absolute; |
| 220 right: 0; |
| 221 top: 2px; |
| 222 display: none; |
| 223 z-index: 10; |
| 224 background-color: white; |
| 225 border: 1px solid rgba(200,200,200,1); |
| 226 width: 13px; |
| 227 height: 24px; |
| 228 } |
| 229 |
| 230 div.close-sidebar:hover { |
| 231 background-color: rgba(240,240,240,1); |
| 232 } |
| 233 |
| 234 /* Open sidebar button. */ |
| 235 div.open-sidebar { |
| 236 cursor: pointer; |
| 237 margin-right: 10px; |
| 238 background-color: white; |
| 239 width: 13px; |
| 240 height: 24px; |
| 241 } |
| 242 |
| 243 div.open-sidebar:hover { |
| 244 background-color: rgba(240,240,240,1); |
| 245 } |
| 246 |
| 247 .dialog-container[sidebar] div.open-sidebar { |
| 248 display: none;; |
| 249 } |
| 250 |
| 251 .dialog-container[sidebar] div.close-sidebar { |
| 252 display: block; |
| 253 } |
| 254 |
| 255 /* Container for the detail and thumbnail list views. */ |
113 .dialog-body { | 256 .dialog-body { |
114 -webkit-box-orient: vertical; | 257 -webkit-box-orient: vertical; |
115 -webkit-box-flex: 1; | 258 -webkit-box-flex: 1; |
116 border: 1px #aaa solid; | 259 border: 1px #aaa solid; |
117 border-radius: 4px; | 260 border-radius: 4px; |
118 display: -webkit-box; | 261 display: -webkit-box; |
119 margin: 15px; | 262 margin-right: 15px; |
120 margin-top: 0; | 263 margin-bottom: 15px; |
| 264 margin-left: 15px; |
121 overflow: hidden; | 265 overflow: hidden; |
| 266 -webkit-transition: all 180ms ease; |
| 267 } |
| 268 |
| 269 .dialog-container[sidebar] .dialog-body { |
| 270 -webkit-border-top-left-radius: 0; |
| 271 -webkit-border-bottom-left-radius: 0; |
| 272 margin-left: 0; |
122 } | 273 } |
123 | 274 |
124 /* Container for the ok/cancel buttons. */ | 275 /* Container for the ok/cancel buttons. */ |
125 .dialog-footer { | 276 .dialog-footer { |
126 -webkit-box-orient: horizontal; | 277 -webkit-box-orient: horizontal; |
127 display: -webkit-box; | 278 display: -webkit-box; |
128 margin: 15px; | 279 margin: 15px; |
129 margin-top: 0; | 280 margin-top: 0; |
130 } | 281 } |
131 | 282 |
132 /* The container for breadcrumb elements. */ | 283 /* The container for breadcrumb elements. */ |
133 .breadcrumbs { | 284 .breadcrumbs { |
134 -webkit-box-orient: horizontal; | 285 -webkit-box-orient: horizontal; |
135 -webkit-box-flex: 1; | 286 -webkit-box-flex: 1; |
136 display: -webkit-box; | 287 display: -webkit-box; |
| 288 -webkit-box-align: center; |
137 font-size: 15px; | 289 font-size: 15px; |
138 line-height: 15px; | 290 line-height: 15px; |
139 height: 18px; | 291 height: 18px; |
140 overflow: hidden; | 292 overflow: hidden; |
141 text-overflow: ellipsis; | 293 text-overflow: ellipsis; |
142 white-space: nowrap; | 294 white-space: nowrap; |
143 } | 295 } |
144 | 296 |
| 297 .dialog-container[sidebar] .breadcrumbs { |
| 298 margin-left: 10px; |
| 299 } |
| 300 |
| 301 /* Icon at the start of breadcrumb path. Corresponds to the root selected. */ |
| 302 .breadcrumb-icon { |
| 303 margin-right: 5px; |
| 304 display: block; |
| 305 } |
| 306 |
| 307 .dialog-container[sidebar] .breadcrumb-icon { |
| 308 display: none; |
| 309 } |
| 310 |
145 /* A single directory name in the list of path breadcrumbs. */ | 311 /* A single directory name in the list of path breadcrumbs. */ |
146 .breadcrumb-path { | 312 .breadcrumb-path { |
147 color: #265692; | 313 color: #265692; |
148 cursor: pointer; | 314 cursor: pointer; |
149 font-size: 14px; | 315 font-size: 14px; |
150 } | 316 } |
151 | 317 |
152 /* The final breadcrumb, representing the current directory. */ | 318 /* The final breadcrumb, representing the current directory. */ |
153 .breadcrumb-last { | 319 .breadcrumb-last { |
154 color: #666; | 320 color: #666; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 padding: 15px; | 369 padding: 15px; |
204 } | 370 } |
205 | 371 |
206 .downloads-warning div { | 372 .downloads-warning div { |
207 display: -webkit-box; | 373 display: -webkit-box; |
208 -webkit-box-flex: 1; | 374 -webkit-box-flex: 1; |
209 } | 375 } |
210 | 376 |
211 /* The cr.ui.Grid representing the detailed file list. */ | 377 /* The cr.ui.Grid representing the detailed file list. */ |
212 .thumbnail-grid { | 378 .thumbnail-grid { |
213 position: absolute; | 379 width: 100%; |
214 top: 0; | |
215 left: 0; | |
216 border: 0; | |
217 overflow-y: auto; | 380 overflow-y: auto; |
218 } | 381 } |
219 | 382 |
220 /* An item in the thumbnail view. */ | 383 /* An item in the thumbnail view. */ |
221 .thumbnail-item { | 384 .thumbnail-item { |
222 margin-top: 10px; | 385 margin-top: 10px; |
223 margin-left: 5px; | 386 margin-left: 5px; |
224 margin-right: 5px; | 387 margin-right: 5px; |
225 width: 120px; | 388 width: 120px; |
226 height: 145px; | 389 height: 145px; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 } | 425 } |
263 | 426 |
264 /* Text box used for renaming in the thumbnail list. */ | 427 /* Text box used for renaming in the thumbnail list. */ |
265 .thumbnail-grid input.rename { | 428 .thumbnail-grid input.rename { |
266 -webkit-margin-start: -2px; | 429 -webkit-margin-start: -2px; |
267 position: absolute; | 430 position: absolute; |
268 } | 431 } |
269 | 432 |
270 /* The cr.ui.Table representing the detailed file list. */ | 433 /* The cr.ui.Table representing the detailed file list. */ |
271 .detail-table { | 434 .detail-table { |
272 position: absolute; | 435 width: 100%; |
273 top: 0; | |
274 left: 0; | |
275 border: 0; | 436 border: 0; |
276 } | 437 } |
277 | 438 |
278 /* Bottom pane describing current selection. */ | 439 /* Bottom pane describing current selection. */ |
279 .preview-panel { | 440 .preview-panel { |
280 -webkit-box-orient: horizontal; | 441 -webkit-box-orient: horizontal; |
281 display: -webkit-box; | 442 display: -webkit-box; |
282 height: 61px; | 443 height: 61px; |
283 background-color: #F0F0F0; | 444 background-color: #F0F0F0; |
284 padding: 0px 14px 0px 14px; | 445 padding: 0px 14px 0px 14px; |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 /* Overlay pane covering the entire file manager window (e.g. image editor)*/ | 785 /* Overlay pane covering the entire file manager window (e.g. image editor)*/ |
625 .overlay-pane { | 786 .overlay-pane { |
626 position: absolute; | 787 position: absolute; |
627 top: 0; | 788 top: 0; |
628 left: 0; | 789 left: 0; |
629 width: 100%; | 790 width: 100%; |
630 height: 100%; | 791 height: 100%; |
631 border: none; | 792 border: none; |
632 z-index: 100; | 793 z-index: 100; |
633 } | 794 } |
OLD | NEW |