blob: d9f032739008678b3e30dc7377aa0634e9c3f1b3 [file] [log] [blame]
Paul Lewis8cddf9932019-09-27 16:40:071/**
2 * Copyright 2019 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.overview-completed-view {
8 overflow: auto;
Paul Lewis8aef9012019-10-29 14:15:179 --overview-default-padding: 28px;
Paul Lewisb47c6e22019-11-07 11:58:5010 --overview-icon-padding: 32px;
Paul Lewis8cddf9932019-09-27 16:40:0711}
12
13.overview-completed-view .summary ul,
14.overview-completed-view .colors ul {
15 list-style: none;
16 padding: 0;
17 margin: 0;
18}
19
20.overview-completed-view .summary ul {
21 display: grid;
22 grid-template-columns: repeat(auto-fill, 140px);
23 grid-gap: 16px;
24}
25
26.overview-completed-view .colors ul li {
27 display: inline-block;
28 padding: 0;
29 margin: 0 0 16px 0;
30}
31
32.overview-completed-view .summary ul li {
33 display: flex;
34 flex-direction: column;
35 grid-column-start: auto;
36}
37
38.overview-completed-view li .label {
39 font-size: 12px;
40 padding-bottom: 2px;
41}
42
43.overview-completed-view li .value {
44 font-size: 17px;
45}
46
47.overview-completed-view ul li span {
48 font-weight: bold;
49}
50
Paul Lewis8aef9012019-10-29 14:15:1751.unused-rules-grid .header-container,
52.unused-rules-grid .data-container,
53.unused-rules-grid table.data {
Paul Lewisebc47192019-10-09 15:06:4154 position: relative;
55}
56
Paul Lewised808ce2019-11-06 14:21:5457.unused-rules-grid .data-container {
Paul Lewisebc47192019-10-09 15:06:4158 top: 0;
Paul Lewisde0224c2019-10-22 16:23:1559 max-height: 350px;
60}
61
Paul Lewised808ce2019-11-06 14:21:5462.unused-rules-grid {
Paul Lewis8aef9012019-10-29 14:15:1763 border-left: none;
64 border-right: none;
65}
66
Paul Lewisaae7b102019-10-30 14:18:2167/** Ensure links are rendered at the correct height */
68.unused-rules-grid .monospace {
69 display: block;
70 height: 18px;
71}
72
Paul Lewisde0224c2019-10-22 16:23:1573.element-grid {
74 flex: 1;
75 border-left: none;
76 border-right: none;
77 overflow: auto;
Paul Lewisebc47192019-10-09 15:06:4178}
79
Paul Lewis8cddf9932019-09-27 16:40:0780.block {
81 width: 65px;
82 height: 25px;
83 border-radius: 3px;
84 margin-right: 16px;
Paul Lewis8aef9012019-10-29 14:15:1785 cursor: pointer;
Paul Lewis8cddf9932019-09-27 16:40:0786}
87
88.block-title {
89 padding-top: 4px;
90 font-size: 12px;
91 color: #303942;
92 text-transform: uppercase;
93 letter-spacing: 0;
94}
95
96.results-section {
97 flex-shrink: 0;
Paul Lewis8cddf9932019-09-27 16:40:0798 border-bottom: 1px solid #E6E6E6;
Paul Lewis8aef9012019-10-29 14:15:1799 padding: var(--overview-default-padding) 0 var(--overview-default-padding) 0;
100}
101
Paul Lewisa3dcbf32019-10-29 14:41:51102.horizontally-padded {
103 padding-left: var(--overview-default-padding);
104 padding-right: var(--overview-default-padding);
Paul Lewis8cddf9932019-09-27 16:40:07105}
106
107.results-section h1 {
108 font-size: 15px;
109 font-weight: normal;
110 padding: 0;
111 margin: 0 0 20px 0;
Paul Lewisb47c6e22019-11-07 11:58:50112 padding-left: calc(var(--overview-default-padding) + var(--overview-icon-padding));
113 position: relative;
114 height: 26px;
115 line-height: 26px;
116}
117
118.results-section h1::before {
119 content: '';
120 display: block;
121 position: absolute;
122 left: var(--overview-default-padding);
123 top: 0;
124 width: 26px;
125 height: 26px;
126 background-image: url(Images/cssoverview_icons_2x.png);
127 background-size: 104px 26px;
Paul Lewis8aef9012019-10-29 14:15:17128}
129
130.results-section.horizontally-padded h1 {
Paul Lewisb47c6e22019-11-07 11:58:50131 padding-left: var(--overview-icon-padding);
132}
133
134.results-section.horizontally-padded h1::before {
135 left: 0;
136}
137
138.results-section.summary h1 {
Paul Lewis8aef9012019-10-29 14:15:17139 padding-left: 0;
Paul Lewis8cddf9932019-09-27 16:40:07140}
141
Paul Lewisb47c6e22019-11-07 11:58:50142.results-section.summary h1::before {
143 display: none;
144}
145
146.results-section.colors h1::before {
147 background-position: 0 0;
148}
149
150.results-section.font-info h1::before {
151 background-position: -26px 0;
152}
153
154.results-section.unused-declarations h1::before {
155 background-position: -52px 0;
156}
157
158.results-section.media-queries h1::before {
159 background-position: -78px 0;
160}
161
Paul Lewis8cddf9932019-09-27 16:40:07162.results-section.colors h2 {
163 margin-top: 20px;
164 font-size: 13px;
165 font-weight: normal;
166}
Paul Lewised808ce2019-11-06 14:21:54167
Paul Lewis7d10a732019-11-06 16:11:51168.overview-completed-view .font-info ul,
Paul Lewised808ce2019-11-06 14:21:54169.overview-completed-view .media-queries ul,
170.overview-completed-view .unused-declarations ul {
171 width: 100%;
172 list-style: none;
173 margin: 0;
174 padding: 0 var(--overview-default-padding);
175}
176
Paul Lewis7d10a732019-11-06 16:11:51177.overview-completed-view .font-info ul li,
Paul Lewised808ce2019-11-06 14:21:54178.overview-completed-view .media-queries ul li,
179.overview-completed-view .unused-declarations ul li {
180 display: grid;
181 grid-template-columns: 2fr 3fr;
182 grid-gap: 12px;
183 margin-bottom: 4px;
184 align-items: center;
185}
186
Paul Lewis7d10a732019-11-06 16:11:51187.overview-completed-view .font-info button,
Paul Lewised808ce2019-11-06 14:21:54188.overview-completed-view .media-queries button,
189.overview-completed-view .unused-declarations button {
190 border: none;
191 padding: 0;
192 margin: 0;
193 display: flex;
194 align-items: center;
195 border-radius: 2px;
196 cursor: pointer;
197 height: 28px;
Paul Lewis66a15fc2019-11-07 11:17:11198 background: none;
Paul Lewised808ce2019-11-06 14:21:54199}
200
Paul Lewis7d10a732019-11-06 16:11:51201.overview-completed-view .font-info button .details,
Paul Lewised808ce2019-11-06 14:21:54202.overview-completed-view .media-queries button .details,
203.overview-completed-view .unused-declarations button .details {
204 min-width: 100px;
205 text-align: right;
206 margin-right: 8px;
207 color: var(--accent-color);
208 pointer-events: none;
209}
210
Paul Lewis7d10a732019-11-06 16:11:51211.overview-completed-view .font-info button .bar-container,
Paul Lewised808ce2019-11-06 14:21:54212.overview-completed-view .media-queries button .bar-container,
213.overview-completed-view .unused-declarations button .bar-container {
214 flex: 1;
215 pointer-events: none;
216}
217
Paul Lewis7d10a732019-11-06 16:11:51218.overview-completed-view .font-info button .bar,
Paul Lewised808ce2019-11-06 14:21:54219.overview-completed-view .media-queries button .bar,
220.overview-completed-view .unused-declarations button .bar {
221 height: 8px;
222 background: var(--accent-color);
223 border-radius: 2px;
Paul Lewis66a15fc2019-11-07 11:17:11224 min-width: 2px;
Paul Lewised808ce2019-11-06 14:21:54225}
Paul Lewis7d10a732019-11-06 16:11:51226
227.overview-completed-view .font-info button:hover .details,
228.overview-completed-view .font-info button:focus .details,
Paul Lewised808ce2019-11-06 14:21:54229.overview-completed-view .media-queries button:hover .details,
230.overview-completed-view .media-queries button:focus .details,
231.overview-completed-view .unused-declarations button:hover .details,
232.overview-completed-view .unused-declarations button:focus .details {
233 color: var(--accent-color-hover);
234}
235
Paul Lewis7d10a732019-11-06 16:11:51236.overview-completed-view .font-info button:hover .bar,
237.overview-completed-view .font-info button:focus .bar,
Paul Lewised808ce2019-11-06 14:21:54238.overview-completed-view .media-queries button:hover .bar,
239.overview-completed-view .media-queries button:focus .bar,
240.overview-completed-view .unused-declarations button:hover .bar,
241.overview-completed-view .unused-declarations button:focus .bar {
242 background-color: var(--accent-color-hover);
243 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(66, 133, 244, 0.4);
244 color: #FFF;
245}
Paul Lewis7d10a732019-11-06 16:11:51246
247.overview-completed-view .font-info .font-metric {
248 display: grid;
249 grid-template-columns: 1fr 1fr 1fr;
250 grid-gap: 12px;
Paul Lewis7d10a732019-11-06 16:11:51251}
252
253.overview-completed-view .font-info ul {
254 padding: 0;
255}
256
257.overview-completed-view .font-info ul li {
258 grid-template-columns: 1fr 4fr;
259}
260
261.overview-completed-view .font-info h2 {
262 font-size: 14px;
Paul Lewis66a15fc2019-11-07 11:17:11263 font-weight: bold;
Paul Lewis7d10a732019-11-06 16:11:51264 margin: 0 0 1em 0;
265}
266
267.overview-completed-view .font-info h3 {
Paul Lewis66a15fc2019-11-07 11:17:11268 font-size: 13px;
269 font-weight: normal;
270 font-style: italic;
271 margin: 0 0 0.5em 0;
272}
273
274.overview-completed-view .font-info {
275 padding-bottom: 0;
276}
277
278.overview-completed-view .font-family {
279 padding: var(--overview-default-padding);
280}
281
282.overview-completed-view .font-family:nth-child(2n+1) {
283 background: #FAFAFA;
284}
285
286.overview-completed-view .font-family:first-of-type {
287 padding-top: 0;
Paul Lewis7d10a732019-11-06 16:11:51288}