1/*
2 * Copyright (C) 2008 Apple Inc.  All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met:
8 *
9 *     * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *     * Redistributions in binary form must reproduce the above
12 * copyright notice, this list of conditions and the following disclaimer
13 * in the documentation and/or other materials provided with the
14 * distribution.
15 *     * Neither the name of Google Inc. nor the names of its
16 * contributors may be used to endorse or promote products derived from
17 * this software without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */
31
32.audits-sidebar-tree-item .icon {
33    content: url(Images/resourcesTimeGraphIcon.png);
34}
35
36.audit-result-sidebar-tree-item .icon {
37    content: url(Images/resourceDocumentIcon.png);
38}
39
40.audit-launcher-view {
41    z-index: 1000;
42    position: absolute;
43    top: 0;
44    left: 0;
45    right: 0;
46    bottom: 0;
47    background-color: white;
48    font-size: 13px;
49    overflow-x: hidden;
50    overflow-y: overlay;
51    display: none;
52}
53
54.audit-launcher-view.visible {
55    display: block;
56}
57
58.audit-launcher-view .audit-launcher-view-content {
59    position: absolute;
60    top: 0;
61    left: 0;
62    right: 0;
63    bottom: 0;
64    padding: 0 0 0 16px;
65    white-space: nowrap;
66    display: -webkit-flex;
67    text-align: left;
68    -webkit-flex-direction: column;
69}
70
71.audit-launcher-view h1 {
72    padding-top: 15px;
73    -webkit-flex: none;
74}
75
76.audit-launcher-view h1.no-audits {
77    text-align: center;
78    font-style: italic;
79    position: relative;
80    left: -8px;
81}
82
83.audit-launcher-view div.button-container {
84    width: 100%;
85    padding: 16px 0;
86    -webkit-flex: none;
87}
88
89.audit-launcher-view div.button-container > button {
90    -webkit-align-self: flex-start;
91}
92
93.audit-launcher-view fieldset.audit-categories-container {
94    position: relative;
95    top: 11px;
96    left: 0;
97    width: 100%;
98    overflow-y: auto;
99    border: 0 none;
100    -webkit-flex: none;
101}
102
103.audit-launcher-view button {
104    margin: 0 5px 0 0;
105}
106
107.audit-launcher-view button:active {
108    background-color: rgb(215, 215, 215);
109    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(194, 194, 194)), to(rgb(239, 239, 239)));
110}
111
112.panel-enabler-view.audit-launcher-view label {
113    padding: 0 0 5px 0;
114    margin: 0;
115    -webkit-flex: none;
116}
117
118.panel-enabler-view.audit-launcher-view label.disabled {
119    color: rgb(130, 130, 130);
120}
121
122.audit-launcher-view input[type="checkbox"] {
123    margin-left: 0;
124}
125
126.audit-result-view {
127    overflow: auto;
128    position: absolute;
129    top: 0;
130    left: 0;
131    right: 0;
132    bottom: 0;
133    display: none;
134}
135
136.audit-result-view.visible {
137    display: block;
138}
139
140.audit-result-view .severity-severe,
141.audit-result-view .severity-warning,
142.audit-result-view .severity-info {
143    background-image: url(Images/statusbarButtonGlyphs.png);
144    background-size: 320px 120px;
145    display: inline-block;
146    width: 10px;
147    height: 10px;
148    float: left;
149    margin-left: -28px;
150    margin-top: 3px;
151}
152
153@media (-webkit-min-device-pixel-ratio: 1.5) {
154.audit-result-view .severity-severe,
155.audit-result-view .severity-warning,
156.audit-result-view .severity-info {
157    background-image: url(Images/statusbarButtonGlyphs2x.png);
158}
159} /* media */
160
161.audit-result-view .severity-severe {
162    background-position: -224px -96px;
163}
164
165.audit-result-view .severity-warning {
166    background-position: -246px -96px;
167}
168
169.audit-result-view .severity-info {
170    background-position: -235px -96px;
171}
172
173.audit-result-tree li.parent::before {
174    -webkit-user-select: none;
175    background-image: url(Images/statusbarButtonGlyphs.png);
176    background-size: 320px 120px;
177    opacity: 0.5;
178    float: left;
179    width: 8px;
180    height: 10px;
181    content: "a";
182    color: transparent;
183    margin-left: 3px;
184    margin-right: 4px;
185    position: relative;
186    top: 2px;
187}
188
189@media (-webkit-min-device-pixel-ratio: 1.5) {
190.audit-result-tree li.parent::before {
191    background-image: url(Images/statusbarButtonGlyphs2x.png);
192}
193} /* media */
194
195.audit-result-tree li.parent::before {
196    background-position: -4px -96px;
197}
198
199.audit-result-tree li.parent.expanded::before {
200    background-position: -20px -96px;
201}
202
203.audit-result-tree {
204    line-height: 16px;
205    -webkit-user-select: text;
206}
207
208.audit-result-tree > ol {
209    position: relative;
210    padding: 2px 6px !important;
211    margin: 0;
212    cursor: default;
213    min-width: 100%;
214}
215
216.audit-result-tree,
217.audit-result-tree ol {
218    list-style-type: none;
219    -webkit-padding-start: 12px;
220    margin: 0;
221}
222
223.audit-result-tree ol.outline-disclosure {
224    -webkit-padding-start: 0;
225}
226
227.audit-result-tree .section .header {
228    padding-left: 13px;
229}
230
231.audit-result-tree .section .header::before {
232    left: 2px;
233}
234
235.audit-result-tree li {
236    padding: 0 0 0 14px;
237    margin-top: 1px;
238    margin-bottom: 1px;
239    word-wrap: break-word;
240    margin-left: -2px;
241}
242
243.audit-result-tree li.parent {
244    margin-left: -12px
245}
246
247.audit-result-tree ol.children {
248    display: none;
249}
250
251.audit-result-tree ol.children.expanded {
252    display: block;
253}
254
255.audit-result {
256    font-weight: bold;
257}
258
259.audit-launcher-view .progress-bar-container {
260    display: inline-block;
261}
262
263.audit-launcher-view .progress-bar-container .progress-bar-stop-button {
264    display: none;
265}
266