OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2016 The Chromium Authors. All rights reserved. | |
3 * Use of this source code is governed by a BSD-style license that can be | |
4 * found in the LICENSE file. | |
5 */ | |
6 | |
7 :host { | |
pfeldman
2016/09/13 17:32:51
We should not have patches this big. Styling tree
dgozman
2016/09/13 20:06:50
Lines after 48 style the contents, not tree outlin
| |
8 padding: 0; | |
9 } | |
10 | |
11 ol.tree-outline { | |
12 overflow: auto; | |
13 flex: auto; | |
14 padding: 0; | |
15 margin: 0; | |
16 } | |
17 | |
18 .tree-outline li { | |
19 height: 36px; | |
20 padding-right: 5px; | |
21 margin-top: 1px; | |
22 line-height: 34px; | |
23 border-top: 1px solid transparent; | |
24 } | |
25 | |
26 .tree-outline li:not(.parent)::before { | |
27 display: none; | |
28 } | |
29 | |
30 :host-context(.some-expandable) .tree-outline li:not(.parent) { | |
31 margin-left: 10px; | |
32 } | |
33 | |
34 .tree-outline li.profiles-tree-section { | |
35 height: 18px; | |
36 padding: 0 10px; | |
37 white-space: nowrap; | |
38 margin-top: 1px; | |
39 color: rgb(92, 110, 129); | |
40 text-shadow: rgba(255, 255, 255, 0.75) 0 1px 0; | |
41 line-height: 18px; | |
42 } | |
43 | |
44 .tree-outline li.profiles-tree-section::before { | |
45 display: none; | |
46 } | |
47 | |
48 .title-container > .save-link { | |
49 text-decoration: underline; | |
50 margin-left: auto; | |
51 display: none; | |
52 } | |
53 | |
54 li.selected .title-container > .save-link { | |
55 display: block; | |
56 } | |
57 | |
58 .tree-outline > .icon { | |
59 margin-left: 16px; | |
60 } | |
61 | |
62 li .icon { | |
63 width: 32px; | |
64 height: 32px; | |
65 margin-top: 1px; | |
66 margin-right: 3px; | |
67 flex: none; | |
68 } | |
69 | |
70 li.wait .icon { | |
71 content: none; | |
72 } | |
73 | |
74 li.wait .icon::before { | |
75 display: block; | |
76 width: 24px; | |
77 height: 24px; | |
78 margin: 4px; | |
79 border: 3px solid grey; | |
80 border-radius: 12px; | |
81 clip: rect(0, 15px, 15px, 0); | |
82 content: ""; | |
83 position: absolute; | |
84 -webkit-animation: spinner-animation 1s linear infinite; | |
85 box-sizing: border-box; | |
86 } | |
87 | |
88 li.wait.small .icon::before { | |
89 width: 14px; | |
90 height: 14px; | |
91 margin: 1px; | |
92 clip: rect(0, 9px, 9px, 0); | |
93 border-width: 2px; | |
94 } | |
95 | |
96 li.wait.selected .icon::before { | |
97 border-color: white; | |
98 } | |
99 | |
100 @-webkit-keyframes spinner-animation { | |
101 from { transform: rotate(0); } | |
102 to { transform: rotate(360deg); } | |
103 } | |
104 | |
105 | |
106 li.small { | |
107 height: 20px; | |
108 } | |
109 | |
110 li.small .icon { | |
111 width: 16px; | |
112 height: 16px; | |
113 } | |
114 | |
115 li .titles { | |
116 display: flex; | |
117 flex-direction: column; | |
118 top: 5px; | |
119 line-height: 12px; | |
120 padding-bottom: 1px; | |
121 text-overflow: ellipsis; | |
122 overflow: hidden; | |
123 white-space: nowrap; | |
124 flex: auto; | |
125 } | |
126 | |
127 li .titles > .title-container { | |
128 display: flex; | |
129 } | |
130 | |
131 li.small .titles { | |
132 top: 2px; | |
133 line-height: normal; | |
134 } | |
135 | |
136 li:not(.small) .title::after { | |
137 content: "\A"; | |
138 white-space: pre; | |
139 } | |
140 | |
141 li .subtitle { | |
142 font-size: 80%; | |
143 } | |
144 | |
145 li.small .subtitle { | |
146 display: none; | |
147 } | |
148 | |
149 /* Heap profiles */ | |
150 | |
151 .heap-snapshot-sidebar-tree-item .icon { | |
152 content: url(Images/profileIcon.png); | |
153 } | |
154 | |
155 .heap-snapshot-sidebar-tree-item.small .icon { | |
156 content: url(Images/profileSmallIcon.png); | |
157 } | |
158 | |
159 /* Launcher */ | |
160 | |
161 .profile-launcher-view-tree-item { | |
162 margin-left: 0 !important; | |
163 } | |
164 | |
165 .profile-launcher-view-tree-item > .icon { | |
166 width: 8px !important; | |
167 visibility: hidden; | |
168 } | |
169 | |
170 /* CPU profiles */ | |
171 | |
172 .profile-sidebar-tree-item .icon { | |
173 content: url(Images/profileIcon.png); | |
174 } | |
175 | |
176 .profile-sidebar-tree-item.small .icon { | |
177 content: url(Images/profileSmallIcon.png); | |
178 } | |
179 | |
180 .profile-group-sidebar-tree-item .icon { | |
181 content: url(Images/profileGroupIcon.png); | |
182 } | |
OLD | NEW |