| OLD | NEW |
| 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 30 matching lines...) Expand all Loading... |
| 41 overflow: hidden; | 41 overflow: hidden; |
| 42 flex: auto; | 42 flex: auto; |
| 43 } | 43 } |
| 44 | 44 |
| 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-outline-visible) .device-mode-media-c
ontainer { |
| 52 margin-bottom: 20px; |
| 53 } |
| 54 |
| 51 .device-mode-presets-container { | 55 .device-mode-presets-container { |
| 52 flex: 0 0 20px; | 56 flex: 0 0 20px; |
| 53 display: flex; | 57 display: flex; |
| 54 } | 58 } |
| 55 | 59 |
| 56 .device-mode-presets-container-inner { | 60 .device-mode-presets-container-inner { |
| 57 flex: auto; | 61 flex: auto; |
| 58 justify-content: center; | 62 justify-content: center; |
| 59 position: relative; | 63 position: relative; |
| 60 background-color: hsl(0, 0%, 90%); | 64 background-color: hsl(0, 0%, 90%); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 margin: 0; | 115 margin: 0; |
| 112 } | 116 } |
| 113 | 117 |
| 114 .device-mode-screen-area { | 118 .device-mode-screen-area { |
| 115 position: absolute; | 119 position: absolute; |
| 116 left: 0; | 120 left: 0; |
| 117 right: 0; | 121 right: 0; |
| 118 width: 0; | 122 width: 0; |
| 119 height: 0; | 123 height: 0; |
| 120 background-color: #171717; | 124 background-color: #171717; |
| 125 } |
| 126 |
| 127 .device-mode-content-clip:not(.device-mode-outline-visible) .device-mode-screen-
area { |
| 121 box-shadow: hsl(240, 3%, 84%) 0 0 0 0.5px, hsla(0, 0%, 80%, 0.4) 0 0 20px; | 128 box-shadow: hsl(240, 3%, 84%) 0 0 0 0.5px, hsla(0, 0%, 80%, 0.4) 0 0 20px; |
| 122 } | 129 } |
| 123 | 130 |
| 124 .device-mode-screen-image { | 131 .device-mode-screen-image { |
| 125 position: absolute; | 132 position: absolute; |
| 126 left: 0; | 133 left: 0; |
| 127 top: 0; | 134 top: 0; |
| 128 width: 100%; | 135 width: 100%; |
| 129 height: 100%; | 136 height: 100%; |
| 130 } | 137 } |
| 131 | 138 |
| 132 .device-mode-outline-image.device-frame-visible + .device-mode-screen-area { | |
| 133 box-shadow: none; | |
| 134 } | |
| 135 | |
| 136 .device-mode-resizer { | 139 .device-mode-resizer { |
| 137 position: absolute; | 140 position: absolute; |
| 138 display: flex; | 141 display: flex; |
| 139 align-items: center; | 142 align-items: center; |
| 140 justify-content: center; | 143 justify-content: center; |
| 141 overflow: hidden; | 144 overflow: hidden; |
| 142 transition: background-color 0.1s ease, opacity 0.1s ease; | 145 transition: background-color 0.1s ease, opacity 0.1s ease; |
| 143 } | 146 } |
| 144 | 147 |
| 145 .device-mode-resizer:hover { | 148 .device-mode-resizer:hover { |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 position: absolute; | 256 position: absolute; |
| 254 left: 0; | 257 left: 0; |
| 255 right: 0; | 258 right: 0; |
| 256 width: 0; | 259 width: 0; |
| 257 height: 0; | 260 height: 0; |
| 258 display: flex; | 261 display: flex; |
| 259 background-color: #fcfcfc; | 262 background-color: #fcfcfc; |
| 260 } | 263 } |
| 261 | 264 |
| 262 .device-mode-ruler { | 265 .device-mode-ruler { |
| 263 pointer-events: none; | 266 position: absolute; |
| 264 position: relative; | 267 overflow: visible; |
| 265 } | 268 } |
| 266 | 269 |
| 267 .device-mode-ruler-top { | 270 .device-mode-ruler-top { |
| 268 flex: 0 0 20px; | 271 height: 20px; |
| 272 right: 0; |
| 269 } | 273 } |
| 270 | 274 |
| 271 .device-mode-ruler-left { | 275 .device-mode-ruler-left { |
| 276 width: 20px; |
| 277 bottom: 0; |
| 278 } |
| 279 |
| 280 .device-mode-ruler-content { |
| 281 pointer-events: none; |
| 272 position: absolute; | 282 position: absolute; |
| 273 left: 0; | 283 left: -20px; |
| 274 width: 20px; | 284 top: -20px; |
| 285 } |
| 286 |
| 287 .device-mode-ruler-top .device-mode-ruler-content { |
| 288 border-top: 1px solid transparent; |
| 289 right: 0; |
| 290 bottom: 20px; |
| 291 background-color: hsla(0, 0%, 98%, 0.9); |
| 292 } |
| 293 |
| 294 .device-mode-content-clip.device-mode-outline-visible .device-mode-ruler-top .de
vice-mode-ruler-content { |
| 295 border-top: 1px solid hsl(0, 0%, 50%); |
| 296 } |
| 297 |
| 298 .device-mode-ruler-left .device-mode-ruler-content { |
| 299 border-left: 1px solid transparent; |
| 300 border-top: 1px solid transparent; |
| 301 right: 20px; |
| 302 bottom: 0; |
| 303 } |
| 304 |
| 305 .device-mode-content-clip.device-mode-outline-visible .device-mode-ruler-left .d
evice-mode-ruler-content { |
| 306 border-left: 1px solid hsl(0, 0%, 50%); |
| 307 border-top: 1px solid hsl(0, 0%, 50%); |
| 308 } |
| 309 |
| 310 .device-mode-ruler-inner { |
| 311 position: absolute; |
| 312 } |
| 313 |
| 314 .device-mode-ruler-top .device-mode-ruler-inner { |
| 275 top: 0; | 315 top: 0; |
| 276 bottom: 0; | 316 bottom: 0; |
| 277 transform: translateX(-20px); | 317 left: 20px; |
| 318 right: 0; |
| 319 border-bottom: 1px solid hsl(0, 0%, 50%); |
| 320 } |
| 321 |
| 322 .device-mode-ruler-left .device-mode-ruler-inner { |
| 323 left: 0; |
| 324 right: 0; |
| 325 top: 19px; |
| 326 bottom: 0; |
| 327 border-right: 1px solid hsl(0, 0%, 50%); |
| 328 background-color: hsla(0, 0%, 98%, 0.9); |
| 278 } | 329 } |
| 279 | 330 |
| 280 .device-mode-ruler-marker { | 331 .device-mode-ruler-marker { |
| 281 position: absolute; | 332 position: absolute; |
| 282 } | 333 } |
| 283 | 334 |
| 284 .device-mode-ruler-top .device-mode-ruler-marker { | 335 .device-mode-ruler-top .device-mode-ruler-marker { |
| 285 width: 0; | 336 width: 0; |
| 286 height: 5px; | 337 height: 5px; |
| 287 bottom: 0; | 338 bottom: 0; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 .device-mode-ruler-top .device-mode-ruler-text { | 378 .device-mode-ruler-top .device-mode-ruler-text { |
| 328 left: 2px; | 379 left: 2px; |
| 329 top: -2px; | 380 top: -2px; |
| 330 } | 381 } |
| 331 | 382 |
| 332 .device-mode-ruler-left .device-mode-ruler-text { | 383 .device-mode-ruler-left .device-mode-ruler-text { |
| 333 left: -4px; | 384 left: -4px; |
| 334 top: -15px; | 385 top: -15px; |
| 335 transform: rotate(270deg); | 386 transform: rotate(270deg); |
| 336 } | 387 } |
| OLD | NEW |