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
@@ -0,0 +1,91 @@
1
+ /*------------------------------------*\
2
+ $PULL
3
+ \*------------------------------------*/
4
+ /**
5
+ * Pull classes, to move grid items over to the left by certain amounts.
6
+ */
7
+ .pull{
8
+ position:relative;
9
+ }
10
+
11
+
12
+ /**
13
+ * Halves
14
+ */
15
+ .pull--one-half { @extend .pull; right:50%; }
16
+
17
+
18
+ /**
19
+ * Thirds
20
+ */
21
+ .pull--one-third { @extend .pull; right:33.333%; }
22
+ .pull--two-thirds { @extend .pull; right:66.666%; }
23
+
24
+
25
+ /**
26
+ * Quarters
27
+ */
28
+ .pull--one-quarter { @extend .pull; right:25%; }
29
+ .pull--two-quarters { @extend .pull--one-half; }
30
+ .pull--three-quarters { @extend .pull; right:75%; }
31
+
32
+
33
+ /**
34
+ * Fifths
35
+ */
36
+ .pull--one-fifth { @extend .pull; right:20%; }
37
+ .pull--two-fifths { @extend .pull; right:40%; }
38
+ .pull--three-fifths { @extend .pull; right:60%; }
39
+ .pull--four-fifths { @extend .pull; right:80%; }
40
+
41
+
42
+ /**
43
+ * Sixths
44
+ */
45
+ .pull--one-sixth { @extend .pull; right:16.666%; }
46
+ .pull--two-sixths { @extend .pull--one-third; }
47
+ .pull--three-sixths { @extend .pull--one-half; }
48
+ .pull--four-sixths { @extend .pull--two-thirds; }
49
+ .pull--five-sixths { @extend .pull; right:83.333%; }
50
+
51
+
52
+ /**
53
+ * Eighths
54
+ */
55
+ .pull--one-eighth { @extend .pull; right:12.5%; }
56
+ .pull--two-eighths { @extend .pull--one-quarter; }
57
+ .pull--three-eighths { @extend .pull; right:37.5%; }
58
+ .pull--four-eighths { @extend .pull--one-half; }
59
+ .pull--five-eighths { @extend .pull; right:62.5%; }
60
+ .pull--six-eighths { @extend .pull--three-quarters; }
61
+ .pull--seven-eighths { @extend .pull; right:87.5%; }
62
+
63
+
64
+ /**
65
+ * Tenths
66
+ */
67
+ .pull--one-tenth { @extend .pull; right:10%; }
68
+ .pull--two-tenths { @extend .pull--one-fifth; }
69
+ .pull--three-tenths { @extend .pull; right:30%; }
70
+ .pull--four-tenths { @extend .pull--two-fifths; }
71
+ .pull--five-tenths { @extend .pull; right:50%; }
72
+ .pull--six-tenths { @extend .pull--three-fifths; }
73
+ .pull--seven-tenths { @extend .pull; right:70%; }
74
+ .pull--eight-tenths { @extend .pull--four-fifths; }
75
+ .pull--nine-tenths { @extend .pull; right:90%; }
76
+
77
+
78
+ /**
79
+ * Twelfths
80
+ */
81
+ .pull--one-twelfth { @extend .pull; right:8.333%; }
82
+ .pull--two-twelfths { @extend .pull--one-sixth; }
83
+ .pull--three-twelfths { @extend .pull--one-quarter; }
84
+ .pull--four-twelfths { @extend .pull--one-third; }
85
+ .pull--five-twelfths { @extend .pull; right:41.666%; }
86
+ .pull--six-twelfths { @extend .pull--one-half; }
87
+ .pull--seven-twelfths { @extend .pull; right:58.333%; }
88
+ .pull--eight-twelfths { @extend .pull--two-thirds; }
89
+ .pull--nine-twelfths { @extend .pull--three-quarters; }
90
+ .pull--ten-twelfths { @extend .pull--five-sixths; }
91
+ .pull--eleven-twelfths { @extend .pull; right:91.666%; }
@@ -0,0 +1,91 @@
1
+ /*------------------------------------*\
2
+ $PUSH
3
+ \*------------------------------------*/
4
+ /**
5
+ * Push classes, to move grid items over to the right by certain amounts.
6
+ */
7
+ .push{
8
+ position:relative;
9
+ }
10
+
11
+
12
+ /**
13
+ * Halves
14
+ */
15
+ .push--one-half { @extend .push; left:50%; }
16
+
17
+
18
+ /**
19
+ * Thirds
20
+ */
21
+ .push--one-third { @extend .push; left:33.333%; }
22
+ .push--two-thirds { @extend .push; left:66.666%; }
23
+
24
+
25
+ /**
26
+ * Quarters
27
+ */
28
+ .push--one-quarter { @extend .push; left:25%; }
29
+ .push--two-quarters { @extend .push--one-half; }
30
+ .push--three-quarters { @extend .push; left:75%; }
31
+
32
+
33
+ /**
34
+ * Fifths
35
+ */
36
+ .push--one-fifth { @extend .push; left:20%; }
37
+ .push--two-fifths { @extend .push; left:40%; }
38
+ .push--three-fifths { @extend .push; left:60%; }
39
+ .push--four-fifths { @extend .push; left:80%; }
40
+
41
+
42
+ /**
43
+ * Sixths
44
+ */
45
+ .push--one-sixth { @extend .push; left:16.666%; }
46
+ .push--two-sixths { @extend .push--one-third; }
47
+ .push--three-sixths { @extend .push--one-half; }
48
+ .push--four-sixths { @extend .push--two-thirds; }
49
+ .push--five-sixths { @extend .push; left:83.333%; }
50
+
51
+
52
+ /**
53
+ * Eighths
54
+ */
55
+ .push--one-eighth { @extend .push; left:12.5%; }
56
+ .push--two-eighths { @extend .push--one-quarter; }
57
+ .push--three-eighths { @extend .push; left:37.5%; }
58
+ .push--four-eighths { @extend .push--one-half; }
59
+ .push--five-eighths { @extend .push; left:62.5%; }
60
+ .push--six-eighths { @extend .push--three-quarters; }
61
+ .push--seven-eighths { @extend .push; left:87.5%; }
62
+
63
+
64
+ /**
65
+ * Tenths
66
+ */
67
+ .push--one-tenth { @extend .push; left:10%; }
68
+ .push--two-tenths { @extend .push--one-fifth; }
69
+ .push--three-tenths { @extend .push; left:30%; }
70
+ .push--four-tenths { @extend .push--two-fifths; }
71
+ .push--five-tenths { @extend .push; left:50%; }
72
+ .push--six-tenths { @extend .push--three-fifths; }
73
+ .push--seven-tenths { @extend .push; left:70%; }
74
+ .push--eight-tenths { @extend .push--four-fifths; }
75
+ .push--nine-tenths { @extend .push; left:90%; }
76
+
77
+
78
+ /**
79
+ * Twelfths
80
+ */
81
+ .push--one-twelfth { @extend .push; left:8.333%; }
82
+ .push--two-twelfths { @extend .push--one-sixth; }
83
+ .push--three-twelfths { @extend .push--one-quarter; }
84
+ .push--four-twelfths { @extend .push--one-third; }
85
+ .push--five-twelfths { @extend .push; left:41.666%; }
86
+ .push--six-twelfths { @extend .push--one-half; }
87
+ .push--seven-twelfths { @extend .push; left:58.333%; }
88
+ .push--eight-twelfths { @extend .push--two-thirds; }
89
+ .push--nine-twelfths { @extend .push--three-quarters; }
90
+ .push--ten-twelfths { @extend .push--five-sixths; }
91
+ .push--eleven-twelfths { @extend .push; left:91.666%; }
@@ -55,6 +55,25 @@ textarea{
55
55
  font:inherit;
56
56
  }
