Skip to content

Instantly share code, notes, and snippets.

@noelworden
Last active August 8, 2020 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noelworden/5e0498915559a0e6e498c7219338fa9b to your computer and use it in GitHub Desktop.
Save noelworden/5e0498915559a0e6e498c7219338fa9b to your computer and use it in GitHub Desktop.
#helpers

mixins.scss

  $breakpoints: (
  'xs' : ( min-width:  $break-xs  ),
  'sm' : ( min-width:  $break-sm  ),
  'md' : ( min-width:  $break-md  ),
  'lg' : ( min-width:  $break-lg  ),
  'xl' : ( min-width:  $break-xl  ),
  'xxl': ( min-width:  $break-xxl )
  );

  @mixin breakpoint($name) {
    @media #{inspect(map-get($breakpoints, $name))} {
      @content;
    }
  }

variables.scss

  $break-xs:           350px  !default;
  $break-sm:           580px  !default;
  $break-md:           768px  !default;
  $break-lg:           1024px !default;
  $break-xl:           1280px !default;
  $break-xxl:          1440px !default;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment