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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/emulation/deviceModeView.css

Issue 1650243004: [DevTools] Option to show device frames in emulation mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 .device-mode-media-container { 45 .device-mode-media-container {
46 flex: none; 46 flex: none;
47 overflow: hidden; 47 overflow: hidden;
48 box-shadow: inset 0 -1px #ccc; 48 box-shadow: inset 0 -1px #ccc;
49 } 49 }
50 50
51 .device-mode-content-clip:not(.device-mode-rulers-visible) .device-mode-media-co ntainer { 51 .device-mode-content-clip:not(.device-mode-rulers-visible) .device-mode-media-co ntainer {
52 margin-bottom: 20px; 52 margin-bottom: 20px;
53 } 53 }
54 54
55 .device-mode-content-clip:not(.device-mode-frame-visible) .device-mode-outline-a rea {
56 visibility: hidden;
57 }
58
55 .device-mode-presets-container { 59 .device-mode-presets-container {
56 flex: 0 0 20px; 60 flex: 0 0 20px;
57 display: flex; 61 display: flex;
58 } 62 }
59 63
60 .device-mode-presets-container-inner { 64 .device-mode-presets-container-inner {
61 flex: auto; 65 flex: auto;
62 justify-content: center; 66 justify-content: center;
63 position: relative; 67 position: relative;
64 background-color: hsl(0, 0%, 90%); 68 background-color: hsl(0, 0%, 90%);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 } 120 }
117 121
118 .device-mode-screen-area { 122 .device-mode-screen-area {
119 position: absolute; 123 position: absolute;
120 left: 0; 124 left: 0;
121 right: 0; 125 right: 0;
122 width: 0; 126 width: 0;
123 height: 0; 127 height: 0;
124 background-color: #171717; 128 background-color: #171717;
125 box-shadow: hsl(0, 0%, 88%) 1px 1px 0 1px, hsla(0, 0%, 80%, 0.6) 0 0 16px; 129 box-shadow: hsl(0, 0%, 88%) 1px 1px 0 1px, hsla(0, 0%, 80%, 0.6) 0 0 16px;
130 z-index: 2;
dgozman 2016/02/01 17:18:27 I'd prefer to avoid z-index. Can we instead rearra
mmccoy 2016/02/10 20:06:34 Done!
131 }
132
133 .device-mode-screen-area {
134 width: 454px;
135 height: 921px;
126 } 136 }
127 137
128 .device-mode-screen-image { 138 .device-mode-screen-image {
129 position: absolute; 139 position: absolute;
130 left: 0; 140 left: 0;
131 top: 0; 141 top: 0;
132 width: 100%; 142 width: 100%;
133 height: 100%; 143 height: 100%;
134 } 144 }
135 145
146 .device-mode-outline-area {
147 position: absolute;
148 left: 0;
149 right: 0;
150 width: 0;
151 height: 0;
152 z-index: 1;
153 }
154
155 .device-mode-outline-image {
156 position: absolute;
157 left: 0;
158 top: 0;
159 width: 100%;
160 height: 100%;
161 }
162
136 .device-mode-resizer { 163 .device-mode-resizer {
137 position: absolute; 164 position: absolute;
138 display: flex; 165 display: flex;
139 align-items: center; 166 align-items: center;
140 justify-content: center; 167 justify-content: center;
141 overflow: hidden; 168 overflow: hidden;
142 transition: background-color 0.1s ease; 169 transition: background-color 0.1s ease;
143 } 170 }
144 171
145 .device-mode-resizer:hover { 172 .device-mode-resizer:hover {
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 .device-mode-ruler-top .device-mode-ruler-text { 313 .device-mode-ruler-top .device-mode-ruler-text {
287 left: 2px; 314 left: 2px;
288 top: -2px; 315 top: -2px;
289 } 316 }
290 317
291 .device-mode-ruler-left .device-mode-ruler-text { 318 .device-mode-ruler-left .device-mode-ruler-text {
292 left: -4px; 319 left: -4px;
293 top: -15px; 320 top: -15px;
294 transform: rotate(270deg); 321 transform: rotate(270deg);
295 } 322 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698