Giter Site home page Giter Site logo

breakpoints's Introduction

Breakpoints

Media queries for working with different devices. The breakpoints for each query can be customized so that they match your grid.

Installation

fonzie install breakpoints

Then import them:

@import "breakpoints";

Usage

The mixins make use of content blocks in mixins. Just pick a mixin and use it anywhere.

@include mobile {
  body {
    background: #eee;
    padding: 40px;
  }
}

.box {
  width: 500px;
  @include tablet-portrait {
    width: 250px;
  }
  @include mobile {
    width: 100px;
  }
}

You can adjust the points used for these media queries by changing variables:

$mq-mobile-portrait: 340px;
$mq-mobile-landscape: 500px;
$mq-tablet-portrait: 700px;
$mq-tablet-landscape: 900px;
$mq-desktop: 1100px;

Mixins

There are a number of mixins available for targeting above, below and on a breakpoint.

  • mobile
  • mobile-portrait
  • mobile-portrait-and-below
  • mobile-portrait-and-up
  • mobile-landscape
  • mobile-landscape-and-below
  • mobile-landscape-and-up
  • tablet
  • tablet-portrait
  • tablet-portrait-and-below
  • tablet-portrait-and-up
  • tablet-landscape
  • tablet-landscape-and-below
  • tablet-landscape-and-up
  • desktop-and-up
  • desktop-and-below
  • desktop

breakpoints's People

Contributors

anthonyshort avatar

Stargazers

Dave Dawson avatar

Watchers

James Cloos avatar Fonzie 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.