pretty_doc 1.0.0

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.
@@ -0,0 +1,670 @@
1
+ /* normalize-scss 3.0.2+normalize.3.0.2 | MIT/GPLv2 License | bit.ly/normalize-scss */
2
+
3
+
4
+ // Variables and Imports
5
+ //
6
+ // If you have a base partial (or equivalent), you should move these lines to
7
+ // that file. NOTE: Edit the lines to remove "!default".
8
+ // @see http://compass-style.org/help/tutorials/best_practices/
9
+ // =============================================================================
10
+
11
+ // These 3 variables are copies of ones used in Compass' Vertical Rhythm module.
12
+
13
+ // The font size set on the root html element.
14
+ $base-font-size: 16px !default;
15
+
16
+ // The base line height determines the basic unit of vertical rhythm.
17
+ $base-line-height: 24px !default;
18
+
19
+ // The length unit in which to output vertical rhythm values.
20
+ // Supported values: px, em, rem.
21
+ $rhythm-unit: 'em' !default;
22
+
23
+ // Note: This project also makes use of variables from Compass' support
24
+ // module. Documentation for this can be found on the wiki at:
25
+ // https://github.com/JohnAlbin/normalize-scss/wiki
26
+
27
+
28
+ // Set this to true to force CSS output to exactly match normalize.css.
29
+ $strict-normalize: true !default;
30
+
31
+ // The default font family.
32
+ $base-font-family: sans-serif !default;
33
+
34
+ // The font sizes for h1-h6.
35
+ $h1-font-size: 2 * $base-font-size !default;
36
+ $h2-font-size: 1.5 * $base-font-size !default;
37
+ $h3-font-size: 1.17 * $base-font-size !default;
38
+ $h4-font-size: 1 * $base-font-size !default;
39
+ $h5-font-size: 0.83 * $base-font-size !default;
40
+ $h6-font-size: 0.67 * $base-font-size !default;
41
+
42
+ // The amount lists and blockquotes are indented.
43
+ $indent-amount: 40px !default;
44
+
45
+ // After the default variables are set, import the required Compass partials.
46
+ @import "compass/support";
47
+ @import "compass/css3/box-sizing";
48
+ @import "compass/typography/vertical_rhythm";
49
+
50
+
51
+ @if not $strict-normalize or support-legacy-browser(ie, "7") {
52
+ /**
53
+ * Establish a vertical rhythm unit using $base-font-size, $base-line-height,
54
+ * and $rhythm-unit variables. Also, correct text resizing oddly in IE 6/7 when
55
+ * body `font-size` is set using `em` units.
56
+ */
57
+
58
+ @include establish-baseline();
59
+ }
60
+
61
+ /**
62
+ * 1. Set default font family to sans-serif.
63
+ * 2. Prevent iOS text size adjust after orientation change, without disabling
64
+ * user zoom.
65
+ */
66
+
67
+ html {
68
+ font-family: $base-font-family; /* 1 */
69
+ -ms-text-size-adjust: 100%; /* 2 */
70
+ -webkit-text-size-adjust: 100%; /* 2 */
71
+ // Show a background image that can be used to debug your alignments.
72
+ // @include debug-vertical-alignment();
73
+ }
74
+
75
+ /**
76
+ * Remove default margin.
77
+ */
78
+
79
+ body {
80
+ margin: 0;
81
+ }
82
+
83
+ /* HTML5 display definitions
84
+ ========================================================================== */
85
+
86
+ /**
87
+ * Correct `block` display not defined for any HTML5 element in IE 8/9.
88
+ * Correct `block` display not defined for `details` or `summary` in IE 10/11
89
+ * and Firefox.
90
+ * Correct `block` display not defined for `main` in IE 11.
91
+ */
92
+
93
+ article,
94
+ aside,
95
+ details,
96
+ figcaption,
97
+ figure,
98
+ footer,
99
+ header,
100
+ hgroup,
101
+ main,
102
+ menu,
103
+ nav,
104
+ section,
105
+ summary {
106
+ display: block;
107
+ }
108
+
109
+ /**
110
+ * 1. Correct `inline-block` display not defined in IE 8/9.
111
+ * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
112
+ */
113
+
114
+ audio,
115
+ canvas,
116
+ progress,
117
+ video {
118
+ @if support-legacy-browser(ie, "9") {
119
+ display: inline-block; /* 1 */
120
+ @if support-legacy-browser(ie, "7") {
121
+ *display: inline;
122
+ *zoom: 1;
123
+ }
124
+ }
125
+ vertical-align: baseline; /* 2 */
126
+ }
127
+
128
+ /**
129
+ * Prevent modern browsers from displaying `audio` without controls.
130
+ * Remove excess height in iOS 5 devices.
131
+ */
132
+
133
+ audio:not([controls]) {
134
+ display: none;
135
+ height: 0;
136
+ }
137
+
138
+ @if support-legacy-browser(ie, "10") {
139
+ /**
140
+ * Address `[hidden]` styling not present in IE 8/9/10.
141
+ */
142
+
143
+ [hidden] {
144
+ display: none;
145
+ }
146
+ }
147
+
148
+ /**
149
+ * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
150
+ */
151
+
152
+ template {
153
+ display: none;
154
+ }
155
+
156
+ /* Links
157
+ ========================================================================== */
158
+
159
+ @if support-legacy-browser(ie, "10") {
160
+ /**
161
+ * Remove the gray background color from active links in IE 10.
162
+ */
163
+
164
+ a {
165
+ background-color: transparent;
166
+ }
167
+ }
168
+
169
+ /**
170
+ * Improve readability when focused and also mouse hovered in all browsers.
171
+ */
172
+
173
+ a:active,
174
+ a:hover {
175
+ outline: 0;
176
+ }
177
+
178
+ /* Text-level semantics
179
+ ========================================================================== */
180
+
181
+ /**
182
+ * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
183
+ */
184
+
185
+ abbr[title] {
186
+ border-bottom: 1px dotted;
187
+ }
188
+
189
+ /**
190
+ * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
191
+ */
192
+
193
+ b,
194
+ strong {
195
+ font-weight: bold;
196
+ }
197
+
198
+ @if not $strict-normalize or support-legacy-browser(ie, "7") {
199
+ /**
200
+ * Set 1 unit of vertical rhythm on the top and bottom margin.
201
+ */
202
+
203
+ blockquote {
204
+ @include output-rhythm(margin, rhythm(1) $indent-amount);
205
+ }
206
+ }
207
+
208
+ /**
209
+ * Address styling not present in Safari and Chrome.
210
+ */
211
+
212
+ dfn {
213
+ font-style: italic;
214
+ }
215
+
216
+ /**
217
+ * Address variable `h1` font-size and margin within `section` and `article`
218
+ * contexts in Firefox 4+, Safari, and Chrome.
219
+ */
220
+
221
+ h1 {
222
+ /* Set the font-size and line-height while keeping a proper vertical rhythm. */
223
+ @if not $strict-normalize or support-legacy-browser(ie, "7") {
224
+ @include adjust-font-size-to( $h1-font-size );
225
+ }
226
+ @else {
227
+ font-size: if($rhythm-unit == "px", $h1-font-size, ($h1-font-size / $base-font-size)#{$rhythm-unit});
228
+ }
229
+
230
+ /* Set 1 unit of vertical rhythm on the top and bottom margins. */
231
+ @include leader(1, $h1-font-size);
232
+ @include trailer(1, $h1-font-size);
233
+ }
234
+
235
+ @if not $strict-normalize or support-legacy-browser(ie, "7") {
236
+ h2 {
237
+ @include adjust-font-size-to( $h2-font-size );
238
+ @include leader(1, $h2-font-size);
239
+ @include trailer(1, $h2-font-size);
240
+ }
241
+
242
+ h3 {
243
+ @include adjust-font-size-to( $h3-font-size );
244
+ @include leader(1, $h3-font-size);
245
+ @include trailer(1, $h3-font-size);
246
+ }
247
+
248
+ h4 {
249
+ @include adjust-font-size-to( $h4-font-size );
250
+ @include leader(1, $h4-font-size);
251
+ @include trailer(1, $h4-font-size);
252
+ }
253
+
254
+ h5 {
255
+ @include adjust-font-size-to( $h5-font-size );
256
+ @include leader(1, $h5-font-size);
257
+ @include trailer(1, $h5-font-size);
258
+ }
259
+
260
+ h6 {
261
+ @include adjust-font-size-to( $h6-font-size );
262
+ @include leader(1, $h6-font-size);
263
+ @include trailer(1, $h6-font-size);
264
+ }
265
+ }
266
+
267
+ @if support-legacy-browser(ie, "9") {
268
+ /**
269
+ * Address styling not present in IE 8/9.
270
+ */
271
+
272
+ mark {
273
+ background: #ff0;
274
+ color: #000;
275
+ }
276
+ }
277
+
278
+ @if not $strict-normalize or support-legacy-browser(ie, "7") {
279
+ /**
280
+ * Set 1 unit of vertical rhythm on the top and bottom margin.
281
+ */
282
+
283
+ p,
284
+ pre {
285
+ @include output-rhythm(margin, rhythm(1) 0);
286
+ }
287
+ }
288
+
289
+ /**
290
+ * Address inconsistent and variable font size in all browsers.
291
+ */
292
+
293
+ small {
294
+ font-size: 80%;
295
+ }
296
+
297
+ /**
298
+ * Prevent `sub` and `sup` affecting `line-height` in all browsers.
299
+ */
300
+
301
+ sub,
302
+ sup {
303
+ font-size: 75%;
304
+ line-height: 0;
305
+ position: relative;
306
+ vertical-align: baseline;
307
+ }
308
+
309
+ sup {
310
+ top: -0.5em;
311
+ }
312
+
313
+ sub {
314
+ bottom: -0.25em;
315
+ }
316
+
317
+ @if not $strict-normalize or support-legacy-browser(ie, "7") {
318
+ /* Lists
319
+ ========================================================================== */
320
+
321
+ /**
322
+ * Address margins set differently in IE 6/7.
323
+ */
324
+
325
+ dl,
326
+ menu,
327
+ ol,
328
+ ul {
329
+ @include output-rhythm(margin, rhythm(1) 0);
330
+ }
331
+
332
+ @if not $strict-normalize {
333
+ /**
334
+ * Turn off margins on nested lists.
335
+ */
336
+
337
+ ol,
338
+ ul {
339
+ ol,
340
+ ul {
341
+ margin: 0;
342
+ }
343
+ }
344
+ }
345
+
346
+ dd {
347
+ margin: 0 0 0 $indent-amount;
348
+ }
349
+
350
+ /**
351
+ * Address paddings set differently in IE 6/7.
352
+ */
353
+
354
+ menu,
355
+ ol,
356
+ ul {
357
+ padding: 0 0 0 $indent-amount;
358
+ }
359
+ }
360
+
361
+ @if support-legacy-browser(ie, "7") {
362
+ /**
363
+ * Correct list images handled incorrectly in IE 7.
364
+ */
365
+
366
+ nav ul,
367
+ nav ol {
368
+ list-style: none;
369
+ list-style-image: none;
370
+ }
371
+ }
372
+
373
+ /* Embedded content
374
+ ========================================================================== */
375
+
376
+ @if support-legacy-browser(ie, "10") {
377
+ /**
378
+ * Remove border when inside `a` element in IE 8/9/10.
379
+ */
380
+
381
+ img {
382
+ border: 0;
383
+ @if support-legacy-browser(ie, "7") {
384
+ /* Improve image quality when scaled in IE 7. */
385
+ -ms-interpolation-mode: bicubic;
386
+ }
387
+ }
388
+ }
389
+
390
+ /**
391
+ * Correct overflow not hidden in IE 9/10/11.
392
+ */
393
+
394
+ svg:not(:root) {
395
+ overflow: hidden;
396
+ }
397
+
398
+ /* Grouping content
399
+ ========================================================================== */
400
+
401
+ @if support-legacy-browser(ie, "9") or support-legacy-browser(safari, "6") {
402
+ /**
403
+ * Address margin not present in IE 8/9 and Safari.
404
+ */
405
+
406
+ figure {
407
+ @include output-rhythm(margin, rhythm(1) $indent-amount);
408
+ }
409
+ }
410
+
411
+ /**
412
+ * Address differences between Firefox and other browsers.
413
+ */
414
+
415
+ hr {
416
+ @include box-sizing(content-box);
417
+ height: 0;
418
+ }
419
+
420
+ /**
421
+ * Contain overflow in all browsers.
422
+ */
423
+
424
+ pre {
425
+ overflow: auto;
426
+ }
427
+
428
+ /**
429
+ * Address odd `em`-unit font size rendering in all browsers.
430
+ */
431
+
432
+ code,
433
+ kbd,
434
+ pre,
435
+ samp {
436
+ font-family: monospace, monospace;
437
+ @if support-legacy-browser(ie, "6") {
438
+ _font-family: 'courier new', monospace;
439
+ }
440
+ font-size: 1em;
441
+ }
442
+
443
+ /* Forms
444
+ ========================================================================== */
445
+
446
+ /**
447
+ * Known limitation: by default, Chrome and Safari on OS X allow very limited
448
+ * styling of `select`, unless a `border` property is set.
449
+ */
450
+
451
+ @if support-legacy-browser(ie, "7") {
452
+ /**
453
+ * Correct margin displayed oddly in IE 6/7.
454
+ */
455
+
456
+ form {
457
+ margin: 0;
458
+ }
459
+ }
460
+
461
+ /**
462
+ * 1. Correct color not being inherited.
463
+ * Known issue: affects color of disabled elements.
464
+ * 2. Correct font properties not being inherited.
465
+ * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
466
+ * 4. Address `font-family` inconsistency between `textarea` and other form in IE 7
467
+ * 5. Improve appearance and consistency with IE 6/7.
468
+ */
469
+
470
+ button,
471
+ input,
472
+ optgroup,
473
+ select,
474
+ textarea {
475
+ color: inherit; /* 1 */
476
+ font: inherit; /* 2 */
477
+ margin: 0; /* 3 */
478
+ @if support-legacy-browser(ie, "7") {
479
+ *font-family: $base-font-family; /* 4 */
480
+ *vertical-align: middle; /* 5 */
481
+ }
482
+ }
483
+
484
+ /**
485
+ * Address `overflow` set to `hidden` in IE 8/9/10/11.
486
+ */
487
+
488
+ button {
489
+ overflow: visible;
490
+ }
491
+
492
+ /**
493
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
494
+ * All other form control elements do not inherit `text-transform` values.
495
+ * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
496
+ * Correct `select` style inheritance in Firefox.
497
+ */
498
+
499
+ button,
500
+ select {
501
+ text-transform: none;
502
+ }
503
+
504
+ /**
505
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
506
+ * and `video` controls.
507
+ * 2. Correct inability to style clickable `input` types in iOS.
508
+ * 3. Improve usability and consistency of cursor style between image-type
509
+ * `input` and others.
510
+ * 4. Remove inner spacing in IE 7 without affecting normal text inputs.
511
+ * Known issue: inner spacing remains in IE 6.
512
+ */
513
+
514
+ button,
515
+ html input[type="button"], /* 1 */
516
+ input[type="reset"],
517
+ input[type="submit"] {
518
+ -webkit-appearance: button; /* 2 */
519
+ cursor: pointer; /* 3 */
520
+ @if support-legacy-browser(ie, "7") {
521
+ *overflow: visible; /* 4 */
522
+ }
523
+ }
524
+
525
+ /**
526
+ * Re-set default cursor for disabled elements.
527
+ */
528
+
529
+ button[disabled],
530
+ html input[disabled] {
531
+ cursor: default;
532
+ }
533
+
534
+ /**
535
+ * Remove inner padding and border in Firefox 4+.
536
+ */
537
+
538
+ button::-moz-focus-inner,
539
+ input::-moz-focus-inner {
540
+ border: 0;
541
+ padding: 0;
542
+ }
543
+
544
+ /**
545
+ * Address Firefox 4+ setting `line-height` on `input` using `!important` in
546
+ * the UA stylesheet.
547
+ */
548
+
549
+ input {
550
+ line-height: normal;
551
+ }
552
+
553
+ @if support-legacy-browser(ie, "10") {
554
+ /**
555
+ * It's recommended that you don't attempt to style these elements.
556
+ * Firefox's implementation doesn't respect box-sizing, padding, or width.
557
+ *
558
+ * 1. Address box sizing set to `content-box` in IE 8/9/10.
559
+ * 2. Remove excess padding in IE 8/9/10.
560
+ * 3. Remove excess padding in IE 7.
561
+ * Known issue: excess padding remains in IE 6.
562
+ */
563
+
564
+ input[type="checkbox"],
565
+ input[type="radio"] {
566
+ @include box-sizing(border-box); /* 1 */
567
+ padding: 0; /* 2 */
568
+ @if support-legacy-browser(ie, "7") {
569
+ *height: 13px; /* 3 */
570
+ *width: 13px; /* 3 */
571
+ }
572
+ }
573
+ }
574
+
575
+ /**
576
+ * Fix the cursor style for Chrome's increment/decrement buttons. For certain
577
+ * `font-size` values of the `input`, it causes the cursor style of the
578
+ * decrement button to change from `default` to `text`.
579
+ */
580
+
581
+ input[type="number"]::-webkit-inner-spin-button,
582
+ input[type="number"]::-webkit-outer-spin-button {
583
+ height: auto;
584
+ }
585
+
586
+ /**
587
+ * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
588
+ * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
589
+ * (include `-moz` to future-proof).
590
+ */
591
+
592
+ input[type="search"] {
593
+ -webkit-appearance: textfield; /* 1 */
594
+ @include box-sizing(content-box); /* 2 */
595
+
596
+ /**
597
+ * Remove inner padding and search cancel button in Safari and Chrome on OS X.
598
+ * Safari (but not Chrome) clips the cancel button when the search input has
599
+ * padding (and `textfield` appearance).
600
+ */
601
+
602
+ &::-webkit-search-cancel-button,
603
+ &::-webkit-search-decoration {
604
+ -webkit-appearance: none;
605
+ }
606
+ }
607
+
608
+ /**
609
+ * Define consistent border, margin, and padding.
610
+ */
611
+
612
+ fieldset {
613
+ margin: 0 2px;
614
+ /* Apply borders and padding that keep the vertical rhythm. */
615
+ border-color: #c0c0c0;
616
+ @include apply-side-rhythm-border(top, $width: 1px, $lines: 0.35 );
617
+ @include apply-side-rhythm-border(bottom, $width: 1px, $lines: 0.65 );
618
+ @include apply-side-rhythm-border(left, $width: 1px, $lines: 0.625);
619
+ @include apply-side-rhythm-border(right, $width: 1px, $lines: 0.625);
620
+ }
621
+
622
+ /**
623
+ * 1. Correct `color` not being inherited in IE 8/9/10/11.
624
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
625
+ * 3. Correct alignment displayed oddly in IE 6/7.
626
+ */
627
+
628
+ legend {
629
+ @if support-legacy-browser(ie, "11") {
630
+ border: 0; /* 1 */
631
+ }
632
+ padding: 0; /* 2 */
633
+ @if support-legacy-browser(ie, "7") {
634
+ *margin-left: -7px; /* 3 */
635
+ }
636
+ }
637
+
638
+ /**
639
+ * Remove default vertical scrollbar in IE 8/9/10/11.
640
+ */
641
+
642
+ textarea {
643
+ overflow: auto;
644
+ }
645
+
646
+ /**
647
+ * Don't inherit the `font-weight` (applied by a rule above).
648
+ * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
649
+ */
650
+
651
+ optgroup {
652
+ font-weight: bold;
653
+ }
654
+
655
+ /* Tables
656
+ ========================================================================== */
657
+
658
+ /**
659
+ * Remove most spacing between table cells.
660
+ */
661
+
662
+ table {
663
+ border-collapse: collapse;
664
+ border-spacing: 0;
665
+ }
666
+
667
+ td,
668
+ th {
669
+ padding: 0;
670
+ }
@@ -0,0 +1,8 @@
1
+ # Default Template
2
+ class DefaultTemplate < PrettyDoc::Template
3
+ def initialize
4
+ self.dir = Pathname.new(__FILE__).dirname
5
+ end
6
+ end
7
+
8
+ PrettyDoc::Template.register('default', DefaultTemplate.new)