_mixins.scss 866 B

12345678910111213141516171819202122232425262728293031323334
  1. @mixin for-desktop-up-large {
  2. @media (min-width: 1170px) {
  3. @content;
  4. }
  5. }
  6. @mixin for-desktop-up {
  7. @media (min-width: 992px) {
  8. @content;
  9. }
  10. }
  11. @mixin for-laptop-up {
  12. @media (min-width: 768px) {
  13. @content;
  14. }
  15. }
  16. @mixin for-desktop-down {
  17. @media (max-width: 991px) {
  18. @content;
  19. }
  20. }
  21. /*** Styles added to fix the issue with zoom in on iphone ***/
  22. /* device-aspect-ratio: 2/3 - iPhone < 5 */
  23. /* device-aspect-ratio: 40/71 - iPhone 5, 5C, 5S, iPod Touch 5g */
  24. /* device-aspect-ratio: 375/667 - iPhone 6, iPhone 6s, iPhone 7 portrait/landscape */
  25. /* device-aspect-ratio: 9/16 - iPhone 6 Plus, iPhone 6s Plus, iPhone 7 Plus portrait/landscape */
  26. @mixin disable-input-zoom {
  27. @media screen and (device-aspect-ratio: 2/3), screen and (device-aspect-ratio: 40/71), screen and (device-aspect-ratio: 375/667), screen and (device-aspect-ratio: 9/16) {
  28. @content;
  29. }
  30. }