Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame^] | 1 | /* |
| 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 |
| 4 | * found in the LICENSE file. |
| 5 | */ |
| 6 | |
| 7 | :host { |
| 8 | overflow: hidden; |
| 9 | align-items: stretch; |
| 10 | flex: auto; |
| 11 | background-color: hsl(0, 0%, 98%); |
| 12 | } |
| 13 | |
| 14 | .device-mode-toolbar { |
| 15 | flex: none; |
| 16 | background-color: hsl(0, 0%, 98%); |
| 17 | border-bottom: 1px solid #ccc; |
| 18 | display: flex; |
| 19 | flex-direction: row; |
| 20 | align-items: stretch; |
| 21 | } |
| 22 | |
| 23 | .device-mode-toolbar .toolbar { |
| 24 | overflow: hidden; |
| 25 | flex: 0 100000 auto; |
| 26 | padding: 0 5px; |
| 27 | } |
| 28 | |
| 29 | .device-mode-toolbar .toolbar.device-mode-toolbar-fixed-size { |
| 30 | flex: 0 1 auto; |
| 31 | } |
| 32 | |
| 33 | .device-mode-toolbar-options.toolbar { |
| 34 | position: sticky; |
| 35 | right: 0; |
| 36 | flex: none; |
| 37 | } |
| 38 | |
| 39 | .device-mode-toolbar-spacer { |
| 40 | flex: 1 1 0; |
| 41 | display: flex; |
| 42 | flex-direction: row; |
| 43 | overflow: hidden; |
| 44 | } |
| 45 | |
| 46 | .device-mode-content-clip { |
| 47 | overflow: hidden; |
| 48 | flex: auto; |
| 49 | } |
| 50 | |
| 51 | .device-mode-media-container { |
| 52 | flex: none; |
| 53 | overflow: hidden; |
| 54 | box-shadow: inset 0 -1px #ccc; |
| 55 | } |
| 56 | |
| 57 | .device-mode-content-clip:not(.device-mode-outline-visible) .device-mode-media-container { |
| 58 | margin-bottom: 20px; |
| 59 | } |
| 60 | |
| 61 | .device-mode-presets-container { |
| 62 | flex: 0 0 20px; |
| 63 | display: flex; |
| 64 | } |
| 65 | |
| 66 | .device-mode-presets-container-inner { |
| 67 | flex: auto; |
| 68 | justify-content: center; |
| 69 | position: relative; |
| 70 | background-color: hsl(0, 0%, 90%); |
| 71 | border: 2px solid hsl(0, 0%, 98%); |
| 72 | border-bottom: 2px solid hsl(0, 0%, 98%); |
| 73 | } |
| 74 | |
| 75 | .device-mode-presets-container:hover { |
| 76 | transition: opacity 0.1s; |
| 77 | transition-delay: 50ms; |
| 78 | opacity: 1; |
| 79 | } |
| 80 | |
| 81 | .device-mode-preset-bar-outer { |
| 82 | pointer-events: none; |
| 83 | display: flex; |
| 84 | justify-content: center; |
| 85 | } |
| 86 | |
| 87 | .device-mode-preset-bar { |
| 88 | border-left: 2px solid hsl(0, 0%, 98%); |
| 89 | border-right: 2px solid hsl(0, 0%, 98%); |
| 90 | pointer-events: auto; |
| 91 | text-align: center; |
| 92 | flex: none; |
| 93 | cursor: pointer; |
| 94 | color: #5A5A5A; |
| 95 | display: flex; |
| 96 | align-items: center; |
| 97 | justify-content: center; |
| 98 | white-space: nowrap; |
| 99 | margin-bottom: 1px; |
| 100 | } |
| 101 | |
| 102 | .device-mode-preset-bar:hover { |
| 103 | transition: background-color 0.1s; |
| 104 | transition-delay: 50ms; |
| 105 | background-color: #d6d6d6; |
| 106 | } |
| 107 | |
| 108 | .device-mode-preset-bar > span { |
| 109 | visibility: hidden; |
| 110 | } |
| 111 | |
| 112 | .device-mode-preset-bar:hover > span { |
| 113 | transition: visibility 0.1s; |
| 114 | transition-delay: 50ms; |
| 115 | visibility: visible; |
| 116 | } |
| 117 | |
| 118 | .device-mode-content-area { |
| 119 | flex: auto; |
| 120 | position: relative; |
| 121 | margin: 0; |
| 122 | } |
| 123 | |
| 124 | .device-mode-screen-area { |
| 125 | position: absolute; |
| 126 | left: 0; |
| 127 | right: 0; |
| 128 | width: 0; |
| 129 | height: 0; |
| 130 | background-color: #171717; |
| 131 | } |
| 132 | |
| 133 | .device-mode-content-clip:not(.device-mode-outline-visible) .device-mode-screen-area { |
| 134 | box-shadow: hsl(240, 3%, 84%) 0 0 0 0.5px, hsla(0, 0%, 80%, 0.4) 0 0 20px; |
| 135 | } |
| 136 | |
| 137 | .device-mode-screen-image { |
| 138 | position: absolute; |
| 139 | left: 0; |
| 140 | top: 0; |
| 141 | width: 100%; |
| 142 | height: 100%; |
| 143 | } |
| 144 | |
| 145 | .device-mode-resizer { |
| 146 | position: absolute; |
| 147 | display: flex; |
| 148 | align-items: center; |
| 149 | justify-content: center; |
| 150 | overflow: hidden; |
| 151 | transition: background-color 0.1s ease, opacity 0.1s ease; |
| 152 | } |
| 153 | |
| 154 | .device-mode-resizer:hover { |
| 155 | background-color: hsla(0, 0%, 0%, 0.1); |
| 156 | opacity: 1; |
| 157 | } |
| 158 | |
| 159 | .device-mode-resizer > div { |
| 160 | pointer-events: none; |
| 161 | } |
| 162 | |
| 163 | .device-mode-right-resizer { |
| 164 | top: 0; |
| 165 | bottom: -1px; |
| 166 | right: -20px; |
| 167 | width: 20px; |
| 168 | } |
| 169 | |
| 170 | .device-mode-left-resizer { |
| 171 | top: 0; |
| 172 | bottom: -1px; |
| 173 | left: -20px; |
| 174 | width: 20px; |
| 175 | opacity: 0; |
| 176 | } |
| 177 | |
| 178 | .device-mode-bottom-resizer { |
| 179 | left: 0; |
| 180 | right: -1px; |
| 181 | bottom: -20px; |
| 182 | height: 20px; |
| 183 | } |
| 184 | |
| 185 | .device-mode-bottom-right-resizer { |
| 186 | left: 0; |
| 187 | top: 0; |
| 188 | right: -20px; |
| 189 | bottom: -20px; |
| 190 | background-color: hsla(0, 0%, 0%, 0.02); |
| 191 | } |
| 192 | |
| 193 | .device-mode-bottom-left-resizer { |
| 194 | left: -20px; |
| 195 | top: 0; |
| 196 | right: 0; |
| 197 | bottom: -20px; |
| 198 | opacity: 0; |
| 199 | } |
| 200 | |
| 201 | .device-mode-right-resizer > div { |
| 202 | content: url(Images/resizeHorizontal.png); |
| 203 | width: 6px; |
| 204 | height: 26px; |
| 205 | } |
| 206 | |
| 207 | .device-mode-left-resizer > div { |
| 208 | content: url(Images/resizeHorizontal.png); |
| 209 | width: 6px; |
| 210 | height: 26px; |
| 211 | } |
| 212 | |
| 213 | .device-mode-bottom-resizer > div { |
| 214 | content: url(Images/resizeVertical.png); |
| 215 | margin-bottom: -2px; |
| 216 | width: 26px; |
| 217 | height: 6px; |
| 218 | } |
| 219 | |
| 220 | .device-mode-bottom-right-resizer > div { |
| 221 | position: absolute; |
| 222 | bottom: 3px; |
| 223 | right: 3px; |
| 224 | width: 13px; |
| 225 | height: 13px; |
| 226 | content: url(Images/resizeDiagonal.png); |
| 227 | } |
| 228 | |
| 229 | .device-mode-bottom-left-resizer > div { |
| 230 | position: absolute; |
| 231 | bottom: 3px; |
| 232 | left: 3px; |
| 233 | width: 13px; |
| 234 | height: 13px; |
| 235 | content: url(Images/resizeDiagonal.png); |
| 236 | transform: rotate(90deg); |
| 237 | } |
| 238 | |
| 239 | @media (-webkit-min-device-pixel-ratio: 1.1) { |
| 240 | .device-mode-right-resizer > div { |
| 241 | content: url(Images/resizeHorizontal_2x.png); |
| 242 | } |
| 243 | |
| 244 | .device-mode-left-resizer > div { |
| 245 | content: url(Images/resizeHorizontal_2x.png); |
| 246 | } |
| 247 | |
| 248 | .device-mode-bottom-resizer > div { |
| 249 | content: url(Images/resizeVertical_2x.png); |
| 250 | } |
| 251 | |
| 252 | .device-mode-bottom-right-resizer > div { |
| 253 | content: url(Images/resizeDiagonal_2x.png); |
| 254 | } |
| 255 | |
| 256 | .device-mode-bottom-left-resizer > div { |
| 257 | content: url(Images/resizeDiagonal_2x.png); |
| 258 | } |
| 259 | } /* media */ |
| 260 | |
| 261 | .device-mode-page-area { |
| 262 | position: absolute; |
| 263 | left: 0; |
| 264 | right: 0; |
| 265 | width: 0; |
| 266 | height: 0; |
| 267 | display: flex; |
| 268 | background-color: #fcfcfc; |
| 269 | } |
| 270 | |
| 271 | .device-mode-ruler { |
| 272 | position: absolute; |
| 273 | overflow: visible; |
| 274 | } |
| 275 | |
| 276 | .device-mode-ruler-top { |
| 277 | height: 20px; |
| 278 | right: 0; |
| 279 | } |
| 280 | |
| 281 | .device-mode-ruler-left { |
| 282 | width: 20px; |
| 283 | bottom: 0; |
| 284 | } |
| 285 | |
| 286 | .device-mode-ruler-content { |
| 287 | pointer-events: none; |
| 288 | position: absolute; |
| 289 | left: -20px; |
| 290 | top: -20px; |
| 291 | } |
| 292 | |
| 293 | .device-mode-ruler-top .device-mode-ruler-content { |
| 294 | border-top: 1px solid transparent; |
| 295 | right: 0; |
| 296 | bottom: 20px; |
| 297 | background-color: hsla(0, 0%, 98%, 0.9); |
| 298 | } |
| 299 | |
| 300 | .device-mode-content-clip.device-mode-outline-visible .device-mode-ruler-top .device-mode-ruler-content { |
| 301 | border-top: 1px solid hsl(0, 0%, 50%); |
| 302 | } |
| 303 | |
| 304 | .device-mode-ruler-left .device-mode-ruler-content { |
| 305 | border-left: 1px solid transparent; |
| 306 | border-top: 1px solid transparent; |
| 307 | right: 20px; |
| 308 | bottom: 0; |
| 309 | } |
| 310 | |
| 311 | .device-mode-content-clip.device-mode-outline-visible .device-mode-ruler-left .device-mode-ruler-content { |
| 312 | border-left: 1px solid hsl(0, 0%, 50%); |
| 313 | border-top: 1px solid hsl(0, 0%, 50%); |
| 314 | } |
| 315 | |
| 316 | .device-mode-ruler-inner { |
| 317 | position: absolute; |
| 318 | } |
| 319 | |
| 320 | .device-mode-ruler-top .device-mode-ruler-inner { |
| 321 | top: 0; |
| 322 | bottom: 0; |
| 323 | left: 20px; |
| 324 | right: 0; |
| 325 | border-bottom: 1px solid hsl(0, 0%, 50%); |
| 326 | } |
| 327 | |
| 328 | .device-mode-ruler-left .device-mode-ruler-inner { |
| 329 | left: 0; |
| 330 | right: 0; |
| 331 | top: 19px; |
| 332 | bottom: 0; |
| 333 | border-right: 1px solid hsl(0, 0%, 50%); |
| 334 | background-color: hsla(0, 0%, 98%, 0.9); |
| 335 | } |
| 336 | |
| 337 | .device-mode-ruler-marker { |
| 338 | position: absolute; |
| 339 | } |
| 340 | |
| 341 | .device-mode-ruler-top .device-mode-ruler-marker { |
| 342 | width: 0; |
| 343 | height: 5px; |
| 344 | bottom: 0; |
| 345 | border-right: 1px solid hsl(0, 0%, 50%); |
| 346 | margin-right: -1px; |
| 347 | } |
| 348 | |
| 349 | .device-mode-ruler-top .device-mode-ruler-marker.device-mode-ruler-marker-medium { |
| 350 | height: 10px; |
| 351 | } |
| 352 | |
| 353 | .device-mode-ruler-top .device-mode-ruler-marker.device-mode-ruler-marker-large { |
| 354 | height: 15px; |
| 355 | } |
| 356 | |
| 357 | .device-mode-ruler-left .device-mode-ruler-marker { |
| 358 | height: 0; |
| 359 | width: 5px; |
| 360 | right: 0; |
| 361 | border-bottom: 1px solid hsl(0, 0%, 50%); |
| 362 | margin-bottom: -1px; |
| 363 | } |
| 364 | |
| 365 | .device-mode-ruler-left .device-mode-ruler-marker.device-mode-ruler-marker-medium { |
| 366 | width: 10px; |
| 367 | } |
| 368 | |
| 369 | .device-mode-ruler-left .device-mode-ruler-marker.device-mode-ruler-marker-large { |
| 370 | width: 15px; |
| 371 | } |
| 372 | |
| 373 | .device-mode-ruler-text { |
| 374 | color: hsl(0, 0%, 50%); |
| 375 | position: relative; |
| 376 | pointer-events: auto; |
| 377 | } |
| 378 | |
| 379 | .device-mode-ruler-text:hover { |
| 380 | color: hsl(0, 0%, 10%); |
| 381 | } |
| 382 | |
| 383 | .device-mode-ruler-top .device-mode-ruler-text { |
| 384 | left: 2px; |
| 385 | top: -2px; |
| 386 | } |
| 387 | |
| 388 | .device-mode-ruler-left .device-mode-ruler-text { |
| 389 | left: -4px; |
| 390 | top: -15px; |
| 391 | transform: rotate(270deg); |
| 392 | } |