|
272 | 272 | } |
273 | 273 |
|
274 | 274 | @mixin until($device) { |
275 | | - @media screen and (max-width: ($device - 1px)) { |
| 275 | + @media screen and (max-width: ($device - 0.02px)) { |
276 | 276 | @content; |
277 | 277 | } |
278 | 278 | } |
279 | 279 |
|
280 | 280 | @mixin between($from, $until) { |
281 | | - @media screen and (min-width: $from) and (max-width: ($until - 1px)) { |
| 281 | + @media screen and (min-width: $from) and (max-width: ($until - 0.02px)) { |
282 | 282 | @content; |
283 | 283 | } |
284 | 284 | } |
285 | 285 |
|
286 | 286 | @mixin mobile { |
287 | | - @media screen and (max-width: (iv.$tablet - 1px)) { |
| 287 | + @media screen and (max-width: (iv.$tablet - 0.02px)) { |
288 | 288 | @content; |
289 | 289 | } |
290 | 290 | } |
|
296 | 296 | } |
297 | 297 |
|
298 | 298 | @mixin tablet-only { |
299 | | - @media screen and (min-width: iv.$tablet) and (max-width: (iv.$desktop - 1px)) { |
| 299 | + @media screen and (min-width: iv.$tablet) and (max-width: (iv.$desktop - 0.02px)) { |
300 | 300 | @content; |
301 | 301 | } |
302 | 302 | } |
303 | 303 |
|
304 | 304 | @mixin touch { |
305 | | - @media screen and (max-width: (iv.$desktop - 1px)) { |
| 305 | + @media screen and (max-width: (iv.$desktop - 0.02px)) { |
306 | 306 | @content; |
307 | 307 | } |
308 | 308 | } |
|
315 | 315 |
|
316 | 316 | @mixin desktop-only { |
317 | 317 | @if iv.$widescreen-enabled { |
318 | | - @media screen and (min-width: iv.$desktop) and (max-width: (iv.$widescreen - 1px)) { |
| 318 | + @media screen and (min-width: iv.$desktop) and (max-width: (iv.$widescreen - 0.02px)) { |
319 | 319 | @content; |
320 | 320 | } |
321 | 321 | } |
322 | 322 | } |
323 | 323 |
|
324 | 324 | @mixin until-widescreen { |
325 | 325 | @if iv.$widescreen-enabled { |
326 | | - @media screen and (max-width: (iv.$widescreen - 1px)) { |
| 326 | + @media screen and (max-width: (iv.$widescreen - 0.02px)) { |
327 | 327 | @content; |
328 | 328 | } |
329 | 329 | } |
|
339 | 339 |
|
340 | 340 | @mixin widescreen-only { |
341 | 341 | @if iv.$widescreen-enabled and iv.$fullhd-enabled { |
342 | | - @media screen and (min-width: iv.$widescreen) and (max-width: (iv.$fullhd - 1px)) { |
| 342 | + @media screen and (min-width: iv.$widescreen) and (max-width: (iv.$fullhd - 0.02px)) { |
343 | 343 | @content; |
344 | 344 | } |
345 | 345 | } |
346 | 346 | } |
347 | 347 |
|
348 | 348 | @mixin until-fullhd { |
349 | 349 | @if iv.$fullhd-enabled { |
350 | | - @media screen and (max-width: (iv.$fullhd - 1px)) { |
| 350 | + @media screen and (max-width: (iv.$fullhd - 0.02px)) { |
351 | 351 | @content; |
352 | 352 | } |
353 | 353 | } |
|
391 | 391 | } |
392 | 392 |
|
393 | 393 | @mixin container-until($name, $width) { |
394 | | - @container #{$name} (max-width: #{$width - 1px}) { |
| 394 | + @container #{$name} (max-width: #{$width - 0.02px}) { |
395 | 395 | @content; |
396 | 396 | } |
397 | 397 | } |
|
0 commit comments