57
57
 
58
+
59
+ /**
60
+ * Normalize `sup` and `sub` elements.
61
+ */
62
+ sub,
63
+ sup{
64
+ font-size:75%;
65
+ line-height:0;
66
+ position:relative;
67
+ vertical-align:baseline;
68
+ }
69
+ sup{
70
+ top:-0.5em;
71
+ }
72
+ sub{
73
+ bottom:-0.25em;
74
+ }
75
+
76
+
58
77
  /**
59
78
  * Give form elements some cursor interactions...
60
79
  */
@@ -72,4 +91,4 @@ option{
72
91
  textarea:focus{
73
92
  cursor:text;
74
93
  outline:none;
75
- }
94
+ }
@@ -15,11 +15,10 @@ blockquote,p,address,
15
15
  table,
16
16
  fieldset,figure,
17
17
  pre,
18
- hr,
19
18
  /**
20
19
  * Objects and abstractions
21
20
  */
22
- .sass-margin-bottom,
21
+ %sass-margin-bottom,
23
22
  .media,
24
23
  .island,
25
24
  .islet{
@@ -32,6 +31,7 @@ hr,
32
31
  }
33
32
  }
34
33
 
34
+
35
35
  /**
36
36
  * Doubled up `margin-bottom` helper class.
37
37
  */
