Skip to content

anjum121/scss-mixins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

scss-mixins

its handy way to have SCSS useful mixins to use responsive layout.

    @mixin bp-xxs-max {
      @media only screen and (max-width: $screen-xxs-max){
        @content;
      }
    }

    @mixin bp-xs-max {
         @media only screen and (max-width: $screen-xs-max){
            @content;
        }
    }
    @mixin bp-sm-max {
         @media only screen and (max-width: $screen-sm-max){
            @content;
        }
    }
    @mixin bp-md-max {
         @media only screen and (max-width: $screen-md-max){
            @content;
        }
    }
    @mixin bp-lg-max {
         @media only screen and (max-width: $screen-lg-max){
            @content;
        }
    }

In your scss file you can use is above mixing such as

    body{

      @include bp-md-max{
        background: orange;
        @include transitions(0.4s);
      }

      @include bp-sm-max{
        background: green;
        @include transitions(0.4s);
      }

      @include bp-xs-max{
        background: red;
        @include transitions(0.4s);
      }

      @include bp-xxs-max{
        background: pink;
        @include transitions(0.4s);
      }
    }

![ScreenShot](Oct-23-2016 14-49-56.gif)

About

Handy Mixings with usage guid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages