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 } | |
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 */ |
Dan Beam
2016/09/02 23:17:24
also necessary?
Peter Kasting
2016/09/02 23:22:22
Don't know. I haven't really started hacking on t
| |
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; |
155 color: black; | 157 color: black; |
156 outline: 1px solid black; | 158 outline: 1px solid black; |
157 } | 159 } |
158 | 160 |
159 .tree-item[editing] input { | 161 .tree-item[editing] input { |
160 /* Do not inherit the line-height */ | 162 /* Do not inherit the line-height */ |
161 font-family: inherit; | 163 font-family: inherit; |
162 font-size: inherit; | 164 font-size: inherit; |
163 font-weight: inherit; | 165 font-weight: inherit; |
164 margin: -2px -8px -2px -3px; | 166 margin: -2px -8px -2px -3px; |
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 |