boarding_pass 0.1.9 → 1.0.0.beta1

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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.jshintrc +75 -0
  4. data/.npmignore +4 -0
  5. data/LICENSE.txt +1 -1
  6. data/README.md +71 -8
  7. data/app/assets/stylesheets/_boarding_pass.scss +2 -5
  8. data/app/assets/stylesheets/_legacy.scss +10 -0
  9. data/app/assets/stylesheets/boarding_pass/_colors.scss +33 -0
  10. data/app/assets/stylesheets/boarding_pass/_defaults.scss +23 -16
  11. data/app/assets/stylesheets/boarding_pass/_mixins.scss +9 -38
  12. data/app/assets/stylesheets/boarding_pass/_settings.scss +8 -3
  13. data/app/assets/stylesheets/legacy/_defaults.scss +33 -0
  14. data/app/assets/stylesheets/{boarding_pass → legacy}/_forms.scss +0 -0
  15. data/app/assets/stylesheets/{boarding_pass → legacy}/_lists.scss +0 -0
  16. data/app/assets/stylesheets/legacy/_mixins.scss +43 -0
  17. data/app/assets/stylesheets/{boarding_pass → legacy}/_normalize.scss +0 -0
  18. data/app/assets/stylesheets/legacy/_settings.scss +3 -0
  19. data/app/assets/stylesheets/{boarding_pass → legacy}/_tables.scss +0 -0
  20. data/app/assets/stylesheets/{boarding_pass → legacy}/_typography.scss +4 -2
  21. data/app/assets/stylesheets/typography/_typography.scss +2 -0
  22. data/app/assets/stylesheets/typography/_vars-typeplate.scss +129 -0
  23. data/app/assets/stylesheets/vendor/_normalize.scss +406 -0
  24. data/app/assets/stylesheets/vendor/_typeplate.scss +834 -0
  25. data/index.js +13 -0
  26. data/lib/boarding_pass/version.rb +1 -1
  27. data/package.json +30 -0
  28. data/preview/index.js +34 -0
  29. data/preview/public/style.css +342 -0
  30. data/preview/public/typography.css +680 -0
  31. data/preview/sass/style.scss +1 -0
  32. data/preview/sass/typography.scss +2 -0
  33. data/preview/templates/index.jade +76 -0
  34. data/server.js +1 -0
  35. metadata +30 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97b83abd278fa704d4ae1254406ddd15f981ddd4
4
- data.tar.gz: b61df9996738e304abf2a88135b9f77a00f170ef
3
+ metadata.gz: f10a0e0ba8b4817cd36d4dcfd4a5669193d364a2
4
+ data.tar.gz: 54be2c25f522a8f69b73735c99fc6b4794a74059
5
5
  SHA512:
