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: third_party/WebKit/Source/devtools/front_end/emulation/deviceModeView.css

Issue 1947573002: [DevTools] Hide the device frame when the viewport is too narrow to accomodate it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 The Chromium Authors. All rights reserved. 2 * Copyright 2015 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 :host { 7 :host {
8 overflow: hidden; 8 overflow: hidden;
9 align-items: stretch; 9 align-items: stretch;
10 flex: auto; 10 flex: auto;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 122 }
123 123
124 .device-mode-screen-image { 124 .device-mode-screen-image {
125 position: absolute; 125 position: absolute;
126 left: 0; 126 left: 0;
127 top: 0; 127 top: 0;
128 width: 100%; 128 width: 100%;
129 height: 100%; 129 height: 100%;
130 } 130 }
131 131
132 .device-mode-outline-image {
133 visibility: hidden;
134 }
135
136 .device-mode-outline-image.device-frame-visible {
137 visibility: visible;
138 }
139
132 .device-mode-outline-image.device-frame-visible + .device-mode-screen-area { 140 .device-mode-outline-image.device-frame-visible + .device-mode-screen-area {
133 box-shadow: none; 141 box-shadow: none;
134 } 142 }
135 143
136 .device-mode-resizer { 144 .device-mode-resizer {
137 position: absolute; 145 position: absolute;
138 display: flex; 146 display: flex;
139 align-items: center; 147 align-items: center;
140 justify-content: center; 148 justify-content: center;
141 overflow: hidden; 149 overflow: hidden;
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 .device-mode-ruler-top .device-mode-ruler-text { 335 .device-mode-ruler-top .device-mode-ruler-text {
328 left: 2px; 336 left: 2px;
329 top: -2px; 337 top: -2px;
330 } 338 }
331 339
332 .device-mode-ruler-left .device-mode-ruler-text { 340 .device-mode-ruler-left .device-mode-ruler-text {
333 left: -4px; 341 left: -4px;
334 top: -15px; 342 top: -15px;
335 transform: rotate(270deg); 343 transform: rotate(270deg);
336 } 344 }
345
346 @media (max-width : 520px) {
347 .device-mode-outline-image.device-frame-visible {
348 visibility: hidden;
349 }
350
351 .device-mode-outline-image.device-frame-visible + .device-mode-screen-area {
352 box-shadow: hsl(240, 3%, 84%) 0 0 0 0.5px, hsla(0, 0%, 80%, 0.4) 0 0 20px;
353 }
354 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698