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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
79 .butter-bar a { | 79 .butter-bar a { |
80 -webkit-margin-start: 1em; | 80 -webkit-margin-start: 1em; |
81 } | 81 } |
82 | 82 |
83 .butter-error { | 83 .butter-error { |
84 color: rgb(100, 0, 0); | 84 color: rgb(100, 0, 0); |
85 background-color: rgba(255, 100, 100, 0.5); | 85 background-color: rgba(255, 100, 100, 0.5); |
86 border: 1px red solid; | 86 border: 1px red solid; |
87 } | 87 } |
88 | 88 |
89 /* Commands should not be visible on the screen. */ | |
90 command { | |
91 visibility: hidden; | |
arv (Not doing code reviews)
2011/11/30 18:21:12
commands should be display none
dgozman
2011/12/01 10:13:04
Done.
| |
92 } | |
93 | |
89 /* The top title of the dialog. */ | 94 /* The top title of the dialog. */ |
90 .dialog-title { | 95 .dialog-title { |
91 -webkit-box-sizing: border-box; | 96 -webkit-box-sizing: border-box; |
92 -webkit-padding-start: 15px; | 97 -webkit-padding-start: 15px; |
93 background-image: -webkit-linear-gradient(top, #fff,#f6f6f6); | 98 background-image: -webkit-linear-gradient(top, #fff,#f6f6f6); |
94 border-bottom: 1px #d6d9e3 solid; | 99 border-bottom: 1px #d6d9e3 solid; |
95 color: #42506c; | 100 color: #42506c; |
96 font-size: 15px; | 101 font-size: 15px; |
97 font-weight: bold; | 102 font-weight: bold; |
98 height: 32px; | 103 height: 32px; |
99 padding-top: 8px; | 104 padding-top: 8px; |
100 padding-bottom: 8px; | 105 padding-bottom: 8px; |
101 } | 106 } |
102 | 107 |
108 /* Main part of the dialog between header and footer. */ | |
109 .dialog-container { | |
110 display: -webkit-box; | |
111 -webkit-box-orient: horizontal; | |
112 -webkit-box-align: stretch; | |
113 overflow: hidden; | |
114 -webkit-box-flex: 1; | |
115 } | |
116 | |
117 /* List/grid and preview are inside this container. */ | |
118 .dialog-main { | |
119 -webkit-box-flex: 1; | |
120 display:-webkit-box; | |
121 -webkit-box-orient: vertical; | |
122 -webkit-box-align: stretch; | |
123 } | |
124 | |
125 /* Roots list at the left. */ | |
126 .dialog-sidebar { | |
127 position: relative; | |
128 -webkit-box-flex: 0; | |
129 width: 200px; | |
130 margin-left: -200px; | |
131 background-color: rgba(240,240,240,1); | |
arv (Not doing code reviews)
2011/11/30 18:21:12
ws after comma
dgozman
2011/12/01 10:13:04
Done.
| |
132 margin-bottom: 15px; | |
133 margin-top: 15px; | |
134 -webkit-border-top-right-radius: 4px; | |
135 -webkit-border-top-left-radius: 4px; | |
136 -webkit-border-bottom-left-radius: 4px; | |
137 -webkit-transition: margin-left 180ms ease; | |
arv (Not doing code reviews)
2011/11/30 18:21:12
I thought we used 150ms across the board
dgozman
2011/12/01 10:13:04
I do not know about other places :-)
This is taken
| |
138 overflow: hidden; | |
139 } | |
140 | |
141 .dialog-container[sidebar] .dialog-sidebar { | |
142 margin-left: 15px; | |
143 } | |
144 | |
145 /* Roots list at the left. */ | |
146 list.roots-list { | |
147 width: 100%; | |
148 } | |
149 | |
150 list.roots-list > * { | |
151 border: none; | |
152 border-radius: 0; | |
153 line-height: 35px; | |
154 margin: 0; | |
155 padding: 0 5px; | |
156 background-color: rgba(240,240,240,1); | |
157 } | |
158 | |
159 list.roots-list > [lead], | |
160 list.roots-list > [selected], | |
161 list.roots-list > [anchor] { | |
162 background-color: hsl(214,91%,89%); | |
163 } | |
164 | |
165 list.roots-list > [lead]:hover, | |
166 list.roots-list > [selected]:hover, | |
167 list.roots-list > [anchor]:hover { | |
168 background-color: hsl(214,91%,87%); | |
169 } | |
170 | |
171 list.roots-list li.root-item { | |
172 display: -webkit-box; | |
173 -webkit-box-align: center; | |
174 -webkit-box-pack: start; | |
175 } | |
176 | |
177 li.root-item > * { | |
178 display: block; | |
179 margin-right: 5px; | |
180 } | |
181 | |
182 li.root-item > .spacer { | |
183 -webkit-box-flex: 1; | |
184 } | |
185 | |
186 img.root-eject { | |
187 opacity: 0.5; | |
188 cursor: pointer; | |
189 width: 15px; | |
190 height: 12px; | |
191 } | |
192 | |
193 img.root-eject:hover { | |
194 opacity: 1.0; | |
arv (Not doing code reviews)
2011/11/30 18:21:12
opacity: 1;
dgozman
2011/12/01 10:13:04
Done.
| |
195 } | |
196 | |
103 /* Breadcrumbs and things under the title but above the list view. */ | 197 /* Breadcrumbs and things under the title but above the list view. */ |
104 .dialog-header { | 198 .dialog-header { |
105 -webkit-box-orient: horizontal; | 199 -webkit-box-orient: horizontal; |
106 -webkit-box-align: center; | 200 -webkit-box-align: center; |
107 display: -webkit-box; | 201 display: -webkit-box; |
108 margin: 15px; | 202 margin-top: 15px; |
203 margin-right: 15px; | |
109 margin-bottom: 4px; | 204 margin-bottom: 4px; |
205 margin-left: 15px; | |
206 -webkit-transition: all 180ms ease; | |
207 } | |
208 | |
209 /* Container for the detail and thumbnail (not implemented yet) list views. */ | |
210 .dialog-container[sidebar] .dialog-header { | |
211 margin-left: 0; | |
110 } | 212 } |
111 | 213 |
112 /* Container for the detail and thumbnail (not implemented yet) list views. */ | 214 /* Close sidebar button. */ |
215 div.close-sidebar { | |
216 cursor: pointer; | |
217 position: absolute; | |
218 right: 0; | |
219 top: 2px; | |
220 display: none; | |
221 z-index: 10; | |
222 background-color: white; | |
223 border: 1px solid rgba(200,200,200,1); | |
224 width: 13px; | |
225 height: 24px; | |
226 } | |
227 | |
228 div.close-sidebar:hover { | |
229 background-color: rgba(240,240,240,1); | |
230 } | |
231 | |
232 /* Open sidebar button. */ | |
233 div.open-sidebar { | |
234 cursor: pointer; | |
235 margin-right: 10px; | |
236 background-color: white; | |
237 width: 13px; | |
238 height: 24px; | |
239 } | |
240 | |
241 div.open-sidebar:hover { | |
242 background-color: rgba(240,240,240,1); | |
243 } | |
244 | |
245 .dialog-container[sidebar] div.open-sidebar { | |
246 display: none;; | |
247 } | |
248 | |
249 .dialog-container[sidebar] div.close-sidebar { | |
250 display: block; | |
251 } | |
252 | |
253 /* Container for the detail and thumbnail list views. */ | |
113 .dialog-body { | 254 .dialog-body { |
114 -webkit-box-orient: vertical; | 255 -webkit-box-orient: vertical; |
115 -webkit-box-flex: 1; | 256 -webkit-box-flex: 1; |
116 border: 1px #aaa solid; | 257 border: 1px #aaa solid; |
117 border-radius: 4px; | 258 border-radius: 4px; |
118 display: -webkit-box; | 259 display: -webkit-box; |
119 margin: 15px; | 260 margin-right: 15px; |
120 margin-top: 0; | 261 margin-bottom: 15px; |
262 margin-left: 15px; | |
121 overflow: hidden; | 263 overflow: hidden; |
264 -webkit-transition: all 180ms ease; | |
265 } | |
266 | |
267 .dialog-container[sidebar] .dialog-body { | |
268 -webkit-border-top-left-radius: 0; | |
269 -webkit-border-bottom-left-radius: 0; | |
270 margin-left: 0; | |
122 } | 271 } |
123 | 272 |
124 /* Container for the ok/cancel buttons. */ | 273 /* Container for the ok/cancel buttons. */ |
125 .dialog-footer { | 274 .dialog-footer { |
126 -webkit-box-orient: horizontal; | 275 -webkit-box-orient: horizontal; |
127 display: -webkit-box; | 276 display: -webkit-box; |
128 margin: 15px; | 277 margin: 15px; |
129 margin-top: 0; | 278 margin-top: 0; |
130 } | 279 } |
131 | 280 |
132 /* The container for breadcrumb elements. */ | 281 /* The container for breadcrumb elements. */ |
133 .breadcrumbs { | 282 .breadcrumbs { |
134 -webkit-box-orient: horizontal; | 283 -webkit-box-orient: horizontal; |
135 -webkit-box-flex: 1; | 284 -webkit-box-flex: 1; |
136 display: -webkit-box; | 285 display: -webkit-box; |
286 -webkit-box-align: center; | |
137 font-size: 15px; | 287 font-size: 15px; |
138 line-height: 15px; | 288 line-height: 15px; |
139 height: 18px; | 289 height: 18px; |
140 overflow: hidden; | 290 overflow: hidden; |
141 text-overflow: ellipsis; | 291 text-overflow: ellipsis; |
142 white-space: nowrap; | 292 white-space: nowrap; |
143 } | 293 } |
144 | 294 |
295 .dialog-container[sidebar] .breadcrumbs { | |
296 margin-left: 10px; | |
arv (Not doing code reviews)
2011/11/30 18:21:12
RTL
dgozman
2011/12/01 10:13:04
Done.
| |
297 } | |
298 | |
299 /* Icon at the start of breadcrumb path. Corresponds to the root selected. */ | |
300 .breadcrumb-icon { | |
301 margin-right: 5px; | |
arv (Not doing code reviews)
2011/11/30 18:21:12
RTL
dgozman
2011/12/01 10:13:04
Done.
| |
302 display: block; | |
303 } | |
304 | |
305 .dialog-container[sidebar] .breadcrumb-icon { | |
306 display: none; | |
307 } | |
308 | |
145 /* A single directory name in the list of path breadcrumbs. */ | 309 /* A single directory name in the list of path breadcrumbs. */ |
146 .breadcrumb-path { | 310 .breadcrumb-path { |
147 color: #265692; | 311 color: #265692; |
148 cursor: pointer; | 312 cursor: pointer; |
149 font-size: 14px; | 313 font-size: 14px; |
150 } | 314 } |
151 | 315 |
152 /* The final breadcrumb, representing the current directory. */ | 316 /* The final breadcrumb, representing the current directory. */ |
153 .breadcrumb-last { | 317 .breadcrumb-last { |
154 color: #666; | 318 color: #666; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
203 padding: 15px; | 367 padding: 15px; |
204 } | 368 } |
205 | 369 |
206 .downloads-warning div { | 370 .downloads-warning div { |
207 display: -webkit-box; | 371 display: -webkit-box; |
208 -webkit-box-flex: 1; | 372 -webkit-box-flex: 1; |
209 } | 373 } |
210 | 374 |
211 /* The cr.ui.Grid representing the detailed file list. */ | 375 /* The cr.ui.Grid representing the detailed file list. */ |
212 .thumbnail-grid { | 376 .thumbnail-grid { |
213 position: absolute; | 377 width: 100%; |
214 top: 0; | |
215 left: 0; | |
216 border: 0; | |
217 overflow-y: scroll; | 378 overflow-y: scroll; |
218 } | 379 } |
219 | 380 |
220 /* An item in the thumbnail view. */ | 381 /* An item in the thumbnail view. */ |
221 .thumbnail-item { | 382 .thumbnail-item { |
222 margin-top: 10px; | 383 margin-top: 10px; |
223 margin-left: 10px; | 384 margin-left: 10px; |
224 width: 120px; | 385 width: 120px; |
225 height: 145px; | 386 height: 145px; |
226 text-align: center; | 387 text-align: center; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
261 } | 422 } |
262 | 423 |
263 /* Text box used for renaming in the thumbnail list. */ | 424 /* Text box used for renaming in the thumbnail list. */ |
264 .thumbnail-grid input.rename { | 425 .thumbnail-grid input.rename { |
265 -webkit-margin-start: -2px; | 426 -webkit-margin-start: -2px; |
266 position: absolute; | 427 position: absolute; |
267 } | 428 } |
268 | 429 |
269 /* The cr.ui.Table representing the detailed file list. */ | 430 /* The cr.ui.Table representing the detailed file list. */ |
270 .detail-table { | 431 .detail-table { |
271 position: absolute; | 432 width: 100%; |
272 top: 0; | |
273 left: 0; | |
274 border: 0; | 433 border: 0; |
275 } | 434 } |
276 | 435 |
277 /* Bottom pane describing current selection. */ | 436 /* Bottom pane describing current selection. */ |
278 .preview-panel { | 437 .preview-panel { |
279 -webkit-box-orient: horizontal; | 438 -webkit-box-orient: horizontal; |
280 display: -webkit-box; | 439 display: -webkit-box; |
281 height: 61px; | 440 height: 61px; |
282 background-color: #F0F0F0; | 441 background-color: #F0F0F0; |
283 padding: 0px 14px 0px 14px; | 442 padding: 0px 14px 0px 14px; |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
612 /* Overlay pane covering the entire file manager window (e.g. image editor)*/ | 771 /* Overlay pane covering the entire file manager window (e.g. image editor)*/ |
613 .overlay-pane { | 772 .overlay-pane { |
614 position: absolute; | 773 position: absolute; |
615 top: 0; | 774 top: 0; |
616 left: 0; | 775 left: 0; |
617 width: 100%; | 776 width: 100%; |
618 height: 100%; | 777 height: 100%; |
619 border: none; | 778 border: none; |
620 z-index: 100; | 779 z-index: 100; |
621 } | 780 } |
OLD | NEW |