Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. @mixin clearfix {
  2. &::after {
  3. content: "";
  4. display: table;
  5. clear: both;
  6. }
  7. }
  8.  
  9. @mixin absCenter {
  10. position: absolute;
  11. top: 50%;
  12. left: 50%;
  13. transform: translate(-50%, -50%);
  14. }
  15.  
  16.  
  17. // MEDIA QUERY MANAGER
  18. /*
  19. 0 - 600px: Phone
  20. 600 - 900px: Tablet portrait
  21. 900 - 1200px: Tablet landscape
  22. [1200 - 1800] is where our normal styles apply
  23. 1800px + : Big desktop
  24.  
  25. $breakpoint arguement choices:
  26. - phone
  27. - tab-port
  28. - tab-land
  29. - big-desktop
  30.  
  31. ORDER: Base + typography > general layout + grid > page layout > components
  32.  
  33. 1em = 16px
  34. */
  35. @mixin respond($breakpoint) {
  36. @if $breakpoint == phone {
  37. @media only screen and (max-width: 37.5em) { @content }; //600px
  38. }
  39. @if $breakpoint == tab-port {
  40. @media only screen and (max-width: 56.25em) { @content }; //900px
  41. }
  42. @if $breakpoint == tab-land {
  43. @media only screen and (max-width: 75em) { @content }; //1200px
  44. }
  45. @if $breakpoint == big-desktop {
  46. @media only screen and (min-width: 112.5em) { @content }; //1800
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement