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. */
15 -webkit-flex-direction: column
;
16 display: -webkit-flex
;
22 overflow-y: visible
; /* let the container do the scrolling */
26 -webkit-padding-end: 20px;
27 -webkit-padding-start: 3px;
28 color: hsl
(0, 0%, 70%);
29 display: -webkit-flex
;
35 text-decoration: none
;
40 -webkit-padding-start: 20px;
41 background: 0 50% no-repeat
;
42 box-sizing: border-box
;
44 text-overflow: ellipsis
;
45 white-space: pre
; /* Don't collapse whitespace */
49 -webkit-transition: all
150ms;
51 display: inline-block
; /* We need to use inline-block here due to RTL. */
56 direction: ltr
; /* URLs always read LTR */
61 list
> [selected
] > .url
{
65 /* Handle proper padding for URL field in an RTL context, where field order is
66 * |div.url||div.label| - so we need padding at the right of URL, not at the
67 * left. And since url is always LTR, that is padding at the end, not the start.
70 -webkit-padding-end: 20px;
71 -webkit-padding-start: 0;
74 html
[dir
=rtl
] list
.label
{
75 background-position: 100% 50%;
78 list
> .folder
> .label
{
79 background-image: -webkit-image-set
(
80 url
('../../../../../ui/resources/default_100_percent/common/folder_closed.png') 1x,
81 url
('../../../../../ui/resources/default_200_percent/common/folder_closed.png') 2x);
84 /* We need to ensure that even empty labels take up space */
85 list
> * > .label:empty::after
,
86 list
> * > .url:empty::after
{
91 list
> .folder
> .url:empty::after
{
96 -webkit-transition: opacity
150ms;
97 background: #fff -webkit-canvas
(drop-down-arrow
) no-repeat center center
;
98 border: 1px solid hsl
(214, 91%, 85%);
110 list
> [selected
]:hover
> button
,
111 list
> * > button
[menu-shown
] {
112 border-color: hsl
(214, 91%, 65%);
115 list
> :hover
> button
{
119 list
> * > button:hover
,
120 list
> * > button
[menu-shown
] {
124 html
[dir
=rtl
] list
> * > button
{
131 list
[editing
] .label input
,
132 list
[editing
] .url input
{
133 -webkit-margin-end: 4px;
134 -webkit-margin-start: -4px;
135 -webkit-padding-end: 3px;
136 -webkit-padding-start: 3px;
137 box-sizing: content-box
;
138 font-family: inherit
;
140 font-weight: inherit
;
141 /* Do not inherit the line-height. */
146 text-decoration: none
;
147 vertical-align: baseline
;
150 .tree-item [editing] input {
157 <if expr
="is_macosx">
168 list
[editing
] .label
,
174 list
[editing
] .url
{
175 -webkit-padding-start: 5px;
178 list
[editing
] input
{
184 html
[dir
=rtl
] list
> .folder
> .label
{
185 background-image: -webkit-image-set
(
186 url
('../../../../../ui/resources/default_100_percent/common/folder_closed_rtl.png') 1x,
187 url
('../../../../../ui/resources/default_200_percent/common/folder_closed_rtl.png') 2x);
190 <if expr
="is_macosx">
191 list
> .folder
> .label
,
193 .tree-row
[may-have-children
] > .tree-label
,
194 .tree-item[expanded] > .tree-row > .tree-label {
195 background-image: -webkit-image-set
(
196 url
('../../../../app/theme/default_100_percent/mac/bookmark_bar_folder.png') 1x,
197 url
('../../../../app/theme/default_200_percent/mac/bookmark_bar_folder.png') 2x);
203 display: -webkit-flex
;
207 -webkit-padding-end: 5px;
208 -webkit-padding-start: 10px;
209 box-sizing: border-box
;
210 /* min-width and max-width are used by the split pane. */
220 display: inline-block
;
222 overflow: visible
; /* let the container do the scrolling */
225 .tree-item > .tree-row {
229 .tree-row .expand-icon {
235 -webkit-padding-end: 5px;
236 box-sizing: border-box
;
242 -webkit-border-end: 15px solid white
;
243 -webkit-border-start: 0;
244 background-color: rgb
(235, 239, 249);
247 <if expr
="is_macosx">
253 -webkit-appearance: none
;
254 background: url
('../images/bookmarks_section_32.png') no-repeat
50% 50%;
263 html:not
(.focus-outline-visible
) .logo:focus
{
269 margin: 14px 2px 0 2px;
278 html
[dir
=rtl
] .header
> div
,
279 html
[dir
=rtl
] .header form
{
285 background-color: hsla
(214, 91%, 85%, .5);
286 border: 1px solid hsl
(214, 91%, 85%);
288 box-sizing: border-box
;
293 background-clip: padding-box
;
294 background-color: black
;
295 border: 3px solid black
;
296 border-bottom-color: transparent
;
298 border-top-color: transparent
;
299 box-sizing: border-box
;
309 .drag-above::before {
310 top: calc
((8px/2 + 1px) * -1)
314 bottom: calc
((8px/2 + 1px) * -1)
317 list
.drag-above::before
{
327 background-color: rgb
(235, 239, 249);
328 border-top: 1px solid rgb
(156, 194, 239);
335 display: inline-block
;
341 -webkit-appearance: none
;
342 -webkit-margin-start: 10px;
343 -webkit-padding-end: 11px;
344 -webkit-padding-start: 0;
345 background: transparent
-webkit-canvas
(drop-down-arrow
)
346 no-repeat right center
;
353 html
[dir
=rtl
] .summary button
{
354 background-position: left center
;
357 @media (pointer:coarse
) {
360 .tree-item > .tree-row {
364 list
[editing
] input
,
365 .tree-item [editing] input {
369 .tree-row .expand-icon {