| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 background-color: #fcfcfc; | 154 background-color: #fcfcfc; |
| 155 } | 155 } |
| 156 | 156 |
| 157 .device-mode-blueprint-container { | 157 .device-mode-blueprint-container { |
| 158 display: flex; | 158 display: flex; |
| 159 justify-content: center; | 159 justify-content: center; |
| 160 pointer-events: none; | 160 pointer-events: none; |
| 161 } | 161 } |
| 162 | 162 |
| 163 .device-mode-blueprint { | 163 .device-mode-blueprint { |
| 164 display: flex; | |
| 165 border-left: 1px dashed #dcdcdc; | |
| 166 border-right: 1px dashed #dcdcdc; | |
| 167 border-bottom: 1px dashed #dcdcdc; | |
| 168 flex-direction: column; | 164 flex-direction: column; |
| 169 justify-content: flex-end; | 165 justify-content: flex-end; |
| 170 text-align: end; | |
| 171 color: #aaa; | |
| 172 pointer-events: initial; | |
| 173 flex: none; | 166 flex: none; |
| 167 position: relative; |
| 168 pointer-events: auto; |
| 174 } | 169 } |
| 175 | 170 |
| 176 .device-mode-blueprint:hover { | 171 .device-mode-blueprint-border { |
| 172 position: absolute; |
| 173 left: 0; |
| 174 right: 0; |
| 175 top: 0; |
| 176 bottom: 0; |
| 177 display: flex; |
| 178 align-items: flex-end; |
| 179 justify-content: flex-end; |
| 180 color: #aaa; |
| 181 border: 1px solid #dcdcdc; |
| 182 margin-top: -1px; |
| 183 } |
| 184 |
| 185 .device-mode-blueprint-border:hover { |
| 177 border-color: #aaa; | 186 border-color: #aaa; |
| 178 } | 187 } |
| 179 | 188 |
| 180 .device-mode-blueprint > span { | 189 .device-mode-blueprint-border > span { |
| 181 transition: opacity 150ms; | 190 transition: opacity 150ms; |
| 182 opacity: 0; | 191 opacity: 0; |
| 183 padding: 3px; | 192 padding: 3px; |
| 184 } | 193 } |
| 185 | 194 |
| 186 .device-mode-blueprint:hover > span { | 195 .device-mode-blueprint-border:hover > span { |
| 187 opacity: 1; | 196 opacity: 1; |
| 188 display: initial; | |
| 189 } | 197 } |
| 198 |
| 199 .device-mode-blueprint-inside { |
| 200 position: absolute; |
| 201 left: 20px; |
| 202 right: 20px; |
| 203 top: 20px; |
| 204 bottom: 20px; |
| 205 } |
| 206 |
| 207 .device-mode-ruler { |
| 208 pointer-events: none; |
| 209 position: relative; |
| 210 } |
| 211 |
| 212 .device-mode-ruler-top { |
| 213 flex: 0 0 20px; |
| 214 } |
| 215 |
| 216 .device-mode-ruler-left { |
| 217 position: absolute; |
| 218 left: 0; |
| 219 width: 20px; |
| 220 top: 0; |
| 221 bottom: 0; |
| 222 transform: translateX(-20px); |
| 223 } |
| 224 |
| 225 .device-mode-ruler-marker { |
| 226 position: absolute; |
| 227 } |
| 228 |
| 229 .device-mode-ruler-top .device-mode-ruler-marker { |
| 230 width: 0; |
| 231 height: 5px; |
| 232 bottom: 0; |
| 233 border-right: 1px solid hsl(0, 0%, 50%); |
| 234 margin-right: -1px; |
| 235 } |
| 236 |
| 237 .device-mode-ruler-top .device-mode-ruler-marker.device-mode-ruler-marker-medium
{ |
| 238 height: 10px; |
| 239 } |
| 240 |
| 241 .device-mode-ruler-top .device-mode-ruler-marker.device-mode-ruler-marker-large
{ |
| 242 height: 15px; |
| 243 } |
| 244 |
| 245 .device-mode-ruler-left .device-mode-ruler-marker { |
| 246 height: 0; |
| 247 width: 5px; |
| 248 right: 0; |
| 249 border-bottom: 1px solid hsl(0, 0%, 50%); |
| 250 margin-bottom: -1px; |
| 251 } |
| 252 |
| 253 .device-mode-ruler-left .device-mode-ruler-marker.device-mode-ruler-marker-mediu
m { |
| 254 width: 10px; |
| 255 } |
| 256 |
| 257 .device-mode-ruler-left .device-mode-ruler-marker.device-mode-ruler-marker-large
{ |
| 258 width: 15px; |
| 259 } |
| 260 |
| 261 .device-mode-ruler-text { |
| 262 font-size: 11px; |
| 263 color: hsl(0, 0%, 50%); |
| 264 position: relative; |
| 265 pointer-events: auto; |
| 266 } |
| 267 |
| 268 .device-mode-ruler-text:hover { |
| 269 color: hsl(0, 0%, 10%); |
| 270 } |
| 271 |
| 272 .device-mode-ruler-top .device-mode-ruler-text { |
| 273 left: 2px; |
| 274 top: -2px; |
| 275 } |
| 276 |
| 277 .device-mode-ruler-left .device-mode-ruler-text { |
| 278 left: -4px; |
| 279 top: -15px; |
| 280 transform: rotate(270deg); |
| 281 } |
| OLD | NEW |