GithubHelp home page GithubHelp logo

trysound / patch-layout Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 3.0 64 KB

Inline layout system

Home Page: http://trysound.github.io/patch-layout/

License: MIT License

CSS 64.44% JavaScript 6.01% HTML 29.54%

patch-layout's Introduction

patch-layout

Inline layout system

Why

  • Columns use inline document flow
  • Columns could be aligned vertically!
  • .push-xs-n, .pull-sm-n for shorter markup
  • Fixed bootstrap visibility utils for mobile first
  • Default screen ratio (16by9) for embed content

Install

bower i patch-layout -S
npm i patch-layout -S

Media Queries

  • xs - to 544px
  • sm - 545px to 767px
  • md - 768px to 991px
  • lg - 992px to 1199px
  • xl - 1200px and greater

Grid

  • .container
  • .row

Columns

n is 1-12 column width/offset indent

  • .col-xs-n
  • .col-sm-n
  • .col-md-n
  • .col-lg-n

Relative move

Push - to left, pull - to right

  • .push-xs-n - .pull-xs-n
  • .push-sm-n - .pull-sm-n
  • .push-md-n - .pull-md-n
  • .push-lg-n - .pull-lg-n

Responsive Media

  • .embed-responsive - wrapper. By default 16by9
  • .embed-responsive--4by3
  • .embed-responsive--16by9
  • .embed-responsive--21by9
  • iframe, embed, object, video and .embed-responsive-item are children
  • .img-responsive

License

The MIT License (MIT)

Copyright © 2015 Bogdan Chadkin

patch-layout's People

Contributors

trysound avatar

Stargazers

Chris Hart avatar tamer avatar Mark Langovoi avatar Vladimir Kalmykov avatar Ivan Lemeshev avatar Alexey Orlenko avatar  avatar Konstantin Ryzhov avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

patch-layout's Issues

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.