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

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

Issue 1599603002: [DevTools] Device Mode toolbar updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 11 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;
11 background-color: hsl(0, 0%, 98%); 11 background-color: hsl(0, 0%, 98%);
12 } 12 }
13 13
14 .device-mode-toolbar { 14 .device-mode-toolbar {
15 flex: none; 15 flex: none;
16 background-color: hsl(0, 0%, 98%); 16 background-color: hsl(0, 0%, 98%);
17 border-bottom: 1px solid #ccc; 17 border-bottom: 1px solid #ccc;
18 display: flex; 18 display: flex;
19 flex-direction: row; 19 flex-direction: row;
20 align-items: stretch; 20 align-items: stretch;
21 padding: 0 4px;
22 } 21 }
23 22
24 .device-mode-toolbar .toolbar { 23 .device-mode-toolbar .toolbar {
25 padding: 0;
26 overflow: hidden; 24 overflow: hidden;
27 flex: auto; 25 flex: none;
28 } 26 padding: 0 5px;
29
30 .device-mode-toolbar-left {
31 flex: 0 1000 155px;
32 min-width: 93px;
33 }
34
35 .device-mode-toolbar-right {
36 flex: 0 1000 155px;
37 min-width: 40px;
38 display: flex;
39 }
40
41 .device-mode-toolbar-middle-container {
42 flex: 1 1 160px;
43 position: relative;
44 }
45
46 .device-mode-toolbar-middle {
47 display: flex;
48 justify-content: flex-start;
49 overflow: hidden;
50 }
51
52 .device-mode-toolbar-middle .toolbar {
53 flex: 0 1 auto;
54 } 27 }
55 28
56 .device-mode-toolbar-spacer { 29 .device-mode-toolbar-spacer {
57 flex: auto; 30 flex: 1 1 0;
31 display: flex;
32 flex-direction: row;
58 } 33 }
59 34
60 .device-mode-content-clip { 35 .device-mode-content-clip {
61 overflow: hidden; 36 overflow: hidden;
62 flex: auto; 37 flex: auto;
63 } 38 }
64 39
65 .device-mode-media-container { 40 .device-mode-media-container {
66 flex: none; 41 flex: none;
67 overflow: hidden; 42 overflow: hidden;
68 box-shadow: inset 0 -1px #ccc; 43 box-shadow: inset 0 -1px #ccc;
69 } 44 }
70 45
46 .device-mode-content-clip:not(.device-mode-rulers-visible) .device-mode-media-co ntainer {
47 margin-bottom: 20px;
48 }
49
71 .device-mode-presets-container { 50 .device-mode-presets-container {
72 flex: 0 0 20px; 51 flex: 0 0 20px;
73 display: flex; 52 display: flex;
74 } 53 }
75 54
76 .device-mode-presets-container-inner { 55 .device-mode-presets-container-inner {
77 flex: auto; 56 flex: auto;
78 background-color: red;
79 justify-content: center; 57 justify-content: center;
80 position: relative; 58 position: relative;
81 background-color: hsl(0, 0%, 90%); 59 background-color: hsl(0, 0%, 90%);
82 +} 60 border: 2px solid hsl(0, 0%, 98%);
61 border-bottom: 2px solid hsl(0, 0%, 98%);
62 }
83 63
84 .device-mode-presets-container:hover { 64 .device-mode-presets-container:hover {
85 transition: opacity 0.1s; 65 transition: opacity 0.1s;
86 transition-delay: 50ms; 66 transition-delay: 50ms;
87 opacity: 1; 67 opacity: 1;
88 } 68 }
89 69
90 .device-mode-preset-bar-outer { 70 .device-mode-preset-bar-outer {
91 pointer-events: none; 71 pointer-events: none;
92 display: flex; 72 display: flex;
93 justify-content: center; 73 justify-content: center;
94 } 74 }
95 75
96 .device-mode-preset-bar { 76 .device-mode-preset-bar {
97 border: 2px solid hsl(0, 0%, 98%); 77 border-left: 2px solid hsl(0, 0%, 98%);
78 border-right: 2px solid hsl(0, 0%, 98%);
98 pointer-events: auto; 79 pointer-events: auto;
99 text-align: center; 80 text-align: center;
100 flex: none; 81 flex: none;
101 cursor: pointer; 82 cursor: pointer;
102 color: #333; 83 color: #5A5A5A;
103 display: flex; 84 display: flex;
104 align-items: center; 85 align-items: center;
105 justify-content: center; 86 justify-content: center;
106 white-space: nowrap; 87 white-space: nowrap;
88 margin-bottom: 1px;
107 } 89 }
108 90
109 .device-mode-preset-bar:hover { 91 .device-mode-preset-bar:hover {
110 transition: background-color 0.1s; 92 transition: background-color 0.1s;
111 transition-delay: 50ms; 93 transition-delay: 50ms;
112 background-color: #d6d6d6; 94 background-color: #d6d6d6;
113 } 95 }
114 96
115 .device-mode-preset-bar > span { 97 .device-mode-preset-bar > span {
116 visibility: hidden; 98 visibility: hidden;
117 } 99 }
118 100
119 .device-mode-preset-bar:hover > span { 101 .device-mode-preset-bar:hover > span {
120 transition: visibility 0.1s; 102 transition: visibility 0.1s;
121 transition-delay: 50ms; 103 transition-delay: 50ms;
122 visibility: visible; 104 visibility: visible;
123 } 105 }
124 106
125 .device-mode-content-area { 107 .device-mode-content-area {
126 flex: auto; 108 flex: auto;
127 position: relative; 109 position: relative;
128 margin: 0; 110 margin: 0;
129 } 111 }
130 112
131 .device-mode-content-area:not(.device-mode-type-none):not(.device-mode-rulers-vi sible) {
132 margin-top: 20px;
133 }
134
135 .device-mode-screen-area { 113 .device-mode-screen-area {
136 position: absolute; 114 position: absolute;
137 left: 0; 115 left: 0;
138 right: 0; 116 right: 0;
139 width: 0; 117 width: 0;
140 height: 0; 118 height: 0;
141 background-color: #171717; 119 background-color: #171717;
142 box-shadow: hsl(0, 0%, 88%) 1px 1px 0 1px, hsla(0, 0%, 80%, 0.6) 0 0 16px; 120 box-shadow: hsl(0, 0%, 88%) 1px 1px 0 1px, hsla(0, 0%, 80%, 0.6) 0 0 16px;
143 } 121 }
144 122
(...skipping 16 matching lines...) Expand all
161 .device-mode-resizer:hover { 139 .device-mode-resizer:hover {
162 background-color: hsla(0, 0%, 0%, 0.1); 140 background-color: hsla(0, 0%, 0%, 0.1);
163 } 141 }
164 142
165 .device-mode-resizer > div { 143 .device-mode-resizer > div {
166 pointer-events: none; 144 pointer-events: none;
167 } 145 }
168 146
169 .device-mode-width-resizer { 147 .device-mode-width-resizer {
170 top: 0; 148 top: 0;
171 bottom: 0; 149 bottom: -2px;
172 right: -20px; 150 right: -20px;
173 width: 20px; 151 width: 20px;
174 } 152 }
175 153
176 .device-mode-height-resizer { 154 .device-mode-height-resizer {
177 left: 0; 155 left: 0;
178 right: 0; 156 right: -2px;
179 bottom: -20px; 157 bottom: -20px;
180 height: 20px; 158 height: 20px;
181 } 159 }
182 160
183 .device-mode-corner-resizer { 161 .device-mode-corner-resizer {
184 left: 0; 162 left: 0;
185 top: 0; 163 top: 0;
186 right: -20px; 164 right: -20px;
187 bottom: -20px; 165 bottom: -20px;
188 background-color: hsla(0, 0%, 0%, 0.02); 166 background-color: hsla(0, 0%, 0%, 0.02);
189 } 167 }
190 168
191 .device-mode-width-resizer > div { 169 .device-mode-width-resizer > div {
192 content: url(Images/resizeHorizontal.png); 170 content: url(Images/resizeHorizontal.png);
193 width: 6px; 171 width: 6px;
194 height: 26px; 172 height: 26px;
195 } 173 }
196 174
197 .device-mode-height-resizer > div { 175 .device-mode-height-resizer > div {
198 content: url(Images/resizeVertical.png); 176 content: url(Images/resizeVertical.png);
199 margin-bottom: -2px; 177 margin-bottom: -2px;
200 width: 26px; 178 width: 26px;
201 height: 6px; 179 height: 6px;
202 } 180 }
203 181
204 .device-mode-corner-resizer > div { 182 .device-mode-corner-resizer > div {
205 position: absolute; 183 position: absolute;
206 bottom: 5px; 184 bottom: 3px;
207 right: 5px; 185 right: 3px;
208 width: 13px; 186 width: 13px;
209 height: 13px; 187 height: 13px;
210 content: url(Images/resizeDiagonal.png); 188 content: url(Images/resizeDiagonal.png);
211 } 189 }
212 190
213 @media (-webkit-min-device-pixel-ratio: 1.5) { 191 @media (-webkit-min-device-pixel-ratio: 1.5) {
214 .device-mode-width-resizer > div { 192 .device-mode-width-resizer > div {
215 content: url(Images/resizeHorizontal_2x.png); 193 content: url(Images/resizeHorizontal_2x.png);
216 } 194 }
217 195
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 .device-mode-ruler-top .device-mode-ruler-text { 280 .device-mode-ruler-top .device-mode-ruler-text {
303 left: 2px; 281 left: 2px;
304 top: -2px; 282 top: -2px;
305 } 283 }
306 284
307 .device-mode-ruler-left .device-mode-ruler-text { 285 .device-mode-ruler-left .device-mode-ruler-text {
308 left: -4px; 286 left: -4px;
309 top: -15px; 287 top: -15px;
310 transform: rotate(270deg); 288 transform: rotate(270deg);
311 } 289 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698