Media query mixins for SCSS

    0

    0

    SASS/SCSS Starter Kit

    Shortcut: scss.mixin.media.query

    $tablet: 768;
    $large: 1024;
    $desktop: 1280;
    
    @mixin tablet {
      @media only screen and (min-width: $tablet * 1px) {
        @content;
      }
    }
    
    @mixin large {
      @media only screen and (min-width: $large * 1px) {
        @content;
      }
    }
    
    @mixin desktop {
      @media only screen and (min-width: $desktop * 1px) {
        @content;
      }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.