inuit_rails 0.0.2

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 (61) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +29 -0
  6. data/Rakefile +1 -0
  7. data/inuit_rails.gemspec +23 -0
  8. data/lib/generators/inuit_rails/install_generator.rb +23 -0
  9. data/lib/generators/inuit_rails/templates/inuit_override.css.scss +209 -0
  10. data/lib/inuit_rails.rb +6 -0
  11. data/lib/inuit_rails/version.rb +3 -0
  12. data/vendor/assets/stylesheets/_defaults.scss +226 -0
  13. data/vendor/assets/stylesheets/_inuit.scss +215 -0
  14. data/vendor/assets/stylesheets/base/_code.scss +63 -0
  15. data/vendor/assets/stylesheets/base/_forms.scss +174 -0
  16. data/vendor/assets/stylesheets/base/_headings.scss +45 -0
  17. data/vendor/assets/stylesheets/base/_images.scss +73 -0
  18. data/vendor/assets/stylesheets/base/_lists.scss +19 -0
  19. data/vendor/assets/stylesheets/base/_main.scss +13 -0
  20. data/vendor/assets/stylesheets/base/_massive_print.scss +16 -0
  21. data/vendor/assets/stylesheets/base/_quotes.scss +98 -0
  22. data/vendor/assets/stylesheets/base/_small_print.scss +13 -0
  23. data/vendor/assets/stylesheets/base/_tables.scss +163 -0
  24. data/vendor/assets/stylesheets/generic/_brand.scss +18 -0
  25. data/vendor/assets/stylesheets/generic/_clearfix.scss +15 -0
  26. data/vendor/assets/stylesheets/generic/_debug.scss +168 -0
  27. data/vendor/assets/stylesheets/generic/_helper.scss +184 -0
  28. data/vendor/assets/stylesheets/generic/_inline_block_fix.scss +14 -0
  29. data/vendor/assets/stylesheets/generic/_inline_block_whitespace_fix.scss +13 -0
  30. data/vendor/assets/stylesheets/generic/_mixins.scss +341 -0
  31. data/vendor/assets/stylesheets/generic/_normalize.scss +396 -0
  32. data/vendor/assets/stylesheets/generic/_pull.scss +147 -0
  33. data/vendor/assets/stylesheets/generic/_push.scss +147 -0
  34. data/vendor/assets/stylesheets/generic/_reset.scss +85 -0
  35. data/vendor/assets/stylesheets/generic/_shared.scss +61 -0
  36. data/vendor/assets/stylesheets/generic/_widths.scss +158 -0
  37. data/vendor/assets/stylesheets/objects/_arrows.scss +147 -0
  38. data/vendor/assets/stylesheets/objects/_beautons.scss +218 -0
  39. data/vendor/assets/stylesheets/objects/_block-list.scss +45 -0
  40. data/vendor/assets/stylesheets/objects/_columns.scss +22 -0
  41. data/vendor/assets/stylesheets/objects/_flexbox.scss +55 -0
  42. data/vendor/assets/stylesheets/objects/_flyout.scss +80 -0
  43. data/vendor/assets/stylesheets/objects/_greybox.scss +58 -0
  44. data/vendor/assets/stylesheets/objects/_grids.scss +76 -0
  45. data/vendor/assets/stylesheets/objects/_icon-text.scss +40 -0
  46. data/vendor/assets/stylesheets/objects/_island.scss +38 -0
  47. data/vendor/assets/stylesheets/objects/_link-complex.scss +32 -0
  48. data/vendor/assets/stylesheets/objects/_lozenges.scss +46 -0
  49. data/vendor/assets/stylesheets/objects/_marginalia.scss +52 -0
  50. data/vendor/assets/stylesheets/objects/_matrix.scss +89 -0
  51. data/vendor/assets/stylesheets/objects/_media.scss +60 -0
  52. data/vendor/assets/stylesheets/objects/_nav.scss +155 -0
  53. data/vendor/assets/stylesheets/objects/_nav__breadcrumb.scss +67 -0
  54. data/vendor/assets/stylesheets/objects/_nav__options.scss +45 -0
  55. data/vendor/assets/stylesheets/objects/_nav__pagination.scss +53 -0
  56. data/vendor/assets/stylesheets/objects/_rules.scss +63 -0
  57. data/vendor/assets/stylesheets/objects/_split.scss +39 -0
  58. data/vendor/assets/stylesheets/objects/_sprite.scss +98 -0
  59. data/vendor/assets/stylesheets/objects/_stats.scss +52 -0
  60. data/vendor/assets/stylesheets/objects/_this-or-this.scss +38 -0
  61. metadata +131 -0
