compass-inuit 4.1.0 → 4.1.1

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 (44) hide show
  1. data/README.md +71 -0
  2. data/lib/compass-inuit.rb +3 -0
  3. data/stylesheets/_compass-inuit.scss +138 -0
  4. data/stylesheets/partials/_base.scss +14 -0
  5. data/stylesheets/partials/_generic.scss +13 -0
  6. data/stylesheets/partials/_objects.scss +20 -0
  7. data/stylesheets/partials/base/_code.scss +61 -0
  8. data/stylesheets/partials/base/_forms.scss +141 -0
  9. data/stylesheets/partials/base/_headings.scss +58 -0
  10. data/stylesheets/partials/base/_images.scss +10 -0
  11. data/stylesheets/partials/base/_links.scss +32 -0
  12. data/stylesheets/partials/base/_lists.scss +10 -0
  13. data/stylesheets/partials/base/_main.scss +7 -0
  14. data/stylesheets/partials/base/_paragraphs.scss +11 -0
  15. data/stylesheets/partials/base/_quotes.scss +45 -0
  16. data/stylesheets/partials/base/_smallprint.scss +21 -0
  17. data/stylesheets/partials/base/_tables.scss +150 -0
  18. data/stylesheets/partials/generic/_brand.scss +18 -0
  19. data/stylesheets/partials/generic/_clearfix.scss +19 -0
  20. data/stylesheets/partials/generic/_helper.scss +69 -0
  21. data/stylesheets/partials/generic/_mixins.scss +31 -0
  22. data/stylesheets/partials/generic/_reset.scss +75 -0
  23. data/stylesheets/partials/generic/_shared.scss +50 -0
  24. data/stylesheets/partials/objects/_block-list.scss +36 -0
  25. data/stylesheets/partials/objects/_buttons.scss +41 -0
  26. data/stylesheets/partials/objects/_columns.scss +22 -0
  27. data/stylesheets/partials/objects/_complex-link.scss +28 -0
  28. data/stylesheets/partials/objects/_flexbox.scss +39 -0
  29. data/stylesheets/partials/objects/_flyout.scss +57 -0
  30. data/stylesheets/partials/objects/_grids.scss +154 -0
  31. data/stylesheets/partials/objects/_icon-text.scss +36 -0
  32. data/stylesheets/partials/objects/_island.scss +33 -0
  33. data/stylesheets/partials/objects/_lozenges.scss +35 -0
  34. data/stylesheets/partials/objects/_matrix.scss +90 -0
  35. data/stylesheets/partials/objects/_media.scss +55 -0
  36. data/stylesheets/partials/objects/_nav.scss +62 -0
  37. data/stylesheets/partials/objects/_pagination.scss +39 -0
  38. data/stylesheets/partials/objects/_split.scss +35 -0
  39. data/stylesheets/partials/objects/_sprite.scss +62 -0
  40. data/stylesheets/partials/objects/_this-or-this.scss +33 -0
  41. data/templates/project/_vars.scss +38 -0
  42. data/templates/project/manifest.rb +3 -0
  43. data/templates/project/your-project.scss +16 -0
  44. metadata +50 -9
