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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/emulation/deviceModeView.css
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/deviceModeView.css b/third_party/WebKit/Source/devtools/front_end/emulation/deviceModeView.css
index 9613727c2dff631f5c6dcb631bbe93819319ba79..5bef1f5645d094dbc0a71af0b33215138703c6b2 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/deviceModeView.css
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/deviceModeView.css
@@ -129,6 +129,14 @@
height: 100%;
}
+.device-mode-outline-image {
+ visibility: hidden;
+}
+
+.device-mode-outline-image.device-frame-visible {
+ visibility: visible;
+}
+
.device-mode-outline-image.device-frame-visible + .device-mode-screen-area {
box-shadow: none;
}
@@ -334,3 +342,13 @@
top: -15px;
transform: rotate(270deg);
}
+
+@media (max-width : 520px) {
+ .device-mode-outline-image.device-frame-visible {
+ visibility: hidden;
+ }
+
+ .device-mode-outline-image.device-frame-visible + .device-mode-screen-area {
+ box-shadow: hsl(240, 3%, 84%) 0 0 0 0.5px, hsla(0, 0%, 80%, 0.4) 0 0 20px;
+ }
+}
« 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