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
@@ -0,0 +1,834 @@
1
+ /*!
2
+ *
3
+ .||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||.
4
+
5
+ . '|| .
6
+ .||. .... ... ... ... .... ... ... || .... .||. ....
7
+ || '|. | ||' || .|...|| ||' || || '' .|| || .|...||
8
+ || '|.| || | || || | || .|' || || ||
9
+ '|.' '| ||...' '|...' ||...' .||. '|..'|' '|.' '|...'
10
+ .. | || ||
11
+ '' '''' '''' A Typographic Starter Kit
12
+
13
+ URL ........... http://typeplate.com
14
+ VERSION ....... 1.1.2
15
+ Github ........ https://github.com/typeplate/typeplate.github.io
16
+ AUTHORS ....... Dennis Gaebel (@gryghostvisuals) & Zachary Kain (@zakkain)
17
+ LICENSE ....... Creative Commmons Attribution 3.0
18
+ LICENSE URL ... http://creativecommons.org/licenses/by/3.0
19
+
20
+ .||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||..||.
21
+ *
22
+ */
23
+
24
+
25
+
26
+ // .x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x //
27
+ //
28
+ // $Variables
29
+ //
30
+ // .x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x //
31
+
32
+
33
+ // $Variable $BaseType
34
+ // -------------------------------------//
35
+ //the serif boolean var can be redeclared from another stylesheet. However
36
+ //the var must be placed after your @import "typeplate.scss";
37
+ $serif-boolean: true !default;
38
+
39
+ $font-family: if($serif-boolean, serif, sans-serif) !default; // Non-font-face font-stack
40
+
41
+ $font-weight: normal !default;
42
+ $line-height: 1.65 !default;
43
+ $font-size: 112.5 !default; // percentage value (16 * 112.5% = 18px)
44
+ $font-base: 16 * ($font-size/100) !default; // converts our percentage to a pixel value
45
+ $custom-font-family: false !default; // Custom font-face stack, if set will be added to the $font-family
46
+ $measure: $font-base * $line-height;
47
+
48
+
49
+ // $Variable $Paragraphs
50
+ // -------------------------------------//
51
+
52
+ // Text Indentation Value
53
+ $indent-val: 1.5em !default;
54
+
55
+ // Paragraph Styling Boolean
56
+ // 'false' means no vertical whitespace
57
+ // between subsequent paragraphs.
58
+ $paragraph-vertical-whitespace: false !default;
59
+
60
+
61
+ // $Variable $Small-Print
62
+ // -------------------------------------//
63
+
64
+ $small-print-size: 65% !default;
65
+
66
+
67
+ // $Variable $Base-Color
68
+ // -------------------------------------//
69
+
70
+ $body-copy-color: #444 !default;
71
+ $heading-color: #222 !default;
72
+
73
+
74
+ // $Variable $Ampersand
75
+ // -------------------------------------//
76
+
77
+ $amp-fontface-name: Ampersand !default;
78
+ $amp-fontface-source: local('Georgia'), local('Garamond'), local('Palatino'), local('Book Antiqua') !default;
79
+ $amp-fontface-fallback: local('Georgia') !default;
80
+
81
+ // Allows for our ampersand element to have differing
82
+ // font-family from the ampersand unicode font-family.
83
+ $amp-font-family: Verdana, sans-serif !default;
84
+
85
+
86
+ // $Variable $Icon-Font-Helper
87
+ // -------------------------------------//
88
+ // ex.1) $icon-fonts: (icon-name);
89
+ // ex.2) $icon-fonts: (icon-name1, icon-name2, icon-name3);
90
+ $icon-fonts: null !default;
91
+
92
+
93
+ // $Variable $Typescale
94
+ // -------------------------------------//
95
+
96
+ $tera: 117 !default; // 117 = 18 × 6.5
97
+ $giga: 90 !default; // 90 = 18 × 5
98
+ $mega: 72 !default; // 72 = 18 × 4
99
+ $alpha: 60 !default; // 60 = 18 × 3.3333
100
+ $beta: 48 !default; // 48 = 18 × 2.6667
101
+ $gamma: 36 !default; // 36 = 18 × 2
102
+ $delta: 24 !default; // 24 = 18 × 1.3333
103
+ $epsilon: 21 !default; // 21 = 18 × 1.1667
104
+ $zeta: 18 !default; // 18 = 18 × 1
105
+
106
+
107
+ // $Variable $Typescale-Unit
108
+ // -------------------------------------//
109
+
110
+ $type-scale-unit-value: rem !default;
111
+
112
+
113
+ // $Variable $Pull-Quotes
114
+ // -------------------------------------//
115
+
116
+ $pull-quote-fontsize: 4em !default;
117
+ $pull-quote-opacity: 0.5 !default;
118
+ $pull-quote-color: #dc976e !default;
119
+
120
+
121
+ // $Variable $Citation
122
+ // -------------------------------------//
123
+
124
+ $cite-display: block !default;
125
+ $cite-text-align: right !default;
126
+ $cite-font-size: inherit !default;
127
+
128
+
129
+ // $Variable $Small-Caps
130
+ // -------------------------------------//
131
+
132
+ $small-caps-color: gray !default;
133
+ $small-caps-weight: 600 !default;
134
+
135
+
136
+ // $Variable $DropCap
137
+ // -------------------------------------//
138
+
139
+ $dropcap-float-position: left !default;
140
+ $dropcap-font-size: 4em !default;
141
+ $dropcap-font-family: inherit !default;
142
+ $dropcap-txt-indent: 0 !default;
143
+ $dropcap-margin: inherit !default;
144
+ $dropcap-padding: inherit !default;
145
+ $dropcap-color: inherit !default;
146
+ $dropcap-line-height: 1 !default;
147
+ $dropcap-bg: transparent !default;
148
+
149
+
150
+ // .x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x //
151
+ //
152
+ // $Fontfaces
153
+ //
154
+ // .x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x //
155
+
156
+
157
+ // $Fontface $Unicode-Range-Ampersand
158
+ // -------------------------------------//
159
+
160
+ @font-face {
161
+ font-family: '#{$amp-fontface-name}';
162
+ src: $amp-fontface-source;
163
+ unicode-range: U+0026;
164
+ }
165
+
166
+ // Ampersand fallback font for unicode range
167
+ @font-face {
168
+ font-family: '#{$amp-fontface-name}';
169
+ src: $amp-fontface-fallback;
170
+ unicode-range: U+270C;
171
+ }
172
+
173
+
174
+ // $Fontface $Icon-Font-Helper
175
+ // -------------------------------------//
176
+ // ICON FONT HELPER
177
+ // In order to use this hot rod you must have the following…
178
+ // 1. Compass.
179
+ // 2. Create a 'fonts' directory in the root of your project.
180
+ // 3. Specify within your 'config.rb' file the following line…
181
+ //
182
+ // fonts_dir = "name-of-your-fonts-directory" ( i.e. fonts_dir = "fonts" )
183
+ //
184
+ // Example usage:
185
+ // ex.1) $icon-fonts: (icon-name);
186
+ // ex.2) $icon-fonts: (icon-name1, icon-name2, icon-name3);
187
+ //
188
+ // Additional Notes:
189
+ // @include font-face() is a Compass helper function
190
+ // based on this gist by Chris Van Patten
191
+ // https://gist.github.com/4469518
192
+
193
+ @if ($icon-fonts != null) {
194
+ @each $font in $icon-fonts {
195
+ @include font-face( $font,
196
+ font-files(
197
+ '#{$font}/#{$font}.woff',
198
+ '#{$font}/#{$font}.ttf',
199
+ '#{$font}/#{$font}.svg', svg
200
+ ),
201
+ '#{$font}/#{$font}.eot'
202
+ )
203
+ }
204
+ }
205
+
206
+
207
+ // .x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x //
208
+ //
209
+ // $Functions
210
+ //
211
+ // .x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x //
212
+
213
+
214
+ // $Function $Context Calculator
215
+ // -------------------------------------//
216
+ // divide a given font-size by base font-size & return a relative value
217
+
218
+ @function context-calc($scale, $base, $value) {
219
+ $calc: $scale / $base;
220
+ @return #{$calc}#{$value};
221
+ }
222
+
223
+
224
+ // $Function $Measure-Margin
225
+ // -------------------------------------//
226
+ // divide 1 unit of measure by given font-size & return a relative em value
227
+
228
+ @function measure-margin($scale, $measure, $value) {
229
+ $calc: $measure / $scale;
230
+ @return #{$calc}#{$value};
231
+ }
232
+
233
+
234
+ // .x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x //
235
+ //
236
+ // $Mixins / $Placeholders
237
+ //
238
+ // .x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x //
239
+
240
+
241
+ // $Mixin $Type-Scale
242
+ // -------------------------------------//
243
+ // provides a pixel fallback if you decide
244
+ // to use 'rems' as a unit over ems.
245
+
246
+ @mixin type-scale($scale, $base, $value, $measure:"") {
247
+ // If 'rem' is used as a $value then provide a px fallback.
248
+ @if $value == rem {
249
+ font-size: #{$scale}#{px};
250
+ }
251
+ font-size: context-calc($scale, $base, $value);
252
+ @if $measure != "" {
253
+ margin-bottom: measure-margin($scale, $measure, $value);
254
+ }
255
+ }
256
+
257
+ // $Mixin $Hypens
258
+ // -------------------------------------//
259
+ //http://trentwalton.com/2011/09/07/css-hyphenation
260
+
261
+ @mixin css-hyphens($val) {
262
+ // Accepted values: [ none | manual | auto ]
263
+ -webkit-hyphens: $val; // Safari 5.1 thru 6, iOS 4.2 thru 6
264
+ -moz-hyphens: $val; // Firefox 16 thru 20
265
+ -ms-hyphens: $val; // IE10
266
+ -o-hyphens: $val; // PRESTO...haha LOL
267
+ hyphens: $val; // W3C standard
268
+ }
269
+
270
+
271
+ // $Mixin $Smallcaps
272
+ // -------------------------------------//
273
+ // http://blog.hypsometry.com/articles/true-small-capitals-with-font-face
274
+ // ISSUE #1 : https://github.com/typeplate/typeplate.github.com/issues/1
275
+
276
+ @mixin smallcaps($color, $font-weight) {
277
+ // depends on the font family.
278
+ // some font-families don't support small caps
279
+ // or don't provide them with their web font.
280
+ font-variant: small-caps;
281
+ font-weight: $font-weight;
282
+ text-transform: lowercase;
283
+ color: $color;
284
+ }
285
+
286
+
287
+ // $Mixin $Fontsize-Adjust
288
+ // -------------------------------------//
289
+ // correct x-height for fallback fonts: requires secret formula
290
+ // yet to be discovered. This is still wacky for support. Use
291
+ // wisely grasshopper.
292
+
293
+ @mixin font-size-adjust($adjust-value) {
294
+ // firefox 17+ only (as of Feb. 2013)
295
+ font-size-adjust: $adjust-value;
296
+ }
297
+
298
+
299
+ // $Mixin $Ampersand
300
+ // -------------------------------------//
301
+
302
+ @mixin ampersand($amp-font-family...) {
303
+ font-family: $amp-font-family;
304
+ }
305
+
306
+ %ampersand-placeholder {
307
+ @include ampersand($amp-fontface-name, $amp-font-family);
308
+ }
309
+
310
+ // Call your ampersand on any element you wish from another stylesheet
311
+ // using this Sass extend we've provided. For exmaple:
312
+ //
313
+ // <h6 class="ampersand">Dewey Cheat 'em & Howe</h6>
314
+ //
315
+ // .ampersand { @extend %ampersand-placeholder; }
316
+
317
+
318
+ // $Mixin $Blockquote
319
+ // -------------------------------------//
320
+ // https://github.com/typeplate/typeplate.github.io/issues/95
321
+ //
322
+ // Use our pre-defined markup and add a class
323
+ // to your custom blockquote element.
324
+ // For example:
325
+ //
326
+ // .blockquote { @include blockquote("-"); }
327
+ //
328
+ // "-" is your citation flourish. For example:
329
+ //
330
+ // I always say important things because I'm so smart
331
+ // - Super Important Person
332
+
333
+ // Citation Mixin for Custom Styling
334
+ @mixin cite-style($display, $text-align, $font-size) {
335
+ display: $display;
336
+ font-size: $font-size;
337
+ text-align: $text-align;
338
+ }
339
+
340
+ %cite {
341
+ @include cite-style($cite-display, $cite-text-align, $cite-font-size);
342
+ }
343
+
344
+ @mixin blockquote($citation-flourish) {
345
+ p {
346
+ &:last-of-type {
347
+ margin-bottom: -#{$line-height/2}em;
348
+ }
349
+ }
350
+ + figcaption {
351
+ @extend %cite;
352
+ &:before {
353
+ content: $citation-flourish;
354
+ }
355
+ }
356
+ }
357
+
358
+
359
+ // $Mixin $Pull-Quotes
360
+ // -------------------------------------//
361
+
362
+ @mixin pull-quotes($pull-quote-fontsize, $pull-quote-opacity, $pull-quote-color) {
363
+ position: relative;
364
+ padding: context-calc($pull-quote-fontsize, $pull-quote-fontsize, em);
365
+ &:before,
366
+ &:after {
367
+ height: context-calc($pull-quote-fontsize, $pull-quote-fontsize, em);
368
+ opacity: $pull-quote-opacity;
369
+ position: absolute;
370
+ font-size: $pull-quote-fontsize;
371
+ color: $pull-quote-color;
372
+ }
373
+ &:before {
374
+ content: '“';
375
+ top: 0;
376
+ left: 0;
377
+ }
378
+ &:after {
379
+ content: '”';
380
+ bottom: 0;
381
+ right: 0;
382
+ }
383
+ }
384
+
385
+
386
+ // $Placeholder $Wordwrap
387
+ // -------------------------------------//
388
+ // Silent Sass Classes - A.K.A Placeholders
389
+ //
390
+ // normal: Indicates that lines may only break at normal word break points.
391
+ // break-word : Indicates that normally unbreakable words may be broken at
392
+ // arbitrary points if there are no otherwise acceptable break points in the line.
393
+
394
+ %breakword {
395
+ word-wrap: break-word;
396
+ }
397
+
398
+ %normal-wrap {
399
+ word-wrap: normal;
400
+ }
401
+
402
+ %inherit-wrap {
403
+ word-wrap: auto;
404
+ }
405
+
406
+
407
+ // $Mixin $Dropcaps
408
+ // -------------------------------------//
409
+ /**
410
+ * Dropcap Sass @include
411
+ * Use the following Sass @include with any selector you feel necessary.
412
+ *
413
+ @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);
414
+ *
415
+ * Extend this object into your custom stylesheet. Let the variables do the work.
416
+ *
417
+ */
418
+
419
+ // Use @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);
420
+ // to pass the following arguments below. Feel free to pass in custom
421
+ // values for the variables we've provided.
422
+ //
423
+ // Make sure you add the class “drop-cap” to your markup in order to operate.
424
+ @mixin dropcap($dropcap-float-position, $dropcap-font-size, $dropcap-font-family, $dropcap-txt-indent, $dropcap-margin, $dropcap-padding, $dropcap-color, $dropcap-line-height, $dropcap-bg) {
425
+ &:first-letter {
426
+ float: $dropcap-float-position;
427
+ margin: $dropcap-margin;
428
+ padding: $dropcap-padding;
429
+ font-size: $dropcap-font-size;
430
+ font-family: $dropcap-font-family;
431
+ line-height: $dropcap-line-height;
432
+ text-indent: $dropcap-txt-indent;
433
+ background: $dropcap-bg;
434
+ color: $dropcap-color;
435
+ }
436
+ }
437
+
438
+
439
+ // $Mixin $Codeblocks
440
+ // -------------------------------------//
441
+
442
+ @mixin white-space($wrap-space) {
443
+ @if $wrap-space == 'pre-wrap' {
444
+ white-space: #{-moz-}$wrap-space; // Firefox 1.0-2.0
445
+ white-space: $wrap-space; // current browsers
446
+ } @else {
447
+ white-space: $wrap-space;
448
+ }
449
+ }
450
+
451
+
452
+ // $Mixin $Definition-Lists
453
+ // -------------------------------------//
454
+ // lining
455
+ // http://lea.verou.me/2012/02/flexible-multiline-definition-lists-with-2-lines-of-css
456
+ //
457
+ // dictionary-style
458
+ // http://lea.verou.me/2012/02/flexible-multiline-definition-lists-with-2-lines-of-css
459
+
460
+ @mixin definition-list-style($style) {
461
+ // lining style
462
+ @if $style == lining {
463
+ dt,
464
+ dd {
465
+ display: inline;
466
+ margin: 0;
467
+ }
468
+ dt,
469
+ dd {
470
+ & + dt {
471
+ &:before {
472
+ content: "\A";
473
+ white-space: pre;
474
+ }
475
+ }
476
+ }
477
+ dd {
478
+ & + dd {
479
+ &:before {
480
+ content: ", ";
481
+ }
482
+ }
483
+ &:before {
484
+ content: ": ";
485
+ margin-left: -0.2rem; //removes extra space between the dt and the colon
486
+ }
487
+ }
488
+ }
489
+ // dictionary-style
490
+ @if $style == dictionary-style {
491
+ dt {
492
+ display: inline;
493
+ counter-reset: definitions;
494
+ & + dt {
495
+ &:before {
496
+ content: ", ";
497
+ margin-left: -0.2rem; // removes extra space between the dt and the comma
498
+ }
499
+ }
500
+ }
501
+ dd {
502
+ display: block;
503
+ counter-increment: definitions;
504
+ &:before {
505
+ content: counter(definitions, decimal) ". ";
506
+ }
507
+ }
508
+ }
509
+ }
510
+
511
+
512
+
513
+ // .x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x //
514
+ //
515
+ // $Typeplate Styles
516
+ //
517
+ // .x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x //
518
+
519
+
520
+ // $Styles $Globals
521
+ // -------------------------------------//
522
+
523
+ html {
524
+ $_font_metrics: '#{$font-size}%/#{$line-height}';
525
+ @if $custom-font-family {
526
+ font: $font-weight unquote($_font_metrics) $custom-font-family, $font-family;
527
+ } @else {
528
+ font: $font-weight unquote($_font_metrics) $font-family;
529
+ }
530
+ }
531
+
532
+ body {
533
+ // Ala Trent Walton
534
+ @include css-hyphens(auto);
535
+
536
+ // normal: Indicates that lines may only break at normal word break points.
537
+ // break-word : Indicates that normally unbreakable words may be broken at ...
538
+ // arbitrary points if there are no otherwise acceptable break points in the line.
539
+ @extend %breakword;
540
+ color: $body-copy-color;
541
+ }
542
+
543
+ small {
544
+ font-size: $small-print-size;
545
+ }
546
+
547
+
548
+ // $Styles $Headings
549
+ // -------------------------------------//
550
+
551
+ // Extend included classes on any element of your
552
+ // choosing for adjusting type based on the scale
553
+ // provided.
554
+
555
+ // For example:
556
+
557
+ // <h6 class="giga">Awesome Headline</h6>
558
+ // <p class="tera">a story about a dude</p>
559
+
560
+ // Our Type Scale is as follows with px fallbacks
561
+ // for IE 6-8 as they do not understand REM units.
562
+ //
563
+ // 18, 21, 24, 36, 48, 60, 72, 90, 117
564
+
565
+ // styles for all headings, in the style of @csswizardry
566
+ %hN {
567
+ text-rendering: optimizeLegibility; // voodoo to enable ligatures and kerning
568
+ line-height: 1; // this fixes huge spaces when a heading wraps onto two lines
569
+ margin-top: 0;
570
+ }
571
+
572
+ // Multi-dimensional array, where:
573
+ // the first value is the name of the class
574
+ // and the second value is the variable for the size
575
+ $sizes: tera $tera, giga $giga, mega $mega, alpha $alpha, beta $beta, gamma $gamma, delta $delta, epsilon $epsilon, zeta $zeta;
576
+
577
+ // Sass loop to associate h1-h6 tags with their appropriate greek
578
+ // heading based on a modular scale.
579
+ // for each size in the scale, create a class
580
+ @each $size in $sizes {
581
+ .#{nth($size, 1)} {
582
+ @debug #{$measure};
583
+ @debug #{nth($size, 2)};
584
+ @debug #{$measure / nth($size, 2)};
585
+ @include type-scale(nth($size, 2), $font-base, '#{$type-scale-unit-value}', $measure);
586
+ }
587
+ }
588
+
589
+ // associate h1-h6 tags with their appropriate greek heading
590
+ h1 {
591
+ @extend .alpha;
592
+ @extend %hN;
593
+ }
594
+
595
+ h2 {
596
+ @extend .beta;
597
+ @extend %hN;
598
+ }
599
+
600
+ h3 {
601
+ @extend .gamma;
602
+ @extend %hN;
603
+ }
604
+
605
+ h4 {
606
+ @extend .delta;
607
+ @extend %hN;
608
+ }
609
+
610
+ h5 {
611
+ @extend .epsilon;
612
+ @extend %hN;
613
+ }
614
+
615
+ h6 {
616
+ @extend .zeta;
617
+ @extend %hN;
618
+ }
619
+
620
+
621
+ // $Styles $Parargraphs
622
+ // -------------------------------------//
623
+
624
+ p {
625
+ margin: auto auto $indent-val;
626
+
627
+ // Conditonal Check For Paragraph Styling
628
+ @if $paragraph-vertical-whitespace == false {
629
+ & + p {
630
+ //siblings indentation
631
+ text-indent: $indent-val;
632
+ margin-top: -$indent-val;
633
+ }
634
+ }
635
+ }
636
+
637
+
638
+ // $Styles $Hyphenation
639
+ // -------------------------------------//
640
+ // http://meyerweb.com/eric/thoughts/2012/12/17/where-to-avoid-css-hyphenation
641
+
642
+ abbr,
643
+ acronym,
644
+ blockquote,
645
+ code,
646
+ dir,
647
+ kbd,
648
+ listing,
649
+ plaintext,
650
+ q,
651
+ samp,
652
+ tt,
653
+ var,
654
+ xmp {
655
+ @include css-hyphens(auto);
656
+ }
657
+
658
+
659
+ // $Styles $Codeblocks
660
+ // -------------------------------------//
661
+
662
+ pre code {
663
+ @extend %normal-wrap;
664
+ @include white-space(pre-wrap);
665
+ }
666
+
667
+ pre {
668
+ @include white-space(pre);
669
+ }
670
+
671
+ code {
672
+ @include white-space(pre);
673
+ font-family: monospace;
674
+ }
675
+
676
+
677
+ // $Styles $Smallcaps
678
+ // -------------------------------------//
679
+ /**
680
+ * Abbreviations Markup
681
+ *
682
+ <abbr title="hyper text markup language">HMTL</abbr>
683
+ *
684
+ * Extend this object into your markup.
685
+ *
686
+ */
687
+ abbr {
688
+ @include smallcaps($small-caps-color, $small-caps-weight);
689
+ &[title]:hover {
690
+ cursor: help;
691
+ }
692
+ }
693
+
694
+
695
+ // $Styles $Headings-Color
696
+ // -------------------------------------//
697
+
698
+ h1,
699
+ h2,
700
+ h3,
701
+ h4,
702
+ h5,
703
+ h6 {
704
+ color: $heading-color;
705
+ }
706
+
707
+
708
+ // $Styles $Dropcap
709
+ // -------------------------------------//
710
+
711
+ // Combats our sibling paragraphs syling and indentation
712
+ // As not to ruin our beautiful drop caps.
713
+ p + .drop-cap {
714
+ text-indent: 0;
715
+ margin-top: 0;
716
+ }
717
+
718
+ .drop-cap {
719
+ @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);
720
+ }
721
+
722
+
723
+ // $Styles $Definition-Lists
724
+ // -------------------------------------//
725
+ /**
726
+ * Lining Definition Style Markup
727
+ *
728
+ <dl class="lining">
729
+ <dt><b></b></dt>
730
+ <dd></dd>
731
+ </dl>
732
+ *
733
+ * Extend this object into your markup.
734
+ *
735
+ */
736
+ .lining {
737
+ @include definition-list-style(lining);
738
+ }
739
+
740
+ /**
741
+ * Dictionary Definition Style Markup
742
+ *
743
+ <dl class="dictionary-style">
744
+ <dt><b></b></dt>
745
+ <dd></dd>
746
+ </dl>
747
+ *
748
+ * Extend this object into your markup.
749
+ *
750
+ */
751
+ .dictionary-style {
752
+ @include definition-list-style(dictionary-style);
753
+ }
754
+
755
+
756
+ // $Styles $Blockquote-Markup
757
+ // -------------------------------------//
758
+ /**
759
+ * Blockquote Markup
760
+ *
761
+ <figure>
762
+ <blockquote cite="">
763
+ <p></p>
764
+ </blockquote>
765
+ <figcaption>
766
+ <cite>
767
+ <small><a href=""></a></small>
768
+ </cite>
769
+ </figcaption>
770
+ </figure>
771
+ *
772
+ * Extend this object into your markup.
773
+ *
774
+ */
775
+
776
+
777
+ // $Styles $Pull-Quotes
778
+ // -------------------------------------//
779
+ // http://24ways.org/2005/swooshy-curly-quotes-without-images
780
+ //
781
+ // http://todomvc.com - Thanks sindresorhus!
782
+ // https://github.com/typeplate/typeplate.github.io/issues/49
783
+
784
+ /**
785
+ * Pull Quotes Markup
786
+ *
787
+ <aside class="pull-quote">
788
+ <blockquote>
789
+ <p></p>
790
+ </blockquote>
791
+ </aside>
792
+ *
793
+ * Extend this object into your custom stylesheet.
794
+ *
795
+ */
796
+
797
+ .pull-quote {
798
+ @include pull-quotes($pull-quote-fontsize, $pull-quote-opacity, $pull-quote-color);
799
+ }
800
+
801
+
802
+ // $Styles $Figures
803
+ // -------------------------------------//
804
+ /**
805
+ * Figures Markup
806
+ *
807
+ <figure>
808
+ <figcaption>
809
+ <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>
810
+ </figcaption>
811
+ </figure>
812
+ *
813
+ * Extend this object into your markup.
814
+ *
815
+ */
816
+
817
+
818
+ // $Styles $Footnotes
819
+ // -------------------------------------//
820
+ /**
821
+ * Footnote Markup : Replace 'X' with your unique number for each footnote
822
+ *
823
+ <article>
824
+ <p><sup><a href="#fn-itemX" id="fn-returnX"></a></sup></p>
825
+ <footer>
826
+ <ol class="foot-notes">
827
+ <li id="fn-itemX"><a href="#fn-returnX">↩</a></li>
828
+ </ol>
829
+ </footer>
830
+ </article>
831
+ *
832
+ * Extend this object into your markup.
833
+ *
834
+ */