6
- metadata.gz: 67893cc7a739cb38127c19efbd9445c755dadd22fbed24545471f6b0e7d89810819b61315c54396096dd666f6412f15b1b1f2804ff4d97ace62518ba28d1a679
7
- data.tar.gz: 39e447c3a1089fdb4c5a6786a448d9d477a65abc7324aee730093881ded492a6d59affe20d8a84926ba343844feca88b0555734fe1c1fed7339dd4584f0afdcd
6
+ metadata.gz: 30f6a07ce2906573ad9a4f512dcde4987351dc315b0f7f347f6fdcabff06c84032162b0622fe4c2a00a00a5660f8c1920926a95f4b8ee672b4cd30cac5c448e3
7
+ data.tar.gz: 48e9688bc4866acf160090ab17e9034e69f14248f3de182b968b471461ef75d1d6590b6a1fd52db60df125218870578b76ae022bcecd11307fabce2fe41862d4
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ node_modules/
data/.jshintrc ADDED
@@ -0,0 +1,75 @@
1
+ {
2
+ "maxerr" : 50,
3
+
4
+ "bitwise" : true,
5
+ "camelcase" : false,
6
+ "curly" : false,
7
+ "eqeqeq" : true,
8
+ "forin" : true,
9
+ "immed" : false,
10
+ "indent" : 2,
11
+ "latedef" : false,
12
+ "newcap" : false,
13
+ "noarg" : true,
14
+ "noempty" : true,
15
+ "nonew" : false,
16
+ "plusplus" : false,
17
+ "quotmark" : false,
18
+
19
+ "undef" : true,
20
+ "unused" : true,
21
+ "strict" : false,
22
+ "trailing" : false,
23
+ "maxparams" : false,
24
+ "maxdepth" : false,
25
+ "maxstatements" : false,
26
+ "maxcomplexity" : false,
27
+ "maxlen" : false,
28
+
29
+ "asi" : false,
30
+ "boss" : false,
31
+ "debug" : false,
32
+ "eqnull" : false,
33
+ "es5" : false,
34
+ "esnext" : false,
35
+ "moz" : false,
36
+
37
+ "evil" : false,
38
+ "expr" : false,
39
+ "funcscope" : false,
40
+ "globalstrict" : false,
41
+ "iterator" : false,
42
+ "lastsemic" : false,
43
+ "laxbreak" : false,
44
+ "laxcomma" : true,
45
+ "loopfunc" : false,
46
+ "multistr" : false,
47
+ "proto" : false,
48
+ "scripturl" : false,
49
+ "smarttabs" : false,
50
+ "shadow" : false,
51
+ "sub" : false,
52
+ "supernew" : false,
53
+ "validthis" : false,
54
+
55
+ "browser" : true,
56
+ "couch" : false,
57
+ "devel" : true,
58
+ "dojo" : false,
59
+ "jquery" : true,
60
+ "mootools" : false,
61
+ "node" : true,
62
+ "nonstandard" : false,
63
+ "prototypejs" : false,
64
+ "rhino" : false,
65
+ "worker" : false,
66
+ "wsh" : false,
67
+ "yui" : false,
68
+
69
+ "nomen" : false,
70
+ "onevar" : false,
71
+ "passfail" : false,
72
+ "white" : false,
73
+
74
+ "predef" : [ "Modernizr", "angular" ]
75
+ }
data/.npmignore ADDED
@@ -0,0 +1,4 @@
1
+ lib/
2
+ boarding_pass.gemspec
3
+ Gemfile
4
+ Rakefile
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 LaCroix Design Co.
1
+ Copyright (c) 2013-2014 LaCroix Design Co.
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,26 +1,89 @@
1
1
  # Boarding Pass
2
2
 
