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 */
58 /* TODO(arv): Remove min-width once bug is fixed:
59 * https://bugs.webkit.org/show_bug.cgi?id=111790 */
64 list > [selected] > .url {
68 /* Handle proper padding for URL field in an RTL context, where field order is
69 * |div.url||div.label| - so we need padding at the right of URL, not at the
70 * left. And since url is always LTR, that is padding at the end, not the start.
73 -webkit-padding-end: 20px;
74 -webkit-padding-start: 0;
77 html[dir=rtl] list .label {
78 background-position: 100% 50%;
81 list > .folder > .label {
82 background-image: -webkit-image-set(
83 url('../../../../../ui/resources/default_100_percent/common/folder_closed.png') 1x,
84 url('../../../../../ui/resources/default_200_percent/common/folder_closed.png') 2x);
87 /* We need to ensure that even empty labels take up space */
88 list > * > .label:empty::after,
89 list > * > .url:empty::after {
94 list > .folder > .url:empty::after {
99 -webkit-transition: opacity 150ms;
100 background: #fff -webkit-canvas(drop-down-arrow) no-repeat center center;
101 border: 1px solid hsl(214, 91%, 85%);
113 list > [selected]:hover > button,
114 list > * > button[menu-shown] {
115 border-color: hsl(214, 91%, 65%);
118 list > :hover > button {
122 list > * > button:hover,
123 list > * > button[menu-shown] {
127 html[dir=rtl] list > * > button {
134 list [editing] .label input,
135 list [editing] .url input {
136 -webkit-margin-end: 4px;
137 -webkit-margin-start: -4px;
138 -webkit-padding-end: 3px;
139 -webkit-padding-start: 3px;
140 box-sizing: content-box;
141 font-family: inherit;
143 font-weight: inherit;
144 /* Do not inherit the line-height. */
149 text-decoration: none;
150 vertical-align: baseline;
153 .tree-item [editing] input {
160 <if expr="is_macosx">
171 list [editing] .label,
177 list [editing] .url {
178 -webkit-padding-start: 5px;
181 list [editing] input {
187 html[dir=rtl] list > .folder > .label {
188 background-image: -webkit-image-set(
189 url('../../../../../ui/resources/default_100_percent/common/folder_closed_rtl.png') 1x,
190 url('../../../../../ui/resources/default_200_percent/common/folder_closed_rtl.png') 2x);
193 <if expr="is_macosx">
194 list > .folder > .label,
196 .tree-row[may-have-children] > .tree-label,
197 .tree-item[expanded] > .tree-row > .tree-label {
198 background-image: -webkit-image-set(
199 url('../../../../app/theme/default_100_percent/mac/bookmark_bar_folder.png') 1x,
200 url('../../../../app/theme/default_200_percent/mac/bookmark_bar_folder.png') 2x);
206 display: -webkit-flex;
207 /* TODO(arv): Remove min-height once bug is fixed:
208 * https://bugs.webkit.org/show_bug.cgi?id=111790 */
213 -webkit-padding-end: 5px;
214 -webkit-padding-start: 10px;
215 box-sizing: border-box;
216 /* min-width and max-width are used by the split pane. */
226 display: inline-block;
228 overflow: visible; /* let the container do the scrolling */
231 .tree-item > .tree-row {
235 .tree-row .expand-icon {
241 -webkit-padding-end: 5px;
242 box-sizing: border-box;
243 /* TODO(arv): Remove min-width once bug is fixed:
244 * https://bugs.webkit.org/show_bug.cgi?id=111790 */
251 -webkit-border-end: 15px solid white;
252 -webkit-border-start: 0;
253 background-color: rgb(235, 239, 249);
256 <if expr="is_macosx">
262 -webkit-appearance: none;
263 background: url('../images/bookmarks_section_32.png') no-repeat 50% 50%;
272 html:not(.focus-outline-visible) .logo:focus {
278 margin: 14px 2px 0 2px;
287 html[dir=rtl] .header > div,
288 html[dir=rtl] .header form {
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 {
336 background-color: rgb(235, 239, 249);
337 border-top: 1px solid rgb(156, 194, 239);
344 display: inline-block;
350 -webkit-appearance: none;
351 -webkit-margin-start: 10px;
352 -webkit-padding-end: 11px;
353 -webkit-padding-start: 0;
354 background: transparent -webkit-canvas(drop-down-arrow)
355 no-repeat right center;
362 html[dir=rtl] .summary button {
363 background-position: left center;
366 @media (pointer:coarse) {
369 .tree-item > .tree-row {
373 list [editing] input,
374 .tree-item [editing] input {
378 .tree-row .expand-icon {