https://github.com/zessx/24ss
A 24-columns solid grid for SASS
https://github.com/zessx/24ss
Last synced: about 2 months ago
JSON representation
A 24-columns solid grid for SASS
- Host: GitHub
- URL: https://github.com/zessx/24ss
- Owner: zessx
- License: mit
- Created: 2014-01-23T16:14:32.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-02-10T16:00:03.000Z (over 11 years ago)
- Last Synced: 2025-11-21T12:04:07.364Z (7 months ago)
- Language: CSS
- Homepage: http://work.smarchal.com/24ss
- Size: 258 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

24SSgrid is a 24-columns solid grid for SASS.
Installation
------------
1. Download the [latest release](https://github.com/zessx/24ss/releases) of 24SS
2. Copy the `scss/24SSgrid.scss` file in your project
3. Add this line to your main SASS file : `@import "24SSgrid";`
Customization
-------------
You are able to specify a few variables to custom your grid, adding those lines to your main SASS file :
$sg-nb-column: 24; // columns number
$sg-class-prefix: ''; // class prefix
$sg-column-width: 30px; // columns width
$sg-gutter-width: 10px; // space between columns
$sg-margin-width: 5px; // space around rows
$sg-background-debug: rgba(255, 0, 0, 0.2); // color used to highlight block in debug mode
Usage
-----
- Use the `.row` class on your wrapper
- Use both `.col` and `.col-x` classes on your columns
- Use `.offset-x` classes to manage empty columns
- Use `.break` class to force next column to be on a new line
- You can use nested columns
Example :
Debug
-----
You can use the `.debug` class to quickly highlight your grid blocks.
This class can be used either on an element or on a parent :
For any reason, you may want to disable the debug mode on a specific element.
This can be done using the `.no-debug` class :
Legals
------
- Author : [zessx](https://github.com/zessx)
- Licence : [MIT](http://opensource.org/licenses/MIT)
- Contact : [@zessx](https://twitter.com/zessx)
- Link : [http://24ss.smarchal.com](http://24ss.smarchal.com)
Donations
---------
[](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KTYWBM9HJMMSE&lc=FR&item_name=Buy%20a%20coffee%20to%20zessx%20%28Samuel%20Marchal%29¤cy_code=EUR&bn=PP%2dDonationsBF%3abmac%3aNonHosted)
TODO
----
- Add fluid grid
- Find a way to avoid `.break` usage