/* Copyright (c) 2012 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* This file contains "borrowed" copy of standard styles. To simplify merging, * when altering, please preserve original property value by adding comments. */ input.common[type='checkbox'], input.common[type='radio'] { -webkit-appearance: none; border: 1px solid #555; border-radius: 1px; box-sizing: border-box; cursor: default; height: 13px; margin: 0; opacity: 0.4; width: 13px; } input.common[type='checkbox']:hover, input.common[type='checkbox']:checked, input.common[type='radio']:hover, input.common[type='radio']:checked { opacity: 1; } input.common[type='checkbox'] { position: relative; } input.common[type='checkbox']:checked::after { background-image: -webkit-image-set( url('../images/common/check_no_box.png') 1x, url('../images/common/2x/check_no_box.png') 2x); background-position: -3px -4px; background-repeat: no-repeat; } input.common[type='checkbox'].white { border: none; } input.common[type='checkbox'].white:not(:checked)::after { background-image: -webkit-image-set( url('../images/common/checkbox_white_unchecked.png') 1x, url('../images/common/2x/checkbox_white_unchecked.png') 2x); background-position: -1px 0; } input.common[type='checkbox'].white:checked::after { background-image: -webkit-image-set( url('../images/common/checkbox_white_checked.png') 1x, url('../images/common/2x/checkbox_white_checked.png') 2x); background-position: -1px 0; } input.common[type='checkbox']::after { content: ''; display: -webkit-box; height: 15px; left: -2px; position: absolute; top: -2px; width: 17px; } .bubble { background: #FFF; border-radius: 2px; cursor: default; outline: 1px solid rgba(0, 0, 0, 0.2); padding: 16px; } .bubble .pointer { background: -webkit-image-set( url('../images/common/bubble_point_white.png') 1x, url('../images/common/2x/bubble_point_white.png') 2x); display: block; height: 11px; left: 24px; margin: 0 0 0 -5px; outline: none; position: absolute; width: 17px; } .bubble .pointer:not(.bottom) { top: -11px; } .bubble .pointer.bottom { -webkit-transform: rotate(180deg); bottom: -11px; } .bubble .close-x { background: -webkit-image-set( url('../images/common/close_x_gray.png') 1x, url('../images/common/2x/close_x_gray.png') 2x); height: 21px; opacity: 0.3; position: absolute; right: 3px; top: 3px; width: 21px; } .bubble .close-x:hover { opacity: 0.7; } .buttonbar { display: -webkit-box; height: 29px; } .buttonbar.right { -webkit-box-flex: 1.0; -webkit-box-pack: end; } body:not([new-ui]) .buttonbar button:first-child { margin-left: 0; } body:not([new-ui]) .buttonbar button.right { border-radius: 0 2px 2px 0; margin-left: -1px; } body:not([new-ui]) .buttonbar button.left { border-radius: 2px 0 0 2px; border-right-color: transparent; margin-right: 0; } body:not([new-ui]) .buttonbar button.small { min-width: 34px; padding: 0; width: 34px; } body:not([new-ui]) .buttonbar button { -webkit-margin-after: 0; -webkit-margin-before: 0; -webkit-margin-end: 0; -webkit-margin-start: 8px; -webkit-user-select: none; background-color: whiteSmoke; background-image: linear-gradient(to bottom, whiteSmoke, #F1F1F1); border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 2px; box-shadow: none; box-sizing: content-box; color: #444; cursor: default; font-size: 13px; height: 27px; line-height: 27px; min-width: 54px; padding: 0 8px; position: relative; text-align: center; transition: all 218ms; z-index: 1; } body:not([new-ui]) .buttonbar button:hover { background-image: linear-gradient(to bottom, #F8F8F8, #F1F1F1); border: 1px solid #C6C6C6; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); color: #222; transition: all 0; } body:not([new-ui]) .buttonbar button:active { background-color: #F6F6F6; background-image: linear-gradient(to bottom, #F6F6F6, #F1F1F1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); } body:not([new-ui]) .buttonbar button[disabled] { background-color: #EEE; background-image: linear-gradient(to bottom, #EEE, #E0E0E0); border: 1px solid #CCC; color: #333; } body:not([new-ui]) .buttonbar button:hover, body:not([new-ui]) .buttonbar button:active, body:not([new-ui]) .buttonbar button[disabled] { z-index: 10; } .buttonbar button:active img { opacity: 1.0; } .buttonbar button:hover img { opacity: 0.72; } .buttonbar button[disabled] img { opacity: 0.9; } .buttonbar button img { display: inline-block; margin: -3px 0 0; opacity: 0.55; vertical-align: middle; } .buttonbar button.menubutton span.disclosureindicator { -webkit-transform: rotate(90deg); float: right; margin-left: 7px; margin-top: 10px; opacity: .8; transition: none; } body:not([new-ui]) .buttonbar button.action, body:not([new-ui]) .buttonbar button.action:focus, body:not([new-ui]) .buttonbar button.action:hover, body:not([new-ui]) .buttonbar button.action:active { background-color: rgb(209, 72, 54); background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(221, 75, 57)), to(rgb(209, 72, 54))); border: 1px solid transparent; color: #FFF; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; } body:not([new-ui]) .buttonbar button.action:not([disabled]):focus { border-color: rgb(209, 72, 54); } body:not([new-ui]) .buttonbar button.action:not([disabled]):hover { background-color: rgb(197, 55, 39); background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(221, 75, 57)), to(rgb(197, 55, 39))); border-bottom-color: rgb(175, 48, 31); border-color: rgb(176, 40, 26); } body:not([new-ui]) .buttonbar button.action:not([disabled]):active { background-color: rgb(176, 40, 26); background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(221, 75, 57)), to(rgb(176, 40, 26))); border-color: rgb(153, 42, 27); } body:not([new-ui]) .buttonbar button.action[disabled] { background-color: rgb(209, 72, 54); border-color: rgb(176, 40, 26); opacity: 0.5; } span.disclosureindicator { background-image: -webkit-image-set( url('../images/common/disclosure_arrow_dk_grey.png') 1x, url('../images/common/2x/disclosure_arrow_dk_grey.png') 2x); background-position: center; background-repeat: no-repeat; display: inline-block; height: 7px; width: 5px; } /* "chrome-menu" class overrides some standard menu.css styles, to make custom menus in FileBrowser look like native ChromeOS menus. */ menu.chrome-menu { border: 1px solid rgba(0, 0, 0, .32); border-radius: 3px; box-shadow: 0 2px 1px 0 rgba(0, 0, 0, .2); outline: none; padding: 2px 0; transition: opacity 200ms ease-in; z-index: 15; } body[new-ui] menu.chrome-menu { background-color: rgb(250, 250, 250); border: 1px solid rgb(255, 255, 255); box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .5); color: rgb(34, 34, 34); overflow: hidden; padding: 5px 0; } body menu.chrome-menu[hidden] { display: block; opacity: 0; pointer-events: none; visibility: hidden; } body menu.chrome-menu.hide-delayed[hidden] { transition-delay: 120ms; transition-property: opacity, visibility; } body:not([new-ui]) menu.chrome-menu > menuitem { background-position: 6px center; background-repeat: no-repeat; height: 30px; line-height: 28px; padding-left: 28px; padding-right: 20px; } body[new-ui] menu.chrome-menu > :not(hr) { background-position: right 10px center; background-repeat: no-repeat; line-height: 30px; padding-left: 20px; padding-right: 20px; } body[new-ui] menu.chrome-menu > .menuitem-button { background-position: center; background-repeat: no-repeat; border: 1px solid rgb(235, 235, 235); height: 42px; margin: -36px -1px -1px 0; min-width: 60px; padding: 0; position: absolute; width: 60px; } body[new-ui] menu.chrome-menu > .menuitem-button[checked] { background-color: rgb(235, 235, 235); } body[new-ui] menu.chrome-menu > .menuitem-button.left { right: 59px; } body[new-ui] menu.chrome-menu > .menuitem-button.right { right: 0; } menu.chrome-menu > menuitem[disabled] { background-color: rgb(255, 255, 255); color: rgb(153, 153, 153); } body[new-ui] menu.chrome-menu > menuitem[disabled] { background-color: rgb(252, 252, 252); } menu.chrome-menu > menuitem:not([disabled])[selected], menu.chrome-menu > menuitem:not([disabled])[selected]:active { background-color: rgb(241, 241, 241); color: rgb(34, 34, 34); } body[new-ui] menu.chrome-menu > menuitem:not([disabled])[selected], body[new-ui] menu.chrome-menu > menuitem:not([disabled])[selected]:active { background-color: rgb(66, 129, 244); color: white; } body:not([new-ui]) menu.chrome-menu > hr { background: rgb(218, 218, 218); height: 1px; margin: 2px 0; } body[new-ui] menu.chrome-menu > hr { background: rgb(235, 235, 235); height: 1px; margin: 5px 0; } menu.chrome-menu > menuitem[checked] { background-image: -webkit-image-set( url('../images/common/check_no_box.png') 1x, url('../images/common/2x/check_no_box.png') 2x); background-position: 2px center; } menu.chrome-menu > [checked]::before { display: none; } /* Ok/Cancel style buttons */ body:not([new-ui]) button, body:not([new-ui]) input[type='button'], body:not([new-ui]) input[type='submit'], body:not([new-ui]) select { -webkit-user-select: none; background: linear-gradient(#fafafa, #f4f4f4 40%, #e5e5e5); border: 1px solid #aaa; border-radius: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); color: #444; font: inherit; margin-bottom: 0; min-width: 4em; padding: 3px 12px 3px 12px; } body[new-ui] button, body[new-ui] input[type='button'], body[new-ui] input[type='submit'], body[new-ui] select { background-color: rgb(250, 250, 250); background-image: none; background-position: center; background-repeat: no-repeat; border: 1px solid rgb(255, 255, 255); border-bottom: 1px solid rgb(180, 180, 180); border-left: 1px solid rgb(220, 220, 220); border-radius: 2px; border-right: 1px solid rgb(200, 200, 200); border-top: 1px solid rgb(220, 220, 220); box-shadow: inset 0 1px 1px 0 rgb(255, 255, 255); box-sizing: content-box; color: rgb(34, 34, 34); cursor: default; line-height: 27px; margin: 0; min-height: 27px; min-width: 60px; padding: 0 10px; position: relative; text-align: center; z-index: 1; } body[new-ui] .buttonbar button { -webkit-margin-start: 8px; } body:not([new-ui]) button:hover, body:not([new-ui]) input[type='button']:hover, body:not([new-ui]) input[type='submit']:hover, body:not([new-ui]) select:hover { background: #ebebeb linear-gradient(#fefefe, #f8f8f8 40%, #e9e9e9); border-color: #999; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); color: #222; } body[new-ui] button:hover, body[new-ui] input[type='button']:hover, body[new-ui] input[type='submit']:hover, body[new-ui] select:hover { background-color: #ebebeb; background-image: linear-gradient(#fefefe, #f8f8f8 40%, #f0f0f0); border-color: rgb(190, 190, 190); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); color: #222; } body:not([new-ui]) button:active, body:not([new-ui]) input[type='button']:active, body:not([new-ui]) input[type='submit']:active { background-color: #ebebeb; background-image: linear-gradient(#f4f4f4, #efefef 40%, #dcdcdc); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); color: #333; } body[new-ui] button:active, body[new-ui] input[type='button']:active, body[new-ui] input[type='submit']:active { background-color: #ebebeb; background-image: linear-gradient(#f4f4f4, #efefef 40%, #dcdcdc); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); color: #333; } body:not([new-ui]) button[disabled], body:not([new-ui]) input[type='button'][disabled], body:not([new-ui]) input[type='submit'][disabled], body:not([new-ui]) button[disabled]:hover, body:not([new-ui]) input[type='button'][disabled]:hover, body:not([new-ui]) input[type='submit'][disabled]:hover { background: linear-gradient(#fafafa, #f4f4f4 40%, #e5e5e5); border-color: #aaa; box-shadow: none; color: #888; } body[new-ui] button[disabled], body[new-ui] input[type='button'][disabled], body[new-ui] input[type='submit'][disabled], body[new-ui] button[disabled]:hover, body[new-ui] input[type='button'][disabled]:hover, body[new-ui] input[type='submit'][disabled]:hover { background-color: rgb(250, 250, 250); background-image: none; border: 1px solid rgb(255, 255, 255); border-bottom: 1px solid rgb(180, 180, 180); border-left: 1px solid rgb(220, 220, 220); border-right: 1px solid rgb(200, 200, 200); border-top: 1px solid rgb(220, 220, 220); box-shadow: inset 0 1px 1px 0 rgb(255, 255, 255); color: rgb(150, 150, 150); } /* Blue progress bar. */ body:not([new-ui]) .progress-bar { background-color: #e6e6e6; border: 1px solid #ddd; border-radius: 2px; box-sizing: border-box; margin: 2px 0; } body:not([new-ui]) .progress-track { background-image: linear-gradient( rgb(110, 188, 249) 1px, rgb(86, 167, 247) 2px, rgb(76, 148, 245) 11px, rgb(41, 112, 211) 12px); border: 1px solid rgb(65, 137, 237); border-radius: 2px; height: 10px; margin: -1px; } body[new-ui] .progress-bar { background-color: #e6e6e6; border-radius: 3px; height: 6px; } body[new-ui] .progress-track { background-color: #888; border-radius: 3px; height: 6px; min-width: 6px; } .progress-track.smoothed { transition: width 1s linear; } /* Icons for the action choice dialog and choosing the default app. */ div.import-photos-to-drive-icon { background-image: -webkit-image-set( url('../images/media/drive.png') 1x, url('../images/media/2x/drive.png') 2x); } div.view-files-icon { background-image: -webkit-image-set( url('../images/icon32.png') 1x, url('../images/icon64.png') 2x); } div.watch-single-video-icon { background-image: -webkit-image-set( url('../images/media/watch.png') 1x, url('../images/media/2x/watch.png') 2x); } /* Pop-up dialogs. */ body[new-ui] .cr-dialog-container { -webkit-box-align: center; -webkit-box-pack: center; -webkit-user-select: none; display: -webkit-box; height: 100%; left: 0; overflow: hidden; position: absolute; top: 0; transition: opacity 250ms linear; width: 100%; z-index: 9999; } body[new-ui] .cr-dialog-frame { -webkit-box-orient: vertical; background-color: rgb(250, 250, 250); border: 1px solid rgb(255, 255, 255); box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .5); color: rgb(34, 34, 34); cursor: default; display: -webkit-box; padding: 20px; position: relative; width: 460px; } body[new-ui] .cr-dialog-frame:focus { outline: none; } @-webkit-keyframes pulse { 0% { -webkit-transform: scale(1); } 40% { -webkit-transform: scale(1.02); } 60% { -webkit-transform: scale(1.02); } 100% { -webkit-transform: scale(1); } } body[new-ui] .cr-dialog-frame.pulse { -webkit-animation-duration: 180ms; -webkit-animation-iteration-count: 1; -webkit-animation-name: pulse; -webkit-animation-timing-function: ease-in-out; } body[new-ui] .shown > .cr-dialog-frame { -webkit-transform: perspective(500px) scale(1) translateY(0) rotateX(0); opacity: 1; } body[new-ui] .cr-dialog-frame { -webkit-transform: perspective(500px) scale(0.99) translateY(-20px) rotateX(5deg); opacity: 0; transition: all 180ms; transition-duration: 250ms; } body[new-ui] .cr-dialog-shield { background-color: white; bottom: 0; display: block; left: 0; opacity: 0; pointer-events: none; position: absolute; right: 0; top: 0; transition: opacity 500ms; } body[new-ui] .shown > .cr-dialog-shield { opacity: 0.5; transition: opacity 500ms; } body[new-ui] [hidden] { display: none; } body[new-ui] .cr-dialog-title { -webkit-margin-after: 10px; -webkit-margin-end: 20px; display: block; font-size: 125%; white-space: nowrap; word-wrap: normal; } body[new-ui] .cr-dialog-text { margin: 13px 0; } body[new-ui] .cr-dialog-text, body[new-ui] .cr-dialog-title { overflow: hidden; text-overflow: ellipsis; } body[new-ui] .cr-dialog-frame input { box-sizing: border-box; width: 100%; } body[new-ui] .cr-dialog-buttons { -webkit-box-orient: horizontal; -webkit-box-pack: end; display: -webkit-box; padding-top: 10px; } body[new-ui] .cr-dialog-buttons button { -webkit-margin-start: 8px; line-height: 1.8; } body[new-ui] .cr-dialog-close { background: url('chrome://theme/IDR_CLOSE_DIALOG') center no-repeat; display: inline-block; height: 44px; opacity: 0.7; position: absolute; right: 0; top: 0; width: 44px; } body[new-ui] .cr-dialog-close:hover { background-image: url('chrome://theme/IDR_CLOSE_DIALOG_H'); } body[new-ui] .cr-dialog-close:active { background-image: url('chrome://theme/IDR_CLOSE_DIALOG_P'); }