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 {
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 html[dir='rtl'] menu.chrome-menu > :not(hr) {
198 background-position: left 10px center;
201 menu.chrome-menu > .menuitem-button {
202 background-position: center;
203 background-repeat: no-repeat;
204 border: 1px solid rgb(235, 235, 235);
206 margin: -36px -1px -1px 0;
213 menu.chrome-menu > .menuitem-button[checked] {
214 background-color: rgb(235, 235, 235);
217 menu.chrome-menu > .menuitem-button.left {
221 html[dir='rtl'] menu.chrome-menu > .menuitem-button.left {
226 menu.chrome-menu > .menuitem-button.right {
230 html[dir='rtl'] menu.chrome-menu > .menuitem-button.right {
235 menu.chrome-menu > menuitem[disabled] {
236 color: rgb(153, 153, 153);
239 menu.chrome-menu > menuitem:not([disabled])[selected],
240 menu.chrome-menu > menuitem:not([disabled]):active {
241 background-color: rgb(66, 129, 244);
245 menu.chrome-menu > hr {
246 background: rgb(235, 235, 235);
251 menu.chrome-menu > menuitem[checked] {
252 background-image: -webkit-image-set(
253 url('../images/common/check_no_box.png') 1x,
254 url('../images/common/2x/check_no_box.png') 2x);
257 menu.chrome-menu > [checked]::before {
261 menu[showShortcuts] > menuitem[shortcutText][selected]:not([disabled])::after {
266 * Ok/Cancel style buttons
267 * Height: 31px (content:21px + border:5px * 2)
270 input[type='button'],
271 input[type='submit'],
273 background-color: rgb(250, 250, 250);
274 background-image: none;
275 background-position: center;
276 background-repeat: no-repeat;
277 border: 5px solid transparent;
278 border-image: -webkit-image-set(
279 url('chrome://resources/images/apps/button.png') 1x,
280 url('chrome://resources/images/2x/apps/button.png')
281 2x) 5 / 5px / 2px repeat;
282 box-sizing: content-box;
283 color: rgb(34, 34, 34);
297 -webkit-margin-start: 10px;
301 input[type='button']:hover,
302 input[type='submit']:hover,
304 border-image: -webkit-image-set(
305 url('chrome://resources/images/apps/button_hover.png') 1x,
306 url('chrome://resources/images/2x/apps/button_hover.png')
307 2x) 5 fill / 5px / 2px repeat;
312 input[type='button']:active,
313 input[type='submit']:active {
314 border-image: -webkit-image-set(
315 url('chrome://resources/images/apps/button_pressed.png') 1x,
316 url('chrome://resources/images/2x/apps/button_pressed.png')
317 2x) 5 fill / 5px / 2px repeat;
322 input[type='button'][disabled],
323 input[type='submit'][disabled],
324 button[disabled]:hover,
325 input[type='button'][disabled]:hover,
326 input[type='submit'][disabled]:hover {
327 background-color: rgb(250, 250, 250);
328 background-image: none;
329 border-image: -webkit-image-set(
330 url('chrome://resources/images/apps/button.png') 1x,
331 url('chrome://resources/images/2x/apps/button.png')
332 2x) 5 fill / 5px / 2px repeat;
333 color: rgb(150, 150, 150);
336 select:not([size]):hover,
337 select[size='0']:hover,
338 select[size='1']:hover {
339 /* Original value is '5 fill', which hides the dropdown triangle. */
340 border-image-slice: 5;
343 /* Gray progress bar. */
345 background-color: #e6e6e6;
351 background-color: #888;
357 /* Entry names (File names, Folder names, Volume names, ...). */
358 /* Their base bidi direction should be ltr even in RTL languages. */
359 html[dir='rtl'] .entry-name {
365 /* Pop-up dialogs. */
367 .cr-dialog-container {
368 -webkit-user-select: none;
372 justify-content: center;
377 transition: opacity 250ms linear;
383 background-color: rgb(250, 250, 250);
384 border: 1px solid rgb(255, 255, 255);
386 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .5);
387 color: rgb(34, 34, 34);
390 flex-direction: column;
396 .cr-dialog-frame:focus {
400 @-webkit-keyframes pulse {
402 -webkit-transform: scale(1);
405 -webkit-transform: scale(1.02);
408 -webkit-transform: scale(1.02);
411 -webkit-transform: scale(1);
415 .cr-dialog-frame.pulse {
416 -webkit-animation-duration: 180ms;
417 -webkit-animation-iteration-count: 1;
418 -webkit-animation-name: pulse;
419 -webkit-animation-timing-function: ease-in-out;
422 .shown > .cr-dialog-frame {
423 -webkit-transform: perspective(500px) scale(1)
424 translateY(0) rotateX(0);
429 -webkit-transform: perspective(500px) scale(0.99)
430 translateY(-20px) rotateX(5deg);
432 transition: all 180ms;
433 transition-duration: 250ms;
437 background-color: white;
442 pointer-events: none;
446 transition: opacity 500ms;
449 .shown > .cr-dialog-shield {
451 transition: opacity 500ms;
455 -webkit-margin-end: 20px;
470 text-overflow: ellipsis;
473 .cr-dialog-frame input {
474 box-sizing: border-box;
481 justify-content: flex-end;
485 .cr-dialog-buttons button {
486 -webkit-margin-start: 8px;
491 background: url('chrome://theme/IDR_CLOSE_DIALOG') center no-repeat;
492 display: inline-block;
501 .cr-dialog-close:hover {
502 background-image: url('chrome://theme/IDR_CLOSE_DIALOG_H');
505 .cr-dialog-close:active {
506 background-image: url('chrome://theme/IDR_CLOSE_DIALOG_P');