@@ -40,6 +40,17 @@ hr,
40
40
  margin-bottom:2 * $base-spacing-unit / $base-font-size +rem;
41
41
  }
42
42
 
43
+
44
+ /**
45
+ * `hr` elements only take up a few pixels, so we need to give them special
46
+ * treatment regarding vertical rhythm.
47
+ */
48
+ hr{
49
+ margin-bottom:($base-spacing-unit - 2) +px;
50
+ margin-bottom:($base-spacing-unit - 2) / $base-font-size +rem;
51
+ }
52
+
53
+
43
54
  /**
44
55
  * Where `margin-left` is concerned we want to try and indent certain elements
45
56
  * by a consistent amount. Define that amount once, here.
@@ -47,4 +58,4 @@ hr,
47
58
  ul,ol,dd{
48
59
  margin-left:2 * $base-spacing-unit +px;
49
60
  margin-left:2 * $base-spacing-unit / $base-font-size +rem;
50
- }
61
+ }
@@ -0,0 +1,95 @@
1
+ /*------------------------------------*\
2
+ $WIDTHS
3
+ \*------------------------------------*/
4
+ /**
5
+ * Sizes in human readable format. These are used in conjunction with other
6
+ * objects and abstractions found in inuit.css, most commonly the grid system
7
+ * and faux flexbox.
8
+ */
9
+
10
+ /**
11
+ * Whole
12
+ */
13
+ .one-whole { width:100%; }
14
+
15
+
16
+ /**
17
+ * Halves
18
+ */
19
+ .one-half { width:50%; }
20
+
21
+
22
+ /**
23
+ * Thirds
24
+ */
25
+ .one-third { width:33.333%; }
26
+ .two-thirds { width:66.666%; }
27
+
28
+
29
+ /**
30
+ * Quarters
31
+ */
32
+ .one-quarter { width:25%; }
33
+ .two-quarters { @extend .one-half; }
34
+ .three-quarters { width:75%; }
35
+
36
+
37
+ /**
38
+ * Fifths
39
+ */
40
+ .one-fifth { width:20%; }
41
+ .two-fifths { width:40%; }
42
+ .three-fifths { width:60%; }
43
+ .four-fifths { width:80%; }
44
+
45
+
46
+ /**
47
+ * Sixths
48
+ */
49
+ .one-sixth { width:16.666%; }
50
+ .two-sixths { @extend .one-third; }
51
+ .three-sixths { @extend .one-half; }
52
+ .four-sixths { @extend .two-thirds; }
53
+ .five-sixths { width:83.333%; }
54
+
55
+
56
+ /**
57
+ * Eighths
58
+ */
59
+ .one-eighth { width:12.5%; }
60
+ .two-eighths { @extend .one-quarter; }
61
+ .three-eighths { width:37.5%; }
62
+ .four-eighths { @extend .one-half; }
63
+ .five-eighths { width:62.5%; }
64
+ .six-eighths { @extend .three-quarters; }
65
+ .seven-eighths { width:87.5%; }
66
+
67
+
68
+ /**
69
+ * Tenths
70
+ */
71
+ .one-tenth { width:10%; }
72
+ .two-tenths { @extend .one-fifth; }
73
+ .three-tenths { width:30%; }
74
+ .four-tenths { @extend .two-fifths; }
75
+ .five-tenths { @extend .one-half; }
76
+ .six-tenths { @extend .three-fifths; }
77
+ .seven-tenths { width:70%; }
78
+ .eight-tenths { @extend .four-fifths; }
79
+ .nine-tenths { width:90%; }
80
+
81
+
82
+ /**
83
+ * Twelfths
84
+ */
85
+ .one-twelfth { width:8.333%; }
86
+ .two-twelfths { @extend .one-sixth; }
87
+ .three-twelfths { @extend .one-quarter; }
88
+ .four-twelfths { @extend .one-third; }
89
+ .five-twelfths { width:41.666% }
90
+ .six-twelfths { @extend .one-half; }
91
+ .seven-twelfths { width:58.333%; }
92
+ .eight-twelfths { @extend .two-thirds; }
93
+ .nine-twelfths { @extend .three-quarters; }
94
+ .ten-twelfths { @extend .five-sixths; }
95
+ .eleven-twelfths { width:91.666%; }
@@ -3,34 +3,38 @@
3
3
  \*------------------------------------*/
