GithubHelp home page GithubHelp logo

mediaqueries's Introduction

mediaQueries

this is a mixin for sass Mobile use media query

see more from demo

how to run demo

sass demo.scss demo.css
iPad media query

min-device-width: 768px
max-device-width: 1024px

1. iPad1-iPad2-iPadmini
2. iPad3-iPad4 has Retina
iPhone media query

1. iPhone2G-4S

min-device-width: 320px
max-device-width: 480px

Not: iPhone4 and 4S has Retina

2. iPhone5

min-device-width: 320px
max-device-width: 568px
screen

1. {param} $resMin for min-width 
2. {param} $resMax for max-width

@media screen and (min-width: $resMin) and (max-width: $resMax) {
    @content;
}
max-screen

1.{param} $res for max-width 

@media screen and (max-width: $res) {
    @content;
}
min-screen

1.{param} $res for min-width 

@media screen and (min-width: $res) {
    @content;
}
orientation

1.{param} $orientation for orientation

@media screen and (orientation: $orientation) {
    @content;
}

mediaqueries's People

Contributors

zhangyaochun avatar

Stargazers

 avatar Jet.Fine avatar ZhangNing avatar HuangYi avatar J.Y Han avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.