Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Side by Side Diff: Source/devtools/front_end/emulation/responsiveDesignView.css

Issue 1178643004: [DevTools] Initial implementation of device modes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 position: relative; 8 position: relative;
9 background-color: rgb(0, 0, 0); 9 background-color: rgb(0, 0, 0);
10 overflow: hidden; 10 overflow: hidden;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 .responsive-design-thumb-handle { 76 .responsive-design-thumb-handle {
77 content: url(Images/toolbarResizerHorizontal.png); 77 content: url(Images/toolbarResizerHorizontal.png);
78 pointer-events: none; 78 pointer-events: none;
79 } 79 }
80 80
81 .responsive-design-slider-height .responsive-design-thumb-handle { 81 .responsive-design-slider-height .responsive-design-thumb-handle {
82 transform: rotate(90deg); 82 transform: rotate(90deg);
83 } 83 }
84 84
85 .responsive-design-page-container {
86 background-color: #171717;
87 }
88
85 .responsive-design-page-scale-container { 89 .responsive-design-page-scale-container {
86 position: absolute !important; 90 position: absolute !important;
87 top: 0; 91 top: 0;
88 right: 0; 92 right: 0;
89 padding: 10px; 93 padding: 10px;
90 background-color: rgba(0, 0, 0, 0.3); 94 background-color: rgba(0, 0, 0, 0.3);
91 align-items: center; 95 align-items: center;
92 } 96 }
93 97
94 .responsive-design-page-scale-label { 98 .responsive-design-page-scale-label {
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 } 217 }
214 218
215 .responsive-design-toolbar .field-error-message { 219 .responsive-design-toolbar .field-error-message {
216 display: none; 220 display: none;
217 } 221 }
218 222
219 .responsive-design-toolbar label { 223 .responsive-design-toolbar label {
220 cursor: default !important; 224 cursor: default !important;
221 } 225 }
222 226
227 .device-art .responsive-design-toolbar label {
228 margin: 0 2px;
229 }
230
223 .responsive-design-toolbar input[type='text'] { 231 .responsive-design-toolbar input[type='text'] {
224 text-align: left; 232 text-align: left;
225 background-color: transparent; 233 background-color: transparent;
226 border: none; 234 border: none;
227 margin: 0 1px 1px 0; 235 margin: 0 1px 1px 0;
228 padding: 3px 2px; 236 padding: 3px 2px;
229 } 237 }
230 238
231 .responsive-design-toolbar input[type='text'].numeric { 239 .responsive-design-toolbar input[type='text'].numeric {
232 text-align: center; 240 text-align: center;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 } 299 }
292 300
293 .responsive-design-icon { 301 .responsive-design-icon {
294 display: inline-block; 302 display: inline-block;
295 width: 16px; 303 width: 16px;
296 height: 16px; 304 height: 16px;
297 position: relative; 305 position: relative;
298 top: 3px; 306 top: 3px;
299 } 307 }
300 308
309 .device-art .responsive-design-icon {
310 margin: 0 3px;
311 }
312
301 div.responsive-design-icon:disabled { 313 div.responsive-design-icon:disabled {
302 opacity: 1 !important; 314 opacity: 1 !important;
303 } 315 }
304 316
305 @media (-webkit-min-device-pixel-ratio: 1.5) { 317 @media (-webkit-min-device-pixel-ratio: 1.5) {
306 .responsive-design-icon { 318 .responsive-design-icon {
307 -webkit-mask-image: url(Images/responsiveDesign_2x.png); 319 -webkit-mask-image: url(Images/responsiveDesign_2x.png);
308 } 320 }
309 } /* media */ 321 } /* media */
310 322
(...skipping 22 matching lines...) Expand all
333 -webkit-mask-position: -32px 0; 345 -webkit-mask-position: -32px 0;
334 -webkit-appearance: none; 346 -webkit-appearance: none;
335 padding: 0; 347 padding: 0;
336 border: 0; 348 border: 0;
337 } 349 }
338 350
339 .responsive-design-icon-swap { 351 .responsive-design-icon-swap {
340 margin-left: 1px; 352 margin-left: 1px;
341 } 353 }
342 354
355 .device-art .responsive-design-icon-swap {
356 margin: 0 4px;
357 }
358
343 .responsive-design-icon-swap:hover { 359 .responsive-design-icon-swap:hover {
344 background-color: rgb(255, 180, 0); 360 background-color: rgb(255, 180, 0);
345 } 361 }
346 362
347 .responsive-design-icon-swap:active { 363 .responsive-design-icon-swap:active {
348 opacity: 0.8; 364 opacity: 0.8;
349 } 365 }
350 366
351 /* Buttons section */ 367 /* Buttons section */
352 368
(...skipping 29 matching lines...) Expand all
382 opacity: 0.8; 398 opacity: 0.8;
383 } 399 }
384 400
385 /* Device section */ 401 /* Device section */
386 402
387 .responsive-design-section-device .responsive-design-section-decorator { 403 .responsive-design-section-device .responsive-design-section-decorator {
388 background: linear-gradient(to bottom, rgb(255, 186, 68), rgb(255, 119, 0)); 404 background: linear-gradient(to bottom, rgb(255, 186, 68), rgb(255, 119, 0));
389 margin-left: 0; 405 margin-left: 0;
390 } 406 }
391 407
392 .responsive-design-section-device select { 408 .responsive-design-section-device .device-select {
393 width: 185px; 409 width: 185px;
394 } 410 }
395 411
412 .device-art .responsive-design-section-device .device-select {
413 width: 145px;
414 }
415
416 .responsive-design-section-device .mode-select {
417 display: none;
418 width: 120px;
419 }
420
421 .device-art .responsive-design-section-device .mode-select {
422 display: initial;
423 }
424
425 .responsive-design-section-device .mode-select.invisible {
426 visibility: hidden;
427 }
428
396 .responsive-design-section-device input[type='text'], 429 .responsive-design-section-device input[type='text'],
397 .responsive-design-section-device input[type='text']::-webkit-input-placeholder, 430 .responsive-design-section-device input[type='text']::-webkit-input-placeholder,
398 .responsive-design-section-device select { 431 .responsive-design-section-device select {
399 color: rgb(255, 156, 0); 432 color: rgb(255, 156, 0);
400 } 433 }
401 434
402 .responsive-design-section-device input[type='checkbox']:checked:after { 435 .responsive-design-section-device input[type='checkbox']:checked:after {
403 background: rgb(255, 156, 0); 436 background: rgb(255, 156, 0);
404 } 437 }
405 438
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 pointer-events: none; 556 pointer-events: none;
524 } 557 }
525 558
526 .media-inspector-label-right { 559 .media-inspector-label-right {
527 right: 4px; 560 right: 4px;
528 } 561 }
529 562
530 .media-inspector-label-left { 563 .media-inspector-label-left {
531 left: 4px; 564 left: 4px;
532 } 565 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698