@@ -0,0 +1,147 @@
1
+ @if $use-arrows == true{
2
+
3
+ /*------------------------------------*\
4
+ $ARROWS
5
+ \*------------------------------------*/
6
+ /**
7
+ * It is a common design treatment to give an element a triangular points-out
8
+ * arrow, we typically build these with CSS. These following classes allow us to
9
+ * generate these arbitrarily with a mixin, `@arrow()`.
10
+ */
11
+
12
+ $arrow-size: $half-spacing-unit!default;
13
+ $arrow-border: 1!default;
14
+ $border: $arrow-size;
15
+ $arrow: $arrow-size - $arrow-border;
16
+
17
+ /**
18
+ * Forms the basis for any/all CSS arrows.
19
+ */
20
+ %arrow{
21
+ position:relative;
22
+
23
+ &:before,
24
+ &:after{
25
+ content:"";
26
+ position:absolute;
27
+ border-collapse:separate;
28
+ }
29
+ &:before{
30
+ border:$border solid transparent;
31
+ }
32
+ &:after{
33
+ border:$arrow solid transparent;
34
+ }
35
+ }
36
+
37
+
38
+ /**
39
+ * Define individual edges so we can combine what we need, when we need.
40
+ */
41
+ %arrow--top{
42
+ @extend %arrow;
43
+
44
+ &:before,
45
+ &:after{
46
+ bottom:100%;
47
+ }
48
+ }
49
+
50
+ %arrow--upper{
51
+ @extend %arrow;
52
+
53
+ &:before{
54
+ top:$arrow;
55
+ }
56
+ &:after{
57
+ top:$border;
58
+ }
59
+ }
60
+
61
+ %arrow--middle{
62
+ @extend %arrow;
63
+
64
+ &:before,
65
+ &:after{
66
+ top:50%;
67
+ margin-top:-$border;
68
+ }
69
+ &:after{
70
+ margin-top:-$arrow;
71
+ }
72
+ }
73
+
74
+ %arrow--lower{
75
+ @extend %arrow;
76
+
77
+ &:before{
78
+ bottom:$arrow;
79
+ }
80
+ &:after{
81
+ bottom:$border;
82
+ }
83
+ }
84
+
85
+ %arrow--bottom{
86
+ @extend %arrow;
87
+
88
+ &:before,
89
+ &:after{
90
+ top:100%;
91
+ }
92
+ }
93
+
94
+ %arrow--near{
95
+ @extend %arrow;
96
+
97
+ &:before,
98
+ &:after{
99
+ right:100%;
100
+ }
101
+ }
102
+
103
+ %arrow--left{
104
+ @extend %arrow;
105
+
106
+ &:before{
107
+ left:$arrow;
108
+ }
109
+ &:after{
110
+ left:$border;
111
+ }
112
+ }
113
+
114
+ %arrow--center{
115
+ @extend %arrow;
116
+
117
+ &:before,
118
+ &:after{
119
+ left:50%;
120
+ margin-left:-$border;
121
+ }
122
+ &:after{
123
+ margin-left:-$arrow;
124
+ }
125
+ }
126
+
127
+ %arrow--right{
128
+ @extend %arrow;
129
+
130
+ &:before{
131
+ right:$arrow;
132
+ }
133
+ &:after{
134
+ right:$border;
135
+ }
136
+ }
137
+
138
+ %arrow--far{
139
+ @extend %arrow;
140
+
141
+ &:before,
142
+ &:after{
143
+ left:100%;
144
+ }
145
+ }
146
+
147
+ }//endif
@@ -0,0 +1,218 @@
1
+ @if $use-beautons == true{
2
+
3
+ /*------------------------------------*\
4
+ $BEAUTONS.CSS
5
+ \*------------------------------------*/
6
+ /**
7
+ * beautons is a beautifully simple button toolkit.
8
+ *
9
+ * LICENSE
10
+ *
11
+ * Copyright 2013 Harry Roberts
12
+ *
13
+ * Licensed under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License.
15
+ * You may obtain a copy of the License at
16
+ *
17
+ * http://apache.org/licenses/LICENSE-2.0
18
+ *
19
+ * Unless required by applicable law or agreed to in writing, software
20
+ * distributed under the License is distributed on an "AS IS" BASIS,
21
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
+ * See the License for the specific language governing permissions and
23
+ * limitations under the License.
24
+ *
25
+ */
26
+
27
+
28
+ /*!*
29
+ *
30
+ * @csswizardry -- csswizardry.com/beautons
31
+ *
32
+ */
33
+
34
+
35
+
36
+
37
+
38
+ /*------------------------------------*\
39
+ $BASE
40
+ \*------------------------------------*/
41
+ /**
42
+ * Base button styles.
43
+ *
44
+ * 1. Allow us to better style box model properties.
45
+ * 2. Line different sized buttons up a little nicer.
46
+ * 3. Stop buttons wrapping and looking broken.
47
+ * 4. Make buttons inherit font styles.
48
+ * 5. Force all elements using beautons to appear clickable.
49
+ * 6. Normalise box model styles.
50
+ * 7. If the button’s text is 1em, and the button is (3 * font-size) tall, then
51
+ * there is 1em of space above and below that text. We therefore apply 1em
52
+ * of space to the left and right, as padding, to keep consistent spacing.
53
+ * 8. Basic cosmetics for default buttons. Change or override at will.
54
+ * 9. Don’t allow buttons to have underlines; it kinda ruins the illusion.
55
+ */
56
+ .btn{
57
+ @extend %inline_block_fix; /* [1] */
58
+ vertical-align:middle; /* [2] */
59
+ white-space:nowrap; /* [3] */
60
+ font-family:inherit; /* [4] */
61
+ font-size:100%; /* [4] */
62
+ cursor:pointer; /* [5] */
63
+ border:none; /* [6] */
64
+ margin:0; /* [6] */
65
+ padding-top: 0; /* [6] */
66
+ padding-bottom:0; /* [6] */
67
+ @include line-height(3); /* [7] */
68
+ border-radius:$brand-round; /* [8] */
69
+ }
70
+
71
+ .btn{
72
+
73
+ &,
74
+ &:hover{
75
+ text-decoration:none; /* [9] */
76
+ }
77
+
78
+ &:active,
79
+ &:focus{
80
+ outline:none;
81
+ }
82
+ }
83
+
84
+
85
+
86
+
87
+
88
+ /*------------------------------------*\
89
+ $SIZES
90
+ \*------------------------------------*/
91
+ /**
92
+ * Button size modifiers.
93
+ *
94
+ * These all follow the same sizing rules as above; text is 1em, space around it
95
+ * remains uniform.
96
+ */
97
+ .btn--small{
98
+ @include line-height(2);
99
+ }
100
+
101
+ .btn--large{
102
+ @include line-height(4);
103
+ }
104
+
105
+ .btn--huge{
106
+ @include line-height(5);
107
+ }
108
+
109
+ /**
110
+ * These buttons will fill the entirety of their container.
111
+ *
112
+ * 1. Remove padding so that widths and paddings don’t conflict.
113
+ */
114
+ .btn--full{
115
+ width:100%;
116
+ padding-right:0; /* [1] */
117
+ padding-left: 0; /* [1] */
118
+ text-align:center;
119
+ }
120
+
121
+
122
+
123
+
124
+
125
+ /*------------------------------------*\
126
+ $FONT-SIZES
127
+ \*------------------------------------*/
128
+ /**
129
+ * Button font-size modifiers.
130
+ */
131
+ .btn--alpha{
132
+ font-size:3rem;
133
+ }
134
+
135
+ .btn--beta{
136
+ font-size:2rem;
137
+ }
138
+
139
+ .btn--gamma{
140
+ font-size:1rem;
141
+ }
142
+
143
+ /**
144
+ * Make the button inherit sizing from its parent.
145
+ */
146
+ .btn--natural{
147
+ vertical-align:baseline;
148
+ font-size:inherit;
149
+ line-height:inherit;
150
+ padding-right:0.5em;
151
+ padding-left: 0.5em;
152
+ }
153
+
154
+
155
+
156
+
157
+
158
+ /*------------------------------------*\
159
+ $FUNCTIONS
160
+ \*------------------------------------*/
161
+ /**
162
+ * Button function modifiers.
163
+ */
164
+ .btn--primary{}
165
+ .btn--secondary{}
166
+ .btn--tertiary{}
167
+
168
+ /**
169
+ * Positive actions; e.g. sign in, purchase, submit, etc.
170
+ */
171
+ .btn--positive{
172
+ background-color:#4A993E;
173
+ color:#fff;
174
+ }
175
+
176
+ /**
177
+ * Negative actions; e.g. close account, delete photo, remove friend, etc.
178
+ */
179
+ .btn--negative{
180
+ background-color:#b33630;
181
+ color:#fff;
182
+ }
183
+
184
+ /**
185
+ * Inactive, disabled buttons.
186
+ *
187
+ * 1. Make the button look like normal text when hovered.
188
+ */
189
+ .btn--inactive,
190
+ .btn--inactive:hover,
191
+ .btn--inactive:active,
192
+ .btn--inactive:focus{
193
+ background-color:#ddd;
194
+ color:#777;
195
+ cursor:text; /* [1] */
196
+ }
197
+
198
+
199
+
200
+
201
+
202
+ /*------------------------------------*\
203
+ $STYLES
204
+ \*------------------------------------*/
205
+ /**
206
+ * Button style modifiers.
207
+ *
208
+ * 1. Use an overly-large number to ensure completely rounded, pill-like ends.
209
+ */
210
+ .btn--soft{
211
+ border-radius:200px; /* [1] */
212
+ }
213
+
214
+ .btn--hard{
215
+ border-radius:0;
216
+ }
217
+
218
+ }//endif
@@ -0,0 +1,45 @@
1
+ @if $use-block-list == true or $use-matrix == true{
2
+
3
+ /*------------------------------------*\
4
+ $BLOCK-LIST
5
+ \*------------------------------------*/
6
+ /**
7
+ * Create big blocky lists of content, e.g.:
8
+ *
9
+ <ul class=block-list>
10
+ <li>Foo</li>
11
+ <li>Bar</li>
12
+ <li>Baz</li>
13
+ <li><a href=# class=block-list__link>Foo Bar Baz</a></li>
14
+ </ul>
15
+ *
16
+ * Extend this object in your theme stylesheet.
17
+ *
18
+ * Demo: jsfiddle.net/inuitcss/hR57q
19
+ *
20
+ */
21
+ .block-list{
22
+
23
+ &,
24
+ > li{
25
+ border:0 solid $base-ui-color;
26
+ }
27
+ }
28
+ .block-list{
29
+ list-style:none;
30
+ margin-left:0;
31
+ border-top-width:1px;
32
+
33
+ > li{
34
+ border-bottom-width:1px;
35
+ padding:$half-spacing-unit;
36
+ }
37
+ }
38
+ .block-list__link{
39
+ display:block;
40
+ // to make link clickable in li tag from top to bottom
41
+ padding:$half-spacing-unit;
42
+ margin:-$half-spacing-unit;
43
+ }
44
+
45
+ }//endif
@@ -0,0 +1,22 @@
1
+ @if $use-columns == true{
2
+
3
+ /*------------------------------------*\
4
+ $COLUMNS
5
+ \*------------------------------------*/
6
+ /**
7
+ * Here we can set elements in columns of text using CSS3, e.g.:
8
+ *
9
+ <p class=text-cols--2>
10
+ *
11
+ * Demo: jsfiddle.net/inuitcss/E26Yd
12
+ *
13
+ */
14
+ %text-cols{
15
+ @include vendor(column-gap, $base-spacing-unit);
16
+ }
17
+ .text-cols--2 { @extend %text-cols; @include vendor(column-count, 2); }
18
+ .text-cols--3 { @extend %text-cols; @include vendor(column-count, 3); }
19
+ .text-cols--4 { @extend %text-cols; @include vendor(column-count, 4); }
20
+ .text-cols--5 { @extend %text-cols; @include vendor(column-count, 5); }
21
+
22
+ }//endif
@@ -0,0 +1,55 @@
1
+ @if $use-flexbox == true{
2
+
3
+ /*------------------------------------*\
4
+ $FLEXBOX
5
+ \*------------------------------------*/
6
+ /**
7
+ * Until we can utilise flexbox natively we can kinda, sorta, attempt to emulate
8
+ * it, in a way... e.g.:
9
+ *
10
+ <header class=flexbox>
11
+
12
+ <div class=flexbox__item>
13
+ <b>Welcome to</b>
14
+ </div>
15
+
16
+ <div class=flexbox__item>
17
+ <img src="//csswizardry.com/inuitcss/img/logo.jpg" alt="inuit.css">
18
+ </div>
19
+
20
+ </header>
21
+ *
22
+ * We can also combine our grid system classes with `.flexbox__item` classes,
23
+ * e.g.:
24
+ *
25
+ <div class=flexbox>
26
+ <div class="flexbox__item one-quarter">
27
+ </div>
28
+ <div class="flexbox__item three-quarters">
29
+ </div>
30
+ </div>
31
+ *
32
+ * It’s pretty poorly named I’m afraid, but it works...
33
+ *
34
+ * Demo: jsfiddle.net/inuitcss/ufUh2
35
+ *
36
+ */
37
+ .flexbox{
38
+ display:table;
39
+ width:100%;
40
+ }
41
+
42
+ /**
43
+ * Nasty hack to circumvent Modernizr conflicts.
44
+ */
45
+ html.flexbox{
46
+ display:block;
47
+ width:auto;
48
+ }
49
+
50
+ .flexbox__item{
51
+ display:table-cell;
52
+ vertical-align:middle;
53
+ }
54
+
55
+ }//endif