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 |
11 .tree-item > .tree-row { | 11 .tree-item > .tree-row { |
12 background-color: rgba(255, 255, 255, 0); | 12 background-color: rgba(255, 255, 255, 0); |
13 border: 1px solid rgba(255, 255, 255, 0); /* transparent white */ | 13 border: 1px solid rgba(255, 255, 255, 0); /* transparent white */ |
14 border-radius: 2px; | 14 border-radius: 2px; |
15 color: black; | 15 color: black; |
16 cursor: default; | 16 cursor: default; |
17 line-height: 28px; | 17 line-height: 28px; |
18 padding: 0 3px; | 18 padding: 0 3px; |
19 position: relative; | 19 position: relative; |
20 user-select: none; | 20 user-select: none; |
21 white-space: nowrap; | 21 white-space: nowrap; |
22 } | 22 } |
23 | 23 |
24 .expand-icon { | 24 .expand-icon { |
25 transform: rotate(-90deg); | |
26 -webkit-transition: all 150ms; | |
27 background: url(../images/tree_triangle.svg) no-repeat center center; | 25 background: url(../images/tree_triangle.svg) no-repeat center center; |
28 background-size: 8px 5px; | 26 background-size: 8px 5px; |
29 display: inline-block; | 27 display: inline-block; |
30 height: 16px; | 28 height: 16px; |
31 opacity: .6; | 29 opacity: .6; |
32 position: relative; | 30 position: relative; |
33 top: 6px; | 31 top: 6px; |
| 32 transform: rotate(-90deg); |
| 33 transition: all 150ms; |
34 vertical-align: top; | 34 vertical-align: top; |
35 width: 16px; | 35 width: 16px; |
36 } | 36 } |
37 | 37 |
38 html[dir=rtl] .expand-icon { | 38 html[dir=rtl] .expand-icon { |
39 transform: rotate(90deg); | 39 transform: rotate(90deg); |
40 } | 40 } |
41 | 41 |
42 .tree-item[expanded] > .tree-row > .expand-icon { | 42 .tree-item[expanded] > .tree-row > .expand-icon { |
43 transform: rotate(0); | |
44 background-image: url(../images/tree_triangle.svg); | 43 background-image: url(../images/tree_triangle.svg); |
45 opacity: .5; | 44 opacity: .5; |
| 45 transform: rotate(0); |
46 } | 46 } |
47 | 47 |
48 .tree-row .expand-icon { | 48 .tree-row .expand-icon { |
49 visibility: hidden; | 49 visibility: hidden; |
50 } | 50 } |
51 | 51 |
52 .tree-row[may-have-children] .expand-icon { | 52 .tree-row[may-have-children] .expand-icon { |
53 visibility: visible; | 53 visibility: visible; |
54 } | 54 } |
55 | 55 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 <if expr="not is_macosx and not is_ios"> | 167 <if expr="not is_macosx and not is_ios"> |
168 outline: none; | 168 outline: none; |
169 </if> | 169 </if> |
170 padding: 1px 7px 1px 1px; | 170 padding: 1px 7px 1px 1px; |
171 } | 171 } |
172 | 172 |
173 html[dir=rtl] .tree-item[editing] input { | 173 html[dir=rtl] .tree-item[editing] input { |
174 margin: -2px -3px -2px -8px; | 174 margin: -2px -3px -2px -8px; |
175 padding: 1px 1px 1px 7px; | 175 padding: 1px 1px 1px 7px; |
176 } | 176 } |
OLD | NEW |