Bez popisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_mixins.scss 966B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. @mixin absCenter {
  2. position: absolute;
  3. top: 50%;
  4. left: 50%;
  5. transform: translate(-50%, -50%);
  6. }
  7. // MEDIA QUERY MANAGER
  8. /*
  9. 0 - 600px: Phone
  10. 600 - 900px: Tablet portrait
  11. 900 - 1200px: Tablet landscape
  12. [1200 - 1800] is where our normal styles apply
  13. 1800px + : Big desktop
  14. $breakpoint arguement choices:
  15. - phone
  16. - tab-port
  17. - tab-land
  18. - big-desktop
  19. ORDER: Base + typography > general layout + grid > page layout > components
  20. 1em = 16px
  21. */
  22. @mixin respond($breakpoint) {
  23. @if $breakpoint == phone {
  24. @media only screen and (max-width: 600px) { @content }; //600px
  25. }
  26. @if $breakpoint == tab-port {
  27. @media only screen and (max-width: 900px) { @content }; //900px
  28. }
  29. @if $breakpoint == tab-land {
  30. @media only screen and (max-width: 1200px) { @content }; //1200px
  31. }
  32. @if $breakpoint == big-desktop {
  33. @media only screen and (min-width: 1800) { @content }; //1800
  34. }
  35. }