OLD | NEW |
---|---|
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
4 | 4 |
5 <include src="../search_header.css"> | 5 <include src="../search_header.css"> |
6 | 6 |
7 html, | 7 html, |
8 body { | 8 body { |
9 cursor: default; | 9 cursor: default; |
10 height: 100%; | 10 height: 100%; |
(...skipping 26 matching lines...) Expand all Loading... | |
37 text-decoration: none; | 37 text-decoration: none; |
38 white-space: nowrap; | 38 white-space: nowrap; |
39 } | 39 } |
40 | 40 |
41 list > * > * { | 41 list > * > * { |
42 -webkit-padding-start: 20px; | 42 -webkit-padding-start: 20px; |
43 background: 0 50% no-repeat; | 43 background: 0 50% no-repeat; |
44 box-sizing: border-box; | 44 box-sizing: border-box; |
45 overflow: hidden; | 45 overflow: hidden; |
46 text-overflow: ellipsis; | 46 text-overflow: ellipsis; |
47 white-space: pre; /* Don't collapse whitespace */ | 47 white-space: pre; |
48 } | 48 } |
49 | 49 |
50 list > * > .label { | 50 list .label { |
Dan Beam
2016/08/30 01:27:28
this denotes a rigid ancestry depth (i.e. only the
Peter Kasting
2016/08/30 01:48:46
Since (AFAIK) we only add the label class to thing
| |
51 -webkit-transition: all 150ms; | |
52 color: black; | 51 color: black; |
53 display: inline-block; /* We need to use inline-block here due to RTL. */ | 52 display: inline-block; /* Makes the image start-align in RTL. */ |
Dan Beam
2016/08/30 01:27:28
/* Makes
^^
too many spaces
Peter Kasting
2016/08/30 22:51:29
Done.
| |
54 } | 53 } |
55 | 54 |
56 list > * > .url { | 55 html[dir=rtl] list .label { |
57 direction: ltr; /* URLs always read LTR */ | 56 background-position: 100% 50%; |
57 } | |
58 | |
59 <if expr="is_macosx"> | |
60 list > .folder > .label, | |
61 .tree-label, | |
62 .tree-row[may-have-children] > .tree-label, | |
63 .tree-item[expanded] > .tree-row > .tree-label { | |
64 background-image: -webkit-image-set( | |
65 url(../../../../app/theme/default_100_percent/mac/bookmark_bar_folder.png) 1x, | |
66 url(../../../../app/theme/default_200_percent/mac/bookmark_bar_folder.png) 2x); | |
67 } | |
68 </if> | |
69 | |
70 <if expr="not is_macosx"> | |
71 list > .folder > .label { | |
72 background-image: -webkit-image-set( | |
73 url(../../../../../ui/resources/default_100_percent/common/folder_closed.p ng) 1x, | |
74 url(../../../../../ui/resources/default_200_percent/common/folder_closed.p ng) 2x); | |
75 } | |
76 | |
77 html[dir=rtl] list > .folder > .label { | |
78 background-image: -webkit-image-set( | |
79 url(../../../../../ui/resources/default_100_percent/common/folder_closed_r tl.png) 1x, | |
80 url(../../../../../ui/resources/default_200_percent/common/folder_closed_r tl.png) 2x); | |
81 } | |
82 </if> | |
83 | |
84 /* We need to ensure that even empty labels take up space, or the row could be | |
85 * the wrong height. */ | |
86 list .label:empty::after { | |
87 content: ' '; | |
88 white-space: pre; | |
89 } | |
90 | |
91 list .url { | |
92 direction: ltr; | |
58 display: none; | 93 display: none; |
59 flex: 1; | 94 flex: 1; |
60 } | 95 } |
61 | 96 |
62 list > :hover > .url, | 97 list > :hover > .url, |
63 list > [selected] > .url { | 98 list > [selected] > .url { |
64 display: block; | 99 display: block; |
65 } | 100 } |
66 | 101 |
67 /* Handle proper padding for URL field in an RTL context, where field order is | 102 /* 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 | 103 * |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. | 104 * left. And since url is always LTR, that is padding at the end, not the start. |
70 */ | 105 */ |
71 html[dir=rtl] .url { | 106 html[dir=rtl] list .url { |
72 -webkit-padding-end: 20px; | 107 -webkit-padding-end: 20px; |
73 -webkit-padding-start: 0; | 108 -webkit-padding-start: 0; |
74 } | 109 } |
75 | 110 |
76 html[dir=rtl] list .label { | 111 /* Why did we have these? |
77 background-position: 100% 50%; | 112 list .url:empty::after { |
78 } | |
79 | |
80 list > .folder > .label { | |
81 background-image: -webkit-image-set( | |
82 url(../../../../../ui/resources/default_100_percent/common/folder_closed.p ng) 1x, | |
83 url(../../../../../ui/resources/default_200_percent/common/folder_closed.p ng) 2x); | |
84 } | |
85 | |
86 /* We need to ensure that even empty labels take up space */ | |
87 list > * > .label:empty::after, | |
88 list > * > .url:empty::after { | |
89 content: ' '; | 113 content: ' '; |
90 white-space: pre; | 114 white-space: pre; |
91 } | 115 } |
92 | |
93 list > .folder > .url:empty::after { | 116 list > .folder > .url:empty::after { |
94 content: ''; | 117 content: ''; |
95 } | 118 } |
119 */ | |
96 | 120 |
97 list > * > button { | 121 list > * > button { |
98 -webkit-transition: opacity 150ms; | 122 -webkit-transition: opacity 150ms; |
99 background: #fff no-repeat center center; | 123 background: #fff no-repeat center center; |
100 border: 1px solid hsl(214, 91%, 85%); | 124 border: 1px solid hsl(214, 91%, 85%); |
101 border-radius: 3px; | 125 border-radius: 3px; |
102 bottom: 1px; | 126 bottom: 1px; |
103 display: none; | 127 display: none; |
104 overflow: hidden; | 128 overflow: hidden; |
105 padding: 0; | 129 padding: 0; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
176 list [editing] .url { | 200 list [editing] .url { |
177 -webkit-padding-start: 5px; | 201 -webkit-padding-start: 5px; |
178 } | 202 } |
179 | 203 |
180 list [editing] input { | 204 list [editing] input { |
181 padding: 1px 0; | 205 padding: 1px 0; |
182 } | 206 } |
183 | 207 |
184 /* end editing */ | 208 /* end editing */ |
185 | 209 |
186 html[dir=rtl] list > .folder > .label { | |
187 background-image: -webkit-image-set( | |
188 url(../../../../../ui/resources/default_100_percent/common/folder_closed_r tl.png) 1x, | |
189 url(../../../../../ui/resources/default_200_percent/common/folder_closed_r tl.png) 2x); | |
190 } | |
191 | |
192 <if expr="is_macosx"> | |
193 list > .folder > .label, | |
194 .tree-label, | |
195 .tree-row[may-have-children] > .tree-label, | |
196 .tree-item[expanded] > .tree-row > .tree-label { | |
197 background-image: -webkit-image-set( | |
198 url(../../../../app/theme/default_100_percent/mac/bookmark_bar_folder.png) 1x, | |
199 url(../../../../app/theme/default_200_percent/mac/bookmark_bar_folder.png) 2x); | |
200 } | |
201 </if> | |
202 | |
203 .main { | 210 .main { |
204 border-top: 1px solid rgb(156, 194, 239); | 211 border-top: 1px solid rgb(156, 194, 239); |
205 display: flex; | 212 display: flex; |
206 flex: 1; | 213 flex: 1; |
207 min-height: 0; | 214 min-height: 0; |
208 } | 215 } |
209 | 216 |
210 .pane, | 217 .pane, |
211 .splitter { | 218 .splitter { |
212 display: flex; | 219 display: flex; |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
382 | 389 |
383 list [editing] input, | 390 list [editing] input, |
384 .tree-item [editing] input { | 391 .tree-item [editing] input { |
385 padding: 3px 0; | 392 padding: 3px 0; |
386 } | 393 } |
387 | 394 |
388 .tree-row .expand-icon { | 395 .tree-row .expand-icon { |
389 top: 6px; | 396 top: 6px; |
390 } | 397 } |
391 } | 398 } |
OLD | NEW |