OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The Chromium Authors. All rights reserved. | 2 * Copyright 2014 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 .responsive-design { | 7 .responsive-design { |
8 overflow: hidden; | 8 overflow: hidden; |
9 position: relative; | 9 position: relative; |
10 } | 10 } |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 .responsive-design-section { | 71 .responsive-design-section { |
72 display: flex; | 72 display: flex; |
73 flex: none; | 73 flex: none; |
74 flex-direction: column; | 74 flex-direction: column; |
75 white-space: nowrap; | 75 white-space: nowrap; |
76 align-items: stretch; | 76 align-items: stretch; |
77 justify-content: flex-start; | 77 justify-content: flex-start; |
78 padding: 0 10px; | 78 padding: 0 10px; |
79 } | 79 } |
80 | 80 |
81 .responsive-design-section .status-bar-item { | |
82 margin: 2px 0; | |
83 } | |
84 | |
85 .responsive-design-section .status-bar-item .glyph { | |
86 background-color: white; | |
87 } | |
88 | |
89 .responsive-design-section .status-bar-item .glyph.shadow { | 81 .responsive-design-section .status-bar-item .glyph.shadow { |
90 background-color: black; | 82 background-color: black !important; |
91 } | 83 } |
92 | 84 |
93 | 85 |
94 .responsive-design-section-separator { | 86 .responsive-design-section-separator { |
95 height: 2px; | 87 height: 2px; |
96 } | 88 } |
97 | 89 |
98 .responsive-design-suite { | 90 .responsive-design-suite { |
99 display: flex; | 91 display: flex; |
100 flex-direction: row; | 92 flex-direction: row; |
101 padding-top: 2px; | 93 padding-top: 2px; |
102 padding-bottom: 2px; | 94 padding-bottom: 2px; |
| 95 color: rgb(180, 180, 180); |
| 96 } |
| 97 |
| 98 .responsive-design-suite.responsive-design-suite-top { |
| 99 color: rgb(255, 255, 255); |
103 } | 100 } |
104 | 101 |
105 .responsive-design-suite-separator { | 102 .responsive-design-suite-separator { |
106 flex: none; | 103 flex: none; |
107 width: 1px; | 104 width: 1px; |
108 background-color: rgb(43, 43, 43); | 105 background-color: rgb(43, 43, 43); |
109 margin: 0 3px; | 106 margin: 0 3px; |
110 } | 107 } |
111 | 108 |
112 .responsive-design-suite > div:not(.responsive-design-suite-separator) { | 109 .responsive-design-suite > div:not(.responsive-design-suite-separator) { |
113 flex: none; | 110 flex: none; |
114 display: flex; | 111 display: flex; |
115 flex-direction: row; | 112 flex-direction: row; |
116 align-items: center; | 113 align-items: center; |
117 justify-content: space-between; | 114 justify-content: space-between; |
118 height: 22px; | 115 height: 23px; |
119 overflow: hidden; | 116 overflow: hidden; |
120 } | 117 } |
121 | 118 |
122 /* Toolbar controls */ | 119 /* Toolbar controls */ |
123 | 120 |
124 .responsive-design-toolbar fieldset, | 121 .responsive-design-toolbar fieldset, |
125 .responsive-design-toolbar p { | 122 .responsive-design-toolbar p { |
126 margin: 0; | 123 margin: 0; |
127 border: 0; | 124 border: 0; |
128 padding: 0; | 125 padding: 0; |
129 display: inline-block; | 126 display: inline-block; |
130 } | 127 } |
131 | 128 |
132 .responsive-design-toolbar .field-error-message { | 129 .responsive-design-toolbar .field-error-message { |
133 display: none; | 130 display: none; |
134 } | 131 } |
135 | 132 |
136 .responsive-design-toolbar label { | 133 .responsive-design-toolbar label { |
137 margin-right: 5px; | 134 margin-right: 5px; |
138 cursor: default !important; | 135 cursor: default !important; |
139 } | 136 } |
140 | 137 |
141 .responsive-design-toolbar input[type='text'] { | 138 .responsive-design-toolbar input[type='text'] { |
142 text-align: left; | 139 text-align: left; |
143 background-color: transparent; | 140 background-color: transparent; |
144 border: none; | 141 border: none; |
145 margin: 0; | 142 margin: 0 1px 1px 0; |
146 margin-bottom: 4px; | |
147 padding: 3px 2px; | 143 padding: 3px 2px; |
148 } | 144 } |
149 | 145 |
150 .responsive-design-toolbar input[type='text'].numeric { | 146 .responsive-design-toolbar input[type='text'].numeric { |
151 text-align: center; | 147 text-align: center; |
152 } | 148 } |
153 | 149 |
154 .responsive-design-toolbar input:focus::-webkit-input-placeholder { | 150 .responsive-design-toolbar input:focus::-webkit-input-placeholder { |
155 color: transparent !important; | 151 color: transparent !important; |
156 } | 152 } |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 position: relative; | 197 position: relative; |
202 top: 1px; | 198 top: 1px; |
203 } | 199 } |
204 | 200 |
205 .responsive-design-toolbar input:focus { | 201 .responsive-design-toolbar input:focus { |
206 background-color: rgb(81, 81, 81); | 202 background-color: rgb(81, 81, 81); |
207 } | 203 } |
208 | 204 |
209 /* Toolbar icons */ | 205 /* Toolbar icons */ |
210 | 206 |
211 .responsive-design-icon { | 207 .responsive-design-icon.status-bar-item > .glyph { |
212 background-color: rgb(180, 180, 180); | 208 background-color: rgb(180, 180, 180); |
213 -webkit-mask-image: url(Images/responsiveDesign.png); | 209 -webkit-mask-image: url(Images/responsiveDesign.png); |
214 -webkit-mask-size: 64px 16px; | 210 -webkit-mask-size: 64px 16px; |
| 211 } |
| 212 |
| 213 .responsive-design-icon.status-bar-item { |
215 display: inline-block; | 214 display: inline-block; |
216 width: 16px; | 215 width: 16px; |
217 height: 16px; | 216 height: 16px; |
218 position: relative; | 217 position: relative; |
219 top: 3px; | 218 top: 4px; |
| 219 } |
| 220 |
| 221 .responsive-design-icon.status-bar-item:disabled .glyph { |
| 222 opacity: 1 !important; |
220 } | 223 } |
221 | 224 |
222 @media (-webkit-min-device-pixel-ratio: 1.5) { | 225 @media (-webkit-min-device-pixel-ratio: 1.5) { |
223 .responsive-design-icon { | 226 .responsive-design-icon.status-bar-item > .glyph { |
224 -webkit-mask-image: url(Images/responsiveDesign_2x.png); | 227 -webkit-mask-image: url(Images/responsiveDesign_2x.png); |
225 } | 228 } |
226 } /* media */ | 229 } /* media */ |
227 | 230 |
228 .responsive-design-toolbar input[type='checkbox']:after { | 231 .responsive-design-toolbar input[type='checkbox']:after { |
229 -webkit-mask-image: url(Images/statusbarButtonGlyphs.png); | 232 -webkit-mask-image: url(Images/statusbarButtonGlyphs.png); |
230 -webkit-mask-size: 320px 144px; | 233 -webkit-mask-size: 320px 144px; |
231 -webkit-mask-position: -128px -110px; | 234 -webkit-mask-position: -128px -110px; |
232 } | 235 } |
233 | 236 |
234 @media (-webkit-min-device-pixel-ratio: 1.5) { | 237 @media (-webkit-min-device-pixel-ratio: 1.5) { |
235 .responsive-design-toolbar input[type='checkbox']:after { | 238 .responsive-design-toolbar input[type='checkbox']:after { |
236 -webkit-mask-image: url(Images/statusbarButtonGlyphs_2x.png); | 239 -webkit-mask-image: url(Images/statusbarButtonGlyphs_2x.png); |
237 } | 240 } |
238 } /* media */ | 241 } /* media */ |
239 | 242 |
240 .responsive-design-icon-resolution { | 243 .responsive-design-icon-resolution.status-bar-item > .glyph { |
241 -webkit-mask-position: 0 0; | 244 -webkit-mask-position: 0 0; |
242 } | 245 } |
243 | 246 |
244 .responsive-design-icon-dpr { | 247 .responsive-design-icon-dpr.status-bar-item > .glyph { |
245 -webkit-mask-position: -16px 0; | 248 -webkit-mask-position: -16px 0; |
246 } | 249 } |
247 | 250 |
248 .responsive-design-icon-swap { | 251 .responsive-design-icon-swap.status-bar-item > .glyph { |
249 opacity: 0.9; | 252 background-color: rgb(255, 170, 0); |
250 background-color: rgb(255, 156, 0); | |
251 -webkit-mask-position: -32px 0; | 253 -webkit-mask-position: -32px 0; |
252 -webkit-appearance: none; | 254 -webkit-appearance: none; |
253 padding: 0; | 255 padding: 0; |
254 border: 0; | 256 border: 0; |
255 } | 257 } |
256 | 258 |
257 .responsive-design-icon-swap:hover { | 259 .responsive-design-icon-swap.status-bar-item:hover > .glyph { |
258 opacity: 1; | 260 background-color: rgb(255, 180, 0); |
259 } | 261 } |
260 | 262 |
261 .responsive-design-icon-swap:active { | 263 .responsive-design-icon-swap:active { |
262 opacity: 0.8; | 264 opacity: 0.8; |
263 } | 265 } |
264 | 266 |
265 /* Buttons section */ | 267 /* Buttons section */ |
266 | 268 |
267 .responsive-design-section-buttons { | 269 .responsive-design-section-buttons { |
268 padding: 0; | 270 padding: 0; |
269 } | 271 } |
270 | 272 |
| 273 .responsive-design-section-buttons .status-bar-item { |
| 274 margin: 2px 0; |
| 275 } |
| 276 |
| 277 .responsive-design-section-buttons .status-bar-item .glyph { |
| 278 background-color: white; |
| 279 } |
| 280 |
271 .responsive-design-more-button { | 281 .responsive-design-more-button { |
272 -webkit-appearance: none; | 282 -webkit-appearance: none; |
273 border: 0; | 283 border: 0; |
274 background-color: transparent; | 284 background-color: transparent; |
275 color: white; | 285 color: white; |
276 opacity: 0.8; | 286 opacity: 0.8; |
277 font-size: 16px; | 287 font-size: 16px; |
| 288 text-shadow: black 1px 1px; |
278 } | 289 } |
279 | 290 |
280 .responsive-design-more-button:hover { | 291 .responsive-design-more-button:hover { |
281 opacity: 1; | 292 opacity: 1; |
282 } | 293 } |
283 | 294 |
284 .responsive-design-more-button:active { | 295 .responsive-design-more-button:active { |
285 opacity: 0.8; | 296 opacity: 0.8; |
286 } | 297 } |
287 | 298 |
288 /* Device section */ | 299 /* Device section */ |
289 | 300 |
290 .responsive-design-section-device .responsive-design-section-separator { | 301 .responsive-design-section-device .responsive-design-section-separator { |
291 background: linear-gradient(to bottom, rgb(255, 186, 68), rgb(255, 119, 0)); | 302 background: linear-gradient(to bottom, rgb(255, 186, 68), rgb(255, 119, 0)); |
292 } | 303 } |
293 | 304 |
294 .responsive-design-section-device select { | 305 .responsive-design-section-device select { |
295 width: 220px; | 306 width: 180px; |
296 } | 307 } |
297 | 308 |
298 .responsive-design-section-device input[type='text'], | 309 .responsive-design-section-device input[type='text'], |
299 .responsive-design-section-device input[type='text']::-webkit-input-placeholder, | 310 .responsive-design-section-device input[type='text']::-webkit-input-placeholder, |
300 .responsive-design-section-device select { | 311 .responsive-design-section-device select { |
301 color: rgb(255, 156, 0); | 312 color: rgb(255, 156, 0); |
302 } | 313 } |
303 | 314 |
304 .responsive-design-section-device input[type='checkbox']:checked:after { | 315 .responsive-design-section-device input[type='checkbox']:checked:after { |
305 background: rgb(255, 156, 0); | 316 background: rgb(255, 156, 0); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 padding: 2px 4px; | 348 padding: 2px 4px; |
338 white-space: nowrap; | 349 white-space: nowrap; |
339 display: flex; | 350 display: flex; |
340 align-items: center; | 351 align-items: center; |
341 border-bottom: 1px solid rgb(171, 171, 171); | 352 border-bottom: 1px solid rgb(171, 171, 171); |
342 } | 353 } |
343 | 354 |
344 .responsive-design-warning > span { | 355 .responsive-design-warning > span { |
345 flex: auto; | 356 flex: auto; |
346 padding-left: 3px; | 357 padding-left: 3px; |
| 358 overflow: hidden; |
347 } | 359 } |
| 360 |
| 361 .responsive-design-warning > div { |
| 362 flex: none; |
| 363 } |
OLD | NEW |