|
38 | 38 |
|
39 | 39 | // Image and Color swatch
|
40 | 40 | @img-color-swatch-option__hover__border: @swatch-option__hover__border;
|
41 |
| -@img-color-swatch-option__hover__outline: 2px solid #ee0000; |
| 41 | +@img-color-swatch-option__hover__outline: 2px solid #e00; |
42 | 42 |
|
43 | 43 | // Tooltip
|
44 | 44 | @swatch-option-tooltip__background: @color-white;
|
|
53 | 53 |
|
54 | 54 | @swatch-option-tooltip-layered-title__color: @swatch-option-tooltip-title__color;
|
55 | 55 |
|
56 |
| -// Layered Features |
| 56 | +// Layered Features |
57 | 57 | @swatch-option-link-layered__focus__box-shadow: 0 0 3px 1px @color-sky-blue1;
|
58 | 58 |
|
59 | 59 | //
|
60 | 60 | // Common
|
61 | 61 | // _____________________________________________
|
62 | 62 |
|
63 |
| - & when (@media-common = true) { |
| 63 | +& when (@media-common = true) { |
64 | 64 |
|
65 | 65 | .swatch {
|
66 | 66 | &-attribute {
|
|
72 | 72 | padding-right: @indent__s;
|
73 | 73 | }
|
74 | 74 |
|
75 |
| - &[data-required="1"]:after { |
| 75 | + &[data-required='1']:after { |
76 | 76 | .lib-css(color, @form-field-label-asterisk__color);
|
77 | 77 | content: '*';
|
| 78 | + font-size: @font-size__base; |
| 79 | + font-weight: @font-weight__bold; |
78 | 80 | position: absolute;
|
79 | 81 | right: -11px;
|
80 | 82 | top: -2px;
|
81 |
| - font-weight: @font-weight__bold; |
82 |
| - font-size: @font-size__base; |
83 | 83 | }
|
84 | 84 | }
|
85 | 85 |
|
|
120 | 120 |
|
121 | 121 | &-option {
|
122 | 122 | .lib-css(border, @swatch-option__border);
|
123 |
| - padding: 1px 2px; |
124 |
| - min-width: 30px; |
125 |
| - max-width: 90px; |
126 |
| - height: 20px; |
| 123 | + cursor: pointer; |
127 | 124 | float: left;
|
| 125 | + height: 20px; |
128 | 126 | margin: 0 @indent__s @indent__xs 0;
|
129 |
| - text-align: center; |
130 |
| - cursor: pointer; |
131 |
| - position: relative; |
| 127 | + max-width: 90px; |
| 128 | + min-width: 30px; |
132 | 129 | overflow: hidden;
|
| 130 | + padding: 1px 2px; |
| 131 | + position: relative; |
| 132 | + text-align: center; |
133 | 133 | text-overflow: ellipsis;
|
134 | 134 |
|
135 | 135 | &.text {
|
|
171 | 171 | cursor: default;
|
172 | 172 |
|
173 | 173 | &:after {
|
| 174 | + // ToDo: improve .lib-background-gradient() to support diagonal gradient |
| 175 | + background: linear-gradient(to left top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 1) 43%, rgba(255, 255, 255, 1) 46%, rgba(255, 82, 22, 1) 47%, rgba(255, 82, 22, 1) 53%, rgba(255, 255, 255, 1) 54%, rgba(255, 255, 255, 1) 57%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0) 100%); |
| 176 | + background: -moz-linear-gradient(to left top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 1) 43%, rgba(255, 255, 255, 1) 46%, rgba(255, 82, 22, 1) 47%, rgba(255, 82, 22, 1) 53%, rgba(255, 255, 255, 1) 54%, rgba(255, 255, 255, 1) 57%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0) 100%); |
| 177 | + background: -ms-linear-gradient(to left top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 1) 43%, rgba(255, 255, 255, 1) 46%, rgba(255, 82, 22, 1) 47%, rgba(255, 82, 22, 1) 53%, rgba(255, 255, 255, 1) 54%, rgba(255, 255, 255, 1) 57%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0) 100%); |
| 178 | + background: -o-linear-gradient(to left top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 1) 43%, rgba(255, 255, 255, 1) 46%, rgba(255, 82, 22, 1) 47%, rgba(255, 82, 22, 1) 53%, rgba(255, 255, 255, 1) 54%, rgba(255, 255, 255, 1) 57%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0) 100%); |
| 179 | + background: -webkit-gradient(linear, left top, right bottom, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(42%, rgba(255, 255, 255, 0)), color-stop(43%, rgba(255, 255, 255, 1)), color-stop(46%, rgba(255, 255, 255, 1)), color-stop(47%, rgba(255, 82, 22, 1)), color-stop(53%, rgba(255, 82, 22, 1)), color-stop(54%, rgba(255, 255, 255, 1)), color-stop(57%, rgba(255, 255, 255, 1)), color-stop(58%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(255, 255, 255, 0))); |
| 180 | + background: -webkit-linear-gradient(to left top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 1) 43%, rgba(255, 255, 255, 1) 46%, rgba(255, 82, 22, 1) 47%, rgba(255, 82, 22, 1) 53%, rgba(255, 255, 255, 1) 54%, rgba(255, 255, 255, 1) 57%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0) 100%); |
| 181 | + bottom: 0; |
174 | 182 | content: '';
|
175 |
| - position: absolute; |
| 183 | + filter: 'progid:DXImageTransform.Microsoft.gradient(startColorstr=#00ffffff, endColorstr=#00ffffff, GradientType=1)'; |
176 | 184 | left: 0;
|
| 185 | + position: absolute; |
177 | 186 | right: 0;
|
178 | 187 | top: 0;
|
179 |
| - bottom: 0; |
180 |
| - |
181 |
| - // ToDo: improve .lib-background-gradient() to support diagonal gradient |
182 |
| - background: -moz-linear-gradient(to left top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 1) 43%, rgba(255, 255, 255, 1) 46%, rgba(255, 82, 22, 1) 47%, rgba(255, 82, 22, 1) 53%, rgba(255, 255, 255, 1) 54%, rgba(255, 255, 255, 1) 57%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0) 100%); |
183 |
| - background: -webkit-gradient(linear, left top, right bottom, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(42%, rgba(255, 255, 255, 0)), color-stop(43%, rgba(255, 255, 255, 1)), color-stop(46%, rgba(255, 255, 255, 1)), color-stop(47%, rgba(255, 82, 22, 1)), color-stop(53%, rgba(255, 82, 22, 1)), color-stop(54%, rgba(255, 255, 255, 1)), color-stop(57%, rgba(255, 255, 255, 1)), color-stop(58%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(255, 255, 255, 0))); |
184 |
| - background: -webkit-linear-gradient(to left top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 1) 43%, rgba(255, 255, 255, 1) 46%, rgba(255, 82, 22, 1) 47%, rgba(255, 82, 22, 1) 53%, rgba(255, 255, 255, 1) 54%, rgba(255, 255, 255, 1) 57%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0) 100%); |
185 |
| - background: -o-linear-gradient(to left top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 1) 43%, rgba(255, 255, 255, 1) 46%, rgba(255, 82, 22, 1) 47%, rgba(255, 82, 22, 1) 53%, rgba(255, 255, 255, 1) 54%, rgba(255, 255, 255, 1) 57%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0) 100%); |
186 |
| - background: -ms-linear-gradient(to left top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 1) 43%, rgba(255, 255, 255, 1) 46%, rgba(255, 82, 22, 1) 47%, rgba(255, 82, 22, 1) 53%, rgba(255, 255, 255, 1) 54%, rgba(255, 255, 255, 1) 57%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0) 100%); |
187 |
| - background: linear-gradient(to left top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 1) 43%, rgba(255, 255, 255, 1) 46%, rgba(255, 82, 22, 1) 47%, rgba(255, 82, 22, 1) 53%, rgba(255, 255, 255, 1) 54%, rgba(255, 255, 255, 1) 57%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0) 100%); |
188 |
| - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#00ffffff', GradientType=1); |
189 | 188 | }
|
190 | 189 | }
|
191 | 190 | &-disabled {
|
192 |
| - outline: none !important; |
193 |
| - cursor: default; |
194 | 191 | border: 0;
|
| 192 | + cursor: default; |
| 193 | + outline: none !important; |
195 | 194 |
|
196 | 195 | &:after {
|
197 |
| - .lib-css(background, @swatch-option__disabled__background); |
198 | 196 | .lib-rotate(-30deg);
|
199 | 197 | content: '';
|
| 198 | + height: 2px; |
| 199 | + left: -4px; |
200 | 200 | position: absolute;
|
| 201 | + top: 10px; |
201 | 202 | width: 42px;
|
202 |
| - height: 2px; |
203 | 203 | z-index: 995;
|
204 |
| - left: -4px; |
205 |
| - top: 10px; |
| 204 | + .lib-css(background, @swatch-option__disabled__background); |
206 | 205 | }
|
207 | 206 | }
|
208 | 207 |
|
|
211 | 210 | }
|
212 | 211 |
|
213 | 212 | &-tooltip {
|
214 |
| - .lib-css(background, @swatch-option-tooltip__background); |
215 | 213 | .lib-css(border, @swatch-option-tooltip__border);
|
216 | 214 | .lib-css(color, @swatch-option-tooltip__color);
|
217 |
| - max-width: 140px; |
| 215 | + display: none; |
218 | 216 | max-height: 100%;
|
| 217 | + max-width: 140px; |
219 | 218 | min-height: 20px;
|
220 | 219 | min-width: 20px;
|
221 |
| - position: absolute; |
222 | 220 | padding: @indent__xs;
|
223 |
| - display: none; |
224 |
| - z-index: 999; |
| 221 | + position: absolute; |
225 | 222 | text-align: center;
|
| 223 | + z-index: 999; |
| 224 | + .lib-css(background, @swatch-option-tooltip__background); |
226 | 225 |
|
227 | 226 | &,
|
228 |
| - &-layered { |
| 227 | + &-layered { |
229 | 228 | .corner {
|
230 |
| - left: 40%; |
231 |
| - position: absolute; |
232 | 229 | bottom: 0;
|
233 | 230 | height: 8px;
|
| 231 | + left: 40%; |
| 232 | + position: absolute; |
234 | 233 |
|
235 | 234 | &:before,
|
236 | 235 | &:after {
|
| 236 | + border-style: solid; |
237 | 237 | content: '';
|
| 238 | + font-size: 1px; |
| 239 | + height: 0; |
238 | 240 | position: relative;
|
239 | 241 | width: 0;
|
240 |
| - height: 0; |
241 |
| - border-style: solid; |
242 |
| - font-size: 1px; |
243 | 242 | }
|
244 | 243 |
|
245 | 244 | &:before {
|
246 |
| - top: 2px; |
247 |
| - left: 0; |
| 245 | + border-color: @color-gray68 transparent transparent transparent; |
248 | 246 | border-width: 8px 8.5px 0 8.5px;
|
249 |
| - border-color: #adadad transparent transparent transparent; |
| 247 | + left: 0; |
| 248 | + top: 2px; |
250 | 249 | }
|
251 | 250 |
|
252 | 251 | &:after {
|
253 |
| - top: 1px; |
254 |
| - left: -15px; |
| 252 | + border-color: @primary4 transparent transparent transparent; |
255 | 253 | border-width: 7px 7.5px 0 7.5px;
|
256 |
| - border-color: #fff transparent transparent transparent; |
| 254 | + left: -15px; |
| 255 | + top: 1px; |
257 | 256 | }
|
258 | 257 | }
|
259 | 258 |
|
260 | 259 | .image {
|
261 | 260 | display: block;
|
262 | 261 | height: 130px;
|
263 |
| - width: 130px; |
264 | 262 | margin: 0 auto;
|
| 263 | + width: 130px; |
265 | 264 | }
|
266 | 265 | }
|
267 | 266 |
|
268 | 267 | &-layered {
|
269 |
| - .lib-css(background, @swatch-option-tooltip-layered__background); |
270 | 268 | .lib-css(border, @swatch-option-tooltip-layered__border);
|
271 | 269 | .lib-css(color, @swatch-option-tooltip-layered__color);
|
272 |
| - width: 140px; |
273 |
| - position: absolute; |
| 270 | + .lib-css(background, @swatch-option-tooltip-layered__background); |
274 | 271 | display: none;
|
275 |
| - z-index: 999; |
276 | 272 | left: -47px;
|
| 273 | + position: absolute; |
| 274 | + width: 140px; |
| 275 | + z-index: 999; |
277 | 276 | }
|
278 | 277 |
|
279 | 278 | .title {
|
280 | 279 | .lib-css(color, @swatch-option-tooltip-title__color);
|
| 280 | + display: block; |
| 281 | + max-height: 200px; |
281 | 282 | max-width: 140px;
|
282 | 283 | min-height: 20px;
|
283 |
| - max-height: 200px; |
284 |
| - text-align: center; |
285 |
| - display: block; |
286 | 284 | overflow: hidden;
|
| 285 | + text-align: center; |
287 | 286 | }
|
288 | 287 | }
|
289 | 288 |
|
290 | 289 | &-link-layered {
|
291 |
| - position: relative; |
292 | 290 | margin: 0 !important;
|
293 | 291 | padding: 0 !important;
|
| 292 | + position: relative; |
294 | 293 |
|
295 | 294 | &:focus > div {
|
296 | 295 | .lib-css(box-shadow, @swatch-option-link-layered__focus__box-shadow);
|
|
313 | 312 | &-more {
|
314 | 313 | display: inline-block;
|
315 | 314 | margin: 2px 0;
|
316 |
| - text-decoration: none !important; |
317 | 315 | position: static;
|
| 316 | + text-decoration: none !important; |
318 | 317 | z-index: 1;
|
319 | 318 | }
|
320 | 319 |
|
|
336 | 335 | }
|
337 | 336 |
|
338 | 337 | .clearfix:after {
|
| 338 | + clear: both; |
339 | 339 | content: '';
|
340 |
| - visibility: hidden; |
341 | 340 | display: block;
|
342 | 341 | height: 0;
|
343 |
| - clear: both; |
| 342 | + visibility: hidden; |
344 | 343 | }
|
345 | 344 | }
|
0 commit comments