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

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: Fixed review comments 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-modes .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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 opacity: 0.8; 353 opacity: 0.8;
346 } 354 }
347 355
348 /* Device section */ 356 /* Device section */
349 357
350 .responsive-design-section-device .responsive-design-section-decorator { 358 .responsive-design-section-device .responsive-design-section-decorator {
351 background: linear-gradient(to bottom, rgb(255, 186, 68), rgb(255, 119, 0)); 359 background: linear-gradient(to bottom, rgb(255, 186, 68), rgb(255, 119, 0));
352 margin-left: 0; 360 margin-left: 0;
353 } 361 }
354 362
355 .responsive-design-section-device select { 363 .responsive-design-section-device .device-select {
356 width: 185px; 364 width: 185px;
357 } 365 }
358 366
367 .device-modes .responsive-design-section-device .device-select {
368 width: 145px;
369 }
370
371 .responsive-design-section-device .mode-container {
372 display: none;
373 width: 90px;
374 }
375
376 .device-modes .responsive-design-section-device .mode-container {
377 display: inline-block;
378 }
379
380 .responsive-design-section-device .mode-select {
381 width: 80px;
382 }
383
384 .responsive-design-section-device button.change-orientation-button {
385 -webkit-appearance: none;
386 background: none;
387 outline: none;
388 border: none;
389 border-radius: 3px;
390 color: rgb(255, 156, 0);
391 width: 80px;
392 margin-left: 10px;
393 }
394
395 .responsive-design-section-device button.change-orientation-button:hover {
396 background-color: rgba(255, 156, 0, 0.1);
397 }
398
359 .responsive-design-section-device input[type='text'], 399 .responsive-design-section-device input[type='text'],
360 .responsive-design-section-device input[type='text']::-webkit-input-placeholder, 400 .responsive-design-section-device input[type='text']::-webkit-input-placeholder,
361 .responsive-design-section-device select { 401 .responsive-design-section-device select {
362 color: rgb(255, 156, 0); 402 color: rgb(255, 156, 0);
363 } 403 }
364 404
365 .responsive-design-section-device input[type='checkbox']:checked:after { 405 .responsive-design-section-device input[type='checkbox']:checked:after {
366 background: rgb(255, 156, 0); 406 background: rgb(255, 156, 0);
367 } 407 }
368 408
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 pointer-events: none; 526 pointer-events: none;
487 } 527 }
488 528
489 .media-inspector-label-right { 529 .media-inspector-label-right {
490 right: 4px; 530 right: 4px;
491 } 531 }
492 532
493 .media-inspector-label-left { 533 .media-inspector-label-left {
494 left: 4px; 534 left: 4px;
495 } 535 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698