compass-inuit 4.1.1 → 4.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. data/README.md +2 -12
  2. data/stylesheets/partials/_base.scss +8 -8
  3. data/stylesheets/partials/_generic.scss +7 -7
  4. data/stylesheets/partials/_objects.scss +18 -12
  5. data/stylesheets/partials/base/_code.scss +8 -4
  6. data/stylesheets/partials/base/_forms.scss +47 -14
  7. data/stylesheets/partials/base/_headings.scss +3 -1
  8. data/stylesheets/partials/base/_links.scss +22 -8
  9. data/stylesheets/partials/base/_lists.scss +5 -3
  10. data/stylesheets/partials/base/_main.scss +3 -2
  11. data/stylesheets/partials/base/_paragraphs.scss +2 -2
  12. data/stylesheets/partials/base/_quotes.scss +10 -7
  13. data/stylesheets/partials/base/_smallprint.scss +2 -4
  14. data/stylesheets/partials/base/_tables.scss +32 -19
  15. data/stylesheets/partials/generic/_clearfix.scss +3 -1
  16. data/stylesheets/partials/generic/_debug.scss +168 -0
  17. data/stylesheets/partials/generic/_helper.scss +15 -8
  18. data/stylesheets/partials/generic/_mixins.scss +58 -4
  19. data/stylesheets/partials/generic/_pull.scss +91 -0
  20. data/stylesheets/partials/generic/_push.scss +91 -0
  21. data/stylesheets/partials/generic/_reset.scss +20 -1
  22. data/stylesheets/partials/generic/_shared.scss +14 -3
  23. data/stylesheets/partials/generic/_widths.scss +95 -0
  24. data/stylesheets/partials/objects/_block-list.scss +12 -8
  25. data/stylesheets/partials/objects/_breadcrumb.scss +59 -0
  26. data/stylesheets/partials/objects/_buttons.scss +3 -0
  27. data/stylesheets/partials/objects/_columns.scss +7 -11
  28. data/stylesheets/partials/objects/_complex-link.scss +1 -1
  29. data/stylesheets/partials/objects/_flexbox.scss +13 -1
  30. data/stylesheets/partials/objects/_flyout.scss +4 -2
  31. data/stylesheets/partials/objects/_greybox.scss +54 -0
  32. data/stylesheets/partials/objects/_grids-ie7.scss +47 -0
  33. data/stylesheets/partials/objects/_grids.scss +34 -91
  34. data/stylesheets/partials/objects/_icon-text.scss +7 -7
  35. data/stylesheets/partials/objects/_island.scss +2 -1
  36. data/stylesheets/partials/objects/_lozenges.scss +21 -14
  37. data/stylesheets/partials/objects/_matrix.scss +16 -10
  38. data/stylesheets/partials/objects/_media.scss +2 -1
  39. data/stylesheets/partials/objects/_nav.scss +98 -16
  40. data/stylesheets/partials/objects/_options.scss +39 -0
  41. data/stylesheets/partials/objects/_pagination.scss +1 -1
  42. data/stylesheets/partials/objects/_rules.scss +61 -0
  43. data/stylesheets/partials/objects/_split.scss +2 -2
  44. data/stylesheets/partials/objects/_sprite.scss +30 -15
  45. data/stylesheets/partials/objects/_stats.scss +45 -0
  46. data/stylesheets/partials/objects/_this-or-this.scss +6 -5
  47. data/templates/project/config.rb +5 -0
  48. data/templates/project/index.html +55 -0
  49. data/templates/project/manifest.rb +9 -2
  50. data/templates/project/sass/_vars.scss +68 -0
  51. data/templates/project/{your-project.scss → sass/your-project.scss} +15 -1
  52. data/templates/project/watch.sh +12 -0
  53. metadata +18 -5
  54. 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
- inuit.css, although produced and maintained by one developer, could not have
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/links";
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/tables";
14
- @import "partials/base/forms";
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/grids";
5
- @import "partials/objects/flexbox";
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/nav";
8
- @import "partials/objects/pagination";
9
- @import "partials/objects/media";
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/block-list";
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/icon-text";
19
- @import "partials/objects/buttons";
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>&lt;/div&gt;<span class=code-comment>&lt;!-- /wrapper --&gt;</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 .sass-margin-bottom;
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 four-cols">
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
- a:hover,
13
- a:active,
14
- a:focus{
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
+ }
@@ -4,7 +4,9 @@
4
4
  /**
5
5
  * Remove vertical spacing from nested lists.
6
6
  */
7
- li > ul,
8
- li > ol{
9
- margin-bottom:0;
7
+ li{
8
+ > ul,
9
+ > ol{
10
+ margin-bottom:0;
11
+ }
10
12
  }
@@ -2,6 +2,7 @@
2
2
  $MAIN
3
3
  \*------------------------------------*/
4
4
  html{
5
- font:($base-font-size / 16 +em)/($base-line-height / $base-font-size) serif;
5
+ font:($base-font-size / 16 +em)/($line-height-ratio) serif;
6
6
  overflow-y:scroll;
7
- }
7
+ min-height:100%;
8
+ }
@@ -7,5 +7,5 @@
7
7
  */
8
8
  .lede,
9
9
  .lead{
10
- font-size:1.125em;
11
- }
10
+ @include font-size($base-font-size * 1.125);
11
+ }
@@ -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
- blockquote p:last-of-type{
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
- .source:before{
44
+
45
+ &:before{
44
46
  content:"—";
45
- }
47
+ }
48
+ }