| 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 30 matching lines...) Expand all Loading... |
| 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; | 47 white-space: pre; |
| 48 } | 48 } |
| 49 | 49 |
| 50 list .label { | 50 list .label { |
| 51 color: black; | 51 -webkit-padding-start: 0; |
| 52 display: inline-block; /* Makes the image start-align in RTL. */ | 52 align-items: center; |
| 53 display: flex; |
| 53 } | 54 } |
| 54 | 55 |
| 55 html[dir=rtl] list .label { | 56 list .label-img-wrapper { |
| 56 background-position: 100% 50%; | 57 display: inline-block; /* Makes the image start-align in RTL. */ |
| 58 width: 20px; |
| 57 } | 59 } |
| 58 | 60 |
| 59 <if expr="is_macosx"> | 61 <if expr="not is_macosx and not is_ios"> |
| 60 list > .folder > .label, | 62 html[dir=rtl] list > .folder .label-img-wrapper > * { |
| 61 .tree-label, | 63 transform: scaleX(-1); |
| 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 } | 64 } |
| 68 </if> | 65 </if> |
| 69 | 66 |
| 70 <if expr="not is_macosx"> | 67 list .label-text { |
| 71 list > .folder > .label { | 68 color: black; |
| 72 background-image: -webkit-image-set( | 69 flex: 1; |
| 73 url(../../../../../ui/resources/default_100_percent/common/folder_closed.p
ng) 1x, | 70 overflow: hidden; |
| 74 url(../../../../../ui/resources/default_200_percent/common/folder_closed.p
ng) 2x); | 71 text-overflow: ellipsis; |
| 75 } | 72 } |
| 76 | 73 |
| 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 | 74 /* We need to ensure that even empty labels take up space, or the row could be |
| 85 * the wrong height. */ | 75 * the wrong height. */ |
| 86 list .label:empty::after { | 76 list .label-text:empty::after { |
| 87 content: ' '; | 77 content: ' '; |
| 88 white-space: pre; | 78 white-space: pre; |
| 89 } | 79 } |
| 90 | 80 |
| 91 list .url { | 81 list .url { |
| 92 direction: ltr; | 82 direction: ltr; |
| 93 display: none; | 83 display: none; |
| 94 flex: 1; | 84 flex: 1; |
| 95 } | 85 } |
| 96 | 86 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 } | 261 } |
| 272 | 262 |
| 273 .tree-item > .tree-row { | 263 .tree-item > .tree-row { |
| 274 line-height: 20px; | 264 line-height: 20px; |
| 275 } | 265 } |
| 276 | 266 |
| 277 .tree-row .expand-icon { | 267 .tree-row .expand-icon { |
| 278 top: 2px; | 268 top: 2px; |
| 279 } | 269 } |
| 280 | 270 |
| 271 /* TODO(pkasting): Convert the tree widget to use the same resources as the |
| 272 * list, and remove this block. */ |
| 273 <if expr="is_macosx"> |
| 274 .tree-label, |
| 275 .tree-row[may-have-children] > .tree-label, |
| 276 .tree-item[expanded] > .tree-row > .tree-label { |
| 277 background-image: -webkit-image-set( |
| 278 url(../../../../app/theme/default_100_percent/mac/bookmark_bar_folder.png)
1x, |
| 279 url(../../../../app/theme/default_200_percent/mac/bookmark_bar_folder.png)
2x); |
| 280 } |
| 281 </if> |
| 282 |
| 281 .splitter { | 283 .splitter { |
| 282 border-left: 5px solid rgb(235, 239, 249); | 284 border-left: 5px solid rgb(235, 239, 249); |
| 283 cursor: e-resize; | 285 cursor: e-resize; |
| 284 <if expr="is_macosx"> | 286 <if expr="is_macosx"> |
| 285 cursor: col-resize; | 287 cursor: col-resize; |
| 286 </if> | 288 </if> |
| 287 overflow-x: hidden; | 289 overflow-x: hidden; |
| 288 } | 290 } |
| 289 | 291 |
| 290 .tree-row.drag-on, | 292 .tree-row.drag-on, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 | 382 |
| 381 list [editing] input, | 383 list [editing] input, |
| 382 .tree-item [editing] input { | 384 .tree-item [editing] input { |
| 383 padding: 3px 0; | 385 padding: 3px 0; |
| 384 } | 386 } |
| 385 | 387 |
| 386 .tree-row .expand-icon { | 388 .tree-row .expand-icon { |
| 387 top: 6px; | 389 top: 6px; |
| 388 } | 390 } |
| 389 } | 391 } |
| OLD | NEW |