Giter Site home page Giter Site logo

lay's Introduction

lay

Awesome dynamic layout helpers using css tables

Component

  • .lay - Main component. Setup the layout container

Markup

<div class="lay">
  <div></div> // 1/3 column
  <div></div> // 1/3 column
  <div></div> // 1/3 column
</div>
<div class="lay">
  <div></div> // 1/4 column
  <div></div> // 1/4 column
  <div></div> // 1/4 column
  <div></div> // 1/4 column
</div>

Container Modifiers

Variants

  • .lay--fixed - Fixed table. All columns same size or keep size of specific columns

Spacing

  • .lay--s - Small padding
  • .lay--m - Medium padding
  • .lay--l - large padding

Vertical Align

  • .lay--top - Top align
  • .lay--middle - Middle align
  • .lay--bottom - Bottom align

Text Align

  • .lay--left - Left text align
  • .lay--center - Center text align
  • .lay--right - Right text align

Colum Modifiers

Widths

  • .lay--w0 - Smallest width possible. Depending on the content
  • .lay--w10 - 10%
  • .lay--w20 - 20%
  • .lay--w30 - 30%
  • .lay--w40 - 40%
  • .lay--w50 - 50%
  • .lay--w60 - 60%
  • .lay--w70 - 70%
  • .lay--w80 - 80%
  • .lay--w90 - 90%

Rows

  • .lay--rows - Nested rows

Markup

<div class="lay lay-rows">
  <div> // Row
    <div></div> // 1/3 column
    <div></div> // 1/3 column
    <div></div> // 1/3 column
  </div>
  <div> // Row
    <div></div> // 1/3 column
    <div></div> // 1/3 column
    <div></div> // 1/3 column
  </div>
</div>

Media queries

  • .lay--offMobile - Disable mobile layout. Defaults to block elements
  • .lay--offTablet - Disable tablet layout. Defaults to block elements
  • .lay--offDesktop - Disable desktop layout. Defaults to block elements

lay's People

Contributors

antoniozzo avatar

Watchers

 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.