OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The Chromium Authors. All rights reserved. | 2 * Copyright 2014 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 .responsive-design { | 7 .responsive-design { |
8 overflow: hidden; | 8 overflow: hidden; |
9 position: relative; | 9 position: relative; |
10 } | 10 } |
11 | 11 |
12 .responsive-design-reset-button:hover { | |
13 box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.5); | |
14 } | |
15 | |
16 .responsive-design-sliders-container { | 12 .responsive-design-sliders-container { |
17 position: absolute; | 13 position: absolute; |
18 overflow: visible; | 14 overflow: visible; |
19 } | 15 } |
20 | 16 |
21 .responsive-design-slider-width, | 17 .responsive-design-slider-width, |
22 .responsive-design-slider-height { | 18 .responsive-design-slider-height { |
23 flex: none; | 19 flex: none; |
24 justify-content: center; | 20 justify-content: center; |
25 } | 21 } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 } | 60 } |
65 | 61 |
66 .responsive-design-resolution-width { | 62 .responsive-design-resolution-width { |
67 top: 0; | 63 top: 0; |
68 } | 64 } |
69 | 65 |
70 .responsive-design-resolution-height { | 66 .responsive-design-resolution-height { |
71 left: 0; | 67 left: 0; |
72 } | 68 } |
73 | 69 |
| 70 /* Toolbar */ |
| 71 |
74 .responsive-design-toolbar { | 72 .responsive-design-toolbar { |
75 display: flex; | 73 display: flex; |
76 flex: none; | 74 flex: none; |
77 background-color: rgb(64, 64, 64); | 75 background: linear-gradient(to bottom, rgb(64, 64, 64), rgb(58, 58, 58)); |
78 color: rgb(180, 180, 180); | 76 color: rgb(255, 255, 255); |
79 overflow: hidden; | 77 overflow: hidden; |
80 border: 1px solid rgb(163, 163, 163); | 78 border-bottom: 1px solid rgb(104, 104, 104); |
81 } | 79 } |
82 | 80 |
| 81 .responsive-design-toolbar:not(.expanded) .expanded-only { |
| 82 display: none !important; |
| 83 } |
| 84 |
| 85 .responsive-design-separator { |
| 86 flex: none; |
| 87 width: 2px; |
| 88 background-color: rgb(43, 43, 43); |
| 89 margin: 2px; |
| 90 } |
| 91 |
| 92 .responsive-design-section { |
| 93 display: flex; |
| 94 flex: none; |
| 95 flex-direction: column; |
| 96 white-space: nowrap; |
| 97 align-items: stretch; |
| 98 justify-content: flex-start; |
| 99 padding: 0 10px; |
| 100 } |
| 101 |
| 102 .responsive-design-section-separator { |
| 103 height: 2px; |
| 104 } |
| 105 |
| 106 .responsive-design-suite { |
| 107 display: flex; |
| 108 flex-direction: row; |
| 109 align-items: stretch; |
| 110 justify-content: flex-start; |
| 111 padding-top: 2px; |
| 112 padding-bottom: 2px; |
| 113 } |
| 114 |
| 115 .responsive-design-section > :not(:nth-child(1)) { |
| 116 margin-left: 18px; |
| 117 } |
| 118 |
| 119 .responsive-design-suite-separator { |
| 120 flex: none; |
| 121 width: 1px; |
| 122 background-color: rgb(43, 43, 43); |
| 123 margin: 0 3px; |
| 124 } |
| 125 |
| 126 .responsive-design-suite > div:not(.responsive-design-suite-separator) { |
| 127 flex: auto; |
| 128 display: flex; |
| 129 flex-direction: row; |
| 130 align-items: center; |
| 131 justify-content: space-between; |
| 132 height: 22px; |
| 133 overflow: hidden; |
| 134 } |
| 135 |
| 136 /* Toolbar controls */ |
| 137 |
83 .responsive-design-toolbar fieldset, | 138 .responsive-design-toolbar fieldset, |
84 .responsive-design-toolbar p { | 139 .responsive-design-toolbar p { |
85 margin: 0; | 140 margin: 0; |
| 141 border: 0; |
86 padding: 0; | 142 padding: 0; |
87 border: 0; | |
88 display: inline-block; | 143 display: inline-block; |
89 } | 144 } |
90 | 145 |
91 .responsive-design-screen-section > fieldset, | |
92 .responsive-design-user-agent-section > p { | |
93 margin-left: 7px; | |
94 } | |
95 | |
96 .responsive-design-toolbar .responsive-design-section { | |
97 display: flex; | |
98 flex: 1 0 auto; | |
99 flex-direction: row; | |
100 height: 24px; | |
101 margin-top: -1px; | |
102 white-space: nowrap; | |
103 align-items: center; | |
104 justify-content: flex-start; | |
105 padding-right: 3px; | |
106 } | |
107 | |
108 .responsive-design-toolbar .responsive-design-section.vbox { | |
109 height: auto; | |
110 padding: 0; | |
111 } | |
112 | |
113 .responsive-design-toolbar .responsive-design-composite-section { | |
114 align-items: stretch; | |
115 flex: none; | |
116 } | |
117 | |
118 .responsive-design-toolbar .responsive-design-composite-section.vbox:not(.solid)
> :not(:nth-child(1)) { | |
119 border-top: 1px solid rgb(163, 163, 163); | |
120 } | |
121 | |
122 .responsive-design-toolbar .responsive-design-composite-section.hbox:not(.solid)
> :not(:nth-child(1)) { | |
123 border-left: 1px solid rgb(163, 163, 163); | |
124 } | |
125 | |
126 .responsive-design-toolbar > .responsive-design-composite-section { | |
127 border-right: 1px solid rgb(163, 163, 163); | |
128 } | |
129 | |
130 .responsive-design-toolbar .field-error-message { | 146 .responsive-design-toolbar .field-error-message { |
131 display: none; | 147 display: none; |
132 } | 148 } |
133 | 149 |
134 .responsive-design-toolbar input[type='text'] { | 150 .responsive-design-toolbar input[type='text'] { |
135 color: rgb(255, 156, 0); | |
136 text-align: left; | 151 text-align: left; |
137 background-color: transparent; | 152 background-color: transparent; |
138 border: none; | 153 border: none; |
139 margin: 0; | 154 margin: 0; |
140 padding-bottom: 4px; | 155 padding-bottom: 4px; |
141 } | 156 } |
142 | 157 |
143 .responsive-design-toolbar input[type='text'].numeric { | 158 .responsive-design-toolbar input[type='text'].numeric { |
144 text-align: center; | 159 text-align: center; |
145 } | 160 } |
146 | 161 |
147 .responsive-design-toolbar input[type='text']::-webkit-input-placeholder { | |
148 color: rgba(255, 156, 0, 0.5); | |
149 } | |
150 | |
151 .responsive-design-toolbar input[type='text']:not(.numeric) { | 162 .responsive-design-toolbar input[type='text']:not(.numeric) { |
152 width: 100%; | 163 width: 100%; |
153 margin-left: 7px; | |
154 } | 164 } |
155 | 165 |
156 .responsive-design-toolbar input:disabled, | 166 .responsive-design-toolbar fieldset:disabled input, |
157 .responsive-design-toolbar input[readonly], | 167 .responsive-design-toolbar fieldset:disabled button { |
158 .responsive-design-toolbar button:disabled { | |
159 opacity: 0.7; | 168 opacity: 0.7; |
160 } | 169 } |
161 | 170 |
162 .responsive-design-toolbar input[type='checkbox'] { | 171 .responsive-design-toolbar input[type='checkbox'] { |
163 -webkit-appearance: none; | 172 -webkit-appearance: none; |
164 margin: 0 5px 0 7px; | 173 margin: auto 5px auto 0; |
165 border: 1px solid rgb(45, 45, 45); | 174 border: 1px solid rgb(45, 45, 45); |
166 border-radius: 3px; | 175 border-radius: 3px; |
167 background-color: rgb(102, 102, 102); | 176 background-color: rgb(102, 102, 102); |
168 position: relative; | 177 position: relative; |
169 top: 1px; | 178 top: 1px; |
170 } | 179 } |
171 | 180 |
172 .responsive-design-toolbar input[type='checkbox']:after { | 181 .responsive-design-toolbar input[type='checkbox']:after { |
173 content: ''; | 182 content: ''; |
174 line-height: 10px; | 183 line-height: 10px; |
175 position: absolute; | 184 position: absolute; |
176 cursor: pointer; | 185 cursor: pointer; |
177 width: 12px; | 186 width: 12px; |
178 height: 12px; | 187 height: 12px; |
179 background: none; | 188 background: none; |
180 } | 189 } |
181 | 190 |
182 .responsive-design-toolbar input[type='checkbox']:checked:after { | 191 .responsive-design-toolbar input[type='checkbox']:checked:after { |
183 background: rgb(220, 220, 220); | 192 background: rgb(220, 220, 220); |
184 } | 193 } |
185 | 194 |
186 .responsive-design-toolbar input.error-input { | 195 .responsive-design-toolbar input.error-input { |
187 color: red; | 196 color: red; |
188 text-decoration: line-through; | 197 text-decoration: line-through; |
189 } | 198 } |
190 | 199 |
191 .responsive-design-toolbar select { | 200 .responsive-design-toolbar select { |
192 width: 150px; | 201 height: 18px; |
193 background-color: transparent; | 202 width: 220px; |
194 color: rgb(255, 156, 0); | 203 background-color: rgb(81, 81, 81); |
195 border: 0; | 204 border: 0; |
196 margin-left: 10px; | 205 margin-left: 10px; |
197 line-height: 16px; | 206 line-height: 16px; |
198 } | 207 } |
199 | 208 |
200 body.platform-mac .responsive-design-toolbar select { | 209 body.platform-mac .responsive-design-toolbar select { |
201 position: relative; | 210 position: relative; |
202 top: 1px; | 211 top: 1px; |
203 } | 212 } |
204 | 213 |
205 .responsive-design-toolbar input:focus { | 214 .responsive-design-toolbar input:focus { |
206 background-color: rgb(102, 102, 102) | 215 background-color: rgb(102, 102, 102) |
207 } | 216 } |
208 | 217 |
| 218 /* Toolbar icons */ |
| 219 |
209 .responsive-design-icon { | 220 .responsive-design-icon { |
210 background-color: rgb(180, 180, 180); | 221 background-color: rgb(180, 180, 180); |
211 -webkit-mask-image: url(Images/responsiveDesign.png); | 222 -webkit-mask-image: url(Images/responsiveDesign.png); |
212 -webkit-mask-size: 64px 16px; | 223 -webkit-mask-size: 64px 16px; |
213 display: inline-block; | 224 display: inline-block; |
214 width: 16px; | 225 width: 16px; |
215 height: 16px; | 226 height: 16px; |
216 position: relative; | 227 position: relative; |
217 top: 3px; | 228 top: 3px; |
218 } | 229 } |
(...skipping 21 matching lines...) Expand all Loading... |
240 } | 251 } |
241 | 252 |
242 .responsive-design-icon-dpr { | 253 .responsive-design-icon-dpr { |
243 -webkit-mask-position: -16px 0; | 254 -webkit-mask-position: -16px 0; |
244 } | 255 } |
245 | 256 |
246 .responsive-design-icon-swap { | 257 .responsive-design-icon-swap { |
247 opacity: 0.9; | 258 opacity: 0.9; |
248 background-color: rgb(255, 156, 0); | 259 background-color: rgb(255, 156, 0); |
249 -webkit-mask-position: -32px 0; | 260 -webkit-mask-position: -32px 0; |
250 margin-right: 10px; | |
251 -webkit-appearance: none; | 261 -webkit-appearance: none; |
252 padding: 0; | 262 padding: 0; |
253 border: 0; | 263 border: 0; |
254 } | 264 } |
255 | 265 |
256 .responsive-design-icon-swap:hover { | 266 .responsive-design-icon-swap:hover { |
257 opacity: 1; | 267 opacity: 1; |
258 } | 268 } |
259 | 269 |
260 .responsive-design-icon-swap:active { | 270 .responsive-design-icon-swap:active { |
261 opacity: 0.8; | 271 opacity: 0.8; |
262 } | 272 } |
263 | 273 |
264 .responsive-design-expand { | 274 /* Expand button */ |
| 275 |
| 276 .responsive-design-section-expand { |
| 277 padding: 0 !important; |
| 278 } |
| 279 |
| 280 .responsive-design-expand-button { |
265 height: 19px; | 281 height: 19px; |
266 min-width: 70px; | 282 min-width: 70px; |
267 background: rgb(64, 64, 64); | 283 background: rgb(64, 64, 64); |
268 display: flex; | 284 display: flex; |
269 align-items: center; | 285 align-items: center; |
270 justify-content: center; | 286 justify-content: center; |
271 margin: 3px; | 287 margin: 3px; |
| 288 cursor: pointer; |
272 } | 289 } |
273 | 290 |
274 .responsive-design-expand:hover, | 291 .responsive-design-expand-button:hover, |
275 .responsive-design-expand:active { | 292 .responsive-design-expand-button:active { |
276 background: linear-gradient(to top, rgb(102, 102, 102), rgb(64, 64, 64)); | 293 background: linear-gradient(to top, rgb(102, 102, 102), rgb(64, 64, 64)); |
277 } | 294 } |
278 | 295 |
279 .responsive-design-icon-expand { | 296 .responsive-design-icon-expand { |
280 -webkit-mask-position: -48px 0; | 297 -webkit-mask-position: -48px 0; |
281 top: 0 !important; | 298 top: 0 !important; |
282 margin-right: 2px; | 299 margin-right: 2px; |
283 } | 300 } |
284 | 301 |
285 .responsive-design-expand.expanded .responsive-design-icon-expand { | 302 .responsive-design-toolbar.expanded .responsive-design-icon-expand { |
286 transform: rotate(180deg); | 303 transform: rotate(180deg); |
287 } | 304 } |
288 | 305 |
289 .responsive-design-network select { | 306 /* Device section */ |
290 width: 120px; | 307 |
| 308 .responsive-design-section-device { |
| 309 width: 340px; |
291 } | 310 } |
292 | 311 |
| 312 .responsive-design-section-device .responsive-design-section-separator { |
| 313 background: linear-gradient(to bottom, rgb(255, 186, 68), rgb(255, 119, 0)); |
| 314 } |
| 315 |
| 316 .responsive-design-section-device input[type='text'], |
| 317 .responsive-design-section-device select { |
| 318 color: rgb(255, 156, 0); |
| 319 } |
| 320 |
| 321 .responsive-design-section-device .expanded-only input[type='checkbox']:checked:
after { |
| 322 background: rgb(255, 156, 0); |
| 323 } |
| 324 |
| 325 /* Network section */ |
| 326 |
| 327 .responsive-design-section-network { |
| 328 width: 280px; |
| 329 } |
| 330 |
| 331 .responsive-design-section-network select { |
| 332 width: 150px; |
| 333 color: rgb(65, 175, 255); |
| 334 } |
| 335 |
| 336 .responsive-design-section-network .responsive-design-section-separator { |
| 337 background: linear-gradient(to bottom, rgb(77, 170, 243), rgb(0, 130, 255)); |
| 338 } |
| 339 |
| 340 /* Warning message */ |
| 341 |
293 .responsive-design-warning { | 342 .responsive-design-warning { |
294 background-color: rgb(64, 64, 64); | 343 background-color: rgb(0, 0, 0); |
295 color: rgb(180, 180, 180); | 344 color: rgb(255, 255, 255); |
296 height: 19px; | 345 position: absolute; |
| 346 left: 0; |
| 347 right: 0; |
| 348 top: 0; |
297 padding: 2px; | 349 padding: 2px; |
298 white-space: nowrap; | 350 white-space: nowrap; |
299 } | 351 } |
300 | 352 |
301 .responsive-design-warning::before { | 353 .responsive-design-warning::before { |
302 background-image: url(Images/statusbarButtonGlyphs.png); | 354 background-image: url(Images/statusbarButtonGlyphs.png); |
303 background-size: 320px 144px; | 355 background-size: 320px 144px; |
304 width: 10px; | 356 width: 10px; |
305 height: 10px; | 357 height: 10px; |
306 content: ""; | 358 content: ""; |
307 position: relative; | 359 position: relative; |
308 top: 2px; | 360 top: 2px; |
309 background-position: -202px -107px; | 361 background-position: -202px -107px; |
310 float: left; | 362 float: left; |
311 margin-right: 4px; | 363 margin-right: 4px; |
312 margin-left: 2px; | 364 margin-left: 2px; |
313 } | 365 } |
314 | 366 |
315 @media (-webkit-min-device-pixel-ratio: 1.5) { | 367 @media (-webkit-min-device-pixel-ratio: 1.5) { |
316 .responsive-design-warning::before { | 368 .responsive-design-warning::before { |
317 background-image: url(Images/statusbarButtonGlyphs_2x.png); | 369 background-image: url(Images/statusbarButtonGlyphs_2x.png); |
318 } | 370 } |
319 } /* media */ | 371 } /* media */ |
| 372 |
| 373 .responsive-design-warning-close { |
| 374 position: absolute; |
| 375 right: 3px; |
| 376 top: 3px; |
| 377 width: 13px; |
| 378 height: 13px; |
| 379 cursor: pointer; |
| 380 background-image: url(Images/statusbarButtonGlyphs.png); |
| 381 background-size: 320px 144px; |
| 382 background-position: -175px -96px; |
| 383 display: inline-block; |
| 384 } |
| 385 |
| 386 @media (-webkit-min-device-pixel-ratio: 1.5) { |
| 387 .responsive-design-warning-close { |
| 388 background-image: url(Images/statusbarButtonGlyphs_2x.png); |
| 389 } |
| 390 } /* media */ |
| 391 |
| 392 .responsive-design-warning-close:hover, |
| 393 .responsive-design-warning-close:active { |
| 394 opacity: 0.7; |
| 395 } |
OLD | NEW |