4
4
  /**
5
5
  * Create big blocky lists of content, e.g.:
6
- *
6
+ *
7
7
  <ul class=block-list>
8
8
  <li>Foo</li>
9
9
  <li>Bar</li>
10
10
  <li>Baz</li>
11
11
  <li><a href=# class=block-list__link>Foo Bar Baz</a></li>
12
12
  </ul>
13
- *
14
- * Extend this object in your theme stylesheet.
13
+ *
14
+ * Extend this object in your theme stylesheet.
15
15
  *
16
16
  * Demo: jsfiddle.net/inuitcss/hR57q
17
17
  *
18
18
  */
19
- .block-list,
20
- .block-list > li{
19
+ .block-list{
20
+
21
+ &,
22
+ > li{
21
23
  border:0 solid #ccc; /* Override this color in your theme stylesheet */
22
24
  }
25
+ }
23
26
  .block-list{
24
27
  list-style:none;
25
28
  margin-left:0;
26
29
  border-top-width:1px;
27
- }
28
- .block-list > li{
30
+
31
+ > li{
29
32
  border-bottom-width:1px;
30
33
  padding:$half-spacing-unit +px;
31
34
  }
35
+ }
32
36
  .block-list__link{
33
37
  display:block;
34
38
  padding:$half-spacing-unit +px;
35
39
  margin:-$half-spacing-unit +px;
36
- }
40
+ }
@@ -0,0 +1,59 @@
1
+ /*------------------------------------*\
2
+ $BREADCRUMB
3
+ \*------------------------------------*/
4
+ /**
5
+ * Simple breadcrumb styling to apply to (ordered) lists. Extends `.nav`, e.g.:
6
+ *
7
+ <ol class="nav breadcrumb">
8
+ <li><a href=#>Home</a></li>
9
+ <li><a href=#>About</a></li>
10
+ <li><a href=#>The Board</a></li>
11
+ <li class=current><a href=#>Directors</a></li>
12
+ </ol>
13
+ *
14
+ * Demo: jsfiddle.net/inuitcss/rkAY9
15
+ *
16
+ */
17
+ .breadcrumb > li + li:before{
18
+ content:"» ";
19
+ }
20
+
21
+
22
+ /**
23
+ * For denoting a path-like structure, GitHub style, e.g.:
24
+ *
25
+ <ol class="nav breadcrumb--path">
26
+ <li class=breadcrumb__root><a href=#>inuit.css</a></li>
27
+ <li><a href=#>inuit.css</a></li>
28
+ <li><a href=#>partials</a></li>
29
+ <li class=current><a href=#>objects</a></li>
30
+ </ol>
31
+ *
32
+ */
33
+ .breadcrumb--path > li + li:before{
34
+ content:"/ ";
35
+ }
36
+
37
+
38
+ /**
39
+ * Assign a delimiter on the fly through a data attribute, e.g.:
40
+ *
41
+ <ol class="nav breadcrumb">
42
+ <li><a href=#>Home</a></li>
43
+ <li data-breadcrumb="|"><a href=#>About</a></li>
44
+ <li data-breadcrumb="|"><a href=#>The Board</a></li>
45
+ <li data-breadcrumb="|" class=current><a href=#>Directors</a></li>
46
+ </ol>
47
+ *
48
+ */
49
+ .breadcrumb > li + li[data-breadcrumb]:before{
50
+ content:attr(data-breadcrumb)" ";
51
+ }
52
+
53
+
54
+ /**
55
+ * Denote the root of the tree.
56
+ */
57
+ .breadcrumb__root{
58
+ font-weight:bold;
59
+ }