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,31 @@
1
+ /*------------------------------------*\
2
+ $MIXINS
3
+ \*------------------------------------*/
4
+ /**
5
+ * Create a fully formed type style (sizing and vertical rhythm) by passing in a
6
+ * single value, e.g.:
7
+ *
8
+ `@include font-size(10);`
9
+ *
10
+ * Thanks to @redclov3r for the `line-height` Sass:
11
+ * twitter.com/redclov3r/status/250301539321798657
12
+ */
13
+ @mixin font-size($font-size){
14
+ font-size:$font-size +px;
15
+ font-size:$font-size / $base-font-size +rem;
16
+ line-height:ceil($font-size / $base-line-height) * ($base-line-height / $font-size);
17
+ }
18
+
19
+ /**
20
+ * Create vendor-prefixed CSS in one go, e.g.
21
+ *
22
+ `@include vendor(box-sizing, border-box);`
23
+ *
24
+ */
25
+ @mixin vendor($property, $value){
26
+ -webkit-#{$property}:$value;
27
+ -moz-#{$property}:$value;
28
+ -ms-#{$property}:$value;
29
+ -o-#{$property}:$value;
30
+ #{$property}:$value;
31
+ }
@@ -0,0 +1,75 @@
1
+ /*------------------------------------*\
2
+ $RESET
3
+ \*------------------------------------*/
4
+ /**
5
+ * A more considered reset; more of a restart...
6
+ * As per: csswizardry.com/2011/10/reset-restarted
7
+ */
8
+ body,
9
+ h1,h2,h3,h4,h5,h6,
10
+ p,blockquote,pre,
11
+ dl,dd,ol,ul,
12
+ form,fieldset,legend,
13
+ table,th,td,caption,
14
+ figure,
15
+ hr{
16
+ margin:0;
17
+ padding:0;
18
+ }
19
+ article,aside,details,figcaption,figure,footer,
20
+ header,hgroup,menu,nav,section{
21
+ display:block;
22
+ }
23
+ table{
24
+ border-collapse:collapse;
25
+ border-spacing:0;
26
+ }
27
+ strong,b,mark{
28
+ font-weight:bold;
29
+ font-style:inherit;
30
+ }
31
+ em,i,cite,q,address,dfn,var{
32
+ font-style:italic;
33
+ font-weight:inherit;
34
+ }
35
+ abbr[title],dfn[title]{
36
+ cursor:help;
37
+ border-bottom:1px dotted;
38
+ }
39
+ ins{
40
+ border-bottom:1px solid;
41
+ }
42
+ a,u,ins{
43
+ text-decoration:none;
44
+ }
45
+ del,s{
46
+ text-decoration:line-through;
47
+ }
48
+ img{
49
+ border:none;
50
+ font-style:italic;
51
+ }
52
+ input,
53
+ select,option,optgroup,
54
+ textarea{
55
+ font:inherit;
56
+ }
57
+
58
+ /**
59
+ * Give form elements some cursor interactions...
60
+ */
61
+ label,
62
+ input,
63
+ textarea,
64
+ button,
65
+ select,
66
+ option{
67
+ cursor:pointer;
68
+ }
69
+ .text-input:active,
70
+ .text-input:focus,
71
+ textarea:active,
72
+ textarea:focus{
73
+ cursor:text;
74
+ outline:none;
75
+ }
@@ -0,0 +1,50 @@
1
+ /*------------------------------------*\
2
+ $SHARED
3
+ \*------------------------------------*/
4
+ /**
5
+ * Where `margin-bottom` is concerned, this value will be the same as the
6
+ * base line-height. This allows us to keep a consistent vertical rhythm.
7
+ * As per: csswizardry.com/2012/06/single-direction-margin-declarations
8
+ */
9
+ /**
10
+ * Base elements
11
+ */
12
+ h1,h2,h3,h4,h5,h6,hgroup,
13
+ ul,ol,dl,
14
+ blockquote,p,address,
15
+ table,
16
+ fieldset,figure,
17
+ pre,
18
+ hr,
19
+ /**
20
+ * Objects and abstractions
21
+ */
22
+ .sass-margin-bottom,
23
+ .media,
24
+ .island,
25
+ .islet{
26
+ margin-bottom:$base-spacing-unit +px;
27
+ margin-bottom:($base-spacing-unit / $base-font-size) +rem;
28
+
29
+ .islet &{
30
+ margin-bottom:($base-spacing-unit / 2) +px;
31
+ margin-bottom:(($base-spacing-unit / $base-font-size) / 2) +rem;
32
+ }
33
+ }
34
+
35
+ /**
36
+ * Doubled up `margin-bottom` helper class.
37
+ */
38
+ .landmark{
39
+ margin-bottom:2 * $base-spacing-unit +px;
40
+ margin-bottom:2 * $base-spacing-unit / $base-font-size +rem;
41
+ }
42
+
43
+ /**
44
+ * Where `margin-left` is concerned we want to try and indent certain elements
45
+ * by a consistent amount. Define that amount once, here.
46
+ */
47
+ ul,ol,dd{
48
+ margin-left:2 * $base-spacing-unit +px;
49
+ margin-left:2 * $base-spacing-unit / $base-font-size +rem;
50
+ }
@@ -0,0 +1,36 @@
1
+ /*------------------------------------*\
2
+ $BLOCK-LIST
3
+ \*------------------------------------*/
4
+ /**
5
+ * Create big blocky lists of content, e.g.:
6
+ *
7
+ <ul class=block-list>
8
+ <li>Foo</li>
9
+ <li>Bar</li>
10
+ <li>Baz</li>
11
+ <li><a href=# class=block-list__link>Foo Bar Baz</a></li>
12
+ </ul>
13
+ *
14
+ * Extend this object in your theme stylesheet.
15
+ *
16
+ * Demo: jsfiddle.net/inuitcss/hR57q
17
+ *
18
+ */
19
+ .block-list,
20
+ .block-list > li{
21
+ border:0 solid #ccc; /* Override this color in your theme stylesheet */
22
+ }
23
+ .block-list{
24
+ list-style:none;
25
+ margin-left:0;
26
+ border-top-width:1px;
27
+ }
28
+ .block-list > li{
29
+ border-bottom-width:1px;
30
+ padding:$half-spacing-unit +px;
31
+ }
32
+ .block-list__link{
33
+ display:block;
34
+ padding:$half-spacing-unit +px;
35
+ margin:-$half-spacing-unit +px;
36
+ }
@@ -0,0 +1,41 @@
1
+ /*------------------------------------*\
2
+ $BUTTONS
3
+ \*------------------------------------*/
4
+ /**
5
+ * Basic button structural styling. Extend in your theme stylesheet.
6
+ *
7
+ * Demo: jsfiddle.net/inuitcss/RqHcp
8
+ *
9
+ */
10
+ .btn{
11
+ font:inherit;
12
+ cursor:pointer;
13
+ border:none;
14
+ display:inline-block;
15
+ margin: 0;
16
+ line-height:1;
17
+ /**
18
+ * Set padding in ems so we can change the size of a button by merely
19
+ * altering its `font-size`.
20
+ */
21
+ padding:0.5em;
22
+ }
23
+ .btn,
24
+ .btn:hover{
25
+ text-decoration:none;
26
+ }
27
+
28
+ .btn--sml { font-size: .75em; }
29
+ .btn--lrg { font-size:1.50em; }
30
+
31
+ .btn--full{
32
+ display:block;
33
+ text-align:center;
34
+ /**
35
+ * The following is so that `.btn-full` works properly on `input`s as well
36
+ * as `a`s.
37
+ */
38
+ padding-right:0;
39
+ padding-left: 0;
40
+ width:100%;
41
+ }
@@ -0,0 +1,22 @@
1
+ /*------------------------------------*\
2
+ $COLUMNS
3
+ \*------------------------------------*/
4
+ /**
5
+ * Here we can set elements in columns of text using CSS3, e.g.:
6
+ *
7
+ <p class=text-cols-2>
8
+ *
9
+ * Demo: jsfiddle.net/inuitcss/E26Yd
10
+ *
11
+ */
12
+ .text-cols,
13
+ .text-cols--2,
14
+ .text-cols--3,
15
+ .text-cols--4,
16
+ .text-cols--5{
17
+ @include vendor(column-gap, $base-spacing-unit +px);
18
+ }
19
+ .text-cols--2 { @include vendor(column-count, 2); }
20
+ .text-cols--3 { @include vendor(column-count, 3); }
21
+ .text-cols--4 { @include vendor(column-count, 4); }
22
+ .text-cols--5 { @include vendor(column-count, 5); }
@@ -0,0 +1,28 @@
1
+ /*------------------------------------*\
2
+ $COMPLEX-LINK
3
+ \*------------------------------------*/
4
+ /**
5
+ * As inspired by @necolas:
6
+ * github.com/necolas/suit-utils/blob/master/link.css#L18
7
+ *
8
+ * Add hover behaviour to only slected items within links, e.g.:
9
+ *
10
+ <a href=log-in class=complex-link>
11
+ <i class="s s--user"></i>
12
+ <span class=complex-link__target>Log in</span>
13
+ </a>
14
+ *
15
+ * Demo: jsfiddle.net/inuitcss/rt9M3
16
+ *
17
+ */
18
+ .complex-link,
19
+ .complex-link:hover,
20
+ .complex-link:active,
21
+ .complex-link:focus{
22
+ text-decoration:none;
23
+ }
24
+ .complex-link:hover .complex-link__target,
25
+ .complex-link:active .complex-link__target,
26
+ .complex-link:focus .complex-link__target{
27
+ text-decoration:underline;
28
+ }
@@ -0,0 +1,39 @@
1
+ /*------------------------------------*\
2
+ $FLEXBOX
3
+ \*------------------------------------*/
4
+ /**
5
+ * Until we can utilise flexbox natively we can kinda, sorta, attempt to emulate
6
+ * it, in a way... e.g.:
7
+ *
8
+ <header class=flexbox>
9
+
10
+ <div class=flexbox__item>
11
+ <b>Welcome to</b>
12
+ </div>
13
+
14
+ <div class=flexbox__item>
15
+ <img src="//csswizardry.com/inuitcss/img/logo.jpg" alt="inuit.css">
16
+ </div>
17
+
18
+ </header>
19
+ *
20
+ * We can also combine our grid system classes with `.flexbox__item` classes,
21
+ * e.g.:
22
+ *
23
+ <div class=flexbox>
24
+ <div class="flexbox__item one-quarter">
25
+ </div>
26
+ <div class="flexbox__item three-quarters">
27
+ </div>
28
+ </div>
29
+ *
30
+ * It’s pretty poorly named I’m afraid, but it works…
31
+ */
32
+ .flexbox{
33
+ display:table;
34
+ width:100%;
35
+ }
36
+ .flexbox__item{
37
+ display:table-cell;
38
+ vertical-align:middle;
39
+ }
@@ -0,0 +1,57 @@
1
+ /*------------------------------------*\
2
+ $FLYOUT
3
+ \*------------------------------------*/
4
+ /**
5
+ * Flyouts are pieces of content that fly out of a parent when said parent is
6
+ * hovered. They typically appear bottom-left of the parent.
7
+ *
8
+ <div class=flyout>
9
+ Foo
10
+ <div class=flyout__content>
11
+ <h1>Lorem</h1>
12
+ <p>Ipsum</p>
13
+ </div>
14
+ </div>
15
+ *
16
+ * Extend these objects in your theme stylesheet.
17
+ *
18
+ * Demo: jsfiddle.net/inuitcss/B52HG
19
+ *
20
+ */
21
+ .flyout,
22
+ .flyout--alt{
23
+ position:relative;
24
+ overflow:hidden;
25
+ }
26
+ .flyout__content{
27
+ /**
28
+ * Position the flyouts off-screen. This is typically better than
29
+ * `display:none;`.
30
+ */
31
+ position:absolute;
32
+ top:100%;
33
+ left:-99999px;
34
+ }
35
+
36
+ /**
37
+ * Bring the flyouts into view when you hover their parents.
38
+ * Two different types of flyout; ‘regular’ (`.flyout`) and ‘alternative’
39
+ * (`.flyout--alt`).
40
+ */
41
+ .flyout:hover,
42
+ .flyout--alt:hover{
43
+ overflow:visible;
44
+ }
45
+ /**
46
+ * Regular flyouts sit all the way from the top, flush left.
47
+ */
48
+ .flyout:hover > .flyout__content{
49
+ left:0;
50
+ }
51
+ /**
52
+ * Alternative flyouts sit all the way from the left, flush top.
53
+ */
54
+ .flyout--alt:hover > .flyout__content{
55
+ top:0;
56
+ left:100%;
57
+ }
@@ -0,0 +1,154 @@
1
+ /*------------------------------------*\
2
+ $GRIDS
3
+ \*------------------------------------*/
4
+ /**
5
+ * Fluid and nestable grid system, e.g.:
6
+ *
7
+ <div class=gw>
8
+
9
+ <div class="g one-third">
10
+ <p>One third grid</p>
11
+ </div>
12
+
13
+ <div class="g two-thirds">
14
+ <p>Two thirds grid</p>
15
+ </div>
16
+
17
+ <div class="g one-half">
18
+ <p>One half grid</p>
19
+ </div>
20
+
21
+ <div class="g one-quarter">
22
+ <p>One quarter grid</p>
23
+ </div>
24
+
25
+ <div class="g one-quarter">
26
+ <p>One quarter grid</p>
27
+ </div>
28
+
29
+ </div>
30
+ *
31
+ * Demo: jsfiddle.net/inuitcss/CLYUC
32
+ *
33
+ */
34
+ /**
35
+ * Grid wrapper
36
+ *
37
+ * Shorthand and verbose
38
+ */
39
+ .gw,
40
+ .grid-wrapper{
41
+ /**
42
+ * Negative margin to negate the padding on the first grid child.
43
+ */
44
+ margin-left:-($base-spacing-unit) +px;
45
+ /**
46
+ * The following declarations allow us to use the `.gw` class on lists.
47
+ */
48
+ list-style:none;
49
+ margin-bottom:0;
50
+ @extend .cf;
51
+ }
52
+ /**
53
+ * Very infrequently occuring grid wrappers as children of grid wrappers.
54
+ */
55
+ .gw > .gw,
56
+ .grid-wrapper > .grid-wrapper{
57
+ margin-left:0;
58
+ }
59
+
60
+ /**
61
+ * Grid
62
+ *
63
+ * Shorthand and verbose
64
+ */
65
+ .g,
66
+ .grid{
67
+ float:left;
68
+ padding-left:$base-spacing-unit +px;
69
+ @include vendor(box-sizing, border-box);
70
+ }
71
+
72
+ /**
73
+ * Grid sizes in human readable format.
74
+ */
75
+
76
+ /**
77
+ * Whole
78
+ */
79
+ .one-whole { width:100%; }
80
+
81
+ /**
82
+ * Halves
83
+ */
84
+ .one-half { width:50%; }
85
+
86
+ /**
87
+ * Thirds
88
+ */
89
+ .one-third { width:33.333%; }
90
+ .two-thirds { width:66.666%; }
91
+
92
+ /**
93
+ * Quarters
94
+ */
95
+ .one-quarter { width:25%; }
96
+ .two-quarters { @extend .one-half; }
97
+ .three-quarters { width:75%; }
98
+
99
+ /**
100
+ * Fifths
101
+ */
102
+ .one-fifth { width:20%; }
103
+ .two-fifths { width:40%; }
104
+ .three-fifths { width:60%; }
105
+ .four-fifths { width:80%; }
106
+
107
+ /**
108
+ * Sixths
109
+ */
110
+ .one-sixth { width:16.666%; }
111
+ .two-sixths { @extend .one-third; }
112
+ .three-sixths { @extend .one-half; }
113
+ .four-sixths { @extend .two-thirds; }
114
+ .five-sixths { width:83.333%; }
115
+
116
+ /**
117
+ * Eighths
118
+ */
119
+ .one-eighth { width:12.5%; }
120
+ .two-eighths { @extend .one-quarter; }
121
+ .three-eighths { width:37.5%; }
122
+ .four-eighths { @extend .one-half; }
123
+ .five-eighths { width:62.5%; }
124
+ .six-eighths { @extend .three-quarters; }
125
+ .seven-eighths { width:87.5%; }
126
+
127
+ /**
128
+ * Tenths
129
+ */
130
+ .one-tenth { width:10%; }
131
+ .two-tenths { @extend .one-fifth; }
132
+ .three-tenths { width:30%; }
133
+ .four-tenths { @extend .one-fifth; }
134
+ .five-tenths { @extend .one-half; }
135
+ .six-tenths { @extend .three-fifths; }
136
+ .seven-tenths { width:70%; }
137
+ .eight-tenths { @extend .four-fifths; }
138
+ .nine-tenths { width:90%; }
139
+
140
+
141
+ /**
142
+ * Twelfths
143
+ */
144
+ .one-twelfth { width:8.333%; }
145
+ .two-twelfths { @extend .one-sixth; }
146
+ .three-twelfths { @extend .one-quarter; }
147
+ .four-twelfths { @extend .one-third; }
148
+ .five-twelfths { width:41.666% }
149
+ .six-twelfths { @extend .one-half; }
150
+ .seven-twelfths { width:58.333%; }
151
+ .eight-twelfths { @extend .two-thirds; }
152
+ .nine-twelfths { @extend .three-quarters; }
153
+ .ten-twelfths { @extend .five-sixths; }
154
+ .eleven-twelfths { width:91.666%; }