boarding_pass 0.1.9 → 1.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -0,0 +1,680 @@
1
+ * {
2
+ -webkit-box-sizing: border-box;
3
+ -moz-box-sizing: border-box;
4
+ box-sizing: border-box; }
5
+
6
+ /*! normalize.css v2.1.3 | MIT License | git.io/normalize */
7
+ /* ==========================================================================
8
+ HTML5 display definitions
9
+ ========================================================================== */
10
+ /**
11
+ * Correct `block` display not defined in IE 8/9.
12
+ */
13
+ article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
14
+ display: block; }
15
+
16
+ /**
17
+ * Correct `inline-block` display not defined in IE 8/9.
18
+ */
19
+ audio, canvas, video {
20
+ display: inline-block; }
21
+
22
+ /**
23
+ * Prevent modern browsers from displaying `audio` without controls.
24
+ * Remove excess height in iOS 5 devices.
25
+ */
26
+ audio:not([controls]) {
27
+ display: none;
28
+ height: 0; }
29
+
30
+ /**
31
+ * Address `[hidden]` styling not present in IE 8/9.
32
+ * Hide the `template` element in IE, Safari, and Firefox < 22.
33
+ */
34
+ [hidden], template {
35
+ display: none; }
36
+
37
+ /* ==========================================================================
38
+ Base
39
+ ========================================================================== */
40
+ /**
41
+ * 1. Set default font family to sans-serif.
42
+ * 2. Prevent iOS text size adjust after orientation change, without disabling
43
+ * user zoom.
44
+ */
45
+ html {
46
+ font-family: sans-serif;
47
+ /* 1 */
48
+ -ms-text-size-adjust: 100%;
49
+ /* 2 */
50
+ -webkit-text-size-adjust: 100%;
51
+ /* 2 */ }
52
+
53
+ /**
54
+ * Remove default margin.
55
+ */
56
+ body {
57
+ margin: 0; }
58
+
59
+ /* ==========================================================================
60
+ Links
61
+ ========================================================================== */
62
+ /**
63
+ * Remove the gray background color from active links in IE 10.
64
+ */
65
+ a {
66
+ background: transparent; }
67
+
68
+ /**
69
+ * Address `outline` inconsistency between Chrome and other browsers.
70
+ */
71
+ a:focus {
72
+ outline: thin dotted; }
73
+
74
+ /**
75
+ * Improve readability when focused and also mouse hovered in all browsers.
76
+ */
77
+ a:active, a:hover {
78
+ outline: 0; }
79
+
80
+ /* ==========================================================================
81
+ Typography
82
+ ========================================================================== */
83
+ /**
84
+ * Address variable `h1` font-size and margin within `section` and `article`
85
+ * contexts in Firefox 4+, Safari 5, and Chrome.
86
+ */
87
+ h1 {
88
+ font-size: 2em;
89
+ margin: 0.67em 0; }
90
+
91
+ /**
92
+ * Address styling not present in IE 8/9, Safari 5, and Chrome.
93
+ */
94
+ abbr[title] {
95
+ border-bottom: 1px dotted; }
96
+
97
+ /**
98
+ * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
99
+ */
100
+ b, strong {
101
+ font-weight: bold; }
102
+
103
+ /**
104
+ * Address styling not present in Safari 5 and Chrome.
105
+ */
106
+ dfn {
107
+ font-style: italic; }
108
+
109
+ /**
110
+ * Address differences between Firefox and other browsers.
111
+ */
112
+ hr {
113
+ -moz-box-sizing: content-box;
114
+ box-sizing: content-box;
115
+ height: 0; }
116
+
117
+ /**
118
+ * Address styling not present in IE 8/9.
119
+ */
120
+ mark {
121
+ background: #ff0;
122
+ color: #000; }
123
+
124
+ /**
125
+ * Correct font family set oddly in Safari 5 and Chrome.
126
+ */
127
+ code, kbd, pre, samp {
128
+ font-family: monospace, serif;
129
+ font-size: 1em; }
130
+
131
+ /**
132
+ * Improve readability of pre-formatted text in all browsers.
133
+ */
134
+ pre {
135
+ white-space: pre-wrap; }
136
+
137
+ /**
138
+ * Set consistent quote types.
139
+ */
140
+ q {
141
+ quotes: "\201C" "\201D" "\2018" "\2019"; }
142
+
143
+ /**
144
+ * Address inconsistent and variable font size in all browsers.
145
+ */
146
+ small {
147
+ font-size: 80%; }
148
+
149
+ /**
150
+ * Prevent `sub` and `sup` affecting `line-height` in all browsers.
151
+ */
152
+ sub, sup {
153
+ font-size: 75%;
154
+ line-height: 0;
155
+ position: relative;
156
+ vertical-align: baseline; }
157
+
158
+ sup {
159
+ top: -0.5em; }
160
+
161
+ sub {
162
+ bottom: -0.25em; }
163
+
164
+ /* ==========================================================================
165
+ Embedded content
166
+ ========================================================================== */
167
+ /**
168
+ * Remove border when inside `a` element in IE 8/9.
169
+ */
170
+ img {
171
+ border: 0; }
172
+
173
+ /**
174
+ * Correct overflow displayed oddly in IE 9.
175
+ */
176
+ svg:not(:root) {
177
+ overflow: hidden; }
178
+
179
+ /* ==========================================================================
180
+ Figures
181
+ ========================================================================== */
182
+ /**
183
+ * Address margin not present in IE 8/9 and Safari 5.
184
+ */
185
+ figure {
186
+ margin: 0; }
187
+
188
+ /* ==========================================================================
189
+ Forms
190
+ ========================================================================== */
191
+ /**
192
+ * Define consistent border, margin, and padding.
193
+ */
194
+ fieldset {
195
+ border: 1px solid #c0c0c0;
196
+ margin: 0 2px;
197
+ padding: 0.35em 0.625em 0.75em; }
198
+
199
+ /**
200
+ * 1. Correct `color` not being inherited in IE 8/9.
201
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
202
+ */
203
+ legend {
204
+ border: 0;
205
+ /* 1 */
206
+ padding: 0;
207
+ /* 2 */ }
208
+
209
+ /**
210
+ * 1. Correct font family not being inherited in all browsers.
211
+ * 2. Correct font size not being inherited in all browsers.
212
+ * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
213
+ */
214
+ button, input, select, textarea {
215
+ font-family: inherit;
216
+ /* 1 */
217
+ font-size: 100%;
218
+ /* 2 */
219
+ margin: 0;
220
+ /* 3 */ }
221
+
222
+ /**
223
+ * Address Firefox 4+ setting `line-height` on `input` using `!important` in
224
+ * the UA stylesheet.
225
+ */
226
+ button, input {
227
+ line-height: normal; }
228
+
229
+ /**
230
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
231
+ * All other form control elements do not inherit `text-transform` values.
232
+ * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
233
+ * Correct `select` style inheritance in Firefox 4+ and Opera.
234
+ */
235
+ button, select {
236
+ text-transform: none; }
237
+
238
+ /**
239
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
240
+ * and `video` controls.
241
+ * 2. Correct inability to style clickable `input` types in iOS.
242
+ * 3. Improve usability and consistency of cursor style between image-type
243
+ * `input` and others.
244
+ */
245
+ button, html input[type="button"], input[type="reset"], input[type="submit"] {
246
+ -webkit-appearance: button;
247
+ /* 2 */
248
+ cursor: pointer;
249
+ /* 3 */ }
250
+
251
+ /**
252
+ * Re-set default cursor for disabled elements.
253
+ */
254
+ button[disabled], html input[disabled] {
255
+ cursor: default; }
256
+
257
+ /**
258
+ * 1. Address box sizing set to `content-box` in IE 8/9/10.
259
+ * 2. Remove excess padding in IE 8/9/10.
260
+ */
261
+ input[type="checkbox"], input[type="radio"] {
262
+ box-sizing: border-box;
263
+ /* 1 */
264
+ padding: 0;
265
+ /* 2 */ }
266
+
267
+ /**
268
+ * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
269
+ * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
270
+ * (include `-moz` to future-proof).
271
+ */
272
+ input[type="search"] {
273
+ -webkit-appearance: textfield;
274
+ /* 1 */
275
+ -moz-box-sizing: content-box;
276
+ -webkit-box-sizing: content-box;
277
+ /* 2 */
278
+ box-sizing: content-box; }
279
+
280
+ /**
281
+ * Remove inner padding and search cancel button in Safari 5 and Chrome
282
+ * on OS X.
283
+ */
284
+ input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration {
285
+ -webkit-appearance: none; }
286
+
287
+ /**
288
+ * Remove inner padding and border in Firefox 4+.
289
+ */
290
+ button::-moz-focus-inner, input::-moz-focus-inner {
291
+ border: 0;
292
+ padding: 0; }
293
+
294
+ /**
295
+ * 1. Remove default vertical scrollbar in IE 8/9.
296
+ * 2. Improve readability and alignment in all browsers.
297
+ */
298
+ textarea {
299
+ overflow: auto;
300
+ /* 1 */
301
+ vertical-align: top;
302
+ /* 2 */ }
303
+
304
+ /* ==========================================================================
305
+ Tables
306
+ ========================================================================== */
307
+ /**
308
+ * Remove most spacing between table cells.
309
+ */
310
+ table {
311
+ border-collapse: collapse;
312
+ border-spacing: 0; }
313
+
314
+ * {
315
+ -webkit-font-smoothing: antialiased !important;
316
+ -moz-osx-font-smoothing: grayscale !important; }
317
+
318
+ html body {
319
+ padding-left: 0;
320
+ padding-right: 0; }
321
+
322
+ body {
323
+ padding: 0;
324
+ margin: 0;
325
+ background: #fff; }
326
+
327
+ ::selection {
328
+ background: #ddd;
329
+ color: #111; }
330
+
331
+ a, a:hover, a:focus, a:visited {
332
+ color: inherit; }
333
+
334
+ em {
335
+ font-style: italic; }
336
+
337
+ hr {
338
+ clear: both;
339
+ height: 0;
340
+ margin: 1em 0;
341
+ border: solid #ddd;
342
+ border-width: 1px 0 0; }
343
+
344
+ /*
345
+ *
346
+ .||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||.
347
+
348
+ . '|| .
349
+ .||. .... ... ... ... .... ... ... || .... .||. ....
350
+ || '|. | ||' || .|...|| ||' || || '' .|| || .|...||
351
+ || '|.| || | || || | || .|' || || ||
352
+ '|.' '| ||...' '|...' ||...' .||. '|..'|' '|.' '|...'
353
+ .. | || ||
354
+ '' '''' '''' VARIABLES
355
+
356
+ .||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||.
357
+ *
358
+ */
359
+ /*!
360
+ *
361
+ .||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||.
362
+
363
+ . '|| .
364
+ .||. .... ... ... ... .... ... ... || .... .||. ....
365
+ || '|. | ||' || .|...|| ||' || || '' .|| || .|...||
366
+ || '|.| || | || || | || .|' || || ||
367
+ '|.' '| ||...' '|...' ||...' .||. '|..'|' '|.' '|...'
368
+ .. | || ||
369
+ '' '''' '''' A Typographic Starter Kit
370
+
371
+ URL ........... http://typeplate.com
372
+ VERSION ....... 1.1.2
373
+ Github ........ https://github.com/typeplate/typeplate.github.io
374
+ AUTHORS ....... Dennis Gaebel (@gryghostvisuals) & Zachary Kain (@zakkain)
375
+ LICENSE ....... Creative Commmons Attribution 3.0
376
+ LICENSE URL ... http://creativecommons.org/licenses/by/3.0
377
+
378
+ .||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||.
379
+ *
380
+ */
381
+ @font-face {
382
+ font-family: 'Ampersand';
383
+ src: local('Georgia'), local('Garamond'), local('Palatino'), local('Book Antiqua');
384
+ unicode-range: U26; }
385
+
386
+ @font-face {
387
+ font-family: 'Ampersand';
388
+ src: local('Georgia');
389
+ unicode-range: U270C; }
390
+
391
+
392
+
393
+ body {
394
+ word-wrap: break-word; }
395
+
396
+ pre code {
397
+ word-wrap: normal; }
398
+
399
+
400
+ /**
401
+ * Dropcap Sass @include
402
+ * Use the following Sass @include with any selector you feel necessary.
403
+ *
404
+ @include dropcap($dropcap-float-position, $dropcap-font-size, $dropcap-font-family, $dropcap-txt-indent, $dropcap-margin, $dropcap-padding, $dropcap-color, $dropcap-line-height, $dropcap-bg);
405
+ *
406
+ * Extend this object into your custom stylesheet. Let the variables do the work.
407
+ *
408
+ */
409
+ html {
410
+ font: normal 112.5%/1.65 Georgia, Cambria, "Times New Roman", Times, serif; }
411
+
412
+ body {
413
+ -webkit-hyphens: auto;
414
+ -moz-hyphens: auto;
415
+ -ms-hyphens: auto;
416
+ -o-hyphens: auto;
417
+ hyphens: auto;
418
+ color: #444; }
419
+
420
+ small {
421
+ font-size: 11.12485; }
422
+
423
+ h1, h2, h3, h4, h5, h6 {
424
+ text-rendering: optimizeLegibility;
425
+ line-height: 1;
426
+ margin-top: 0; }
427
+
428
+ .tera {
429
+ @debug 29.7;
430
+ @debug 95.30552;
431
+ @debug 0.31163;
432
+ font-size: 95.30552px;
433
+ font-size: 5.29475rem;
434
+ margin-bottom: 0.31163rem; }
435
+
436
+ .giga {
437
+ @debug 29.7;
438
+ @debug 76.24442;
439
+ @debug 0.38954;
440
+ font-size: 76.24442px;
441
+ font-size: 4.2358rem;
442
+ margin-bottom: 0.38954rem; }
443
+
444
+ .mega {
445
+ @debug 29.7;
446
+ @debug 58.90329;
447
+ @debug 0.50422;
448
+ font-size: 58.90329px;
449
+ font-size: 3.27241rem;
450
+ margin-bottom: 0.50422rem; }
451
+
452
+ .alpha, h1 {
453
+ @debug 29.7;
454
+ @debug 47.12263;
455
+ @debug 0.63027;
456
+ font-size: 47.12263px;
457
+ font-size: 2.61792rem;
458
+ margin-bottom: 0.63027rem; }
459
+
460
+ .beta, h2 {
461
+ @debug 29.7;
462
+ @debug 36.405;
463
+ @debug 0.81582;
464
+ font-size: 36.405px;
465
+ font-size: 2.0225rem;
466
+ margin-bottom: 0.81582rem; }
467
+
468
+ .gamma, h3 {
469
+ @debug 29.7;
470
+ @debug 29.124;
471
+ @debug 1.01978;
472
+ font-size: 29.124px;
473
+ font-size: 1.618rem;
474
+ margin-bottom: 1.01978rem; }
475
+
476
+ .delta, h4 {
477
+ @debug 29.7;
478
+ @debug 22.5;
479
+ @debug 1.32;
480
+ font-size: 22.5px;
481
+ font-size: 1.25rem;
482
+ margin-bottom: 1.32rem; }
483
+
484
+ .epsilon, h5 {
485
+ @debug 29.7;
486
+ @debug 20.25;
487
+ @debug 1.46667;
488
+ font-size: 20.25px;
489
+ font-size: 1.125rem;
490
+ margin-bottom: 1.46667rem; }
491
+
492
+ .zeta, h6 {
493
+ @debug 29.7;
494
+ @debug 18;
495
+ @debug 1.65;
496
+ font-size: 18px;
497
+ font-size: 1rem;
498
+ margin-bottom: 1.65rem; }
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+ p {
507
+ margin: auto auto 1.5em; }
508
+
509
+ abbr, acronym, blockquote, code, dir, kbd, listing, plaintext, q, samp, tt, var, xmp {
510
+ -webkit-hyphens: auto;
511
+ -moz-hyphens: auto;
512
+ -ms-hyphens: auto;
513
+ -o-hyphens: auto;
514
+ hyphens: auto; }
515
+
516
+ pre code {
517
+ white-space: -moz- pre-wrap;
518
+ white-space: pre-wrap; }
519
+
520
+ pre {
521
+ white-space: pre; }
522
+
523
+ code {
524
+ white-space: pre;
525
+ font-family: monospace; }
526
+
527
+ /**
528
+ * Abbreviations Markup
529
+ *
530
+ <abbr title="hyper text markup language">HMTL</abbr>
531
+ *
532
+ * Extend this object into your markup.
533
+ *
534
+ */
535
+ abbr {
536
+ font-variant: small-caps;
537
+ font-weight: 600;
538
+ text-transform: lowercase;
539
+ color: grey; }
540
+ abbr[title]:hover {
541
+ cursor: help; }
542
+
543
+ h1, h2, h3, h4, h5, h6 {
544
+ color: #222; }
545
+
546
+ p + .drop-cap {
547
+ text-indent: 0;
548
+ margin-top: 0; }
549
+
550
+ .drop-cap:first-letter {
551
+ float: left;
552
+ margin: inherit;
553
+ padding: inherit;
554
+ font-size: 4em;
555
+ font-family: inherit;
556
+ line-height: 1;
557
+ text-indent: 0;
558
+ background: transparent;
559
+ color: inherit; }
560
+
561
+ /**
562
+ * Lining Definition Style Markup
563
+ *
564
+ <dl class="lining">
565
+ <dt><b></b></dt>
566
+ <dd></dd>
567
+ </dl>
568
+ *
569
+ * Extend this object into your markup.
570
+ *
571
+ */
572
+ .lining dt, .lining dd {
573
+ display: inline;
574
+ margin: 0; }
575
+ .lining dt + dt:before, .lining dd + dt:before {
576
+ content: "\A";
577
+ white-space: pre; }
578
+ .lining dd + dd:before {
579
+ content: ", "; }
580
+ .lining dd:before {
581
+ content: ": ";
582
+ margin-left: -0.2rem; }
583
+
584
+ /**
585
+ * Dictionary Definition Style Markup
586
+ *
587
+ <dl class="dictionary-style">
588
+ <dt><b></b></dt>
589
+ <dd></dd>
590
+ </dl>
591
+ *
592
+ * Extend this object into your markup.
593
+ *
594
+ */
595
+ .dictionary-style dt {
596
+ display: inline;
597
+ counter-reset: definitions; }
598
+ .dictionary-style dt + dt:before {
599
+ content: ", ";
600
+ margin-left: -0.2rem; }
601
+ .dictionary-style dd {
602
+ display: block;
603
+ counter-increment: definitions; }
604
+ .dictionary-style dd:before {
605
+ content: counter(definitions, decimal) ". "; }
606
+
607
+ /**
608
+ * Blockquote Markup
609
+ *
610
+ <figure>
611
+ <blockquote cite="">
612
+ <p></p>
613
+ </blockquote>
614
+ <figcaption>
615
+ <cite>
616
+ <small><a href=""></a></small>
617
+ </cite>
618
+ </figcaption>
619
+ </figure>
620
+ *
621
+ * Extend this object into your markup.
622
+ *
623
+ */
624
+ /**
625
+ * Pull Quotes Markup
626
+ *
627
+ <aside class="pull-quote">
628
+ <blockquote>
629
+ <p></p>
630
+ </blockquote>
631
+ </aside>
632
+ *
633
+ * Extend this object into your custom stylesheet.
634
+ *
635
+ */
636
+ .pull-quote {
637
+ position: relative;
638
+ padding: 1em; }
639
+ .pull-quote:before, .pull-quote:after {
640
+ height: 1em;
641
+ opacity: 0.5;
642
+ position: absolute;
643
+ font-size: 4em;
644
+ color: #dc976e; }
645
+ .pull-quote:before {
646
+ content: '“';
647
+ top: 0;
648
+ left: 0; }
649
+ .pull-quote:after {
650
+ content: '”';
651
+ bottom: 0;
652
+ right: 0; }
653
+
654
+ /**
655
+ * Figures Markup
656
+ *
657
+ <figure>
658
+ <figcaption>
659
+ <strong>Fig. 4.2 | </strong>Type Anatomy, an excerpt from Mark Boulton's book<cite title="http://designingfortheweb.co.uk/book/part3/part3_chapter11.php">"Designing for the Web"</cite>
660
+ </figcaption>
661
+ </figure>
662
+ *
663
+ * Extend this object into your markup.
664
+ *
665
+ */
666
+ /**
667
+ * Footnote Markup : Replace 'X' with your unique number for each footnote
668
+ *
669
+ <article>
670
+ <p><sup><a href="#fn-itemX" id="fn-returnX"></a></sup></p>
671
+ <footer>
672
+ <ol class="foot-notes">
673
+ <li id="fn-itemX"><a href="#fn-returnX">↩</a></li>
674
+ </ol>
675
+ </footer>
676
+ </article>
677
+ *
678
+ * Extend this object into your markup.
679
+ *
680
+ */
@@ -0,0 +1 @@
1
+ @import '../../app/assets/stylesheets/boarding_pass';
@@ -0,0 +1,2 @@
1
+ @import '../../app/assets/stylesheets/boarding_pass';
2
+ @import '../../app/assets/stylesheets/typography/typography';