polar-express 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/LICENSE.txt +2 -2
  4. data/lib/generators/inuitcss/install/USAGE +1 -1
  5. data/lib/generators/inuitcss/install/install_generator.rb +2 -2
  6. data/lib/generators/inuitcss/install/templates/inuit.scss +56 -0
  7. data/lib/polar-express/version.rb +2 -2
  8. data/vendor/assets/inuit.css/inuit-bare-list/.bower.json +29 -0
  9. data/vendor/assets/inuit.css/inuit-bare-list/.gitignore +3 -0
  10. data/vendor/assets/inuit.css/inuit-bare-list/README.md +7 -0
  11. data/vendor/assets/inuit.css/inuit-bare-list/_objects.bare-list.scss +17 -0
  12. data/vendor/assets/inuit.css/inuit-block-list/.bower.json +30 -0
  13. data/vendor/assets/inuit.css/inuit-block-list/.gitignore +4 -0
  14. data/vendor/assets/inuit.css/inuit-block-list/README.md +7 -0
  15. data/vendor/assets/inuit.css/inuit-block-list/_objects.block-list.scss +78 -0
  16. data/vendor/assets/inuit.css/inuit-box-sizing/.bower.json +25 -0
  17. data/vendor/assets/inuit.css/inuit-box-sizing/README.md +4 -0
  18. data/vendor/assets/inuit.css/inuit-box-sizing/_generic.box-sizing.scss +35 -0
  19. data/vendor/assets/inuit.css/inuit-box/.bower.json +31 -0
  20. data/vendor/assets/inuit.css/inuit-box/.gitignore +3 -0
  21. data/vendor/assets/inuit.css/inuit-box/README.md +7 -0
  22. data/vendor/assets/inuit.css/inuit-box/_objects.box.scss +80 -0
  23. data/vendor/assets/inuit.css/inuit-buttons/.bower.json +30 -0
  24. data/vendor/assets/inuit.css/inuit-buttons/.gitignore +4 -0
  25. data/vendor/assets/inuit.css/inuit-buttons/README.md +8 -0
  26. data/vendor/assets/inuit.css/inuit-buttons/_objects.buttons.scss +165 -0
  27. data/vendor/assets/inuit.css/inuit-clearfix/.bower.json +14 -0
  28. data/vendor/assets/inuit.css/inuit-clearfix/README.md +3 -0
  29. data/vendor/assets/inuit.css/inuit-clearfix/_generic.clearfix.scss +19 -0
  30. data/vendor/assets/inuit.css/inuit-defaults/.bower.json +25 -0
  31. data/vendor/assets/inuit.css/inuit-defaults/README.md +8 -0
  32. data/vendor/assets/inuit.css/inuit-defaults/_settings.defaults.scss +42 -0
  33. data/vendor/assets/inuit.css/inuit-flag/.bower.json +30 -0
  34. data/vendor/assets/inuit.css/inuit-flag/.gitignore +4 -0
  35. data/vendor/assets/inuit.css/inuit-flag/README.md +9 -0
  36. data/vendor/assets/inuit.css/inuit-flag/_objects.flag.scss +366 -0
  37. data/vendor/assets/inuit.css/inuit-functions/.bower.json +25 -0
  38. data/vendor/assets/inuit.css/inuit-functions/README.md +4 -0
  39. data/vendor/assets/inuit.css/inuit-functions/_tools.functions.scss +34 -0
  40. data/vendor/assets/inuit.css/inuit-headings/.bower.json +30 -0
  41. data/vendor/assets/inuit.css/inuit-headings/.gitignore +3 -0
  42. data/vendor/assets/inuit.css/inuit-headings/README.md +8 -0
  43. data/vendor/assets/inuit.css/inuit-headings/_base.headings.scss +52 -0
  44. data/vendor/assets/inuit.css/inuit-images/.bower.json +26 -0
  45. data/vendor/assets/inuit.css/inuit-images/README.md +7 -0
  46. data/vendor/assets/inuit.css/inuit-images/_base.images.scss +29 -0
  47. data/vendor/assets/inuit.css/inuit-layout/.bower.json +30 -0
  48. data/vendor/assets/inuit.css/inuit-layout/.gitignore +3 -0
  49. data/vendor/assets/inuit.css/inuit-layout/README.md +9 -0
  50. data/vendor/assets/inuit.css/inuit-layout/_objects.layout.scss +267 -0
  51. data/vendor/assets/inuit.css/inuit-lists/.bower.json +15 -0
  52. data/vendor/assets/inuit.css/inuit-lists/README.md +4 -0
  53. data/vendor/assets/inuit.css/inuit-lists/_base.lists.scss +15 -0
  54. data/vendor/assets/inuit.css/inuit-media/.bower.json +31 -0
  55. data/vendor/assets/inuit.css/inuit-media/.gitignore +4 -0
  56. data/vendor/assets/inuit.css/inuit-media/README.md +12 -0
  57. data/vendor/assets/inuit.css/inuit-media/_objects.media.scss +267 -0
  58. data/vendor/assets/inuit.css/inuit-mixins/.bower.json +25 -0
  59. data/vendor/assets/inuit.css/inuit-mixins/README.md +4 -0
  60. data/vendor/assets/inuit.css/inuit-mixins/_tools.mixins.scss +27 -0
  61. data/vendor/assets/inuit.css/inuit-normalize/.bower.json +27 -0
  62. data/vendor/assets/inuit.css/inuit-normalize/README.md +13 -0
  63. data/vendor/assets/inuit.css/inuit-normalize/_generic.normalize.scss +425 -0
  64. data/vendor/assets/inuit.css/inuit-page/.bower.json +28 -0
  65. data/vendor/assets/inuit.css/inuit-page/.gitignore +3 -0
  66. data/vendor/assets/inuit.css/inuit-page/README.md +9 -0
  67. data/vendor/assets/inuit.css/inuit-page/_base.page.scss +30 -0
  68. data/vendor/assets/inuit.css/inuit-paragraphs/.bower.json +30 -0
  69. data/vendor/assets/inuit.css/inuit-paragraphs/.gitignore +3 -0
  70. data/vendor/assets/inuit.css/inuit-paragraphs/README.md +8 -0
  71. data/vendor/assets/inuit.css/inuit-paragraphs/_base.paragraphs.scss +12 -0
  72. data/vendor/assets/inuit.css/inuit-reset/.bower.json +26 -0
  73. data/vendor/assets/inuit.css/inuit-reset/README.md +5 -0
  74. data/vendor/assets/inuit.css/inuit-reset/_generic.reset.scss +54 -0
  75. data/vendor/assets/inuit.css/inuit-responsive-settings/.bower.json +25 -0
  76. data/vendor/assets/inuit.css/inuit-responsive-settings/README.md +3 -0
  77. data/vendor/assets/inuit.css/inuit-responsive-settings/_settings.responsive.scss +25 -0
  78. data/vendor/assets/inuit.css/inuit-responsive-tools/.bower.json +29 -0
  79. data/vendor/assets/inuit.css/inuit-responsive-tools/.gitignore +4 -0
  80. data/vendor/assets/inuit.css/inuit-responsive-tools/README.md +3 -0
  81. data/vendor/assets/inuit.css/inuit-responsive-tools/_tools.responsive.scss +64 -0
  82. data/vendor/assets/inuit.css/inuit-shared/.bower.json +29 -0
  83. data/vendor/assets/inuit.css/inuit-shared/.gitignore +3 -0
  84. data/vendor/assets/inuit.css/inuit-shared/README.md +9 -0
  85. data/vendor/assets/inuit.css/inuit-shared/_generic.shared.scss +33 -0
  86. data/vendor/assets/inuit.css/inuit-spacing/.bower.json +30 -0
  87. data/vendor/assets/inuit.css/inuit-spacing/.gitignore +4 -0
  88. data/vendor/assets/inuit.css/inuit-spacing/README.md +8 -0
  89. data/vendor/assets/inuit.css/inuit-spacing/_trumps.spacing.scss +337 -0
  90. data/vendor/assets/inuit.css/inuit-starter-kit/.bower.json +33 -0
  91. data/vendor/assets/inuit.css/inuit-starter-kit/.gitignore +3 -0
  92. data/vendor/assets/inuit.css/inuit-starter-kit/README.md +20 -0
  93. data/vendor/assets/inuit.css/inuit-tables/.bower.json +31 -0
  94. data/vendor/assets/inuit.css/inuit-tables/.gitignore +2 -0
  95. data/vendor/assets/inuit.css/inuit-tables/README.md +7 -0
  96. data/vendor/assets/inuit.css/inuit-tables/_objects.tables.scss +194 -0
  97. data/vendor/assets/inuit.css/inuit-tabs/.bower.json +28 -0
  98. data/vendor/assets/inuit.css/inuit-tabs/.gitignore +3 -0
  99. data/vendor/assets/inuit.css/inuit-tabs/README.md +8 -0
  100. data/vendor/assets/inuit.css/inuit-tabs/_objects.tabs.scss +38 -0
  101. data/vendor/assets/inuit.css/inuit-ui-list/.bower.json +30 -0
  102. data/vendor/assets/inuit.css/inuit-ui-list/.gitignore +4 -0
  103. data/vendor/assets/inuit.css/inuit-ui-list/README.md +7 -0
  104. data/vendor/assets/inuit.css/inuit-ui-list/_objects.ui-list.scss +92 -0
  105. data/vendor/assets/inuit.css/inuit-widths/.bower.json +29 -0
  106. data/vendor/assets/inuit.css/inuit-widths/.gitignore +3 -0
  107. data/vendor/assets/inuit.css/inuit-widths/README.md +8 -0
  108. data/vendor/assets/inuit.css/inuit-widths/_trumps.widths.scss +203 -0
  109. metadata +110 -62
  110. data/lib/generators/inuitcss/install/templates/inuit.css.scss +0 -99
  111. data/vendor/assets/stylesheets/CHANGELOG.md +0 -26
  112. data/vendor/assets/stylesheets/CONTRIBUTING.md +0 -42
  113. data/vendor/assets/stylesheets/LICENSE +0 -13
  114. data/vendor/assets/stylesheets/README.md +0 -367
  115. data/vendor/assets/stylesheets/_defaults.scss +0 -225
  116. data/vendor/assets/stylesheets/_inuit.scss +0 -213
  117. data/vendor/assets/stylesheets/base/_code.scss +0 -63
  118. data/vendor/assets/stylesheets/base/_forms.scss +0 -174
  119. data/vendor/assets/stylesheets/base/_headings.scss +0 -60
  120. data/vendor/assets/stylesheets/base/_images.scss +0 -73
  121. data/vendor/assets/stylesheets/base/_lists.scss +0 -19
  122. data/vendor/assets/stylesheets/base/_main.scss +0 -8
  123. data/vendor/assets/stylesheets/base/_paragraphs.scss +0 -11
  124. data/vendor/assets/stylesheets/base/_quotes.scss +0 -96
  125. data/vendor/assets/stylesheets/base/_smallprint.scss +0 -13
  126. data/vendor/assets/stylesheets/base/_tables.scss +0 -163
  127. data/vendor/assets/stylesheets/component.json +0 -5
  128. data/vendor/assets/stylesheets/generic/_brand.scss +0 -18
  129. data/vendor/assets/stylesheets/generic/_clearfix.scss +0 -15
  130. data/vendor/assets/stylesheets/generic/_debug.scss +0 -168
  131. data/vendor/assets/stylesheets/generic/_helper.scss +0 -184
  132. data/vendor/assets/stylesheets/generic/_mixins.scss +0 -328
  133. data/vendor/assets/stylesheets/generic/_normalize.scss +0 -396
  134. data/vendor/assets/stylesheets/generic/_pull.scss +0 -147
  135. data/vendor/assets/stylesheets/generic/_push.scss +0 -147
  136. data/vendor/assets/stylesheets/generic/_reset.scss +0 -80
  137. data/vendor/assets/stylesheets/generic/_shared.scss +0 -61
  138. data/vendor/assets/stylesheets/generic/_widths.scss +0 -158
  139. data/vendor/assets/stylesheets/objects/_arrows.scss +0 -147
  140. data/vendor/assets/stylesheets/objects/_beautons.scss +0 -226
  141. data/vendor/assets/stylesheets/objects/_block-list.scss +0 -44
  142. data/vendor/assets/stylesheets/objects/_breadcrumb.scss +0 -63
  143. data/vendor/assets/stylesheets/objects/_columns.scss +0 -22
  144. data/vendor/assets/stylesheets/objects/_flexbox.scss +0 -55
  145. data/vendor/assets/stylesheets/objects/_flyout.scss +0 -63
  146. data/vendor/assets/stylesheets/objects/_greybox.scss +0 -58
  147. data/vendor/assets/stylesheets/objects/_grids.scss +0 -69
  148. data/vendor/assets/stylesheets/objects/_icon-text.scss +0 -40
  149. data/vendor/assets/stylesheets/objects/_island.scss +0 -38
  150. data/vendor/assets/stylesheets/objects/_link-complex.scss +0 -32
  151. data/vendor/assets/stylesheets/objects/_lozenges.scss +0 -46
  152. data/vendor/assets/stylesheets/objects/_marginalia.scss +0 -52
  153. data/vendor/assets/stylesheets/objects/_matrix.scss +0 -89
  154. data/vendor/assets/stylesheets/objects/_media.scss +0 -60
  155. data/vendor/assets/stylesheets/objects/_nav.scss +0 -155
  156. data/vendor/assets/stylesheets/objects/_options.scss +0 -45
  157. data/vendor/assets/stylesheets/objects/_pagination.scss +0 -50
  158. data/vendor/assets/stylesheets/objects/_rules.scss +0 -65
  159. data/vendor/assets/stylesheets/objects/_split.scss +0 -39
  160. data/vendor/assets/stylesheets/objects/_sprite.scss +0 -98
  161. data/vendor/assets/stylesheets/objects/_stats.scss +0 -52
  162. data/vendor/assets/stylesheets/objects/_this-or-this.scss +0 -38
  163. data/vendor/assets/stylesheets/style.scss +0 -26
