Chromium Code Reviews| 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 tree { | 5 tree { |
| 6 display: block; | 6 display: block; |
| 7 outline: none; | 7 outline: none; |
| 8 overflow: auto; | 8 overflow: auto; |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 99 -webkit-padding-start: 20px; | 99 -webkit-padding-start: 20px; |
| 100 background-position: 0 50%; | 100 background-position: 0 50%; |
| 101 background-repeat: no-repeat; | 101 background-repeat: no-repeat; |
| 102 white-space: pre; | 102 white-space: pre; |
| 103 } | 103 } |
| 104 | 104 |
| 105 html[dir=rtl] .tree-label { | 105 html[dir=rtl] .tree-label { |
| 106 background-position: 100% 50%; | 106 background-position: 100% 50%; |
| 107 } | 107 } |
| 108 | 108 |
| 109 .tree-label, | |
| 110 .tree-row[may-have-children] > .tree-label { | |
| 111 background-image: -webkit-image-set( | |
| 112 url(../../../resources/default_100_percent/common/folder_closed.png) 1x, | |
| 113 url(../../../resources/default_200_percent/common/folder_closed.png) 2x); | |
| 114 } | |
| 115 | |
| 116 .tree-item[expanded] > .tree-row > .tree-label { | |
| 117 background-image: -webkit-image-set( | |
| 118 url(../../../views/resources/default_100_percent/common/folder_open.png) 1 x, | |
| 119 url(../../../views/resources/default_200_percent/common/folder_open.png) 2 x); | |
| 120 } | |
| 121 | |
| 122 <if expr="not is_macosx and not is_ios"> | |
| 109 html[dir=rtl] .tree-label, | 123 html[dir=rtl] .tree-label, |
| 110 html[dir=rtl] .tree-row[may-have-children] > .tree-label { | 124 html[dir=rtl] .tree-row[may-have-children] > .tree-label { |
| 111 background-image: -webkit-image-set( | 125 background-image: -webkit-image-set( |
| 112 url(../../../resources/default_100_percent/common/folder_closed_rtl.png) 1 x, | 126 url(../../../resources/default_100_percent/common/folder_closed_rtl.png) 1 x, |
| 113 url(../../../resources/default_200_percent/common/folder_closed_rtl.png) 2 x); | 127 url(../../../resources/default_200_percent/common/folder_closed_rtl.png) 2 x); |
| 114 } | 128 } |
| 115 | 129 |
| 116 html[dir=rtl] .tree-item[expanded] > .tree-row > .tree-label { | 130 html[dir=rtl] .tree-item[expanded] > .tree-row > .tree-label { |
| 117 background-image: -webkit-image-set( | 131 background-image: -webkit-image-set( |
| 118 url(../../../views/resources/default_100_percent/common/folder_open_rtl.png ) 1x, | 132 url(../../../views/resources/default_100_percent/common/folder_open_rtl.png ) 1x, |
| 119 url(../../../views/resources/default_200_percent/common/folder_open_rtl.png ) 2x); | 133 url(../../../views/resources/default_200_percent/common/folder_open_rtl.png ) 2x); |
| 120 } | 134 } |
| 135 </if> | |
| 121 | 136 |
| 122 tree[icon-visibility=hidden] .tree-label { | 137 tree[icon-visibility=hidden] .tree-label { |
| 123 -webkit-padding-start: 0; | 138 -webkit-padding-start: 0; |
| 124 background-image: none !important; | 139 background-image: none !important; |
| 125 } | 140 } |
| 126 | 141 |
| 127 tree[icon-visibility=parent] .tree-label, | 142 tree[icon-visibility=parent] .tree-label, |
| 128 tree[icon-visibility=parent] .tree-row[has-children=false] > .tree-label { | 143 tree[icon-visibility=parent] .tree-row[has-children=false] > .tree-label { |
| 129 background-image: none; | 144 background-image: none; |
| 130 } | 145 } |
| 131 | 146 |
| 132 .tree-label, | |
| 133 .tree-row[may-have-children] > .tree-label { | |
| 134 background-image: -webkit-image-set( | |
| 135 url(../../../resources/default_100_percent/common/folder_closed.png) 1x, | |
| 136 url(../../../resources/default_200_percent/common/folder_closed.png) 2x); | |
| 137 } | |
| 138 | |
| 139 .tree-item[expanded] > .tree-row > .tree-label { | |
| 140 background-image: -webkit-image-set( | |
| 141 url(../../../views/resources/default_100_percent/common/folder_open.png) 1 x, | |
| 142 url(../../../views/resources/default_200_percent/common/folder_open.png) 2 x); | |
| 143 } | |
|
Dan Beam
2016/08/30 01:27:29
why are you moving these? changing the order of t
Peter Kasting
2016/08/30 01:48:47
I'm trying to put them next to the similar RTL cod
| |
| 144 | |
| 145 /* We need to ensure that even empty labels take up space */ | 147 /* We need to ensure that even empty labels take up space */ |
| 146 .tree-label:empty::after { | 148 .tree-label:empty::after { |
| 147 content: ' '; | 149 content: ' '; |
| 148 white-space: pre; | 150 white-space: pre; |
| 149 } | 151 } |
| 150 | 152 |
| 151 .tree-rename > .tree-row > .tree-label { | 153 .tree-rename > .tree-row > .tree-label { |
| 152 -webkit-user-modify: read-write-plaintext-only; | 154 -webkit-user-modify: read-write-plaintext-only; |
| 153 -webkit-user-select: auto; | 155 -webkit-user-select: auto; |
| 154 background: white; | 156 background: white; |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 165 <if expr="not is_macosx and not is_ios"> | 167 <if expr="not is_macosx and not is_ios"> |
| 166 outline: none; | 168 outline: none; |
| 167 </if> | 169 </if> |
| 168 padding: 1px 7px 1px 1px; | 170 padding: 1px 7px 1px 1px; |
| 169 } | 171 } |
| 170 | 172 |
| 171 html[dir=rtl] .tree-item[editing] input { | 173 html[dir=rtl] .tree-item[editing] input { |
| 172 margin: -2px -3px -2px -8px; | 174 margin: -2px -3px -2px -8px; |
| 173 padding: 1px 1px 1px 7px; | 175 padding: 1px 1px 1px 7px; |
| 174 } | 176 } |
| OLD | NEW |