3
- Boarding Pass provides a set of tools and defaults to quickly start web project front-ends. Includes [Sass](http://sass-lang.com/), [Bourbon](http://bourbon.io/), and [Neat](http://neat.bourbon.io/).
3
+ Default styles for websites using [Sass](http://sass-lang.com/). Compatible with both the original Ruby Sass and [node-sass](https://github.com/andrew/node-sass). Includes [Bourbon](http://bourbon.io/), [Neat](http://neat.bourbon.io/), [Typeplate](http://typeplate.com), and [Colors](http://clrs.cc).
4
4
 
5
5
  ## Installation
6
6
 
7
- Add this line to your application's Gemfile:
7
+ ### node-sass
8
8
 
9
- gem 'boarding_pass'
9
+ ```shell
10
+ npm install boarding-pass
11
+ ```
10
12
 
11
- And then execute:
13
+ Require the boarding-pass module and set Boarding Pass' `includePaths` property to node-sass' `includePaths` option.
12
14
 
13
- bundle install
15
+ ```javascript
16
+ var sass = require('node-sass');
17
+ var boardingPass = require('boarding-pass');
18
+
19
+ sass.render({
20
+ file: scss_filename,
21
+ success: callback,
22
+ includePaths: boardingPass.includePaths,
23
+ });
24
+ ```
25
+
26
+ This will load the paths for Boarding Pass, Bourbon, and Neat.
27
+
28
+ In your scss file, simply add:
29
+
30
+ ```scss
31
+ @import "boarding_pass";
32
+ ```
14
33
 
15
34
  ### Rails 3.1+
16
35
 
36
+ Add to your `Gemfile`:
37
+
38
+ ```ruby
39
+ gem 'boarding_pass'
40
+ ```
41
+
42
+ Run:
43
+
44
+ ```shell
45
+ bundle install
46
+ ```
47
+
17
48
  In your `application.css.scss` file, add:
18
49
 
19
- @import "boarding_pass";
50
+ ```scss
51
+ @import "boarding_pass";
52
+ ```
53
+
54
+
55
+ ## Colors
56
+ The variable names from the Colors library have been changed slightly to include a prefix of `$default-`:
57
+
58
+ ```scss
59
+ // Cool
60
+ $default-aqua: #7fdbff;
61
+ $default-blue: #0074d9;
62
+ $default-navy: #001f3f;
63
+ $default-teal: #39cccc;
64
+ $default-green: #2ecc40;
65
+ $default-olive: #3d9970;
66
+ $default-lime: #01ff70;
67
+
68
+ // Warm
69
+ $default-yellow: #ffdc00;
70
+ $default-orange: #ff851b;
71
+ $default-red: #ff4136;
72
+ $default-fuchsia: #f012be;
73
+ $default-purple: #b10dc9;
74
+ $default-maroon: #85144b;
75
+
76
+ // Gray Scale
77
+ $default-white: #fff;
78
+ $default-silver: #ddd;
79
+ $default-gray: #aaa;
80
+ $default-black: #111;
81
+ ```
20
82
 
21
- ## Todo
83
+ ## Contributing
84
+ Clone and run `npm install`.
22
85
 
23
- * Add generators for non-Rails/Middleman projects.
86
+ You can run a local preview server to view your changes with `node server.js`. Any changes will be recompiled on page refresh.
24
87
 
25
88
  ## License
26
89
 
@@ -1,10 +1,7 @@
1
1
  @import "bourbon";
2
2
  @import "neat";
3
- @import "boarding_pass/normalize";
3
+ @import "vendor/normalize";
4
4
  @import "boarding_pass/settings";
5
+ @import "boarding_pass/colors";
5
6
  @import "boarding_pass/mixins";
6
7
  @import "boarding_pass/defaults";
7
- @import "boarding_pass/typography";
8
- @import "boarding_pass/lists";
9
- @import "boarding_pass/forms";
10
- @import "boarding_pass/tables";
@@ -0,0 +1,10 @@
1
+ @import "bourbon";
2
+ @import "neat";
3
+ @import "legacy/normalize";
4
+ @import "legacy/settings";
5
+ @import "legacy/mixins";
6
+ @import "legacy/typography";
7
+ @import "legacy/defaults";
8
+ @import "legacy/lists";
9
+ @import "legacy/forms";
10
+ @import "legacy/tables";
@@ -0,0 +1,33 @@
1
+ //
2
+ // COLOR VARIABLES
3
+ //
4
+ // - Cool
5
+ // - Warm
6
+ // - Gray Scale
7
+ //
8
+
9
+ // Cool
10
+
11
+ $default-aqua: #7fdbff;
12
+ $default-blue: #0074d9;
13
+ $default-navy: #001f3f;
14
+ $default-teal: #39cccc;
15
+ $default-green: #2ecc40;
16
+ $default-olive: #3d9970;
17
+ $default-lime: #01ff70;
18
+
19
+ // Warm
20
+
21
+ $default-yellow: #ffdc00;
22
+ $default-orange: #ff851b;
23
+ $default-red: #ff4136;
24
+ $default-fuchsia: #f012be;
25
+ $default-purple: #b10dc9;
26
+ $default-maroon: #85144b;
27
+
28
+ // Gray Scale
29
+
30
+ $default-white: #fff;
31
+ $default-silver: #ddd;
32
+ $default-gray: #aaa;
33
+ $default-black: #111;
@@ -1,32 +1,39 @@
1
- html body {
2
- padding-left: 0; // IE
3
- padding-right: 0; // IE
4
- }
5
-
6
1
  * {
7
2
  -webkit-font-smoothing: antialiased !important;
8
3
  -moz-osx-font-smoothing: grayscale !important;
9
4
  }
10
5
 
6
+ html body {
7
+ padding-left: 0; // IE
8
+ padding-right: 0; // IE
9
+ }
10
+
11
11
  body {
12
12
  padding: 0;
13
13
  margin: 0;
14
- color: #444;
15
- background: #FFF;
16
- font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
17
- font-size: 100%;
18
- font-weight: normal;
19
- line-height: 1.25;
14
+ background: #fff;
20
15
  }
16
+
21
17
  ::selection {
22
- background: #DDD;
23
- text-shadow: none;
18
+ background: $default-silver;
19
+ color: $default-black;
20
+ }
21
+
22
+ a,
23
+ a:hover,
24
+ a:focus,
25
+ a:visited {
26
+ color: inherit;
27
+ }
28
+
29
+ em {
30
+ font-style: italic;
24
31
  }
25
32
 
26
33
  hr {
27
- border: solid #ddd;
28
- border-width: 1px 0 0;
29
34
  clear: both;
30
- margin: 1em 0;
31
35
  height: 0;
36
+ margin: 1em 0;
37
+ border: solid #ddd;
38
+ border-width: 1px 0 0;
32
39
  }
@@ -1,43 +1,14 @@
1
- // Faux Box Shadow (IE8)
2
- @mixin faux-box-shadow($border: border, $size: 1px, $color: #CCC) {
3
- #{$border}: #{$size} solid #{$color};
4
- #{$border}: 0 solid rgba(0,0,0,0);
5
- }
6
-
7
- // Mostly cross-browser opacity
8
- @mixin oh-pacity($level: 1) {
1
+ // Opacity
2
+ //
3
+ // $level - The opacity level, a number ranging from 0 to 1
4
+ //
5
+ // Usage:
6
+ //
7
+ // @include opacity(0.8);
8
+ //
9
+ @mixin opacity($level: 1) {
9
10
  $ms-level: $level*100;
10
11
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=#{$ms-level})";
11
12
  filter: alpha(opacity=#{$ms-level});
12
- -moz-opacity: #{$level};
13
- -khtml-opacity: #{$level};
14
13
  opacity: #{$level};
15
14
  }
16
-
17
- // Remove margins & style from a list
18
- @mixin unstyled-list {
19
- list-style: none outside;
20
- margin: 0;
21
- }
22
-
23
- // Prepend selectors with a class specific to old IE
24
- @mixin media-ie($args...) {
25
-
26
- @if length($args) > 0 {
27
- @include media($args) {
28
- @content;
29
- }
30
- }
31
-
32
- .old-ie & {
33
- @content;
34
- }
35
-
36
- }
37
-
38
- // Add min-width to containers for old IE
39
- @mixin ie-width {
40
- .old-ie & {
41
- min-width: $breakpoint-ipad;
42
- }
43
- }
@@ -1,3 +1,8 @@
1
- $breakpoint-ipad: 768px;
2
- $breakpoint-desktop: 900px;
3
- $breakpoint-large-screen: 1200px;
1
+ // default breakpoints
2
+ $breakpoint-ipad: 768px !default;
3
+ $breakpoint-desktop: 900px !default;
4
+ $breakpoint-large-screen: 1200px !default;
5
+
6
+ // default typefaces
7
+ $typeface-sans: Verdana, "Helvetica Neue", Helvetica, Arial, sans-serif !default;
8
+ $typeface-serif: Georgia, Cambria, "Times New Roman", Times, serif !default;
@@ -0,0 +1,33 @@
1
+ * {
2
+ -webkit-font-smoothing: antialiased !important;
3
+ -moz-osx-font-smoothing: grayscale !important;
4
+ }
5
+
6
+ html body {
7
+ padding-left: 0; // IE
8
+ padding-right: 0; // IE
9
+ }
10
+
11
+ body {
12
+ padding: 0;
13
+ margin: 0;
14
+ color: #444;
15
+ background: #FFF;
16
+ font-family: $typeface-sans;
17
+ font-size: 100%;
18
+ font-weight: normal;
19
+ line-height: 1.25;
20
+ }
21
+
22
+ ::selection {
23
+ background: #DDD;
24
+ text-shadow: none;
25
+ }
26
+
27
+ hr {
28
+ border: solid #ddd;
29
+ border-width: 1px 0 0;
30
+ clear: both;
31
+ margin: 1em 0;
32
+ height: 0;
33
+ }
@@ -0,0 +1,43 @@
1
+ // Faux Box Shadow (IE8)
2
+ @mixin faux-box-shadow($border: border, $size: 1px, $color: #CCC) {
3
+ #{$border}: #{$size} solid #{$color};
4
+ #{$border}: 0 solid rgba(0,0,0,0);
5
+ }
6
+
7
+ // Mostly cross-browser opacity
8
+ @mixin oh-pacity($level: 1) {
9
+ $ms-level: $level*100;
10
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=#{$ms-level})";
11
+ filter: alpha(opacity=#{$ms-level});
12
+ -moz-opacity: #{$level};
13
+ -khtml-opacity: #{$level};
14
+ opacity: #{$level};
15
+ }
16
+
17
+ // Remove margins & style from a list
18
+ @mixin unstyled-list {
19
+ list-style: none outside;
20
+ margin: 0;
21
+ }
22
+
23
+ // Prepend selectors with a class specific to old IE
24
+ @mixin media-ie($args...) {
25
+
26
+ @if length($args) > 0 {
27
+ @include media($args) {
28
+ @content;
29
+ }
30
+ }
31
+
32
+ .old-ie & {
33
+ @content;
34
+ }
35
+
36
+ }
37
+
38
+ // Add min-width to containers for old IE
39
+ @mixin ie-width {
40
+ .old-ie & {
41
+ min-width: $breakpoint-ipad;
42
+ }
43
+ }
@@ -0,0 +1,3 @@
1
+ $breakpoint-ipad: 768px;
2
+ $breakpoint-desktop: 900px;
3
+ $breakpoint-large-screen: 1200px;
@@ -1,6 +1,9 @@
1
+ $typeface-sans: "Helvetica Neue", Verdana, Helvetica, Arial, sans-serif;
2
+ $typeface-serif: Georgia, Cambria, "Times New Roman", Times, serif;
3
+
1
4
  // Headings
2
5
  h1, h2, h3, h4, h5, h6 {
3
- line-height: 1.5;
6
+ line-height: 1.375;
4
7
  margin: 0;
5
8
  }
6
9
 
@@ -58,7 +61,6 @@ blockquote,
58
61
  blockquote p {
59
62
  font-size: 1.125em;
60
63
  line-height: 1.35em;
61
- color: #777;
62
64
  font-style: italic;
63
65
  }
64
66
 
@@ -0,0 +1,2 @@
1
+ @import "typography/vars-typeplate";
2
+ @import "vendor/typeplate";
@@ -0,0 +1,129 @@
1
+ /*
2
+ *
3
+ .||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||.
4
+
5
+ . '|| .
6
+ .||. .... ... ... ... .... ... ... || .... .||. ....
7
+ || '|. | ||' || .|...|| ||' || || '' .|| || .|...||
8
+ || '|.| || | || || | || .|' || || ||
9
+ '|.' '| ||...' '|...' ||...' .||. '|..'|' '|.' '|...'
10
+ .. | || ||
11
+ '' '''' '''' VARIABLES
12
+
13
+ .||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||.
14
+ *
15
+ */
16
+
17
+
18
+
19
+ // $BaseType
20
+ // -------------------------------------//
21
+
22
+ $font-weight: normal !default;
23
+ $line-height: 1.65 !default;
24
+ $font-size: 112.5 !default; // percentage value (16 * 112.5% = 18px)
25
+ $font-base: 16 * ($font-size/100) !default; // converts our percentage to a pixel value
26
+ $font-family: $typeface-serif !default; // Non-font-face font-stack
27
+ $custom-font-family: false !default; // Custom font-face stack, if set will be added to the $font-family
28
+ $modular-scale: 1.618 !default;
29
+
30
+
31
+ // $Paragraphs
32
+ // -------------------------------------//
33
+
34
+ // Text Indentation Value
35
+ $indent-val: 1.5em !default;
36
+
37
+ // Paragraph Styling Boolean
38
+ // 'false' means no vertical whitespace
39
+ // between subsequent paragraphs.
40
+ $paragraph-vertical-whitespace: true !default;
41
+
42
+
43
+ // $Small Print
44
+ // -------------------------------------//
45
+
46
+ $small-print-size: modular-scale($font-base, -1, $modular-scale) !default;
47
+
48
+
49
+ // $Color
50
+ // -------------------------------------//
51
+
52
+ $body-copy-color: #444 !default;
53
+ $heading-color: #222 !default;
54
+
55
+
56
+ // $Ampersand
57
+ // -------------------------------------//
58
+
59
+ $amp-fontface-name: Ampersand !default;
60
+ $amp-fontface-source: local('Georgia'), local('Garamond'), local('Palatino'), local('Book Antiqua') !default;
61
+ $amp-fontface-fallback: local('Georgia') !default;
62
+
63
+ // Allows for our ampersand element to have differing
64
+ // font-family from the ampersand unicode font-family.
65
+ $amp-font-family: Verdana, sans-serif !default;
66
+
67
+
68
+ // $Icon-Font-Helper
69
+ // -------------------------------------//
70
+ // ex.1) $icon-fonts: (icon-name) !default;
71
+ // ex.2) $icon-fonts: (icon-name1, icon-name2, icon-name3) !default;
72
+ $icon-fonts: null !default;
73
+
74
+
75
+ // $TypeScale
76
+ // -------------------------------------//
77
+
78
+ $tera: (modular-scale($font-base, 3, $modular-scale)*1.25) !default;
79
+ $giga: modular-scale($font-base, 3, $modular-scale) !default;
80
+ $mega: (modular-scale($font-base, 2, $modular-scale)*1.25) !default;
81
+ $alpha: modular-scale($font-base, 2, $modular-scale) !default;
82
+ $beta: (modular-scale($font-base, 1, $modular-scale)*1.25) !default;
83
+ $gamma: modular-scale($font-base, 1, $modular-scale) !default;
84
+ $delta: (modular-scale($font-base, 0, $modular-scale)*1.25) !default;
85
+ $epsilon: (modular-scale($font-base, 0, $modular-scale)*1.125) !default;
86
+ $zeta: modular-scale($font-base, 0, $modular-scale) !default;
87
+
88
+
89
+ // $TypeScale-Unit
90
+ // -------------------------------------//
91
+
92
+ $type-scale-unit-value: rem !default;
93
+
94
+
95
+ // $Pull-Quotes
96
+ // -------------------------------------//
97
+
98
+ $pull-quote-fontsize: 4em !default;
99
+ $pull-quote-opacity: 0.5 !default;
100
+ $pull-quote-color: #dc976e !default;
101
+
102
+
103
+ // $Citation
104
+ // -------------------------------------//
105
+
106
+ $cite-display: block !default;
107
+ $cite-text-align: right !default;
108
+ $cite-font-size: inherit !default;
109
+
110
+
111
+ // $SmallCaps
112
+ // -------------------------------------//
113
+
114
+ $small-caps-color: gray !default;
115
+ $small-caps-weight: 600 !default;
116
+
117
+
118
+ // $DropCap
119
+ // -------------------------------------//
120
+
121
+ $dropcap-float-position: left !default;
122
+ $dropcap-font-size: 4em !default;
123
+ $dropcap-font-family: inherit !default;
124
+ $dropcap-txt-indent: 0 !default;
125
+ $dropcap-margin: inherit !default;
126
+ $dropcap-padding: inherit !default;
127
+ $dropcap-color: inherit !default;
128
+ $dropcap-line-height: 1 !default;
129
+ $dropcap-bg: transparent !default;