@@ -0,0 +1,3 @@
1
+ bower_components/
2
+ *.css
3
+ inuit-test.scss
@@ -0,0 +1,9 @@
1
+ # Page
2
+
3
+ The inuitcss `page` module is a very high-level module which styles very basic,
4
+ global, page-level aspects such at the project’s base `font-size` and
5
+ `line-height`.
6
+
7
+ Install using Bower:
8
+
9
+ $ bower install --save inuit-page
@@ -0,0 +1,30 @@
1
+ /*------------------------------------*\
2
+ #PAGE
3
+ \*------------------------------------*/
4
+
5
+ /**
6
+ * High-, page-level styling.
7
+ *
8
+ * 1. Set the default `font-size` and `line-height` for the entire project,
9
+ * sourced from our default variables. The `font-size` is calculated to exist
10
+ * in ems, the `line-height` is calculated to exist unitlessly.
11
+ * 2. Force scrollbars to always be visible to prevent awkward ‘jumps’ when
12
+ * navigating between pages that do/do not have enough content to produce
13
+ * scrollbars naturally.
14
+ * 3. Ensure the page always fills at least the entire height of the viewport.
15
+ * 4. Prevent certain mobile browsers from automatically zooming fonts.
16
+ * 5. Fonts on OSX will look more consistent with other systems that do not
17
+ * render text using sub-pixel anti-aliasing.
18
+ */
19
+ html {
20
+ font-size: ($inuit-base-font-size / 16px) * 1em; /* [1] */
21
+ line-height: $inuit-base-line-height / $inuit-base-font-size; /* [1] */
22
+ background-color: $inuit-base-background-color;
23
+ color: $inuit-base-text-color;
24
+ overflow-y: scroll; /* [2] */
25
+ min-height: 100%; /* [3] */
26
+ -webkit-text-size-adjust: 100%; /* [4] */
27
+ -ms-text-size-adjust: 100%; /* [4] */
28
+ -moz-osx-font-smoothing: grayscale; /* [5] */
29
+ -webkit-font-smoothing: antialiased; /* [5] */
30
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "inuit-paragraphs",
3
+ "version": "0.1.2",
4
+ "homepage": "https://github.com/inuitcss/base.paragraphs",
5
+ "authors": [
6
+ "Harry Roberts <harry@csswizardry.com>"
7
+ ],
8
+ "description": "Base paragraph styles for the inuitcss framework",
9
+ "main": "_base.paragraphs.scss",
10
+ "keywords": [
11
+ "inuitcss",
12
+ "oocss",
13
+ "css"
14
+ ],
15
+ "license": "Apache",
16
+ "dependencies": {
17
+ "inuit-defaults": "~0.2.0",
18
+ "inuit-mixins": "~0.1.1"
19
+ },
20
+ "_release": "0.1.2",
21
+ "_resolution": {
22
+ "type": "version",
23
+ "tag": "0.1.2",
24
+ "commit": "9e5a880f4fb834c0d38b8bdf955091b6d8cb285a"
25
+ },
26
+ "_source": "git://github.com/inuitcss/base.paragraphs.git",
27
+ "_target": "~0.1.2",
28
+ "_originalSource": "inuit-paragraphs",
29
+ "_direct": true
30
+ }
@@ -0,0 +1,3 @@
1
+ bower_components/
2
+ *.css
3
+ inuit-test.scss
@@ -0,0 +1,8 @@
1
+ # Paragraphs
2
+
3
+ The inuitcss `paragraphs` module provides a very small amount of additional
4
+ styles for paragraphs.
5
+
6
+ Install using Bower:
7
+
8
+ $ bower install --save inuit-paragraphs
@@ -0,0 +1,12 @@
1
+ /*------------------------------------*\
2
+ #PARAGRAPHS
3
+ \*------------------------------------*/
4
+
5
+ /**
6
+ * The `.lede` class is used to make the introductory text (usually a paragraph)
7
+ * of a document slightly larger: en.wikipedia.org/wiki/Lede_(news)
8
+ */
9
+ .#{$inuit-namespace}lede,
10
+ %#{$inuit-namespace}lede {
11
+ @include inuit-font-size($inuit-base-font-size * 1.125);
12
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "inuit-reset",
3
+ "version": "0.1.1",
4
+ "homepage": "https://github.com/inuitcss/generic.reset",
5
+ "authors": [
6
+ "Harry Roberts <harry@csswizardry.com>"
7
+ ],
8
+ "description": "A small, considered reset for the inuitcss framework",
9
+ "main": "_generic.reset.scss",
10
+ "keywords": [
11
+ "inuitcss",
12
+ "oocss",
13
+ "css"
14
+ ],
15
+ "license": "Apache",
16
+ "_release": "0.1.1",
17
+ "_resolution": {
18
+ "type": "version",
19
+ "tag": "0.1.1",
20
+ "commit": "20b76c5c5c6c1e267b81008e03dc793a10b9e652"
21
+ },
22
+ "_source": "git://github.com/inuitcss/generic.reset.git",
23
+ "_target": "~0.1.1",
24
+ "_originalSource": "inuit-reset",
25
+ "_direct": true
26
+ }
@@ -0,0 +1,5 @@
1
+ # Reset
2
+
3
+ The inuitcss `reset` module is a considered approach to resetting elements. It
4
+ selectively removes margins and paddings from certain elements, and provides
5
+ some sensible defaults for some others.
@@ -0,0 +1,54 @@
1
+ /*------------------------------------*\
2
+ #RESET
3
+ \*------------------------------------*/
4
+
5
+ /**
6
+ * As well as using normalize.css, it is often advantageous to remove all
7
+ * margins from certain elements.
8
+ */
9
+ body,
10
+ h1, h2, h3, h4, h5, h6,
11
+ p, blockquote, pre,
12
+ dl, dd, ol, ul,
13
+ form, fieldset, legend,
14
+ figure,
15
+ table, th, td, caption,
16
+ hr {
17
+ margin: 0;
18
+ padding: 0;
19
+ }
20
+
21
+
22
+
23
+
24
+
25
+ /**
26
+ * Give a help cursor to elements that give extra info on `:hover`.
27
+ */
28
+ abbr[title],
29
+ dfn[title] {
30
+ cursor: help;
31
+ }
32
+
33
+
34
+
35
+
36
+
37
+ /**
38
+ * Remove underlines from potentially troublesome elements.
39
+ */
40
+ u,
41
+ ins {
42
+ text-decoration: none;
43
+ }
44
+
45
+
46
+
47
+
48
+
49
+ /**
50
+ * Apply faux underlines to inserted text via `border-bottom`.
51
+ */
52
+ ins {
53
+ border-bottom: 1px solid;
54
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "inuit-responsive-settings",
3
+ "version": "0.1.1",
4
+ "homepage": "https://github.com/inuitcss/settings.responsive",
5
+ "authors": [
6
+ "Harry Roberts <harry@csswizardry.com>"
7
+ ],
8
+ "description": "Responsive settings for the inuitcss framework",
9
+ "main": "_settings.responsive.scss",
10
+ "keywords": [
11
+ "css",
12
+ "oocss",
13
+ "inuitcss"
14
+ ],
15
+ "license": "Apache",
16
+ "_release": "0.1.1",
17
+ "_resolution": {
18
+ "type": "version",
19
+ "tag": "0.1.1",
20
+ "commit": "e20d5c11d4decbb4e0748dc5331b6696c8f2dad2"
21
+ },
22
+ "_source": "git://github.com/inuitcss/settings.responsive.git",
23
+ "_target": "~0.1.0",
24
+ "_originalSource": "inuit-responsive-settings"
25
+ }
@@ -0,0 +1,3 @@
1
+ # Responsive
2
+
3
+ Define our initial breakpoint aliases and conditions.
@@ -0,0 +1,25 @@
1
+ ///*------------------------------------*\
2
+ // #RESPONSIVE-SETTINGS
3
+ //\*------------------------------------*/
4
+
5
+ // Hold our breakpoint aliases and conditions in a list.
6
+ //
7
+ // These can be invoked later on via the `media-query()` mixin found in
8
+ // `_tools.responsive`.
9
+
10
+ $breakpoints: (
11
+ "palm" "screen and (max-width: 719px)",
12
+ "lap" "screen and (min-width: 720px) and (max-width: 1023px)",
13
+ "lap-and-up" "screen and (min-width: 720px)",
14
+ "portable" "screen and (max-width: 1023px)",
15
+ "desk" "screen and (min-width: 1024px)"
16
+ "retina" "(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)"
17
+ ) !default;
18
+
19
+
20
+
21
+
22
+
23
+ // If we have included this file, set a variable to tell the rest of the
24
+ // framework that we have some responsive settings.
25
+ $inuit-responsive-settings: true;
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "inuit-responsive-tools",
3
+ "version": "0.1.1",
4
+ "homepage": "https://github.com/inuitcss/tools.responsive",
5
+ "authors": [
6
+ "Harry Roberts <harry@csswizardry.com>"
7
+ ],
8
+ "description": "Responsive tooling for the inuitcss framework",
9
+ "main": "_settings.responsive.scss",
10
+ "keywords": [
11
+ "css",
12
+ "oocss",
13
+ "inuitcss"
14
+ ],
15
+ "license": "Apache",
16
+ "dependencies": {
17
+ "inuit-responsive-settings": "~0.1.0"
18
+ },
19
+ "_release": "0.1.1",
20
+ "_resolution": {
21
+ "type": "version",
22
+ "tag": "0.1.1",
23
+ "commit": "70a360e85fcbcd50cd7e923ee66ffb81685533e8"
24
+ },
25
+ "_source": "git://github.com/inuitcss/tools.responsive.git",
26
+ "_target": "~0.1.1",
27
+ "_originalSource": "inuit-responsive-tools",
28
+ "_direct": true
29
+ }
@@ -0,0 +1,4 @@
1
+ bower_components/
2
+ *.css
3
+ inuit-test.scss
4
+ inuit-test.html
@@ -0,0 +1,3 @@
1
+ # Responsive
2
+
3
+ Currently, this inuitcss module just sets up our media query mixin.
@@ -0,0 +1,64 @@
1
+ ///*------------------------------------*\
2
+ // #RESPONSIVE-TOOLS
3
+ //\*------------------------------------*/
4
+
5
+ // Here we set a variable assuming that responsive settings are not set
6
+ // globally. If they have been previously been defined, the following variable
7
+ // will be overriden and will be set to `true`.
8
+ $inuit-responsive-settings: false !default;
9
+
10
+ @if ($inuit-responsive-settings == false) {
11
+ @warn "Oops! Have you included a responsive settings file?"
12
+ }
13
+
14
+
15
+
16
+
17
+
18
+ // A simple mixin to quickly generate whole media queries from the aliases and
19
+ // conditions defined in `_settings.responsive.scss`.
20
+ //
21
+ // Usage:
22
+ //
23
+ // .foo {
24
+ // color: green;
25
+ //
26
+ // @include media-query(palm) {
27
+ // color: red;
28
+ // }
29
+ //
30
+ // }
31
+
32
+ @mixin media-query($mq) {
33
+
34
+ $breakpoint-found: false;
35
+
36
+ // Loop through the list of breakpoints we’ve provided in our settings file.
37
+ @each $breakpoint in $breakpoints {
38
+
39
+ // Grab the alias and the condition from their respective locations in
40
+ // the list.
41
+ $alias: nth($breakpoint, 1);
42
+ $condition: nth($breakpoint, 2);
43
+
44
+ // If the media query we’ve specified has an alias and a condition...
45
+ @if $mq == $alias and $condition {
46
+
47
+ // ...tell the mixin that we’ve found it...
48
+ $breakpoint-found: true;
49
+
50
+ // ...and spit it out here.
51
+ @media #{$condition} {
52
+ @content;
53
+ }
54
+
55
+ }
56
+
57
+ }
58
+
59
+ // If the user specifies a non-exitent alias, send them a warning.
60
+ @if $breakpoint-found == false{
61
+ @warn "Oops! Breakpoint ‘#{$mq}’ does not exist."
62
+ }
63
+
64
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "inuit-shared",
3
+ "version": "0.1.2",
4
+ "homepage": "https://github.com/inuitcss/generic.shared",
5
+ "authors": [
6
+ "Harry Roberts <harry@csswizardry.com>"
7
+ ],
8
+ "description": "A small selection of shared styles used in the inuitcss framework",
9
+ "main": "_generic.shared.scss",
10
+ "keywords": [
11
+ "inuitcss",
12
+ "oocss",
13
+ "css"
14
+ ],
15
+ "license": "Apache",
16
+ "dependencies": {
17
+ "inuit-defaults": "~0.2.0"
18
+ },
19
+ "_release": "0.1.2",
20
+ "_resolution": {
21
+ "type": "version",
22
+ "tag": "0.1.2",
23
+ "commit": "7bf33d057453538304b7463d03a70b1171b3d9e2"
24
+ },
25
+ "_source": "git://github.com/inuitcss/generic.shared.git",
26
+ "_target": "~0.1.2",
27
+ "_originalSource": "inuit-shared",
28
+ "_direct": true
29
+ }
@@ -0,0 +1,3 @@
1
+ bower_components/
2
+ *.css
3
+ inuit-test.scss
@@ -0,0 +1,9 @@
1
+ # Shared
2
+
3
+ The inuitcss `shared` module contains several high-level rulesets which apply a
4
+ consistent, shared declaration (typically `margin`s) across a number of
5
+ elements.
6
+
7
+ Install using Bower:
8
+
9
+ $ bower install --save inuit-shared
@@ -0,0 +1,33 @@
1
+ /*------------------------------------*\
2
+ #SHARED
3
+ \*------------------------------------*/
4
+
5
+ /**
6
+ * Where `margin-bottom` is concerned,this value will be the same as the
7
+ * base line-height. This allows us to keep a consistent vertical rhythm.
8
+ * As per: csswizardry.com/2012/06/single-direction-margin-declarations
9
+ */
10
+ h1, h2, h3, h4, h5, h6, hgroup,
11
+ ul, ol, dl,
12
+ blockquote, p, address,
13
+ table,
14
+ fieldset, figure,
15
+ pre,
16
+ %margin-bottom {
17
+ margin-bottom: $inuit-base-spacing-unit;
18
+ margin-bottom: ($inuit-base-spacing-unit / $inuit-base-font-size) * 1rem;
19
+ }
20
+
21
+
22
+
23
+
24
+
25
+ /**
26
+ * Where `margin-left` is concerned we want to try and indent certain elements
27
+ * by a consistent amount. Define that amount once,here.
28
+ */
29
+ ul, ol, dd,
30
+ %margin-left {
31
+ margin-left: 2 * $inuit-base-spacing-unit;
32
+ margin-left: (2 * $inuit-base-spacing-unit / $inuit-base-font-size) * 1rem;
33
+ }