@@ -0,0 +1,58 @@
1
+ /*------------------------------------*\
2
+ $HEADINGS
3
+ \*------------------------------------*/
4
+ /**
5
+ * As per: csswizardry.com/2012/02/pragmatic-practical-font-sizing-in-css
6
+ *
7
+ * When we define a heading we also define a corresponding class to go with it.
8
+ * This allows us to apply, say, `class=alpha` to a `h3`; a double-stranded
9
+ * heading hierarchy.
10
+ */
11
+ h1,.alpha{
12
+ @include font-size($h1-size);
13
+ }
14
+ h2,.beta{
15
+ @include font-size($h2-size);
16
+ }
17
+ h3,.gamma{
18
+ @include font-size($h3-size);
19
+ }
20
+ h4,.delta{
21
+ @include font-size($h4-size);
22
+ }
23
+ h5,.epsilon{
24
+ @include font-size($h5-size);
25
+ }
26
+ h6,.zeta{
27
+ @include font-size($h6-size);
28
+ }
29
+
30
+ /**
31
+ * Heading groups and generic any-heading class.
32
+ * To target any heading of any level simply apply a class of `.hN`, e.g.:
33
+ *
34
+ <hgroup>
35
+ <h1 class=hN>inuit.css</h1>
36
+ <h2 class=hN>Best. Framework. Ever!</h2>
37
+ </hgroup>
38
+ *
39
+ */
40
+ .hN{
41
+ }
42
+ hgroup .hN{
43
+ margin-bottom:0;
44
+ }
45
+
46
+ /**
47
+ * A series of classes for setting massive type; for use in heroes, mastheads,
48
+ * promos, etc.
49
+ */
50
+ .giga{
51
+ @include font-size($giga-size);
52
+ }
53
+ .mega{
54
+ @include font-size($mega-size);
55
+ }
56
+ .kilo{
57
+ @include font-size($kilo-size);
58
+ }
@@ -0,0 +1,10 @@
1
+ /*------------------------------------*\
2
+ $IMAGES
3
+ \*------------------------------------*/
4
+ img{
5
+ max-width:100%;
6
+ height:auto;
7
+ }
8
+ figure > img{
9
+ display:block;
10
+ }
@@ -0,0 +1,32 @@
1
+ /*------------------------------------*\
2
+ $LINKS
3
+ \*------------------------------------*/
4
+ /**
5
+ * Say no to negative hovers, as per: csswizardry.com/2011/05/on-negative-hovers
6
+ */
7
+ a{
8
+ /**
9
+ * Set colors etc in your theme stylesheet.
10
+ */
11
+ }
12
+ a:hover,
13
+ a:active,
14
+ a:focus{
15
+ text-decoration:underline;
16
+ }
17
+
18
+ /**
19
+ * ‘Current’ states, e.g.:
20
+ *
21
+ <ul class=nav>
22
+ <li><a href=#>Home</a></li>
23
+ <li><a href=#>About</a></li>
24
+ <li class=current><a href=#>Portfolio</a></li>
25
+ <li><a href=#>Contact</a></li>
26
+ </ul>
27
+ *
28
+ */
29
+ .current a{
30
+ cursor:text;
31
+ text-decoration:underline;
32
+ }
@@ -0,0 +1,10 @@
1
+ /*------------------------------------*\
2
+ $LISTS
3
+ \*------------------------------------*/
4
+ /**
5
+ * Remove vertical spacing from nested lists.
6
+ */
7
+ li > ul,
8
+ li > ol{
9
+ margin-bottom:0;
10
+ }
@@ -0,0 +1,7 @@
1
+ /*------------------------------------*\
2
+ $MAIN
3
+ \*------------------------------------*/
4
+ html{
5
+ font:($base-font-size / 16 +em)/($base-line-height / $base-font-size) serif;
6
+ overflow-y:scroll;
7
+ }
@@ -0,0 +1,11 @@
1
+ /*------------------------------------*\
2
+ $PARAGRAPHS
3
+ \*------------------------------------*/
4
+ /**
5
+ * The `.lede` class is used to make the introductory text (usually a paragraph)
6
+ * of a document slightly larger.
7
+ */
8
+ .lede,
9
+ .lead{
10
+ font-size:1.125em;
11
+ }
@@ -0,0 +1,45 @@
1
+ /*------------------------------------*\
2
+ $QUOTES
3
+ \*------------------------------------*/
4
+ /**
5
+ * Big up @boblet: html5doctor.com/blockquote-q-cite
6
+ */
7
+ q{ quotes:"‘" "’" "“" "”"; }
8
+
9
+ q:before{ content:"‘"; content:open-quote; }
10
+ q:after{ content:"’"; content:close-quote; }
11
+
12
+ q q:before{ content: "“"; content: open-quote; }
13
+ q q:after{ content: "”"; content: close-quote; }
14
+
15
+ blockquote{ quotes: "“" "”"; }
16
+ blockquote p:before{ content: "“"; content: open-quote; }
17
+ blockquote p:after{ content: ""; content: no-close-quote; }
18
+ blockquote p:last-of-type:after{ content: "”"; content: close-quote; }
19
+
20
+ /**
21
+ *
22
+ <blockquote>
23
+ <p>Insanity: doing the same thing over and over again and expecting
24
+ different results.</p>
25
+ <b class=source>Albert Einstein</b>
26
+ </blockquote>
27
+ *
28
+ */
29
+ blockquote{
30
+ /**
31
+ * .4em is roughly equal to the width of the opening “ that we wish to hang.
32
+ */
33
+ text-indent:-0.4em;
34
+ }
35
+ blockquote p:last-of-type{
36
+ margin-bottom:0;
37
+ }
38
+
39
+ .source{
40
+ display:block;
41
+ text-indent:0;
42
+ }
43
+ .source:before{
44
+ content:"—";
45
+ }
@@ -0,0 +1,21 @@
1
+ /*------------------------------------*\
2
+ $SMALLPRINT
3
+ \*------------------------------------*/
4
+ /**
5
+ * A series of classes for setting tiny type; for use in smallprint etc.
6
+ *
7
+ * `small` is relative to whatever its parent is, `.milli` and `.micro` are
8
+ * absolute.
9
+ */
10
+ small{
11
+ font-size:0.75em;
12
+ }
13
+ .smallprint,
14
+ .milli{
15
+ @include font-size($milli-size);
16
+ line-height:1; /* 12px */
17
+ }
18
+ .micro{
19
+ @include font-size($micro-size);
20
+ line-height:1.2; /* 12px */
21
+ }
@@ -0,0 +1,150 @@
1
+ /*------------------------------------*\
2
+ $TABLES
3
+ \*------------------------------------*/
4
+ /**
5
+ * We have a lot at our disposal for making very complex table constructs, e.g.:
6
+ *
7
+ <table class="bordered-table striped-table data-table">
8
+ <colgroup>
9
+ <col class=t10>
10
+ <col class=t10>
11
+ <col class=t10>
12
+ <col>
13
+ </colgroup>
14
+ <thead>
15
+ <tr>
16
+ <th colspan=3>Foo</th>
17
+ <th>Bar</th>
18
+ </tr>
19
+ <th>Lorem</th>
20
+ <th>Ipsum</th>
21
+ <th class=numerical>Dolor</th>
22
+ <th>Sit</th>
23
+ </tr>
24
+ </thead>
25
+ <tbody>
26
+ <tr>
27
+ <th rowspan=3>Sit</th>
28
+ <td>Dolor</td>
29
+ <td class=numerical>03.788</td>
30
+ <td>Lorem</td>
31
+ </tr>
32
+ <tr>
33
+ <td>Dolor</td>
34
+ <td class=numerical>32.210</td>
35
+ <td>Lorem</td>
36
+ </tr>
37
+ <tr>
38
+ <td>Dolor</td>
39
+ <td class=numerical>47.797</td>
40
+ <td>Lorem</td>
41
+ </tr>
42
+ <tr>
43
+ <th rowspan=2>Sit</th>
44
+ <td>Dolor</td>
45
+ <td class=numerical>09.640</td>
46
+ <td>Lorem</td>
47
+ </tr>
48
+ <tr>
49
+ <td>Dolor</td>
50
+ <td class=numerical>12.117</td>
51
+ <td>Lorem</td>
52
+ </tr>
53
+ </tbody>
54
+ </table>
55
+ *
56
+ */
57
+ table{
58
+ width:100%;
59
+ }
60
+ th,
61
+ td{
62
+ padding:$base-spacing-unit / 4 +px;
63
+ @media screen and (min-width:480px){
64
+ padding:$half-spacing-unit +px;
65
+ }
66
+ text-align:left;
67
+ }
68
+
69
+ /**
70
+ * Cell alignments
71
+ */
72
+ [colspan]{
73
+ text-align:center;
74
+ }
75
+ [colspan="1"]{
76
+ text-align:left;
77
+ }
78
+ [rowspan]{
79
+ vertical-align:middle;
80
+ }
81
+ [rowspan="1"]{
82
+ vertical-align:top;
83
+ }
84
+ .numerical{
85
+ text-align:right;
86
+ }
87
+
88
+ /**
89
+ * In the HTML above we see several `col` elements with classes whose numbers
90
+ * represent a percentage width for that column. We leave one column free of a
91
+ * class so that column can soak up the effects of any accidental breakage in
92
+ * the table.
93
+ */
94
+ .t5 { width: 5% }
95
+ .t10 { width:10% }
96
+ .t12 { width:12.5% } /* 1/8 */
97
+ .t15 { width:15% }
98
+ .t20 { width:20% }
99
+ .t25 { width:25% } /* 1/4 */
100
+ .t30 { width:30% }
101
+ .t33 { width:33.333% } /* 1/3 */
102
+ .t35 { width:35% }
103
+ .t37 { width:37.5% } /* 3/8 */
104
+ .t40 { width:40% }
105
+ .t45 { width:45% }
106
+ .t50 { width:50% } /* 1/2 */
107
+ .t55 { width:55% }
108
+ .t60 { width:60% }
109
+ .t62 { width:62.5% } /* 5/8 */
110
+ .t65 { width:65% }
111
+ .t66 { width:66.666% } /* 2/3 */
112
+ .t70 { width:70% }
113
+ .t75 { width:75% } /* 3/4*/
114
+ .t80 { width:80% }
115
+ .t85 { width:85% }
116
+ .t87 { width:87.5% } /* 7/8 */
117
+ .t90 { width:90% }
118
+ .t95 { width:95% }
119
+
120
+ /**
121
+ * Bordered tables
122
+ */
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;
136
+ }
137
+
138
+ /**
139
+ * Striped tables
140
+ */
141
+ .striped-table tbody tr:nth-of-type(odd){
142
+ background-color:#ffc; /* Override this color in your theme stylesheet */
143
+ }
144
+
145
+ /**
146
+ * Data table
147
+ */
148
+ .data-table{
149
+ font:12px/1.5 sans-serif;
150
+ }
@@ -0,0 +1,18 @@
1
+ /*------------------------------------*\
2
+ $BRAND
3
+ \*------------------------------------*/
4
+ /**
5
+ * `.brand` is a quick and simple way to apply your brand face and/or color to
6
+ * any element using a handy helper class.
7
+ */
8
+ .brand{
9
+ font-family:$brand-face +!important;
10
+ color:$brand-color +!important;
11
+ }
12
+ .brand-face{
13
+ font-family:$brand-face +!important;
14
+ }
15
+ .brand-color,
16
+ .brand-colour{
17
+ color:$brand-color +!important;
18
+ }
@@ -0,0 +1,19 @@
1
+ /*------------------------------------*\
2
+ $CLEARFIX
3
+ \*------------------------------------*/
4
+ /**
5
+ * Micro clearfix, as per: nicolasgallagher.com/micro-clearfix-hack
6
+ * Extend the clearfix class with Sass to avoid the `.cf` class appearing over
7
+ * and over in your markup.
8
+ */
9
+ .cf{
10
+ zoom:1;
11
+ &:before,
12
+ &:after{
13
+ content:"";
14
+ display:table;
15
+ }
16
+ &:after{
17
+ clear:both;
18
+ }
19
+ }
@@ -0,0 +1,69 @@
1
+ /*------------------------------------*\
2
+ $HELPER
3
+ \*------------------------------------*/
4
+ /**
5
+ * A series of helper classes to use arbitrarily. Only use a helper class if an
6
+ * element/component doesn’t already have a class to which you could apply this
7
+ * styling, e.g. if you need to float `.main-nav` left then add `float:left;` to
8
+ * that ruleset as opposed to adding the `.fl` class to the markup.
9
+ */
10
+ .fr { float:right; }
11
+ .fl { float:left; }
12
+
13
+ .text-center,
14
+ .text-centre{
15
+ text-align:center;
16
+ }
17
+
18
+ /**
19
+ * Pull items full width of `.island` parents.
20
+ */
21
+ .full-bleed{
22
+ margin-right:-$base-spacing-unit +px;
23
+ 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;
28
+ }
29
+
30
+ /**
31
+ * Add a help cursor to any element that gives the user extra information on
32
+ * `:hover`.
33
+ */
34
+ .informative{
35
+ cursor:help;
36
+ }
37
+
38
+ /**
39
+ * Align items to the right where they imply progression/movement forward, e.g.:
40
+ *
41
+ <p class=proceed><a href=#>Read more...</a></p>
42
+ *
43
+ */
44
+ .proceed{
45
+ text-align:right;
46
+ }
47
+
48
+ /**
49
+ * Add a right-angled quote to links that imply movement, e.g.:
50
+ *
51
+ <a href=# class=go>Read more</a>
52
+ *
53
+ */
54
+ .go:after{
55
+ content:" »";
56
+ }
57
+
58
+ /**
59
+ * Apply capital case to an element (usually a `strong`).
60
+ */
61
+ .caps{
62
+ text-transform:uppercase;
63
+ }
64
+
65
+ /**
66
+ * Hide content off-screen without resorting to `display:none;`
67
+ */
68
+ .accessibility { position:absolute; left:-99999px; }
69
+ [dir=rtl] .accessibility { left:auto; right:-99999px; }