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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 pointer-events: none; | 55 pointer-events: none; |
56 } | 56 } |
57 | 57 |
58 .responsive-design-slider-height .responsive-design-thumb-handle { | 58 .responsive-design-slider-height .responsive-design-thumb-handle { |
59 transform: rotate(90deg); | 59 transform: rotate(90deg); |
60 } | 60 } |
61 | 61 |
62 .responsive-design-resolution-label { | 62 .responsive-design-resolution-label { |
63 position: absolute; | 63 position: absolute; |
64 color: white; | 64 color: white; |
65 background-color: hsl(41, 100%, 47%); | 65 background-color: rgb(255, 156, 0); |
66 padding: 3px; | 66 padding: 3px; |
67 font-size: 12px; | 67 font-size: 12px; |
68 text-align: center; | 68 text-align: center; |
69 text-shadow: hsl(41, 100%, 39%) 1px 1px; | |
70 } | 69 } |
71 | 70 |
72 .responsive-design-resolution-width { | 71 .responsive-design-resolution-width { |
73 top: 0; | 72 top: 0; |
74 } | 73 } |
75 | 74 |
76 .responsive-design-resolution-height { | 75 .responsive-design-resolution-height { |
77 left: 0; | 76 left: 0; |
78 } | 77 } |
79 | 78 |
80 .responsive-design-toolbar { | 79 .responsive-design-toolbar { |
81 flex: 0 0 24px; | 80 flex: 0 0 24px; |
82 background-color: rgb(64, 64, 64); | 81 background-color: rgb(64, 64, 64); |
83 color: rgb(220, 220, 220); | 82 color: rgb(180, 180, 180); |
84 padding-left: 6px; | |
85 display: flex; | 83 display: flex; |
86 align-items: center; | 84 align-items: center; |
87 border-bottom: 1px solid rgb(163, 163, 163); | 85 border-bottom: 1px solid rgb(163, 163, 163); |
88 } | 86 } |
89 | 87 |
90 .responsive-design-toolbar fieldset, | 88 .responsive-design-toolbar fieldset, |
91 .responsive-design-toolbar p { | 89 .responsive-design-toolbar p { |
92 margin: 0; | 90 margin: 0; |
93 padding: 0; | 91 padding: 0; |
94 border: 0; | 92 border: 0; |
95 display: inline-block; | 93 display: inline-block; |
96 } | 94 } |
97 | 95 |
| 96 .responsive-design-toolbar fieldset { |
| 97 padding: 0 7px 0 0; |
| 98 height: 23px; |
| 99 } |
| 100 |
| 101 .responsive-design-toolbar .responsive-design-section { |
| 102 border-left: 1px solid rgb(163, 163, 163); |
| 103 } |
| 104 |
| 105 .responsive-design-toolbar fieldset:first-child { |
| 106 border-right: none; |
| 107 } |
| 108 |
98 .responsive-design-toolbar .field-error-message { | 109 .responsive-design-toolbar .field-error-message { |
99 display: none; | 110 display: none; |
100 } | 111 } |
101 .responsive-design-toolbar label { | 112 .responsive-design-toolbar fieldset > label { |
102 display: inline-flex; | 113 display: inline-flex; |
| 114 height: 22px; |
103 align-items: center; | 115 align-items: center; |
104 } | 116 } |
105 | 117 |
106 .responsive-design-toolbar input[type='text'] { | 118 .responsive-design-toolbar input[type='text'] { |
107 color: rgb(255, 156, 0); | 119 color: rgb(255, 156, 0); |
108 text-align: center; | 120 text-align: center; |
109 background-color: transparent; | 121 background-color: transparent; |
110 border: none; | 122 border: none; |
111 margin: 0 2px; | 123 margin: 0; |
112 padding: 3px; | 124 padding: 3px 0; |
113 } | 125 } |
114 | 126 |
115 .responsive-design-toolbar input:disabled, | 127 .responsive-design-toolbar input:disabled, |
116 .responsive-design-toolbar button:disabled { | 128 .responsive-design-toolbar button:disabled { |
117 opacity: 0.6; | 129 opacity: 0.7; |
118 } | 130 } |
119 | 131 |
120 .responsive-design-toolbar input[type='checkbox'] { | 132 .responsive-design-toolbar input[type='checkbox'] { |
121 background: none; | 133 -webkit-appearance: none; |
122 margin: 0; | 134 margin: 0 5px 0 7px; |
123 margin-right: 5px; | 135 border: 1px solid rgb(45, 45, 45); |
| 136 border-radius: 3px; |
| 137 background-color: rgb(102, 102, 102); |
124 } | 138 } |
125 | 139 |
126 .responsive-design-toolbar input[type='checkbox']:after { | 140 .responsive-design-toolbar input[type='checkbox']:after { |
127 content:'\2713'; | 141 content: ''; |
128 color: transparent; | |
129 line-height: 10px; | 142 line-height: 10px; |
130 position: absolute; | 143 position: absolute; |
131 cursor: pointer; | 144 cursor: pointer; |
132 background: rgb(64, 64, 64); | 145 width: 12px; |
133 border: 1px solid hsla(41, 100%, 47%, 0.6); | 146 height: 12px; |
| 147 background: none; |
134 } | 148 } |
135 | 149 |
136 .responsive-design-toolbar input[type='checkbox']:checked:after { | 150 .responsive-design-toolbar input[type='checkbox']:checked:after { |
137 color: hsl(41, 100%, 47%); | 151 background: rgb(220, 220, 220); |
138 } | 152 } |
139 | 153 |
140 .responsive-design-toolbar input.error-input { | 154 .responsive-design-toolbar input.error-input { |
141 color: red; | 155 color: red; |
142 text-decoration: line-through; | 156 text-decoration: line-through; |
143 } | 157 } |
144 | 158 |
145 .responsive-design-override-swap { | 159 .responsive-design-toolbar select { |
146 margin-right: 10px; | 160 width: 150px; |
| 161 background-color: transparent; |
| 162 color: rgb(255, 156, 0); |
| 163 border: 0; |
| 164 margin-left: 10px; |
| 165 line-height: 16px; |
147 } | 166 } |
148 | 167 |
149 .responsive-design-toolbar input:focus { | 168 .responsive-design-toolbar input:focus { |
150 background-color: rgb(102, 102, 102) | 169 background-color: rgb(102, 102, 102) |
151 } | 170 } |
152 | 171 |
153 .responsive-design-toolbar button { | 172 .responsive-design-icon { |
154 color: rgb(255, 156, 0); | 173 background-color: rgb(180, 180, 180); |
155 background-color: rgb(64, 64, 64); | 174 -webkit-mask-image: url(Images/responsiveDesign.png); |
156 border: none; | 175 -webkit-mask-size: 48px 16px; |
157 cursor: pointer; | 176 display: inline-block; |
158 } | 177 width: 16px; |
| 178 height: 16px; |
| 179 position: relative; |
| 180 top: 3px; |
| 181 } |
| 182 |
| 183 @media (-webkit-min-device-pixel-ratio: 1.5) { |
| 184 .responsive-design-icon { |
| 185 -webkit-mask-image: url(Images/responsiveDesign_2x.png); |
| 186 } |
| 187 } /* media */ |
| 188 |
| 189 .responsive-design-toolbar input[type='checkbox']:after { |
| 190 -webkit-mask-image: url(Images/statusbarButtonGlyphs.png); |
| 191 -webkit-mask-size: 320px 144px; |
| 192 -webkit-mask-position: -128px -110px; |
| 193 } |
| 194 |
| 195 @media (-webkit-min-device-pixel-ratio: 1.5) { |
| 196 .responsive-design-toolbar input[type='checkbox']:after { |
| 197 -webkit-mask-image: url(Images/statusbarButtonGlyphs_2x.png); |
| 198 } |
| 199 } /* media */ |
| 200 |
| 201 .responsive-design-icon-resolution { |
| 202 -webkit-mask-position: 0 0; |
| 203 } |
| 204 |
| 205 .responsive-design-icon-dpr { |
| 206 -webkit-mask-position: -16px 0; |
| 207 } |
| 208 |
| 209 .responsive-design-icon-swap { |
| 210 opacity: 0.9; |
| 211 background-color: rgb(255, 156, 0); |
| 212 -webkit-mask-position: -32px 0; |
| 213 margin-right: 10px; |
| 214 -webkit-appearance: none; |
| 215 padding: 0; |
| 216 border: 0; |
| 217 } |
| 218 |
| 219 .responsive-design-icon-swap:hover { |
| 220 opacity: 1; |
| 221 } |
| 222 |
| 223 .responsive-design-icon-swap:active { |
| 224 opacity: 0.8; |
| 225 } |
OLD | NEW |