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
+ /*------------------------------------*\
2
+ $PUSH
3
+ \*------------------------------------*/
4
+ /**
5
+ * Push classes, to move grid items over to the right by certain amounts.
6
+ */
7
+
8
+ @mixin push-setup($namespace: "") {
9
+
10
+ /**
11
+ * Whole
12
+ */
13
+ .push--#{$namespace}one-whole { left:100%; }
14
+
15
+
16
+ /**
17
+ * Halves
18
+ */
19
+ .push--#{$namespace}one-half { left:50%; }
20
+
21
+
22
+ /**
23
+ * Thirds
24
+ */
25
+ .push--#{$namespace}one-third { left:33.333%; }
26
+ .push--#{$namespace}two-thirds { left:66.666%; }
27
+
28
+
29
+ /**
30
+ * Quarters
31
+ */
32
+ .push--#{$namespace}one-quarter { left:25%; }
33
+ .push--#{$namespace}two-quarters { @extend .push--#{$namespace}one-half; }
34
+ .push--#{$namespace}three-quarters { left:75%; }
35
+
36
+
37
+ /**
38
+ * Fifths
39
+ */
40
+ .push--#{$namespace}one-fifth { left:20%; }
41
+ .push--#{$namespace}two-fifths { left:40%; }
42
+ .push--#{$namespace}three-fifths { left:60%; }
43
+ .push--#{$namespace}four-fifths { left:80%; }
44
+
45
+
46
+ /**
47
+ * Sixths
48
+ */
49
+ .push--#{$namespace}one-sixth { left:16.666%; }
50
+ .push--#{$namespace}two-sixths { @extend .push--#{$namespace}one-third; }
51
+ .push--#{$namespace}three-sixths { @extend .push--#{$namespace}one-half; }
52
+ .push--#{$namespace}four-sixths { @extend .push--#{$namespace}two-thirds; }
53
+ .push--#{$namespace}five-sixths { left:83.333%; }
54
+
55
+
56
+ /**
57
+ * Eighths
58
+ */
59
+ .push--#{$namespace}one-eighth { left:12.5%; }
60
+ .push--#{$namespace}two-eighths { @extend .push--#{$namespace}one-quarter; }
61
+ .push--#{$namespace}three-eighths { left:37.5%; }
62
+ .push--#{$namespace}four-eighths { @extend .push--#{$namespace}one-half; }
63
+ .push--#{$namespace}five-eighths { left:62.5%; }
64
+ .push--#{$namespace}six-eighths { @extend .push--#{$namespace}three-quarters; }
65
+ .push--#{$namespace}seven-eighths { left:87.5%; }
66
+
67
+
68
+ /**
69
+ * Tenths
70
+ */
71
+ .push--#{$namespace}one-tenth { left:10%; }
72
+ .push--#{$namespace}two-tenths { @extend .push--#{$namespace}one-fifth; }
73
+ .push--#{$namespace}three-tenths { left:30%; }
74
+ .push--#{$namespace}four-tenths { @extend .push--#{$namespace}two-fifths; }
75
+ .push--#{$namespace}five-tenths { @extend .push--#{$namespace}one-half; }
76
+ .push--#{$namespace}six-tenths { @extend .push--#{$namespace}three-fifths; }
77
+ .push--#{$namespace}seven-tenths { left:70%; }
78
+ .push--#{$namespace}eight-tenths { @extend .push--#{$namespace}four-fifths; }
79
+ .push--#{$namespace}nine-tenths { left:90%; }
80
+
81
+
82
+ /**
83
+ * Twelfths
84
+ */
85
+ .push--#{$namespace}one-twelfth { left:8.333%; }
86
+ .push--#{$namespace}two-twelfths { @extend .push--#{$namespace}one-sixth; }
87
+ .push--#{$namespace}three-twelfths { @extend .push--#{$namespace}one-quarter; }
88
+ .push--#{$namespace}four-twelfths { @extend .push--#{$namespace}one-third; }
89
+ .push--#{$namespace}five-twelfths { left:41.666% }
90
+ .push--#{$namespace}six-twelfths { @extend .push--#{$namespace}one-half; }
91
+ .push--#{$namespace}seven-twelfths { left:58.333%; }
92
+ .push--#{$namespace}eight-twelfths { @extend .push--#{$namespace}two-thirds; }
93
+ .push--#{$namespace}nine-twelfths { @extend .push--#{$namespace}three-quarters; }
94
+ .push--#{$namespace}ten-twelfths { @extend .push--#{$namespace}five-sixths; }
95
+ .push--#{$namespace}eleven-twelfths { left:91.666%; }
96
+ }
97
+
98
+ @if $push == true{
99
+
100
+ @include push-setup();
101
+
102
+ /**
103
+ * Not a particularly great selector, but the DRYest way to do things.
104
+ */
105
+ [class*="push--"]{ position:relative; }
106
+
107
+ @if $palm-push == true{
108
+
109
+ @include media-query(palm){
110
+ @include push-setup("palm-");
111
+ }
112
+
113
+ }
114
+
115
+ @if $lap-push == true{
116
+
117
+ @include media-query(lap){
118
+ @include push-setup("lap-");
119
+ }
120
+
121
+ }
122
+
123
+ @if $lap-and-up-push == true{
124
+
125
+ @include media-query(lap-and-up){
126
+ @include push-setup("lap-and-up-");
127
+ }
128
+
129
+ }
130
+
131
+ @if $portable-push == true{
132
+
133
+ @include media-query(portable){
134
+ @include push-setup("portable-");
135
+ }
136
+
137
+ }
138
+
139
+ @if $desk-push == true{
140
+
141
+ @include media-query(desk){
142
+ @include push-setup("desk-");
143
+ }
144
+
145
+ }
146
+
147
+ }//endif
@@ -0,0 +1,85 @@
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
+
9
+ @if $global-border-box == true{
10
+ /**
11
+ * Let’s make the box model all nice, shall we...?
12
+ */
13
+ *{
14
+ &,
15
+ &:before,
16
+ &:after{
17
+ @include vendor(box-sizing, border-box);
18
+ }
19
+ }
20
+ }
21
+
22
+ /**
23
+ * The usual...
24
+ */
25
+ h1,h2,h3,h4,h5,h6,
26
+ p,blockquote,pre,
27
+ dl,dd,ol,ul,
28
+ form,fieldset,legend,
29
+ table,th,td,caption,
30
+ hr{
31
+ margin:0;
32
+ padding:0;
33
+ }
34
+
35
+ /**
36
+ * Give a help cursor to elements that give extra info on `:hover`.
37
+ */
38
+ abbr[title],dfn[title]{
39
+ cursor:help;
40
+ }
41
+
42
+ /**
43
+ * Remove underlines from potentially troublesome elements.
44
+ */
45
+ u,ins{
46
+ text-decoration:none;
47
+ }
48
+
49
+ /**
50
+ * Apply faux underline via `border-bottom`.
51
+ */
52
+ ins{
53
+ border-bottom:1px solid;
54
+ }
55
+
56
+ /**
57
+ * So that `alt` text is visually offset if images don’t load.
58
+ *
59
+ * webkit browser like chrome can not display text in alt
60
+ */
61
+ img{
62
+ font-style:italic;
63
+ }
64
+
65
+ /**
66
+ * Give form elements some cursor interactions...
67
+
68
+ * Set outline as none for browsers consistent
69
+ * Firefox do not set outline
70
+ */
71
+ label,
72
+ input,
73
+ textarea,
74
+ button,
75
+ select,
76
+ option{
77
+ cursor:pointer;
78
+ }
79
+ .text-input:active,
80
+ .text-input:focus,
81
+ textarea:active,
82
+ textarea:focus{
83
+ cursor:text;
84
+ outline:none;
85
+ }
@@ -0,0 +1,61 @@
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
+ /**
19
+ * Objects and abstractions
20
+ */
21
+ %generic-margin-bottom,
22
+ .media,
23
+ .island,
24
+ .islet{
25
+ margin-bottom:$base-spacing-unit;
26
+ margin-bottom:($base-spacing-unit / $base-font-size)*1rem;
27
+
28
+ .islet &{
29
+ margin-bottom:$half-spacing-unit;
30
+ margin-bottom:($half-spacing-unit / $base-font-size)*1rem;
31
+ }
32
+ }
33
+
34
+
35
+ /**
36
+ * Doubled up `margin-bottom` helper class.
37
+ */
38
+ .landmark{
39
+ margin-bottom:$double-spacing-unit;
40
+ margin-bottom:($double-spacing-unit / $base-font-size)*1rem;
41
+ }
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 - 2px;
50
+ margin-bottom:(($base-spacing-unit - 2px) / $base-font-size)*1rem;
51
+ }
52
+
53
+
54
+ /**
55
+ * Where `margin-left` is concerned we want to try and indent certain elements
56
+ * by a consistent amount. Define that amount once, here.
57
+ */
58
+ ul,ol,dd{
59
+ margin-left:$double-spacing-unit;
60
+ margin-left:($double-spacing-unit / $base-font-size)*1rem;
61
+ }
@@ -0,0 +1,158 @@
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
+ * We have a mixin to generate our widths and their breakpoint-specific
10
+ * variations.
11
+ */
12
+
13
+ @mixin grid-setup($namespace: "") {
14
+ /**
15
+ * Whole
16
+ */
17
+ .#{$namespace}one-whole { width:100%; }
18
+
19
+
20
+ /**
21
+ * Halves
22
+ */
23
+ .#{$namespace}one-half { width:50%; }
24
+
25
+
26
+ /**
27
+ * Thirds
28
+ */
29
+ .#{$namespace}one-third { width:33.333%; }
30
+ .#{$namespace}two-thirds { width:66.666%; }
31
+
32
+
33
+ /**
34
+ * Quarters
35
+ */
36
+ .#{$namespace}one-quarter { width:25%; }
37
+ .#{$namespace}two-quarters { @extend .#{$namespace}one-half; }
38
+ .#{$namespace}three-quarters { width:75%; }
39
+
40
+
41
+ /**
42
+ * Fifths
43
+ */
44
+ .#{$namespace}one-fifth { width:20%; }
45
+ .#{$namespace}two-fifths { width:40%; }
46
+ .#{$namespace}three-fifths { width:60%; }
47
+ .#{$namespace}four-fifths { width:80%; }
48
+
49
+
50
+ /**
51
+ * Sixths
52
+ */
53
+ .#{$namespace}one-sixth { width:16.666%; }
54
+ .#{$namespace}two-sixths { @extend .#{$namespace}one-third; }
55
+ .#{$namespace}three-sixths { @extend .#{$namespace}one-half; }
56
+ .#{$namespace}four-sixths { @extend .#{$namespace}two-thirds; }
57
+ .#{$namespace}five-sixths { width:83.333%; }
58
+
59
+
60
+ /**
61
+ * Eighths
62
+ */
63
+ .#{$namespace}one-eighth { width:12.5%; }
64
+ .#{$namespace}two-eighths { @extend .#{$namespace}one-quarter; }
65
+ .#{$namespace}three-eighths { width:37.5%; }
66
+ .#{$namespace}four-eighths { @extend .#{$namespace}one-half; }
67
+ .#{$namespace}five-eighths { width:62.5%; }
68
+ .#{$namespace}six-eighths { @extend .#{$namespace}three-quarters; }
69
+ .#{$namespace}seven-eighths { width:87.5%; }
70
+
71
+
72
+ /**
73
+ * Tenths
74
+ */
75
+ .#{$namespace}one-tenth { width:10%; }
76
+ .#{$namespace}two-tenths { @extend .#{$namespace}one-fifth; }
77
+ .#{$namespace}three-tenths { width:30%; }
78
+ .#{$namespace}four-tenths { @extend .#{$namespace}two-fifths; }
79
+ .#{$namespace}five-tenths { @extend .#{$namespace}one-half; }
80
+ .#{$namespace}six-tenths { @extend .#{$namespace}three-fifths; }
81
+ .#{$namespace}seven-tenths { width:70%; }
82
+ .#{$namespace}eight-tenths { @extend .#{$namespace}four-fifths; }
83
+ .#{$namespace}nine-tenths { width:90%; }
84
+
85
+
86
+ /**
87
+ * Twelfths
88
+ */
89
+ .#{$namespace}one-twelfth { width:8.333%; }
90
+ .#{$namespace}two-twelfths { @extend .#{$namespace}one-sixth; }
91
+ .#{$namespace}three-twelfths { @extend .#{$namespace}one-quarter; }
92
+ .#{$namespace}four-twelfths { @extend .#{$namespace}one-third; }
93
+ .#{$namespace}five-twelfths { width:41.666% }
94
+ .#{$namespace}six-twelfths { @extend .#{$namespace}one-half; }
95
+ .#{$namespace}seven-twelfths { width:58.333%; }
96
+ .#{$namespace}eight-twelfths { @extend .#{$namespace}two-thirds; }
97
+ .#{$namespace}nine-twelfths { @extend .#{$namespace}three-quarters; }
98
+ .#{$namespace}ten-twelfths { @extend .#{$namespace}five-sixths; }
99
+ .#{$namespace}eleven-twelfths { width:91.666%; }
100
+ }
101
+
102
+ @include grid-setup();
103
+
104
+
105
+
106
+ /**
107
+ * If you have set `$responsive` to ‘true’ in `_vars.scss` then you now have
108
+ * access to these classes. You can define at which breakpoint you’d like an
109
+ * element to be a certain size, e.g.:
110
+ *
111
+ * `<div class="g one-quarter lap-one-half palm-one-whole"> ... </div>`
112
+ *
113
+ * This would create a `div` that, at ‘desktop’ sizes, takes up a quarter of the
114
+ * horizontal space, a half of that space at ‘tablet’ sizes, and goes full width
115
+ * at ‘mobile’ sizes.
116
+ *
117
+ * Demo: jsfiddle.net/inuitcss/WS4Ge
118
+ *
119
+ */
120
+
121
+ @if $responsive == true{
122
+
123
+ @include media-query(palm){
124
+ @include grid-setup("palm-");
125
+ }
126
+
127
+ @include media-query(lap){
128
+ @include grid-setup("lap-");
129
+ }
130
+
131
+ @include media-query(lap-and-up){
132
+ @include grid-setup("lap-and-up-");
133
+ }
134
+
135
+ @include media-query(portable){
136
+ @include grid-setup("portable-");
137
+ }
138
+
139
+ @include media-query(desk){
140
+ @include grid-setup("desk-");
141
+ }
142
+
143
+
144
+ /**
145
+ * If you have set the additional `$responsive-extra` variable to ‘true’ in
146
+ * `_vars.scss` then you now have access to the following class available to
147
+ * accomodate much larger screen resolutions.
148
+ */
149
+
150
+ @if $responsive-extra == true{
151
+
152
+ @include media-query(desk-wide){
153
+ @include grid-setup("desk-wide-");
154
+ }
155
+
156
+ }
157
+
158
+ } /* endif */