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
3 * found in the LICENSE file. */
5 /* Special attribute to hide elements. */
7 display: none !important;
10 /* This file contains "borrowed" copy of standard styles. To simplify merging,
11 * when altering, please preserve original property value by adding comments. */
12 input.common[type='checkbox'],
13 input.common[type='radio'] {
14 -webkit-appearance: none;
15 border: 1px solid #555;
17 box-sizing: border-box;
25 input.common[type='checkbox']:hover,
26 input.common[type='checkbox']:checked,
27 input.common[type='radio']:hover,
28 input.common[type='radio']:checked {
32 input.common[type='checkbox'] {
36 input.common[type='checkbox']:checked::after {
37 background-image: -webkit-image-set(
38 url('../images/common/check_no_box.png') 1x,
39 url('../images/common/2x/check_no_box.png') 2x);
40 background-position: -3px -4px;
41 background-repeat: no-repeat;
44 input.common[type='checkbox'].white {
48 input.common[type='checkbox'].white:not(:checked)::after {
49 background-image: -webkit-image-set(
50 url('../images/common/checkbox_white_unchecked.png') 1x,
51 url('../images/common/2x/checkbox_white_unchecked.png') 2x);
52 background-position: -1px 0;
55 input.common[type='checkbox'].white:checked::after {
56 background-image: -webkit-image-set(
57 url('../images/common/checkbox_white_checked.png') 1x,
58 url('../images/common/2x/checkbox_white_checked.png') 2x);
59 background-position: -1px 0;
62 input.common[type='checkbox']::after {
76 outline: 1px solid rgba(0, 0, 0, 0.2);
81 background: -webkit-image-set(
82 url('../images/common/bubble_point_white.png') 1x,
83 url('../images/common/2x/bubble_point_white.png') 2x);
93 .bubble .pointer:not(.bottom) {
97 .bubble .pointer.bottom {
98 -webkit-transform: rotate(180deg);
103 background: -webkit-image-set(
104 url('../images/common/close_x_gray.png') 1x,
105 url('../images/common/2x/close_x_gray.png') 2x);
114 .bubble .close-x:hover {
119 display: -webkit-box;
123 .buttonbar button:active img {
127 .buttonbar button:hover img {
131 .buttonbar button[disabled] img {
135 .buttonbar button img {
136 display: inline-block;
139 vertical-align: middle;
142 .buttonbar button.menubutton span.disclosureindicator {
143 -webkit-transform: rotate(90deg);
151 span.disclosureindicator {
152 background-image: -webkit-image-set(
153 url('../images/common/disclosure_arrow_dk_grey.png') 1x,
154 url('../images/common/2x/disclosure_arrow_dk_grey.png') 2x);
155 background-position: center;
156 background-repeat: no-repeat;
157 display: inline-block;
162 /* "chrome-menu" class overrides some standard menu.css styles, to make custom
163 menus in FileBrowser look like native ChromeOS menus. */
166 background-color: rgb(250, 250, 250);
168 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .5);
169 color: rgb(34, 34, 34);
173 transition: opacity 200ms ease-in;
174 z-index: 600; /* Must be below the overlay pane (1000). */
177 menu.chrome-menu[hidden] {
178 display: block !important; /* Overrides default [hidden] for animation. */
180 pointer-events: none;
184 menu.chrome-menu.hide-delayed[hidden] {
185 transition-delay: 120ms;
186 transition-property: opacity, visibility;
189 menu.chrome-menu > :not(hr) {
190 background-position: right 10px center;
191 background-repeat: no-repeat;
197 menu.chrome-menu > .menuitem-button {
198 background-position: center;
199 background-repeat: no-repeat;
200 border: 1px solid rgb(235, 235, 235);
202 margin: -36px -1px -1px 0;
209 menu.chrome-menu > .menuitem-button[checked] {
210 background-color: rgb(235, 235, 235);
213 menu.chrome-menu > .menuitem-button.left {
217 menu.chrome-menu > .menuitem-button.right {
221 menu.chrome-menu > menuitem[disabled] {
222 color: rgb(153, 153, 153);
225 menu.chrome-menu > menuitem:not([disabled])[selected],
226 menu.chrome-menu > menuitem:not([disabled])[selected]:active {
227 background-color: rgb(66, 129, 244);
231 menu.chrome-menu > hr {
232 background: rgb(235, 235, 235);
237 menu.chrome-menu > menuitem[checked] {
238 background-image: -webkit-image-set(
239 url('../images/common/check_no_box.png') 1x,
240 url('../images/common/2x/check_no_box.png') 2x);
243 menu.chrome-menu > [checked]::before {
247 menu[showShortcuts] > menuitem[shortcutText][selected]:not([disabled])::after {
252 * Ok/Cancel style buttons
253 * Height: 31px (content:21px + border:5px * 2)
256 input[type='button'],
257 input[type='submit'],
259 background-color: rgb(250, 250, 250);
260 background-image: none;
261 background-position: center;
262 background-repeat: no-repeat;
263 border: 5px solid transparent;
264 border-image: -webkit-image-set(
265 url('chrome://resources/images/apps/button.png') 1x,
266 url('chrome://resources/images/2x/apps/button.png')
267 2x) 5 / 5px / 2px repeat;
268 box-sizing: content-box;
269 color: rgb(34, 34, 34);
283 -webkit-margin-start: 10px;
287 input[type='button']:hover,
288 input[type='submit']:hover,
290 border-image: -webkit-image-set(
291 url('chrome://resources/images/apps/button_hover.png') 1x,
292 url('chrome://resources/images/2x/apps/button_hover.png')
293 2x) 5 fill / 5px / 2px repeat;
298 input[type='button']:active,
299 input[type='submit']:active {
300 border-image: -webkit-image-set(
301 url('chrome://resources/images/apps/button_pressed.png') 1x,
302 url('chrome://resources/images/2x/apps/button_pressed.png')
303 2x) 5 fill / 5px / 2px repeat;
308 input[type='button'][disabled],
309 input[type='submit'][disabled],
310 button[disabled]:hover,
311 input[type='button'][disabled]:hover,
312 input[type='submit'][disabled]:hover {
313 background-color: rgb(250, 250, 250);
314 background-image: none;
315 border-image: -webkit-image-set(
316 url('chrome://resources/images/apps/button.png') 1x,
317 url('chrome://resources/images/2x/apps/button.png')
318 2x) 5 fill / 5px / 2px repeat;
319 color: rgb(150, 150, 150);
322 /* Gray progress bar. */
324 background-color: #e6e6e6;
330 background-color: #888;
336 .progress-track.smoothed {
337 transition: width 1s linear;
340 /* Icons for the action choice dialog and choosing the default app. */
341 div.import-photos-to-drive-icon {
342 background-image: -webkit-image-set(
343 url('../images/media/drive.png') 1x,
344 url('../images/media/2x/drive.png') 2x);
347 div.view-files-icon {
348 background-image: -webkit-image-set(
349 url('../../common/images/icon32.png') 1x,
350 url('../../common/images/icon64.png') 2x);
353 div.watch-single-video-icon {
354 background-image: -webkit-image-set(
355 url('../images/media/watch.png') 1x,
356 url('../images/media/2x/watch.png') 2x);
359 /* Pop-up dialogs. */
361 .cr-dialog-container {
362 -webkit-box-align: center;
363 -webkit-box-pack: center;
364 -webkit-user-select: none;
365 display: -webkit-box;
371 transition: opacity 250ms linear;
377 -webkit-box-orient: vertical;
378 background-color: rgb(250, 250, 250);
379 border: 1px solid rgb(255, 255, 255);
381 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .5);
382 color: rgb(34, 34, 34);
384 display: -webkit-box;
390 .cr-dialog-frame:focus {
394 @-webkit-keyframes pulse {
396 -webkit-transform: scale(1);
399 -webkit-transform: scale(1.02);
402 -webkit-transform: scale(1.02);
405 -webkit-transform: scale(1);
409 .cr-dialog-frame.pulse {
410 -webkit-animation-duration: 180ms;
411 -webkit-animation-iteration-count: 1;
412 -webkit-animation-name: pulse;
413 -webkit-animation-timing-function: ease-in-out;
416 .shown > .cr-dialog-frame {
417 -webkit-transform: perspective(500px) scale(1)
418 translateY(0) rotateX(0);
423 -webkit-transform: perspective(500px) scale(0.99)
424 translateY(-20px) rotateX(5deg);
426 transition: all 180ms;
427 transition-duration: 250ms;
431 background-color: white;
436 pointer-events: none;
440 transition: opacity 500ms;
443 .shown > .cr-dialog-shield {
445 transition: opacity 500ms;
449 -webkit-margin-after: 10px;
450 -webkit-margin-end: 20px;
464 text-overflow: ellipsis;
467 .cr-dialog-frame input {
468 box-sizing: border-box;
473 -webkit-box-orient: horizontal;
474 -webkit-box-pack: end;
475 display: -webkit-box;
479 .cr-dialog-buttons button {
480 -webkit-margin-start: 8px;
485 background: url('chrome://theme/IDR_CLOSE_DIALOG') center no-repeat;
486 display: inline-block;
495 .cr-dialog-close:hover {
496 background-image: url('chrome://theme/IDR_CLOSE_DIALOG_H');
499 .cr-dialog-close:active {
500 background-image: url('chrome://theme/IDR_CLOSE_DIALOG_P');