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 <include src
="../search_header.css">
18 flex-direction: column
;
24 overflow-y: visible
; /* let the container do the scrolling */
28 -webkit-padding-end: 20px;
29 -webkit-padding-start: 3px;
30 color: hsl
(0, 0%, 70%);
37 text-decoration: none
;
42 -webkit-padding-start: 20px;
43 background: 0 50% no-repeat
;
44 box-sizing: border-box
;
46 text-overflow: ellipsis
;
47 white-space: pre
; /* Don't collapse whitespace */
51 -webkit-transition: all
150ms;
53 display: inline-block
; /* We need to use inline-block here due to RTL. */
57 direction: ltr
; /* URLs always read LTR */
63 list
> [selected
] > .url
{
67 /* Handle proper padding for URL field in an RTL context, where field order is
68 * |div.url||div.label| - so we need padding at the right of URL, not at the
69 * left. And since url is always LTR, that is padding at the end, not the start.
72 -webkit-padding-end: 20px;
73 -webkit-padding-start: 0;
76 html
[dir
=rtl
] list
.label
{
77 background-position: 100% 50%;
80 list
> .folder
> .label
{
81 background-image: -webkit-image-set
(
82 url
(../../../../../ui/resources/default_100_percent/common/folder_closed.png) 1x,
83 url
(../../../../../ui/resources/default_200_percent/common/folder_closed.png) 2x);
86 /* We need to ensure that even empty labels take up space */
87 list
> * > .label:empty::after
,
88 list
> * > .url:empty::after
{
93 list
> .folder
> .url:empty::after
{
98 -webkit-transition: opacity
150ms;
100 url
(../../../../../ui/webui/resources/images/drop_down_arrow_black.svg)
101 no-repeat center center
;
102 border: 1px solid hsl
(214, 91%, 85%);
114 list
> [selected
]:hover
> button
,
115 list
> * > button
[menu-shown
] {
116 border-color: hsl
(214, 91%, 65%);
119 list
> :hover
> button
{
123 list
> * > button:hover
,
124 list
> * > button
[menu-shown
] {
128 html
[dir
=rtl
] list
> * > button
{
135 list
[editing
] .label input
,
136 list
[editing
] .url input
{
137 -webkit-margin-end: 4px;
138 -webkit-margin-start: -4px;
139 -webkit-padding-end: 3px;
140 -webkit-padding-start: 3px;
141 box-sizing: content-box
;
142 font-family: inherit
;
144 font-weight: inherit
;
145 /* Do not inherit the line-height. */
150 text-decoration: none
;
151 vertical-align: baseline
;
154 .tree-item [editing] input {
161 <if expr
="is_macosx">
172 list
[editing
] .label
,
178 list
[editing
] .url
{
179 -webkit-padding-start: 5px;
182 list
[editing
] input
{
188 html
[dir
=rtl
] list
> .folder
> .label
{
189 background-image: -webkit-image-set
(
190 url
(../../../../../ui/resources/default_100_percent/common/folder_closed_rtl.png) 1x,
191 url
(../../../../../ui/resources/default_200_percent/common/folder_closed_rtl.png) 2x);
194 <if expr
="is_macosx">
195 list
> .folder
> .label
,
197 .tree-row
[may-have-children
] > .tree-label
,
198 .tree-item[expanded] > .tree-row > .tree-label {
199 background-image: -webkit-image-set
(
200 url
(../../../../app/theme/default_100_percent/mac/bookmark_bar_folder.png) 1x,
201 url
(../../../../app/theme/default_200_percent/mac/bookmark_bar_folder.png) 2x);
206 border-top: 1px solid rgb
(156, 194, 239);
214 flex-direction: column
;
217 .pane
> :first-child
,
218 .splitter > :first-child {
219 background-color: rgb
(235, 239, 249);
225 .splitter > :first-child {
233 visibility: hidden
; /* This button is only used for height matching. */
237 /* min-width and max-width are used by the split pane. */
247 #list-pane > :first-child
{
248 -webkit-padding-start: 0; /* Accounts for extra splitter resize width. */
262 -webkit-padding-end: 5px;
263 box-sizing: border-box
;
264 display: inline-block
;
271 /* Only pad the tree as the splitter adds a lot of whitespace for the list. */
272 -webkit-padding-start: 10px;
275 .tree-item > .tree-row {
279 .tree-row .expand-icon {
284 border-left: 5px solid rgb
(235, 239, 249);
286 <if expr
="is_macosx">
294 background-color: hsla
(214, 91%, 85%, .5);
295 border: 1px solid hsl
(214, 91%, 85%);
297 box-sizing: border-box
;
302 background-clip: padding-box
;
303 background-color: black
;
304 border: 3px solid black
;
305 border-bottom-color: transparent
;
307 border-top-color: transparent
;
308 box-sizing: border-box
;
318 .drag-above::before {
319 top: calc
((8px/2 + 1px) * -1)
323 bottom: calc
((8px/2 + 1px) * -1)
326 list
.drag-above::before
{
343 -webkit-appearance: none
;
344 -webkit-padding-end: 11px;
345 -webkit-padding-start: 0;
346 background: transparent
347 url
(../../../../../ui/webui/resources/images/drop_down_arrow_black.svg)
348 no-repeat right center
;
357 -webkit-margin-start: 16px;
361 -webkit-margin-start: 4px;
364 html
[dir
=rtl
] #folders-button
,
365 html
[dir
=rtl
] #organize-button
{
366 background-position: left center
;
369 @media (pointer:coarse
) {
372 .tree-item > .tree-row {
376 list
[editing
] input
,
377 .tree-item [editing] input {
381 .tree-row .expand-icon {