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 } |
11 | 11 |
12 .responsive-design-reset-button { | |
13 position: absolute; | |
14 left: 0; | |
15 top: 0; | |
16 background-color: rgb(54, 54, 54); | |
17 } | |
18 | |
19 .responsive-design-reset-button:hover { | 12 .responsive-design-reset-button:hover { |
20 box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.5); | 13 box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.5); |
21 } | 14 } |
22 | 15 |
23 .responsive-design-sliders-container { | 16 .responsive-design-sliders-container { |
24 position: absolute; | 17 position: absolute; |
25 overflow: visible; | 18 overflow: visible; |
26 } | 19 } |
27 | 20 |
28 .responsive-design-slider-width, | 21 .responsive-design-slider-width, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 63 |
71 .responsive-design-resolution-width { | 64 .responsive-design-resolution-width { |
72 top: 0; | 65 top: 0; |
73 } | 66 } |
74 | 67 |
75 .responsive-design-resolution-height { | 68 .responsive-design-resolution-height { |
76 left: 0; | 69 left: 0; |
77 } | 70 } |
78 | 71 |
79 .responsive-design-toolbar { | 72 .responsive-design-toolbar { |
| 73 display: flex; |
80 flex: none; | 74 flex: none; |
81 background-color: rgb(64, 64, 64); | 75 background-color: rgb(64, 64, 64); |
82 color: rgb(180, 180, 180); | 76 color: rgb(180, 180, 180); |
| 77 overflow: hidden; |
| 78 border: 1px solid rgb(163, 163, 163); |
83 } | 79 } |
84 | 80 |
85 .responsive-design-toolbar fieldset, | 81 .responsive-design-toolbar fieldset, |
86 .responsive-design-toolbar p { | 82 .responsive-design-toolbar p { |
87 margin: 0; | 83 margin: 0; |
88 padding: 0; | 84 padding: 0; |
89 border: 0; | 85 border: 0; |
90 display: inline-block; | 86 display: inline-block; |
91 } | 87 } |
92 | 88 |
93 .responsive-design-toolbar .responsive-design-section { | 89 .responsive-design-toolbar .responsive-design-section { |
94 display: inline-flex; | 90 display: flex; |
| 91 flex: 1 0 auto; |
| 92 flex-direction: row; |
95 height: 24px; | 93 height: 24px; |
96 border: 1px solid rgb(163, 163, 163); | |
97 border-left: none; | |
98 margin-top: -1px; | 94 margin-top: -1px; |
99 white-space: nowrap; | 95 white-space: nowrap; |
100 align-items: center; | 96 align-items: center; |
| 97 justify-content: flex-start; |
101 padding-right: 3px; | 98 padding-right: 3px; |
102 } | 99 } |
103 | 100 |
| 101 .responsive-design-toolbar .responsive-design-section.vbox { |
| 102 height: auto; |
| 103 justify-content: flex-end; |
| 104 padding: 0; |
| 105 } |
| 106 |
| 107 .responsive-design-toolbar .responsive-design-composite-section { |
| 108 align-items: stretch; |
| 109 flex: none; |
| 110 } |
| 111 |
| 112 .responsive-design-toolbar .responsive-design-composite-section.vbox:not(.solid)
> :not(:nth-child(1)) { |
| 113 border-top: 1px solid rgb(163, 163, 163); |
| 114 } |
| 115 |
| 116 .responsive-design-toolbar .responsive-design-composite-section.hbox:not(.solid)
> :not(:nth-child(1)) { |
| 117 border-left: 1px solid rgb(163, 163, 163); |
| 118 } |
| 119 |
| 120 .responsive-design-toolbar > .responsive-design-composite-section { |
| 121 border-right: 1px solid rgb(163, 163, 163); |
| 122 } |
| 123 |
104 .responsive-design-toolbar .field-error-message { | 124 .responsive-design-toolbar .field-error-message { |
105 display: none; | 125 display: none; |
106 } | 126 } |
107 | 127 |
108 .responsive-design-toolbar input[type='text'] { | 128 .responsive-design-toolbar input[type='text'] { |
109 color: rgb(255, 156, 0); | 129 color: rgb(255, 156, 0); |
110 text-align: center; | 130 text-align: center; |
111 background-color: transparent; | 131 background-color: transparent; |
112 border: none; | 132 border: none; |
113 margin: 0; | 133 margin: 0; |
114 padding: 3px 0; | 134 padding-bottom: 4px; |
| 135 } |
| 136 |
| 137 .responsive-design-toolbar input[type='text']:not(.numeric) { |
| 138 width: 100%; |
| 139 margin-left: 7px; |
115 } | 140 } |
116 | 141 |
117 .responsive-design-toolbar input:disabled, | 142 .responsive-design-toolbar input:disabled, |
| 143 .responsive-design-toolbar input[readonly], |
118 .responsive-design-toolbar button:disabled { | 144 .responsive-design-toolbar button:disabled { |
119 opacity: 0.7; | 145 opacity: 0.7; |
120 } | 146 } |
121 | 147 |
122 .responsive-design-toolbar input[type='checkbox'] { | 148 .responsive-design-toolbar input[type='checkbox'] { |
123 -webkit-appearance: none; | 149 -webkit-appearance: none; |
124 margin: 0 5px 0 7px; | 150 margin: 0 5px 0 7px; |
125 border: 1px solid rgb(45, 45, 45); | 151 border: 1px solid rgb(45, 45, 45); |
126 border-radius: 3px; | 152 border-radius: 3px; |
127 background-color: rgb(102, 102, 102); | 153 background-color: rgb(102, 102, 102); |
(...skipping 20 matching lines...) Expand all Loading... |
148 text-decoration: line-through; | 174 text-decoration: line-through; |
149 } | 175 } |
150 | 176 |
151 .responsive-design-toolbar select { | 177 .responsive-design-toolbar select { |
152 width: 150px; | 178 width: 150px; |
153 background-color: transparent; | 179 background-color: transparent; |
154 color: rgb(255, 156, 0); | 180 color: rgb(255, 156, 0); |
155 border: 0; | 181 border: 0; |
156 margin-left: 10px; | 182 margin-left: 10px; |
157 line-height: 16px; | 183 line-height: 16px; |
158 position: relative; | |
159 top: 1px; | |
160 } | 184 } |
161 | 185 |
162 .responsive-design-toolbar input:focus { | 186 .responsive-design-toolbar input:focus { |
163 background-color: rgb(102, 102, 102) | 187 background-color: rgb(102, 102, 102) |
164 } | 188 } |
165 | 189 |
166 .responsive-design-icon { | 190 .responsive-design-icon { |
167 background-color: rgb(180, 180, 180); | 191 background-color: rgb(180, 180, 180); |
168 -webkit-mask-image: url(Images/responsiveDesign.png); | 192 -webkit-mask-image: url(Images/responsiveDesign.png); |
169 -webkit-mask-size: 48px 16px; | 193 -webkit-mask-size: 64px 16px; |
170 display: inline-block; | 194 display: inline-block; |
171 width: 16px; | 195 width: 16px; |
172 height: 16px; | 196 height: 16px; |
173 position: relative; | 197 position: relative; |
174 top: 3px; | 198 top: 3px; |
175 } | 199 } |
176 | 200 |
177 @media (-webkit-min-device-pixel-ratio: 1.5) { | 201 @media (-webkit-min-device-pixel-ratio: 1.5) { |
178 .responsive-design-icon { | 202 .responsive-design-icon { |
179 -webkit-mask-image: url(Images/responsiveDesign_2x.png); | 203 -webkit-mask-image: url(Images/responsiveDesign_2x.png); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 } | 235 } |
212 | 236 |
213 .responsive-design-icon-swap:hover { | 237 .responsive-design-icon-swap:hover { |
214 opacity: 1; | 238 opacity: 1; |
215 } | 239 } |
216 | 240 |
217 .responsive-design-icon-swap:active { | 241 .responsive-design-icon-swap:active { |
218 opacity: 0.8; | 242 opacity: 0.8; |
219 } | 243 } |
220 | 244 |
| 245 .responsive-design-expand { |
| 246 height: 19px; |
| 247 min-width: 70px; |
| 248 background: rgb(64, 64, 64); |
| 249 display: flex; |
| 250 align-items: center; |
| 251 justify-content: center; |
| 252 margin: 3px; |
| 253 } |
| 254 |
| 255 .responsive-design-expand:hover, |
| 256 .responsive-design-expand:active { |
| 257 background: linear-gradient(to top, rgb(102, 102, 102), rgb(64, 64, 64)); |
| 258 } |
| 259 |
| 260 .responsive-design-icon-expand { |
| 261 -webkit-mask-position: -48px 0; |
| 262 top: 0 !important; |
| 263 margin-right: 2px; |
| 264 } |
| 265 |
| 266 .responsive-design-expand.expanded .responsive-design-icon-expand { |
| 267 transform: rotate(180deg); |
| 268 } |
| 269 |
221 .responsive-design-warning { | 270 .responsive-design-warning { |
222 background-color: rgb(64, 64, 64); | 271 background-color: rgb(64, 64, 64); |
223 color: rgb(180, 180, 180); | 272 color: rgb(180, 180, 180); |
224 height: 19px; | 273 height: 19px; |
225 padding: 2px; | 274 padding: 2px; |
| 275 white-space: nowrap; |
226 } | 276 } |
227 | 277 |
228 .responsive-design-warning::before { | 278 .responsive-design-warning::before { |
229 background-image: url(Images/statusbarButtonGlyphs.png); | 279 background-image: url(Images/statusbarButtonGlyphs.png); |
230 background-size: 320px 144px; | 280 background-size: 320px 144px; |
231 width: 10px; | 281 width: 10px; |
232 height: 10px; | 282 height: 10px; |
233 content: ""; | 283 content: ""; |
234 position: relative; | 284 position: relative; |
235 top: 2px; | 285 top: 2px; |
236 background-position: -202px -107px; | 286 background-position: -202px -107px; |
237 float: left; | 287 float: left; |
238 margin-right: 4px; | 288 margin-right: 4px; |
239 margin-left: 2px; | 289 margin-left: 2px; |
240 } | 290 } |
241 | 291 |
242 @media (-webkit-min-device-pixel-ratio: 1.5) { | 292 @media (-webkit-min-device-pixel-ratio: 1.5) { |
243 .responsive-design-warning::before { | 293 .responsive-design-warning::before { |
244 background-image: url(Images/statusbarButtonGlyphs_2x.png); | 294 background-image: url(Images/statusbarButtonGlyphs_2x.png); |
245 } | 295 } |
246 } /* media */ | 296 } /* media */ |
OLD | NEW |