Skip to content

A Sass mixing that creates a small, simple, and useful fluid grid systems. http://thinkxl.github.io/hyx.less/

License

Notifications You must be signed in to change notification settings

juanbzpy/tequila.scss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tequila.scss

A SCSS mixing that creates small, simple, and useful fluid grid systems.

The last four years of freelancing I got several issues using other grids, not because they were bad, but because there is not one complete solution for every problem.

I came up with my own solution, a mixing function that can create a fluid grid with the column sizes I need, only that, other customization to the grid can be done with the project requirements.

The goal of this project resides on Doug McIlroy's famous summation of the Unix philosophy:

Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface.

Easy it is to use:

$ bower install tequila.scss
@import 'tequila';

// Settings
$gutter: 3%;
@include namespace('col-');

.col-1-2 {
  @include fraction(1/2);
}

sidebar {
  @include cols(4, 0);
}

Note: Better documentation on how to create your own grid will be available soon. For now, you can check Fraction.css, built with Tequila.scss.

Features and goals

  • Flexibility between keep your DOM clean and semantic or use a more OOCSS-ish approach in your projects.
  • Have a flexible gutter size: you can change it whenever you want and your grid won't break.
  • Be small, simple, fast and useful.
  • Mantain a powerful and easy to understand syntax, .cols(1/3); for one column of three, and .cols(8); for one element with the size of eight columns.
  • Get only what you need, this tool is designed to build a grid ad-hoc to your project. You are not stuck with a rigid API.
  • You will get an extensible/hackeable result, Tequila.scss won't try to do all the work, you get a fluid grid system that you can modify any way you want.

Installation

Install tequila.scss by running:

$ bower install tequila.scss

Contribute

Credits and Thanks

  • Special thanks to @Snugug, helped me to understand how grids works and suggested a better implementation of this project.
  • ##frontend IRC channel, because they help me every time I ask a dumb questions.

License

The project is licensed under the MIT license.

About

A Sass mixing that creates a small, simple, and useful fluid grid systems. http://thinkxl.github.io/hyx.less/

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages