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
@@ -3,7 +3,7 @@
3
3
  \*------------------------------------*/
4
4
  /**
5
5
  * A series of classes for setting tiny type; for use in smallprint etc.
6
- *
6
+ *
7
7
  * `small` is relative to whatever its parent is, `.milli` and `.micro` are
8
8
  * absolute.
9
9
  */
@@ -13,9 +13,7 @@ small{
13
13
  .smallprint,
14
14
  .milli{
15
15
  @include font-size($milli-size);
16
- line-height:1; /* 12px */
17
16
  }
18
17
  .micro{
19
18
  @include font-size($micro-size);
20
- line-height:1.2; /* 12px */
21
- }
19
+ }
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * We have a lot at our disposal for making very complex table constructs, e.g.:
6
6
  *
7
- <table class="bordered-table striped-table data-table">
7
+ <table class="table--bordered table--striped table--data">
8
8
  <colgroup>
9
9
  <col class=t10>
10
10
  <col class=t10>
@@ -16,6 +16,7 @@
16
16
  <th colspan=3>Foo</th>
17
17
  <th>Bar</th>
18
18
  </tr>
19
+ <tr>
19
20
  <th>Lorem</th>
20
21
  <th>Ipsum</th>
21
22
  <th class=numerical>Dolor</th>
@@ -52,8 +53,8 @@
52
53
  </tr>
53
54
  </tbody>
54
55
  </table>
55
- *
56
- */
56
+ *
57
+ */
57
58
  table{
58
59
  width:100%;
59
60
  }
@@ -66,6 +67,7 @@ td{
66
67
  text-align:left;
67
68
  }
68
69
 
70
+
69
71
  /**
70
72
  * Cell alignments
71
73
  */
@@ -117,34 +119,45 @@ td{
117
119
  .t90 { width:90% }
118
120
  .t95 { width:95% }
119
121
 
122
+
120
123
  /**
121
124
  * Bordered tables
122
125
  */
123
- .bordered-table th,
124
- .bordered-table td{
125
- border:1px solid #ccc; /* Override this color in your theme stylesheet */
126
- }
127
- .bordered-table thead tr:last-child th{
128
- border-bottom-width:2px;
129
- }
130
- .bordered-table tbody tr th:last-of-type{
131
- border-right-width:2px;
132
- }
133
- .bordered-table th:empty,
134
- .bordered-table td:empty{
135
- border:none;
126
+ .table--bordered{
127
+
128
+ th,
129
+ td{
130
+ border:1px solid #ccc; /* Override this color in your theme stylesheet */
131
+
132
+ &:empty{
133
+ border:none;
134
+ }
135
+ }
136
+
137
+ thead tr:last-child th{
138
+ border-bottom-width:2px;
139
+ }
140
+
141
+ tbody tr th:last-of-type{
142
+ border-right-width:2px;
143
+ }
136
144
  }
137
145
 
146
+
138
147
  /**
139
148
  * Striped tables
140
149
  */
141
- .striped-table tbody tr:nth-of-type(odd){
142
- background-color:#ffc; /* Override this color in your theme stylesheet */
150
+ .table--striped{
151
+
152
+ tbody tr:nth-of-type(odd){
153
+ background-color:#ffc; /* Override this color in your theme stylesheet */
154
+ }
143
155
  }
144
156
 
157
+
145
158
  /**
146
159
  * Data table
147
160
  */
148
- .data-table{
161
+ .table--data{
149
162
  font:12px/1.5 sans-serif;
150
163
  }
@@ -8,11 +8,13 @@
8
8
  */
9
9
  .cf{
10
10
  zoom:1;
11
+
11
12
  &:before,
12
13
  &:after{
13
- content:"";
14
+ content:" ";
14
15
  display:table;
15
16
  }
17
+
16
18
  &:after{
17
19
  clear:both;
18
20
  }
@@ -0,0 +1,168 @@
1
+ @if $debug-mode == true{
2
+ /*------------------------------------*\
3
+ $DEBUG
4
+ \*------------------------------------*/
5
+ /**
6
+ * Enable this stylesheet to visually detect any improperly nested or
7
+ * potentially invalid markup, or any potentially inaccessible code.
8
+ *
9
+ * Red == definite error
10
+ * Yellow == double-check
11
+ * None == should be fine
12
+ *
13
+ * Please note that this method of checking markup quality should not be relied
14
+ * upon entirely. Validate your markup!
15
+ */
16
+
17
+
18
+ /**
19
+ * Are there any empty elements in your page?
20
+ */
21
+ :empty{
22
+ outline:5px solid yellow;
23
+ }
24
+
25
+
26
+ /**
27
+ * Images require `alt` attributes, empty `alt`s are fine but should be
28
+ * double-checked, no `alt` is bad and is flagged red.
29
+ */
30
+ img{
31
+ outline:5px solid red;
32
+ }
33
+ img[alt]{
34
+ outline:none;
35
+ }
36
+ img[alt=""]{
37
+ outline:5px solid yellow;
38
+ }
39
+
40
+
41
+ /**
42
+ * Links sometimes, though not always, benefit from `title` attributes. Links
43
+ * without are never invalid but it’s a good idea to check.
44
+ */
45
+ a{
46
+ outline:5px solid yellow;
47
+ }
48
+ a[title]{
49
+ outline:none;
50
+ }
51
+
52
+
53
+ /**
54
+ * Double-check any links whose `href` is something questionable.
55
+ */
56
+ a[href="#"],
57
+ a[href*="javascript"]{
58
+ outline:5px solid yellow;
59
+ }
60
+
61
+
62
+ /**
63
+ * The `target` attribute ain’t too nice...
64
+ */
65
+ a[target]{
66
+ outline:5px solid yellow;
67
+ }
68
+
69
+
70
+ /**
71
+ * Ensure any lists only contain `li`s as children.
72
+ */
73
+ ul,
74
+ ol{
75
+ > *:not(li){
76
+ outline:5px solid red;
77
+ }
78
+ }
79
+
80
+
81
+ /**
82
+ * It’s always nice to give `th`s `scope` attributes.
83
+ */
84
+ th{
85
+ outline:5px solid yellow;
86
+ }
87
+ th[scope]{
88
+ outline:none;
89
+ }
90
+
91
+
92
+ /**
93
+ * `tr`s as children of `table`s ain’t great, did you need a `thead`/`tbody`?
94
+ */
95
+ table > tr{
96
+ outline:5px solid yellow;
97
+ }
98
+
99
+
100
+ /**
101
+ * `tfoot` needs to come *before* `tbody`.
102
+ */
103
+ tbody + tfoot{
104
+ outline:5px solid yellow;
105
+ }
106
+
107
+
108
+ /**
109
+ * Forms require `action` attributes
110
+ */
111
+ form{
112
+ outline:5px solid red;
113
+ }
114
+ form[action]{
115
+ outline:none;
116
+ }
117
+
118
+
119
+ /**
120
+ * Various form-field types have required attributes. `input`s need `type`
121
+ * attributes, `textarea`s need `rows` and `cols` attributes and submit buttons
122
+ * need a `value` attribute.
123
+ */
124
+ textarea,
125
+ input{
126
+ outline:5px solid red;
127
+ }
128
+ input[type]{
129
+ outline:none;
130
+ }
131
+ textarea[rows][cols]{
132
+ outline:none;
133
+ }
134
+ input[type=submit]{
135
+ outline:5px solid red;
136
+ }
137
+ input[type=submit][value]{
138
+ outline:none;
139
+ }
140
+
141
+
142
+ /**
143
+ * Avoid inline styles where possible.
144
+ */
145
+ [style]{
146
+ outline:5px solid yellow;
147
+ }
148
+
149
+
150
+ /**
151
+ * You should avoid using IDs for CSS, is this doing any styling?
152
+ */
153
+ [id]{
154
+ outline:5px solid yellow;
155
+ }
156
+
157
+
158
+ /**
159
+ * Are you using the grid system correctly?
160
+ */
161
+ .gw > :not(.g),
162
+ .grid-wrapper > :not(.grid),
163
+ .gw--rev > :not(.g),
164
+ .grid-wrapper--rev > :not(.grid){
165
+ outline:5px solid red;
166
+ }
167
+
168
+ }/* endif */
@@ -15,18 +15,21 @@
15
15
  text-align:center;
16
16
  }
17
17
 
18
+
18
19
  /**
19
20
  * Pull items full width of `.island` parents.
20
21
  */
21
22
  .full-bleed{
22
23
  margin-right:-$base-spacing-unit +px;
23
24
  margin-left: -$base-spacing-unit +px;
24
- }
25
- .islet > .full-bleed{
26
- margin-right:-($half-spacing-unit) +px;
27
- margin-left: -($half-spacing-unit) +px;
25
+
26
+ .islet &{
27
+ margin-right:-($half-spacing-unit) +px;
28
+ margin-left: -($half-spacing-unit) +px;
29
+ }
28
30
  }
29
31
 
32
+
30
33
  /**
31
34
  * Add a help cursor to any element that gives the user extra information on
32
35
  * `:hover`.
@@ -35,26 +38,29 @@
35
38
  cursor:help;
36
39
  }
37
40
 
41
+
38
42
  /**
39
43
  * Align items to the right where they imply progression/movement forward, e.g.:
40
- *
44
+ *
41
45
  <p class=proceed><a href=#>Read more...</a></p>
42
- *
46
+ *
43
47
  */
44
48
  .proceed{
45
49
  text-align:right;
46
50
  }
47
51
 
52
+
48
53
  /**
49
54
  * Add a right-angled quote to links that imply movement, e.g.:
50
- *
55
+ *
51
56
  <a href=# class=go>Read more</a>
52
- *
57
+ *
53
58
  */
54
59
  .go:after{
55
60
  content:" »";
56
61
  }
57
62
 
63
+
58
64
  /**
59
65
  * Apply capital case to an element (usually a `strong`).
60
66
  */
@@ -62,6 +68,7 @@
62
68
  text-transform:uppercase;
63
69
  }
64
70
 
71
+
65
72
  /**
66
73
  * Hide content off-screen without resorting to `display:none;`
67
74
  */
@@ -4,9 +4,9 @@
4
4
  /**
5
5
  * Create a fully formed type style (sizing and vertical rhythm) by passing in a
6
6
  * single value, e.g.:
7
- *
7
+ *
8
8
  `@include font-size(10);`
9
- *
9
+ *
10
10
  * Thanks to @redclov3r for the `line-height` Sass:
11
11
  * twitter.com/redclov3r/status/250301539321798657
12
12
  */
@@ -16,11 +16,12 @@
16
16
  line-height:ceil($font-size / $base-line-height) * ($base-line-height / $font-size);
17
17
  }
18
18
 
19
+
19
20
  /**
20
21
  * Create vendor-prefixed CSS in one go, e.g.
21
- *
22
+ *
22
23
  `@include vendor(box-sizing, border-box);`
23
- *
24
+ *
24
25
  */
25
26
  @mixin vendor($property, $value){
26
27
  -webkit-#{$property}:$value;
@@ -28,4 +29,57 @@
28
29
  -ms-#{$property}:$value;
29
30
  -o-#{$property}:$value;
30
31
  #{$property}:$value;
32
+ }
33
+
34
+
35
+ /**
36
+ * Create CSS keyframe animations for all vendors in one go, e.g.:
37
+ *
38
+ .foo{
39
+ @include vendor(animation, shrink 3s);
40
+ }
41
+
42
+ @include keyframe(shrink){
43
+ from{
44
+ font-size:5em;
45
+ }
46
+ }
47
+ *
48
+ * Courtesy of @integralist: twitter.com/integralist/status/260484115315437569
49
+ */
50
+ @mixin keyframe ($animation-name){
51
+ @-webkit-keyframes $animation-name{
52
+ @content;
53
+ }
54
+
55
+ @-moz-keyframes $animation-name{
56
+ @content;
57
+ }
58
+
59
+ @-ms-keyframes $animation-name{
60
+ @content;
61
+ }
62
+
63
+ @-o-keyframes $animation-name{
64
+ @content;
65
+ }
66
+
67
+ @keyframes $animation-name{
68
+ @content;
69
+ }
70
+ }
71
+
72
+
73
+ /**
74
+ * Force overly long spans of text to truncate, e.g.:
75
+ *
76
+ `@include truncate(100%);`
77
+ *
78
+ * Where `$truncation-boundary` is a united measurement.
79
+ */
80
+ @mixin truncate($truncation-boundary){
81
+ max-width:$truncation-boundary;
82
+ white-space:nowrap;
83
+ overflow:hidden;
84
+ text-overflow:ellipsis;
31
85
  }