Chromium Code Reviews| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 | 43 |
| 44 .responsive-design-thumb-handle { | 44 .responsive-design-thumb-handle { |
| 45 content: url(Images/statusbarResizerHorizontal.png); | 45 content: url(Images/statusbarResizerHorizontal.png); |
| 46 pointer-events: none; | 46 pointer-events: none; |
| 47 } | 47 } |
| 48 | 48 |
| 49 .responsive-design-slider-height .responsive-design-thumb-handle { | 49 .responsive-design-slider-height .responsive-design-thumb-handle { |
| 50 transform: rotate(90deg); | 50 transform: rotate(90deg); |
| 51 } | 51 } |
| 52 | 52 |
| 53 .responsive-design-resolution-label { | |
| 54 position: absolute; | |
| 55 color: white; | |
| 56 background-color: rgb(255, 156, 0); | |
| 57 padding: 3px; | |
| 58 font-size: 12px; | |
| 59 text-align: center; | |
| 60 } | |
| 61 | |
| 62 .responsive-design-resolution-width { | |
| 63 top: 0; | |
| 64 } | |
| 65 | |
| 66 .responsive-design-resolution-height { | |
| 67 left: 0; | |
| 68 } | |
| 69 | |
| 70 /* Toolbar */ | 53 /* Toolbar */ |
| 71 | 54 |
| 72 .responsive-design-toolbar { | 55 .responsive-design-toolbar { |
| 73 display: flex; | 56 display: flex; |
| 74 flex: none; | 57 flex: none; |
| 75 background: linear-gradient(to bottom, rgb(64, 64, 64), rgb(58, 58, 58)); | 58 background: linear-gradient(to bottom, rgb(64, 64, 64), rgb(58, 58, 58)); |
| 76 color: rgb(255, 255, 255); | 59 color: rgb(255, 255, 255); |
| 77 overflow: hidden; | 60 overflow: hidden; |
| 78 border-bottom: 1px solid rgb(104, 104, 104); | 61 border-bottom: 1px solid rgb(104, 104, 104); |
| 79 } | 62 } |
| 80 | 63 |
| 81 .responsive-design-toolbar:not(.expanded) .expanded-only { | |
| 82 display: none !important; | |
| 83 } | |
| 84 | |
| 85 .responsive-design-separator { | 64 .responsive-design-separator { |
| 86 flex: none; | 65 flex: none; |
| 87 width: 2px; | 66 width: 2px; |
| 88 background-color: rgb(43, 43, 43); | 67 background-color: rgb(43, 43, 43); |
| 89 margin: 2px; | 68 margin: 2px; |
| 90 } | 69 } |
| 91 | 70 |
| 92 .responsive-design-section { | 71 .responsive-design-section { |
| 93 display: flex; | 72 display: flex; |
| 94 flex: none; | 73 flex: none; |
| 95 flex-direction: column; | 74 flex-direction: column; |
| 96 white-space: nowrap; | 75 white-space: nowrap; |
| 97 align-items: stretch; | 76 align-items: stretch; |
| 98 justify-content: flex-start; | 77 justify-content: flex-start; |
| 99 padding: 0 10px; | 78 padding: 0 10px; |
| 100 } | 79 } |
| 101 | 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 { | |
| 90 background-color: black; | |
| 91 } | |
| 92 | |
| 93 | |
| 102 .responsive-design-section-separator { | 94 .responsive-design-section-separator { |
| 103 height: 2px; | 95 height: 2px; |
| 104 } | 96 } |
| 105 | 97 |
| 106 .responsive-design-suite { | 98 .responsive-design-suite { |
| 107 display: flex; | 99 display: flex; |
| 108 flex-direction: row; | 100 flex-direction: row; |
| 109 align-items: stretch; | |
| 110 justify-content: flex-start; | |
| 111 padding-top: 2px; | 101 padding-top: 2px; |
| 112 padding-bottom: 2px; | 102 padding-bottom: 2px; |
| 113 } | 103 } |
| 114 | 104 |
| 115 .responsive-design-suite-separator { | 105 .responsive-design-suite-separator { |
| 116 flex: none; | 106 flex: none; |
| 117 width: 1px; | 107 width: 1px; |
| 118 background-color: rgb(43, 43, 43); | 108 background-color: rgb(43, 43, 43); |
| 119 margin: 0 3px; | 109 margin: 0 3px; |
| 120 } | 110 } |
| 121 | 111 |
| 122 .responsive-design-suite > div:not(.responsive-design-suite-separator) { | 112 .responsive-design-suite > div:not(.responsive-design-suite-separator) { |
| 123 flex: auto; | 113 flex: none; |
| 124 display: flex; | 114 display: flex; |
| 125 flex-direction: row; | 115 flex-direction: row; |
| 126 align-items: center; | 116 align-items: center; |
| 127 justify-content: space-between; | 117 justify-content: space-between; |
| 128 height: 22px; | 118 height: 22px; |
| 129 overflow: hidden; | 119 overflow: hidden; |
| 130 } | 120 } |
| 131 | 121 |
| 132 .responsive-design-button { | |
| 133 height: 19px; | |
| 134 min-width: 70px; | |
| 135 background: rgb(64, 64, 64); | |
| 136 display: flex; | |
| 137 align-items: center; | |
| 138 justify-content: center !important; | |
| 139 cursor: pointer; | |
| 140 } | |
| 141 | |
| 142 .responsive-design-button:hover, | |
| 143 .responsive-design-button:active { | |
| 144 background: linear-gradient(to top, rgb(102, 102, 102), rgb(64, 64, 64)); | |
| 145 } | |
| 146 | |
| 147 /* Toolbar controls */ | 122 /* Toolbar controls */ |
| 148 | 123 |
| 149 .responsive-design-toolbar fieldset, | 124 .responsive-design-toolbar fieldset, |
| 150 .responsive-design-toolbar p { | 125 .responsive-design-toolbar p { |
| 151 margin: 0; | 126 margin: 0; |
| 152 border: 0; | 127 border: 0; |
| 153 padding: 0; | 128 padding: 0; |
| 154 display: inline-block; | 129 display: inline-block; |
| 155 } | 130 } |
| 156 | 131 |
| 157 .responsive-design-toolbar .field-error-message { | 132 .responsive-design-toolbar .field-error-message { |
| 158 display: none; | 133 display: none; |
| 159 } | 134 } |
| 160 | 135 |
| 161 .responsive-design-toolbar label { | 136 .responsive-design-toolbar label { |
| 162 margin-right: 5px; | 137 margin-right: 5px; |
| 163 cursor: default !important; | 138 cursor: default !important; |
| 164 } | 139 } |
| 165 | 140 |
| 166 .responsive-design-toolbar input[type='text'] { | 141 .responsive-design-toolbar input[type='text'] { |
| 167 text-align: left; | 142 text-align: left; |
| 168 background-color: transparent; | 143 background-color: transparent; |
| 169 border: none; | 144 border: none; |
| 170 margin: 0; | 145 margin: 0; |
| 171 padding-bottom: 4px; | 146 margin-bottom: 4px; |
| 147 padding: 3px 2px; | |
| 172 } | 148 } |
| 173 | 149 |
| 174 .responsive-design-toolbar input[type='text'].numeric { | 150 .responsive-design-toolbar input[type='text'].numeric { |
| 175 text-align: center; | 151 text-align: center; |
| 176 } | 152 } |
| 177 | 153 |
| 154 .responsive-design-toolbar input:focus::-webkit-input-placeholder { | |
| 155 color: transparent !important; | |
| 156 } | |
| 157 + | |
|
dgozman
2014/06/18 14:43:01
Remove this plus sign.
pfeldman
2014/06/18 14:57:20
Done.
| |
| 178 .responsive-design-toolbar fieldset:disabled input, | 158 .responsive-design-toolbar fieldset:disabled input, |
| 179 .responsive-design-toolbar fieldset:disabled button { | 159 .responsive-design-toolbar fieldset:disabled button { |
| 180 opacity: 0.7; | 160 opacity: 0.7; |
| 181 } | 161 } |
| 182 | 162 |
| 183 .responsive-design-toolbar input[type='checkbox'] { | 163 .responsive-design-toolbar input[type='checkbox'] { |
| 184 -webkit-appearance: none; | 164 -webkit-appearance: none; |
| 185 margin: auto 5px auto 0; | 165 margin: auto 5px auto 0; |
| 186 border: 1px solid rgb(45, 45, 45); | 166 border: 1px solid rgb(45, 45, 45); |
| 187 border-radius: 3px; | 167 border-radius: 3px; |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 198 width: 12px; | 178 width: 12px; |
| 199 height: 12px; | 179 height: 12px; |
| 200 background: none; | 180 background: none; |
| 201 } | 181 } |
| 202 | 182 |
| 203 .responsive-design-toolbar input[type='checkbox']:checked:after { | 183 .responsive-design-toolbar input[type='checkbox']:checked:after { |
| 204 background: rgb(220, 220, 220); | 184 background: rgb(220, 220, 220); |
| 205 } | 185 } |
| 206 | 186 |
| 207 .responsive-design-toolbar input.error-input { | 187 .responsive-design-toolbar input.error-input { |
| 208 color: red; | 188 color: red !important; |
| 209 text-decoration: line-through; | 189 text-decoration: line-through; |
| 210 } | 190 } |
| 211 | 191 |
| 212 .responsive-design-toolbar select { | 192 .responsive-design-toolbar select { |
| 213 height: 18px; | 193 height: 18px; |
| 214 background-color: rgb(81, 81, 81); | 194 background-color: rgb(81, 81, 81); |
| 215 border: 0; | 195 border: 0; |
| 216 margin-left: 10px; | 196 margin-left: 10px; |
| 217 line-height: 16px; | 197 line-height: 16px; |
| 218 } | 198 } |
| 219 | 199 |
| 220 body.platform-mac .responsive-design-toolbar select { | 200 body.platform-mac .responsive-design-toolbar select { |
| 221 position: relative; | 201 position: relative; |
| 222 top: 1px; | 202 top: 1px; |
| 223 } | 203 } |
| 224 | 204 |
| 225 .responsive-design-toolbar input:focus { | 205 .responsive-design-toolbar input:focus { |
| 226 background-color: rgb(102, 102, 102) | 206 background-color: rgb(81, 81, 81); |
| 227 } | 207 } |
| 228 | 208 |
| 229 /* Toolbar icons */ | 209 /* Toolbar icons */ |
| 230 | 210 |
| 231 .responsive-design-icon { | 211 .responsive-design-icon { |
| 232 background-color: rgb(180, 180, 180); | 212 background-color: rgb(180, 180, 180); |
| 233 -webkit-mask-image: url(Images/responsiveDesign.png); | 213 -webkit-mask-image: url(Images/responsiveDesign.png); |
| 234 -webkit-mask-size: 64px 16px; | 214 -webkit-mask-size: 64px 16px; |
| 235 display: inline-block; | 215 display: inline-block; |
| 236 width: 16px; | 216 width: 16px; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 275 } | 255 } |
| 276 | 256 |
| 277 .responsive-design-icon-swap:hover { | 257 .responsive-design-icon-swap:hover { |
| 278 opacity: 1; | 258 opacity: 1; |
| 279 } | 259 } |
| 280 | 260 |
| 281 .responsive-design-icon-swap:active { | 261 .responsive-design-icon-swap:active { |
| 282 opacity: 0.8; | 262 opacity: 0.8; |
| 283 } | 263 } |
| 284 | 264 |
| 285 /* Expand button */ | 265 /* Buttons section */ |
| 286 | 266 |
| 287 .responsive-design-section-expand { | 267 .responsive-design-section-buttons { |
| 288 padding: 3px !important; | 268 padding: 0; |
| 289 } | 269 } |
| 290 | 270 |
| 291 .responsive-design-icon-expand { | 271 .responsive-design-more-button { |
| 292 -webkit-mask-position: -48px 0; | 272 -webkit-appearance: none; |
| 293 top: 0 !important; | 273 border: 0; |
| 294 margin-right: 2px; | 274 background-color: transparent; |
| 275 color: white; | |
| 276 opacity: 0.8; | |
| 277 font-size: 16px; | |
| 295 } | 278 } |
| 296 | 279 |
| 297 .responsive-design-toolbar.expanded .responsive-design-icon-expand { | 280 .responsive-design-more-button:hover { |
| 298 transform: rotate(180deg); | 281 opacity: 1; |
| 282 } | |
| 283 | |
| 284 .responsive-design-more-button:active { | |
| 285 opacity: 0.8; | |
| 299 } | 286 } |
| 300 | 287 |
| 301 /* Device section */ | 288 /* Device section */ |
| 302 | 289 |
| 303 .responsive-design-section-device { | |
| 304 width: 290px; | |
| 305 } | |
| 306 | |
| 307 .responsive-design-section-device .responsive-design-section-separator { | 290 .responsive-design-section-device .responsive-design-section-separator { |
| 308 background: linear-gradient(to bottom, rgb(255, 186, 68), rgb(255, 119, 0)); | 291 background: linear-gradient(to bottom, rgb(255, 186, 68), rgb(255, 119, 0)); |
| 309 } | 292 } |
| 310 | 293 |
| 311 .responsive-design-section-device select { | 294 .responsive-design-section-device select { |
| 312 width: 220px; | 295 width: 220px; |
| 313 } | 296 } |
| 314 | 297 |
| 315 .responsive-design-section-device input[type='text'], | 298 .responsive-design-section-device input[type='text'], |
| 316 .responsive-design-section-device input[type='text']::-webkit-input-placeholder, | 299 .responsive-design-section-device input[type='text']::-webkit-input-placeholder, |
| 317 .responsive-design-section-device select { | 300 .responsive-design-section-device select { |
| 318 color: rgb(255, 156, 0); | 301 color: rgb(255, 156, 0); |
| 319 } | 302 } |
| 320 | 303 |
| 321 .responsive-design-section-device .expanded-only input[type='checkbox']:checked: after { | 304 .responsive-design-section-device input[type='checkbox']:checked:after { |
| 322 background: rgb(255, 156, 0); | 305 background: rgb(255, 156, 0); |
| 323 } | 306 } |
| 324 | 307 |
| 325 /* Network section */ | 308 /* Network section */ |
| 326 | 309 |
| 327 .responsive-design-section-network { | |
| 328 width: 230px; | |
| 329 } | |
| 330 | |
| 331 .responsive-design-section-network select { | 310 .responsive-design-section-network select { |
| 332 width: 150px; | 311 width: 150px; |
| 333 } | 312 } |
| 334 | 313 |
| 335 .responsive-design-section-network input[type='text'] { | 314 .responsive-design-section-network input[type='text'] { |
| 336 width: 190px; | 315 width: 192px; |
| 337 } | 316 } |
| 338 | 317 |
| 339 .responsive-design-section-network input[type='text'], | 318 .responsive-design-section-network input[type='text'], |
| 340 .responsive-design-section-network input[type='text']::-webkit-input-placeholder , | 319 .responsive-design-section-network input[type='text']::-webkit-input-placeholder , |
| 341 .responsive-design-section-network select { | 320 .responsive-design-section-network select { |
| 342 color: rgb(65, 175, 255); | 321 color: rgb(65, 175, 255); |
| 343 } | 322 } |
| 344 | 323 |
| 345 .responsive-design-section-network .responsive-design-section-separator { | 324 .responsive-design-section-network .responsive-design-section-separator { |
| 346 background: linear-gradient(to bottom, rgb(77, 170, 243), rgb(0, 130, 255)); | 325 background: linear-gradient(to bottom, rgb(77, 170, 243), rgb(0, 130, 255)); |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 359 white-space: nowrap; | 338 white-space: nowrap; |
| 360 display: flex; | 339 display: flex; |
| 361 align-items: center; | 340 align-items: center; |
| 362 border-bottom: 1px solid rgb(171, 171, 171); | 341 border-bottom: 1px solid rgb(171, 171, 171); |
| 363 } | 342 } |
| 364 | 343 |
| 365 .responsive-design-warning > span { | 344 .responsive-design-warning > span { |
| 366 flex: auto; | 345 flex: auto; |
| 367 padding-left: 3px; | 346 padding-left: 3px; |
| 368 } | 347 } |
| OLD | NEW |