Giter Site home page Giter Site logo

maze's Introduction

Maze

Maze is a responsive grid built using Sass and HTML5, the grid is easily customisable with editable options for grid columns, gutter widths, break points and push values. Each content block reacts differently allowing for all content types and devices.

Support

If you have any questions get in touch:

Features

  • Semantic markup.
  • Cross-browser compatible (Chrome, Firefox, IE9+, Safari, polyfills can be added for ie8 and 7).
  • Configurable column layout, Traditional & Ratio.
  • Configurable breakpoints.
  • Configurable gutter.
  • Optional push values.

Guide

Include the grid mixin on each element in a row, adding up to the $$total-grid-columns variable.

@include grid(3)  -  spans 3 columns of $total-grid-columns
@include grid(6)  -  spans 6 columns of $total-grid-columns

Grid Ratio:

When the design does not fit a traditional coloum layout ratios can be used to create the grid. the $grid-size mixin argument overrides the $total-grid-columns variable.

@include grid(2, $grid-size:5); - Size Two of Five
@include grid(3, $grid-size:5); - Size Three of Five

Margin:

The grid’s default margin is set using the $gutter variable. To override this on any row add a value to the optional argument in the mixin…

@include grid(8, $margin:0) or
@include grid(8, $margin:4%)

Note: The margin needs to be consistent across each row.

Breakpoints:

Breakpoints are included in the same way as the main grid...

 @include grid(3)            - Desktop spans 3 columns of $total-grid-columns
 @include break(tablet, 6);  - Tablet spans 6 columns of $total-grid-columns
 @include break(mobile, 12);   - Mobile spans 12 columns of $total-grid-columns

Fold/Float Direction:

By default columns will float left and collapse from the right hand side of the page. To change this to right floated columns which collapse from the left add the value ’right’ to the optional argument in the grid mixin..

grid(3, $fold:"right"); - spans 3 columns is floated Right and will collapse from the left

Push:

.push-two {
  @include grid(2, $push:2); - Add two column spans to the margin.
}

Log

  • V1.0.1 (14/01/2014) - Upload first version for testing.
  • V1.0.2 (19/01/2014) - Reastructure Sass folder.
  • V1.1.0 (30/03/2014) - Add option to collapse columns from the left.
  • V1.1.1 (20/05/2014) - Adjust the Push code, Add default vertical scroll bar and min width property.
  • V1.1.2 (29/06/2014) - Add the option to over-ride the default margin variable in an optional argument.
  • V2.0.1 (02/02/2015) - Add the option to use grid ratios as well as traditional column layouts.

License

The MIT License (MIT)

Copyright (c) [2014] [Cathy Dutton]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

maze's People

Contributors

cathydutton avatar xiaomingming avatar

Watchers

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