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. */
19 -webkit-box-align: stretch;
35 box-sizing: border-box;
40 body.uber-frame #searchBox {
55 -webkit-box-orient: horizontal;
60 -webkit-box-orient: vertical;
65 -webkit-box-align: center;
76 #overlay-container-1 {
79 #overlay-container-2 {
82 #overlay-container-3 {
89 -webkit-box-shadow: none;
90 background-color: transparent;
91 background-repeat: no-repeat;
105 /* Omit top padding (currently only on #settings) whenever the search page is
108 #searchPage:not([hidden]) + #settings {
113 /* Min height is a multiple of the list item height (32) */
126 -webkit-appearance: slider-horizontal;
130 .settings-list-empty {
131 border: 1px solid #d9d9d9;
135 .settings-list-empty {
136 background-color: #f4f4f4;
137 box-sizing: border-box;
144 /* Editable text field properties */
145 .editable-text-field > * {
146 -webkit-box-align: center;
147 -webkit-transition: 150ms background-color;
149 box-sizing: border-box;
150 display: -webkit-box;
155 .editable-text-field > .spacer {
156 /* The above height rule should not apply to spacers. */
160 .editable-text-field .editable-text {
164 .editable-text-field .static-text {
168 text-overflow: ellipsis;
172 .editable-text-field:not([editable]) > [displaymode='edit'] {
176 .editable-text-field[editable] > [displaymode='static'] {
180 .editable-text-field[empty] > input[type='text'] {
185 .editable-text-field[disabled] {
189 /* Editable List properties */
191 -webkit-box-align: center;
192 -webkit-transition: 150ms background-color;
194 border-radius: 0; /* TODO(dbeam): Is this necessary? */
195 box-sizing: border-box;
196 display: -webkit-box;
202 /* The above height rule should not apply to spacers. When redraw is called
203 on the list they will be given an explicit element height but this ensures
204 they have 0 height to begin with. */
208 list:not([disabled]) > :hover {
209 background-color: rgb(228, 236, 247);
212 /* TODO(stuartmorgan): Once this becomes the list style for other WebUI pages
213 * these rules can be simplified (since they wont need to override other rules).
216 list:not([hasElementFocus]) > [selected],
217 list:not([hasElementFocus]) > [lead][selected] {
218 background-color: #d0d0d0;
219 background-image: none;
222 list[hasElementFocus] > [selected],
223 list[hasElementFocus] > [lead][selected],
224 list:not([hasElementFocus]) > [selected]:hover,
225 list:not([hasElementFocus]) > [selected][lead]:hover {
226 background-color: rgb(187, 206, 233);
227 background-image: none;
230 list[hasElementFocus] > [lead],
231 list[hasElementFocus] > [lead][selected] {
232 border-bottom: 1px solid rgb(120, 146, 180);
233 border-top: 1px solid rgb(120, 146, 180);
236 list[hasElementFocus] > [lead]:nth-child(2),
237 list[hasElementFocus] > [lead][selected]:nth-child(2) {
238 border-top: 1px solid transparent;
241 list[hasElementFocus] > [lead]:nth-last-child(2),
242 list[hasElementFocus] > [lead][selected]:nth-last-child(2) {
243 border-bottom: 1px solid transparent;
246 list[disabled] > [lead][selected],
247 list[disabled]:focus > [lead][selected] {
259 list > .heading:hover {
260 background-color: transparent;
261 border-color: transparent;
264 list .deletable-item {
265 -webkit-box-align: center;
268 list .deletable-item > :first-child {
269 -webkit-box-align: center;
271 -webkit-padding-end: 5px;
272 display: -webkit-box;
275 list .row-delete-button {
276 -webkit-transition: 150ms opacity;
277 background-color: transparent;
278 /* TODO(stuartmorgan): Replace with real images once they are available. */
279 background-image: -webkit-image-set(
280 url('../../../../ui/resources/default_100_percent/close_2.png') 1x,
281 url('../../../../ui/resources/default_200_percent/close_2.png') 2x);
289 list > *:not(:hover):not([selected]):not([lead]) .row-delete-button,
290 list:not([hasElementFocus]) > *:not(:hover):not([selected]) .row-delete-button,
291 list[disabled] .row-delete-button,
292 list .row-delete-button[disabled] {
294 pointer-events: none;
297 /* HostedApp entries use the disabled closing button to display the App's
298 * favicon, as an indicator that instead of deleting the permission here
299 * the user has to remove the hosted app.*/
300 list div[role='listitem'][managedby='HostedApp'] .row-delete-button {
304 list .row-delete-button:hover {
305 background-image: -webkit-image-set(
306 url('../../../../ui/resources/default_100_percent/close_2_hover.png') 1x,
307 url('../../../../ui/resources/default_200_percent/close_2_hover.png') 2x);
310 list .row-delete-button:active {
311 background-image: -webkit-image-set(
312 url('../../../../ui/resources/default_100_percent/close_2_pressed.png')
314 url('../../../../ui/resources/default_200_percent/close_2_pressed.png')
320 text-overflow: ellipsis;
324 list[type='text'][inlineeditable] input {
325 box-sizing: border-box;
330 list > :not([editing]) [displaymode='edit'] {
334 list > [editing] [displaymode='static'] {
338 list > [editing] input:invalid {
339 /* TODO(stuartmorgan): Replace with validity badge */
340 background-color: pink;
343 .list-inline-button {
344 -webkit-appearance: none;
345 -webkit-transition: opacity 150ms;
346 background: rgb(138, 170, 237);
354 .list-inline-button:hover {
362 html[dir=rtl].option-name {
367 -webkit-padding-start: 20px;
368 background-position: left;
369 background-repeat: no-repeat;
370 background-size: 16px;
373 input[type='url'].favicon-cell {
374 -webkit-padding-start: 22px;
375 background-position-x: 4px;
378 html[dir=rtl] input.favicon-cell {
379 background-position-x: -webkit-calc(100% - 4px);
383 -webkit-margin-start: 7px;
384 -webkit-padding-start: 26px;
387 text-overflow: ellipsis;
391 html[dir=rtl] list .favicon-cell {
392 background-position: right;
395 html[enable-background-mode=false] #background-mode-section {
402 list[hasElementFocus] {
403 <if expr="not is_macosx">
404 outline: 1px solid rgba(0, 128, 256, 0.5);
405 outline-offset: -2px;
407 <if expr="is_macosx">
408 /* This matches the native list outline on Mac */
409 outline-color: rgb(117, 154, 217);
410 outline-offset: -1px;
417 -webkit-margin-start: 23px;
420 list.autocomplete-suggestions {
421 background-color: white;
422 border: 1px solid #aaa;
430 list.autocomplete-suggestions > div {
434 list.autocomplete-suggestions:not([hasElementFocus]) > [selected],
435 list.autocomplete-suggestions:not([hasElementFocus]) > [lead][selected] {
436 background-color: rgb(187, 206, 233);
439 html:not(.focus-outline-visible)
440 :enabled:focus:-webkit-any(input[type='checkbox'], input[type='radio']) {
441 /* Cancel border-color for :focus specified in widgets.css. */
442 border-color: rgba(0, 0, 0, 0.25);
445 html:not([hasFlashPlugin]) .flash-plugin-area,
446 /* If the Flash plug-in supports the NPP_ClearSiteData API, we don't need to
447 * show the link to the Flash storage settings manager:
449 html[flashPluginSupportsClearSiteData] .flash-plugin-area,
450 html:not([flashPluginSupportsClearSiteData]) .clear-plugin-lso-data-enabled,
451 html[flashPluginSupportsClearSiteData] .clear-plugin-lso-data-disabled,
452 html:not([enablePepperFlashSettings]) .pepper-flash-settings {
456 /* Controlled setting indicator and bubble. */
458 .controlled-setting-with-label {
459 -webkit-box-align: center;
460 display: -webkit-box;
465 .controlled-setting-with-label > input + span {
466 -webkit-box-align: center;
468 -webkit-margin-start: 0.6em;
469 display: -webkit-box;
472 .controlled-setting-with-label > input:disabled + span label {
476 .controlled-setting-with-label label {
481 input:-webkit-any([type='text'],[type='url'],:not([type])) +
482 .controlled-setting-indicator {
483 -webkit-margin-start: 5px;
486 .controlled-setting-indicator:not([controlled-by]) {
490 .controlled-setting-indicator[controlled-by='policy'] > div {
492 url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY_GRAY');
495 .controlled-setting-indicator[controlled-by='policy'] >
496 div:-webkit-any(:hover, .showing-bubble) {
498 url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
501 .controlled-setting-indicator[controlled-by='owner'] > div {
503 url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY_GRAY');
506 .controlled-setting-indicator[controlled-by='owner'] >
507 div:-webkit-any(:hover, .showing-bubble) {
509 url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
512 .controlled-setting-indicator[controlled-by='extension'] > div {
514 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION_GRAY');
517 .controlled-setting-indicator[controlled-by='extension'] >
518 div:-webkit-any(:hover, .showing-bubble) {
520 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION');
523 .controlled-setting-indicator:-webkit-any([controlled-by='recommended'],
524 [controlled-by='hasRecommendation']) > div {
526 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_GRAY');
529 .controlled-setting-indicator:-webkit-any([controlled-by='recommended'],
530 [controlled-by='hasRecommendation']) >
531 div:-webkit-any(:hover,.showing-bubble) {
533 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED');
536 .controlled-setting-bubble-content {
537 -webkit-padding-start: 30px;
538 background-repeat: no-repeat;
539 background-size: 22px;
543 .controlled-setting-bubble-content[controlled-by='policy'] {
545 url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY_LARGE');
548 .controlled-setting-bubble-content[controlled-by='owner'] {
550 url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY_LARGE');
553 .controlled-setting-bubble-content[controlled-by='extension'] {
555 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION_LARGE');
558 .controlled-setting-bubble-content:-webkit-any([controlled-by='recommended'],
559 [controlled-by='hasRecommendation']) {
561 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_LARGE');
564 html[dir='rtl'] .controlled-setting-bubble-content {
565 background-position: right top;
568 .controlled-setting-bubble-action {
569 padding: 0 !important;