Skip to content

Instantly share code, notes, and snippets.

@nilsmehlhorn
Created February 20, 2020 15:00
Show Gist options
  • Save nilsmehlhorn/2f204298710c668120c05b15c025d51e to your computer and use it in GitHub Desktop.
Save nilsmehlhorn/2f204298710c668120c05b15c025d51e to your computer and use it in GitHub Desktop.
Variables for (S)CSS MediaQueries on Material breakpoints
$mat-lt-sm: "(max-width: 599px)";
$mat-lt-md: "(max-width: 959px)";
$mat-lt-lg: "(max-width: 1279px)";
$mat-lt-xl: "(max-width: 1919px)";
$mat-gt-xs: "(min-width: 600px)";
$mat-gt-sm: "(min-width: 960px)";
$mat-gt-md: "(min-width: 1280px)";
$mat-gt-xl: "(min-width: 1920px)";
$mat-xs: $mat-lt-sm;
$mat-sm: $mat-gt-xs and $mat-lt-md;
$mat-md: $mat-gt-sm and $mat-lt-lg;
$mat-lg: $mat-gt-md and $mat-lt-xl;
$mat-xl: $mat-gt-xl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment