Skip to content

Commit

Permalink
Initial public release
Browse files Browse the repository at this point in the history
  • Loading branch information
necolas committed Mar 3, 2013
0 parents commit 9ee9cdd
Show file tree
Hide file tree
Showing 5 changed files with 177 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
=== HEAD

=== 0.1.0 (March 3, 2013)

* Public release.
19 changes: 19 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) Nicolas Gallagher

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.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# SUIT utilities: dimension

A SUIT collection of utility classes for low-level CSS dimension traits.

Read more about [SUIT's design principles](https://github.com/necolas/suit/).

## Installation

* Download: [zip](https://github.com/necolas/suit-utils-dimension/zipball/master)
* [Bower](https://github.com/twitter/bower/): `bower install suit-utils-dimension`
* Git: `git clone https://github.com/necolas/suit-utils-dimension.git`

## Usage

Please refer to the README for [SUIT utils](https://github.com/necolas/suit-utils/)

## Browser support

* Google Chrome (latest)
* Opera (latest)
* Firefox 4+
* Safari 5+
* Internet Explorer 8+
6 changes: 6 additions & 0 deletions component.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "suit-utils-dimension",
"version": "0.1.0",
"author": "Nicolas Gallagher",
"main": "dimension.css"
}
124 changes: 124 additions & 0 deletions dimension.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
/* ==========================================================================
Dimension utilities
========================================================================== */

/* Proportional units
========================================================================== */

/**
* Specify the proportional width of an object.
* Intentional redundancy build into each set of unit classes.
* Supports: 2, 4, 5, 6, 8, 10, 12 part
*/

.u-1of12 {
width: 8.333%;
}

.u-1of10 {
width: 10%;
}

.u-1of8 {
width: 12.5%;
}

.u-1of6,
.u-2of12 {
width: 16.667%;
}

.u-1of5,
.u-2of10 {
width: 20%;
}

.u-1of4,
.u-2of8,
.u-3of12 {
width: 25%;
}

.u-3of10 {
width: 30%;
}

.u-1of3,
.u-2of6,
.u-3of9,
.u-4of12 {
width: 33.333%;
}

.u-3of8 {
width: 37.5%;
}

.u-2of5,
.u-4of10 {
width: 40%;
}

.u-5of12 {
width: 41.667%;
}

.u-1of2,
.u-2of4,
.u-3of6
.u-4of8,
.u-5of10,
.u-6of12 {
width: 50%;
}

.u-7of12 {
width: 58.333%;
}

.u-3of5,
.u-6of10 {
width: 60%;
}

.u-5of8 {
width: 62.5%;
}

.u-2of3,
.u-4of6,
.u-8of12 {
width: 66.667%;
}

.u-7of10 {
width: 70%;
}

.u-3of4,
.u-6of8,
.u-9of12 {
width: 75%;
}

.u-4of5,
.u-8of10 {
width: 80%;
}

.u-5of6,
.u-10of12 {
width: 83.333%;
}

.u-7of8 {
width: 87.5%;
}

.u-9of10 {
width: 90%;
}

.u-11of12 {
width: 91.667%;
}

0 comments on commit 9ee9cdd

Please sign in to comment.