compass-inuit 4.1.1 → 4.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -12
- data/stylesheets/partials/_base.scss +8 -8
- data/stylesheets/partials/_generic.scss +7 -7
- data/stylesheets/partials/_objects.scss +18 -12
- data/stylesheets/partials/base/_code.scss +8 -4
- data/stylesheets/partials/base/_forms.scss +47 -14
- data/stylesheets/partials/base/_headings.scss +3 -1
- data/stylesheets/partials/base/_links.scss +22 -8
- data/stylesheets/partials/base/_lists.scss +5 -3
- data/stylesheets/partials/base/_main.scss +3 -2
- data/stylesheets/partials/base/_paragraphs.scss +2 -2
- data/stylesheets/partials/base/_quotes.scss +10 -7
- data/stylesheets/partials/base/_smallprint.scss +2 -4
- data/stylesheets/partials/base/_tables.scss +32 -19
- data/stylesheets/partials/generic/_clearfix.scss +3 -1
- data/stylesheets/partials/generic/_debug.scss +168 -0
- data/stylesheets/partials/generic/_helper.scss +15 -8
- data/stylesheets/partials/generic/_mixins.scss +58 -4
- data/stylesheets/partials/generic/_pull.scss +91 -0
- data/stylesheets/partials/generic/_push.scss +91 -0
- data/stylesheets/partials/generic/_reset.scss +20 -1
- data/stylesheets/partials/generic/_shared.scss +14 -3
- data/stylesheets/partials/generic/_widths.scss +95 -0
- data/stylesheets/partials/objects/_block-list.scss +12 -8
- data/stylesheets/partials/objects/_breadcrumb.scss +59 -0
- data/stylesheets/partials/objects/_buttons.scss +3 -0
- data/stylesheets/partials/objects/_columns.scss +7 -11
- data/stylesheets/partials/objects/_complex-link.scss +1 -1
- data/stylesheets/partials/objects/_flexbox.scss +13 -1
- data/stylesheets/partials/objects/_flyout.scss +4 -2
- data/stylesheets/partials/objects/_greybox.scss +54 -0
- data/stylesheets/partials/objects/_grids-ie7.scss +47 -0
- data/stylesheets/partials/objects/_grids.scss +34 -91
- data/stylesheets/partials/objects/_icon-text.scss +7 -7
- data/stylesheets/partials/objects/_island.scss +2 -1
- data/stylesheets/partials/objects/_lozenges.scss +21 -14
- data/stylesheets/partials/objects/_matrix.scss +16 -10
- data/stylesheets/partials/objects/_media.scss +2 -1
- data/stylesheets/partials/objects/_nav.scss +98 -16
- data/stylesheets/partials/objects/_options.scss +39 -0
- data/stylesheets/partials/objects/_pagination.scss +1 -1
- data/stylesheets/partials/objects/_rules.scss +61 -0
- data/stylesheets/partials/objects/_split.scss +2 -2
- data/stylesheets/partials/objects/_sprite.scss +30 -15
- data/stylesheets/partials/objects/_stats.scss +45 -0
- data/stylesheets/partials/objects/_this-or-this.scss +6 -5
- data/templates/project/config.rb +5 -0
- data/templates/project/index.html +55 -0
- data/templates/project/manifest.rb +9 -2
- data/templates/project/sass/_vars.scss +68 -0
- data/templates/project/{your-project.scss → sass/your-project.scss} +15 -1
- data/templates/project/watch.sh +12 -0
- metadata +18 -5
- data/templates/project/_vars.scss +0 -38
data/README.md
CHANGED
@@ -53,19 +53,9 @@ If you use and/or like inuit.css, perhaps you might consider [supporting it
|
|
53
53
|
through Gumroad](http://gum.co/nOoht).
|
54
54
|
|
55
55
|
## Credits
|
56
|
+
Based on **[Harry Roberts's](http://github.com/csswizardry)** inuit.css framework.
|
56
57
|
|
57
|
-
|
58
|
-
been possible without inspiration and work from an array of other people.
|
59
|
-
|
60
|
-
* **[Nicole Sullivan](https://twitter.com/stubbornella)** for her work on OOCSS
|
61
|
-
* **[Jonathan Snook](https://twitter.com/snookca)** for his work on SMACSS
|
62
|
-
* **[Nicolas Gallagher](https://twitter.com/necolas)** for his work on various
|
63
|
-
CSS things
|
64
|
-
* **[Bryan James](https://twitter.com/WengersToyBus)** for the inuit.css logo
|
65
|
-
|
66
|
-
And probably more…
|
67
|
-
|
68
|
-
This Compass extension was created by **[Stephen Way](https://twitter.com/stephencway)**
|
58
|
+
This extension was created by **[Stephen Way](http://github.com/stephenway)**
|
69
59
|
|
70
60
|
**inuit.css is the most powerful little framework out there, and it’s ready to
|
71
61
|
go!**
|
@@ -1,14 +1,14 @@
|
|
1
1
|
/**
|
2
2
|
* Base styles; unclassed HTML elements etc.
|
3
3
|
*/
|
4
|
-
@import "partials/base/main";
|
5
|
-
@import "partials/base/headings";
|
6
|
-
@import "partials/base/paragraphs";
|
7
|
-
@import "partials/base/smallprint";
|
8
|
-
@import "partials/base/quotes";
|
9
4
|
@import "partials/base/code";
|
10
|
-
@import "partials/base/
|
5
|
+
@import "partials/base/forms";
|
6
|
+
@import "partials/base/headings";
|
11
7
|
@import "partials/base/images";
|
8
|
+
@import "partials/base/links";
|
12
9
|
@import "partials/base/lists";
|
13
|
-
@import "partials/base/
|
14
|
-
@import "partials/base/
|
10
|
+
@import "partials/base/main";
|
11
|
+
@import "partials/base/paragraphs";
|
12
|
+
@import "partials/base/quotes";
|
13
|
+
@import "partials/base/smallprint";
|
14
|
+
@import "partials/base/tables";
|
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
2
|
* Generic utility styles etc.
|
3
3
|
*/
|
4
|
+
@import "partials/generic/brand";
|
5
|
+
@import "partials/generic/clearfix";
|
6
|
+
@import "partials/generic/debug";
|
7
|
+
@import "partials/generic/helper";
|
4
8
|
@import "partials/generic/mixins";
|
9
|
+
@import "partials/generic/pull";
|
10
|
+
@import "partials/generic/push";
|
5
11
|
@import "partials/generic/reset";
|
6
|
-
@import "partials/generic/clearfix";
|
7
12
|
@import "partials/generic/shared";
|
8
|
-
|
9
|
-
/**
|
10
|
-
* Style trumps; helper and brand classes
|
11
|
-
*/
|
12
|
-
@import "partials/generic/brand";
|
13
|
-
@import "partials/generic/helper";
|
13
|
+
@import "partials/generic/widths";
|
@@ -1,20 +1,26 @@
|
|
1
1
|
/**
|
2
2
|
* Objects and abstractions
|
3
3
|
*/
|
4
|
-
@import "partials/objects/
|
5
|
-
@import "partials/objects/
|
4
|
+
@import "partials/objects/block-list";
|
5
|
+
@import "partials/objects/breadcrumb";
|
6
|
+
@import "partials/objects/buttons";
|
6
7
|
@import "partials/objects/columns";
|
7
|
-
@import "partials/objects/
|
8
|
-
@import "partials/objects/
|
9
|
-
@import "partials/objects/
|
8
|
+
@import "partials/objects/complex-link";
|
9
|
+
@import "partials/objects/flexbox";
|
10
|
+
@import "partials/objects/flyout";
|
11
|
+
@import "partials/objects/greybox";
|
12
|
+
@import "partials/objects/grids-ie7";
|
13
|
+
@import "partials/objects/grids";
|
14
|
+
@import "partials/objects/icon-text";
|
10
15
|
@import "partials/objects/island";
|
11
|
-
@import "partials/objects/
|
16
|
+
@import "partials/objects/lozenges";
|
12
17
|
@import "partials/objects/matrix";
|
18
|
+
@import "partials/objects/media";
|
19
|
+
@import "partials/objects/nav";
|
20
|
+
@import "partials/objects/options";
|
21
|
+
@import "partials/objects/pagination";
|
22
|
+
@import "partials/objects/rules";
|
13
23
|
@import "partials/objects/split";
|
14
|
-
@import "partials/objects/this-or-this";
|
15
|
-
@import "partials/objects/complex-link";
|
16
|
-
@import "partials/objects/flyout";
|
17
24
|
@import "partials/objects/sprite";
|
18
|
-
@import "partials/objects/
|
19
|
-
@import "partials/objects/
|
20
|
-
@import "partials/objects/lozenges";
|
25
|
+
@import "partials/objects/stats";
|
26
|
+
@import "partials/objects/this-or-this";
|
@@ -16,11 +16,12 @@ pre{
|
|
16
16
|
color:inherit;
|
17
17
|
}
|
18
18
|
|
19
|
+
|
19
20
|
/**
|
20
21
|
* Add comments to your code examples, e.g.:
|
21
|
-
*
|
22
|
+
*
|
22
23
|
<code></div><span class=code-comment><!-- /wrapper --></span></code>
|
23
|
-
*
|
24
|
+
*
|
24
25
|
*/
|
25
26
|
.code-comment{
|
26
27
|
/**
|
@@ -30,9 +31,11 @@ pre{
|
|
30
31
|
filter:alpha(opacity=75);
|
31
32
|
}
|
32
33
|
|
34
|
+
|
33
35
|
/**
|
34
36
|
* You can add line numbers to your code examples but be warned, it requires
|
35
|
-
* some pretty funky looking markup, e.g.:
|
37
|
+
* some pretty funky looking (and technically invalid) markup, e.g.:
|
38
|
+
*
|
36
39
|
<pre class=numbered>
|
37
40
|
<ol class=numbered__numbers>
|
38
41
|
<li><code>.nav{</code></li>
|
@@ -46,7 +49,8 @@ pre{
|
|
46
49
|
<li><code> zoom:1;</code></li>
|
47
50
|
<li><code> }</code></li>
|
48
51
|
</ol>
|
49
|
-
</pre
|
52
|
+
</pre>
|
53
|
+
*
|
50
54
|
*/
|
51
55
|
.numbered{
|
52
56
|
white-space:nowrap;
|
@@ -1,10 +1,16 @@
|
|
1
1
|
/*------------------------------------*\
|
2
2
|
$FORMS
|
3
3
|
\*------------------------------------*/
|
4
|
+
/**
|
5
|
+
*
|
6
|
+
* Demo: jsfiddle.net/inuitcss/MhHHU
|
7
|
+
*
|
8
|
+
*/
|
4
9
|
fieldset{
|
5
10
|
padding:$base-spacing-unit +px;
|
6
11
|
}
|
7
12
|
|
13
|
+
|
8
14
|
/**
|
9
15
|
* Text inputs
|
10
16
|
*
|
@@ -13,7 +19,7 @@ fieldset{
|
|
13
19
|
<input type=text class=text-input>
|
14
20
|
<input type=email class=text-input>
|
15
21
|
<input type=password class=text-input>
|
16
|
-
*
|
22
|
+
*
|
17
23
|
*/
|
18
24
|
.text-input,
|
19
25
|
textarea{
|
@@ -22,8 +28,10 @@ textarea{
|
|
22
28
|
*/
|
23
29
|
}
|
24
30
|
|
31
|
+
|
25
32
|
/**
|
26
33
|
* Group sets of form fields in a list, e.g.:
|
34
|
+
*
|
27
35
|
<ul class=form-fields>
|
28
36
|
<li>
|
29
37
|
<label />
|
@@ -38,29 +46,30 @@ textarea{
|
|
38
46
|
<input />
|
39
47
|
</li>
|
40
48
|
</ul>
|
41
|
-
*
|
49
|
+
*
|
42
50
|
*/
|
43
51
|
.form-fields{
|
44
52
|
list-style:none;
|
45
53
|
margin:0;
|
46
54
|
}
|
47
55
|
.form-fields > li{
|
48
|
-
@extend
|
56
|
+
@extend %sass-margin-bottom;
|
49
57
|
}
|
50
58
|
.form-fields > li:last-child{
|
51
59
|
margin-bottom:0;
|
52
60
|
}
|
53
61
|
|
62
|
+
|
54
63
|
/**
|
55
64
|
* Labels
|
56
|
-
*
|
65
|
+
*
|
57
66
|
* Define a `.label` class as well as a `label` element. This means we can apply
|
58
67
|
* label-like styling to meta-labels for groups of options where a `label`
|
59
68
|
* element is not suitable, e.g.:
|
60
|
-
*
|
69
|
+
*
|
61
70
|
<li>
|
62
71
|
<span class=label>Select an option below:</span>
|
63
|
-
<ul class="multi-list
|
72
|
+
<ul class="multi-list four-cols">
|
64
73
|
<li>
|
65
74
|
<input /> <label />
|
66
75
|
</li>
|
@@ -75,7 +84,7 @@ textarea{
|
|
75
84
|
</li>
|
76
85
|
</ul>
|
77
86
|
</li>
|
78
|
-
*
|
87
|
+
*
|
79
88
|
*/
|
80
89
|
label,
|
81
90
|
.label{
|
@@ -83,18 +92,19 @@ label,
|
|
83
92
|
}
|
84
93
|
/**
|
85
94
|
* Extra help text in `label`s, e.g.:
|
86
|
-
*
|
95
|
+
*
|
87
96
|
<label>Card number <small class=additional>No spaces</small></label>
|
88
|
-
*
|
97
|
+
*
|
89
98
|
*/
|
90
99
|
.additional{
|
91
100
|
display:block;
|
92
101
|
font-weight:normal;
|
93
102
|
}
|
94
103
|
|
104
|
+
|
95
105
|
/*
|
96
106
|
* Groups of checkboxes and radios, e.g.:
|
97
|
-
*
|
107
|
+
*
|
98
108
|
<li>
|
99
109
|
<ul class=check-list>
|
100
110
|
<li>
|
@@ -105,7 +115,7 @@ label,
|
|
105
115
|
</li>
|
106
116
|
</ul>
|
107
117
|
</li>
|
108
|
-
*
|
118
|
+
*
|
109
119
|
*/
|
110
120
|
.check-list{
|
111
121
|
list-style:none;
|
@@ -120,9 +130,10 @@ label,
|
|
120
130
|
display:inline-block;
|
121
131
|
}
|
122
132
|
|
133
|
+
|
123
134
|
/**
|
124
135
|
* Spoken forms are for forms that read like spoken word, e.g.:
|
125
|
-
*
|
136
|
+
*
|
126
137
|
<li class=spoken-form>
|
127
138
|
Hello, my <label for=spoken-name>name</label> is
|
128
139
|
<input type=text class=text-input id=spoken-name>. My home
|
@@ -133,9 +144,31 @@ label,
|
|
133
144
|
<option>Other</option>
|
134
145
|
</select>
|
135
146
|
</li>
|
136
|
-
*
|
147
|
+
*
|
137
148
|
*/
|
138
149
|
.spoken-form label{
|
139
150
|
display:inline-block;
|
140
151
|
font:inherit;
|
141
|
-
}
|
152
|
+
}
|
153
|
+
|
154
|
+
|
155
|
+
/**
|
156
|
+
* Extra help text displayed after a field when that field is in focus, e.g.:
|
157
|
+
*
|
158
|
+
<label for=email>Email:</label>
|
159
|
+
<input type=email class=text-input id=email>
|
160
|
+
<small class=extra-help>.edu emails only</small>
|
161
|
+
*
|
162
|
+
* We leave the help text in the document flow and merely set it to
|
163
|
+
* `visibility:hidden;`. This means that it won’t interfere with anything once
|
164
|
+
* it reappears.
|
165
|
+
*
|
166
|
+
*/
|
167
|
+
/*small*/.extra-help{
|
168
|
+
display:inline-block;
|
169
|
+
visibility:hidden;
|
170
|
+
}
|
171
|
+
.text-input:active + .extra-help,
|
172
|
+
.text-input:focus + .extra-help{
|
173
|
+
visibility:visible;
|
174
|
+
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
\*------------------------------------*/
|
4
4
|
/**
|
5
5
|
* As per: csswizardry.com/2012/02/pragmatic-practical-font-sizing-in-css
|
6
|
-
*
|
6
|
+
*
|
7
7
|
* When we define a heading we also define a corresponding class to go with it.
|
8
8
|
* This allows us to apply, say, `class=alpha` to a `h3`; a double-stranded
|
9
9
|
* heading hierarchy.
|
@@ -27,6 +27,7 @@ h6,.zeta{
|
|
27
27
|
@include font-size($h6-size);
|
28
28
|
}
|
29
29
|
|
30
|
+
|
30
31
|
/**
|
31
32
|
* Heading groups and generic any-heading class.
|
32
33
|
* To target any heading of any level simply apply a class of `.hN`, e.g.:
|
@@ -43,6 +44,7 @@ hgroup .hN{
|
|
43
44
|
margin-bottom:0;
|
44
45
|
}
|
45
46
|
|
47
|
+
|
46
48
|
/**
|
47
49
|
* A series of classes for setting massive type; for use in heroes, mastheads,
|
48
50
|
* promos, etc.
|
@@ -3,30 +3,44 @@
|
|
3
3
|
\*------------------------------------*/
|
4
4
|
/**
|
5
5
|
* Say no to negative hovers, as per: csswizardry.com/2011/05/on-negative-hovers
|
6
|
+
*
|
7
|
+
* Sometimes, particularly on larger projects, it is useful to scope link
|
8
|
+
* styling only to anchors which have `href` attributes.
|
6
9
|
*/
|
7
|
-
a{
|
10
|
+
a:link{
|
8
11
|
/**
|
9
12
|
* Set colors etc in your theme stylesheet.
|
10
13
|
*/
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
14
|
+
|
15
|
+
&:hover,
|
16
|
+
&:active,
|
17
|
+
&:focus{
|
15
18
|
text-decoration:underline;
|
16
19
|
}
|
20
|
+
&:active{
|
21
|
+
outline:none;
|
22
|
+
}
|
23
|
+
/**
|
24
|
+
* Remove Chrome’s heavy-handed glow.
|
25
|
+
*/
|
26
|
+
&:focus{
|
27
|
+
outline:thin dotted;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
17
31
|
|
18
32
|
/**
|
19
33
|
* ‘Current’ states, e.g.:
|
20
|
-
*
|
34
|
+
*
|
21
35
|
<ul class=nav>
|
22
36
|
<li><a href=#>Home</a></li>
|
23
37
|
<li><a href=#>About</a></li>
|
24
38
|
<li class=current><a href=#>Portfolio</a></li>
|
25
39
|
<li><a href=#>Contact</a></li>
|
26
40
|
</ul>
|
27
|
-
*
|
41
|
+
*
|
28
42
|
*/
|
29
43
|
.current a{
|
30
44
|
cursor:text;
|
31
45
|
text-decoration:underline;
|
32
|
-
}
|
46
|
+
}
|
@@ -17,29 +17,32 @@ blockquote p:before{ content: "“"; content: open-quote; }
|
|
17
17
|
blockquote p:after{ content: ""; content: no-close-quote; }
|
18
18
|
blockquote p:last-of-type:after{ content: "”"; content: close-quote; }
|
19
19
|
|
20
|
+
|
20
21
|
/**
|
21
|
-
*
|
22
|
+
*
|
22
23
|
<blockquote>
|
23
24
|
<p>Insanity: doing the same thing over and over again and expecting
|
24
25
|
different results.</p>
|
25
26
|
<b class=source>Albert Einstein</b>
|
26
27
|
</blockquote>
|
27
|
-
*
|
28
|
+
*
|
28
29
|
*/
|
29
30
|
blockquote{
|
30
31
|
/**
|
31
32
|
* .4em is roughly equal to the width of the opening “ that we wish to hang.
|
32
33
|
*/
|
33
34
|
text-indent:-0.4em;
|
34
|
-
|
35
|
-
|
35
|
+
|
36
|
+
p:last-of-type{
|
36
37
|
margin-bottom:0;
|
37
38
|
}
|
39
|
+
}
|
38
40
|
|
39
41
|
.source{
|
40
42
|
display:block;
|
41
43
|
text-indent:0;
|
42
|
-
|
43
|
-
|
44
|
+
|
45
|
+
&:before{
|
44
46
|
content:"—";
|
45
|
-
}
|
47
|
+
}
|
48
|
+
}
|