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
;
55 -webkit-box-orient: horizontal
;
60 -webkit-box-orient: vertical
;
65 -webkit-box-align: center
;
75 background-color: transparent
;
76 background-repeat: no-repeat
;
91 /* Omit top padding (currently only on #settings) whenever the search page is
94 #searchPage:not
([hidden
]) + #settings
{
99 /* Min height is a multiple of the list item height (32) */
108 -webkit-appearance: slider-horizontal
;
112 .settings-list-empty {
113 border: 1px solid
#d9d9d9;
117 .settings-list-empty {
118 background-color: #f4f4f4;
119 box-sizing: border-box
;
126 /* Editable text field properties */
127 .editable-text-field > * {
128 -webkit-box-align: center
;
129 -webkit-transition: 150ms background-color
;
131 box-sizing: border-box
;
132 display: -webkit-box
;
137 .editable-text-field > .spacer {
138 /* The above height rule should not apply to spacers. */
142 .editable-text-field .editable-text {
146 .editable-text-field .static-text {
150 text-overflow: ellipsis
;
154 .editable-text-field:not([editable]) > [displaymode='edit'] {
158 .editable-text-field[editable] > [displaymode='static'] {
162 .editable-text-field[empty] > input[type='text'] {
167 .editable-text-field[disabled] {
171 /* Editable List properties */
173 -webkit-box-align: center
;
174 -webkit-transition: 150ms background-color
;
176 border-radius: 0; /* TODO(dbeam): Is this necessary? */
177 box-sizing: border-box
;
178 display: -webkit-box
;
184 /* The above height rule should not apply to spacers. When redraw is called
185 on the list they will be given an explicit element height but this ensures
186 they have 0 height to begin with. */
190 list:not
([disabled
]) > :hover
{
191 background-color: rgb
(228, 236, 247);
194 /* TODO(stuartmorgan): Once this becomes the list style for other WebUI pages
195 * these rules can be simplified (since they wont need to override other rules).
198 list:not
([has-element-focus
]) > [selected
],
199 list:not
([has-element-focus
]) > [lead
][selected
] {
200 background-color: #d0d0d0;
201 background-image: none
;
204 list
[has-element-focus
] > [selected
],
205 list
[has-element-focus
] > [lead
][selected
],
206 list:not
([has-element-focus
]) > [selected
]:hover
,
207 list:not
([has-element-focus
]) > [selected
][lead
]:hover
{
208 background-color: rgb
(187, 206, 233);
209 background-image: none
;
212 .settings-list
[has-element-focus
] > [lead
],
213 .settings-list[has-element-focus] > [lead][selected] {
214 border-bottom: 1px solid rgb
(120, 146, 180);
215 border-top: 1px solid rgb
(120, 146, 180);
218 .settings-list
[has-element-focus
] > [lead
]:nth-child
(2),
219 .settings-list[has-element-focus] > [lead][selected]:nth-child(2) {
220 border-top: 1px solid transparent
;
223 .settings-list
[has-element-focus
] > [lead
]:nth-last-child
(2),
224 .settings-list[has-element-focus] > [lead][selected]:nth-last-child(2) {
225 border-bottom: 1px solid transparent
;
228 .settings-list
[disabled
] > [lead
][selected
],
229 .settings-list[disabled]:focus > [lead][selected] {
241 list
> .heading:hover
{
242 background-color: transparent
;
243 border-color: transparent
;
246 list
.deletable-item
{
247 -webkit-box-align: center
;
251 list
.deletable-item
> :first-child
{
252 -webkit-box-align: center
;
254 -webkit-padding-end: 5px;
255 display: -webkit-box
;
258 list
.row-delete-button
{
259 -webkit-transition: 150ms opacity
;
260 background-color: transparent
;
261 /* TODO(stuartmorgan): Replace with real images once they are available. */
262 background-image: -webkit-image-set
(
263 url
(../../../../ui/resources/default_100_percent/close_2.png) 1x,
264 url
(../../../../ui/resources/default_200_percent/close_2.png) 2x);
272 list
> *:not
(:hover
):not
([selected
]):not
([lead
]) .row-delete-button
,
273 list:not
([has-element-focus
]) > *:not
(:hover
):not
([selected
])
275 list
[disabled
] .row-delete-button
,
276 list
.row-delete-button
[disabled
] {
278 pointer-events: none
;
281 /* HostedApp entries use the disabled closing button to display the App's
282 * favicon, as an indicator that instead of deleting the permission here
283 * the user has to remove the hosted app.*/
284 list div
[role
='listitem'][managedby
='HostedApp'] .row-delete-button
{
288 list
.row-delete-button:hover
{
289 background-image: -webkit-image-set
(
290 url
(../../../../ui/resources/default_100_percent/close_2_hover.png) 1x,
291 url
(../../../../ui/resources/default_200_percent/close_2_hover.png) 2x);
294 list
.row-delete-button:active
{
295 background-image: -webkit-image-set
(
296 url
(../../../../ui/resources/default_100_percent/close_2_pressed.png)
298 url
(../../../../ui/resources/default_200_percent/close_2_pressed.png)
304 text-overflow: ellipsis
;
308 list
[type
='text'][inlineeditable
] input
{
309 box-sizing: border-box
;
314 list
> :not
([editing
]) [displaymode
='edit'] {
318 list
> [editing
] [displaymode
='static'] {
319 /* Don't use display:none or visibility:hidden because we need to keep an
321 * We shrink only height. We don't shrink width to avoid to change the size
322 * of containing boxes.
324 border-bottom: 0 !important
;
325 border-top: 0 !important
;
326 height: 0 !important
;
327 margin-bottom: 0 !important
;
328 margin-top: 0 !important
;
330 pointer-events: none
;
333 list
> [editing
] input:invalid
{
334 /* TODO(stuartmorgan): Replace with validity badge */
335 background-color: pink
;
338 .list-inline-button {
339 -webkit-appearance: none
;
340 -webkit-transition: opacity
150ms;
341 background: rgb
(138, 170, 237);
349 .list-inline-button:hover {
354 -webkit-padding-end: 5px;
358 -webkit-padding-start: 20px;
359 background-position: left
;
360 background-repeat: no-repeat
;
361 background-size: 16px;
364 input
[type
='url'].favicon-cell
{
365 -webkit-padding-start: 22px;
366 background-position-x: 4px;
369 html
[dir
=rtl
] input
.favicon-cell
,
370 input
[dir
=rtl
].favicon-cell
{
371 background-position-x: -webkit-calc
(100% - 4px);
375 -webkit-margin-start: 7px;
376 -webkit-padding-start: 26px;
379 text-overflow: ellipsis
;
383 html
[dir
=rtl
] list
.favicon-cell
{
384 background-position: right
;
387 html
[enable-background-mode
=false
] #background
-mode
-section
{
394 .settings-list[has-element-focus] {
395 <if expr
="not is_macosx">
396 outline: 1px solid rgba
(0, 128, 256, 0.5);
397 outline-offset: -2px;
399 <if expr
="is_macosx">
400 /* This matches the native list outline on Mac */
401 outline-color: rgb
(117, 154, 217);
402 outline-offset: -1px;
409 -webkit-margin-start: 23px;
412 list
.autocomplete-suggestions
{
413 background-color: white
;
414 border: 1px solid
#aaa;
422 list
.autocomplete-suggestions
> div
{
426 list
.autocomplete-suggestions:not
([has-element-focus
]) > [selected
],
427 list
.autocomplete-suggestions:not
([has-element-focus
]) > [lead
][selected
] {
428 background-color: rgb
(187, 206, 233);
431 html:not
(.focus-outline-visible
)
432 :enabled:focus:-webkit-any
(input
[type
='checkbox'], input
[type
='radio']) {
433 /* Cancel border-color for :focus specified in widgets.css. */
434 border-color: rgba
(0, 0, 0, 0.25);
437 html:not
([hasFlashPlugin
]) .flash-plugin-area
,
438 /* If the Flash plug-in supports the NPP_ClearSiteData API, we don't need to
439 * show the link to the Flash storage settings manager:
441 html
[flashPluginSupportsClearSiteData
] .flash-plugin-area
,
442 html:not
([flashPluginSupportsClearSiteData
]) .clear-plugin-lso-data-enabled
,
443 html
[flashPluginSupportsClearSiteData
] .clear-plugin-lso-data-disabled
,
444 html:not
([enablePepperFlashSettings
]) .pepper-flash-settings
{
448 .standalone-action-link {
452 :-webkit-any
(.checkbox
, .radio
) label
+ a
{
453 display: inline-block
;
454 /* Matches padding of -webkit-any(.checkbox, .radio) */
456 vertical-align: bottom
;