middleman-pagegroups 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.
Files changed (56) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/CHANGELOG.md +6 -0
  4. data/Gemfile +18 -0
  5. data/LICENSE.md +22 -0
  6. data/README.md +87 -0
  7. data/Rakefile +10 -0
  8. data/bin/middleman-pagegroups +108 -0
  9. data/documentation_project/.gitignore +25 -0
  10. data/documentation_project/Gemfile +18 -0
  11. data/documentation_project/README.md +13 -0
  12. data/documentation_project/config.rb +109 -0
  13. data/documentation_project/source/documentation/10_concepts.html.md.erb +111 -0
  14. data/documentation_project/source/documentation/20_directory_organization.html.md.erb +85 -0
  15. data/documentation_project/source/documentation/30_frontmatter.html.md.erb +70 -0
  16. data/documentation_project/source/documentation/40_resources.html.md.erb +79 -0
  17. data/documentation_project/source/documentation/50_helpers.html.md.erb +252 -0
  18. data/documentation_project/source/documentation/60_sample_partials.html.md.erb +55 -0
  19. data/documentation_project/source/documentation/70_sample_layouts.html.md.erb +92 -0
  20. data/documentation_project/source/documentation/80_config.html.md.erb +98 -0
  21. data/documentation_project/source/documentation/index.html.md.erb +32 -0
  22. data/documentation_project/source/documentation/ovum.html.md.erb +27 -0
  23. data/documentation_project/source/fonts/font-awesome/FontAwesome.otf +0 -0
  24. data/documentation_project/source/fonts/font-awesome/fontawesome-webfont.eot +0 -0
  25. data/documentation_project/source/fonts/font-awesome/fontawesome-webfont.svg +655 -0
  26. data/documentation_project/source/fonts/font-awesome/fontawesome-webfont.ttf +0 -0
  27. data/documentation_project/source/fonts/font-awesome/fontawesome-webfont.woff +0 -0
  28. data/documentation_project/source/fonts/font-awesome/fontawesome-webfont.woff2 +0 -0
  29. data/documentation_project/source/images/middleman-pagegroups-small.png +0 -0
  30. data/documentation_project/source/images/middleman-pagegroups.png +0 -0
  31. data/documentation_project/source/index.html.md.erb +39 -0
  32. data/documentation_project/source/javascripts/all.js +1 -0
  33. data/documentation_project/source/layouts/layout.haml +11 -0
  34. data/documentation_project/source/layouts/template-logo-large.haml +25 -0
  35. data/documentation_project/source/layouts/template-logo-medium.haml +26 -0
  36. data/documentation_project/source/layouts/template-logo-small.haml +26 -0
  37. data/documentation_project/source/license.html.md.erb +29 -0
  38. data/documentation_project/source/partials/_nav_breadcrumbs.haml +11 -0
  39. data/documentation_project/source/partials/_nav_breadcrumbs_alt.haml +15 -0
  40. data/documentation_project/source/partials/_nav_brethren.haml +18 -0
  41. data/documentation_project/source/partials/_nav_brethren_index.haml +14 -0
  42. data/documentation_project/source/partials/_nav_legitimate_children.haml +16 -0
  43. data/documentation_project/source/partials/_nav_prev_next.haml +21 -0
  44. data/documentation_project/source/partials/_nav_toc_index.haml +21 -0
  45. data/documentation_project/source/stylesheets/_github.scss +61 -0
  46. data/documentation_project/source/stylesheets/_middlemac_minimal.scss +668 -0
  47. data/documentation_project/source/stylesheets/_normalize.scss +374 -0
  48. data/documentation_project/source/stylesheets/breadcrumb-separator-light.png +0 -0
  49. data/documentation_project/source/stylesheets/style.css.scss +3 -0
  50. data/documentation_project/source/toc.html.md.erb +26 -0
  51. data/lib/middleman-pagegroups/extension.rb +431 -0
  52. data/lib/middleman-pagegroups/partials.rb +173 -0
  53. data/lib/middleman-pagegroups/version.rb +5 -0
  54. data/lib/middleman-pagegroups.rb +6 -0
  55. data/middleman-pagegroups.gemspec +26 -0
  56. metadata +140 -0
@@ -0,0 +1,668 @@
1
+ //*****************************************************************************
2
+ // Styles that bring an Apple-like look to your applications' help files.
3
+ //
4
+ // * Used in conjunction with normalize.css to establish sane defaults.
5
+ // * We have *structural* containers and *styling* containers.
6
+ // * There's no such thing as padding and margins on anything unless they're
7
+ // part of a styling container, or inside of a styling container that
8
+ // sets them for them.
9
+ // * Structural containers only have size and position and visibility.
10
+ // * Styling containers set styles for elements inside of them.
11
+ // * This is a "minimal" version of this file intended for very basic
12
+ // support of Gem documentation.
13
+ //*****************************************************************************
14
+
15
+
16
+ @import "font-awesome";
17
+
18
+
19
+ //*************************************
20
+ // Mixins
21
+ //*************************************
22
+
23
+ // Easily include font-awesome icons
24
+ @mixin icon( $type: $fa-var-bug )
25
+ {
26
+ content: $type;
27
+ font-family: 'Fontawesome';
28
+ -webkit-font-smoothing: antialiased;
29
+ -moz-osx-font-smoothing: grayscale;
30
+ }
31
+
32
+ // Easily include backgrounds for multiple browsers, just in case.
33
+ // You might require Compass in your own projects, instead.
34
+ @mixin background( $property )
35
+ {
36
+ background: -o-#{$property};
37
+ background: -moz-#{$property};
38
+ background: -webkit-#{$property};
39
+ background: #{$property};
40
+ }
41
+
42
+
43
+ //*************************************
44
+ // GENERAL STYLES
45
+ //*************************************
46
+
47
+ $interMargins: 1.5ex;
48
+ $linkColor: rgb(99,136,193);
49
+ $strongColor: rgb(75,75,75);
50
+ $standard_border: 1px solid #bfbfbf;
51
+
52
+ *
53
+ {
54
+ margin: 0;
55
+ padding: 0;
56
+ }
57
+
58
+ html
59
+ {
60
+ font-size: 11pt;
61
+ height: 100%;
62
+ }
63
+
64
+ body
65
+ {
66
+ font-family: -apple-system-font, -webkit-system-font, "HelveticaNeue", "Helvetica Neue", "Helvetica", sans-serif;
67
+ height: 100%;
68
+ min-width: 600px;
69
+ }
70
+
71
+ h1
72
+ {
73
+ font-size: 1.7em;
74
+ font-weight: normal;
75
+ }
76
+ h2
77
+ {
78
+ font-size: 1.5em;
79
+ font-weight: normal;
80
+ }
81
+ h3
82
+ {
83
+ font-size: 1.3em;
84
+ font-weight: normal;
85
+ }
86
+
87
+
88
+ p
89
+ {
90
+ font-size: 1.0em;
91
+ line-height: 1.6em;
92
+ }
93
+
94
+
95
+ a
96
+ {
97
+ text-decoration: none;
98
+ font-size: 1.05em;
99
+ color: $linkColor;
100
+
101
+ &:visited
102
+ {
103
+ color: $linkColor;
104
+ }
105
+
106
+ &:hover
107
+ {
108
+ text-decoration: underline;
109
+ }
110
+ }
111
+
112
+ strong
113
+ {
114
+ color: $strongColor;
115
+ }
116
+
117
+ hr
118
+ {
119
+ text-decoration: none;
120
+ border: none;
121
+ border-bottom: $standard_border;
122
+ margin: ($interMargins * 2) 10% ($interMargins * 2) 10%;
123
+ }
124
+
125
+ // "standard" img should always be a block and centered
126
+ // and assume 100% width. Can set max-width to prevent
127
+ // oversized images in another class.
128
+ img
129
+ {
130
+ display: block;
131
+ //width: 100%;
132
+ margin: 0 auto 0 auto;
133
+ }
134
+
135
+
136
+ // "standard" dl only spaces the items. Set the <dl> in
137
+ // a styling container if you want padding or margins.
138
+ dl
139
+ {
140
+ dt code
141
+ {
142
+ font-weight: bold;
143
+ }
144
+
145
+ dd
146
+ {
147
+ margin: 0.8ex 0 0.8ex 3em;
148
+ }
149
+ }
150
+
151
+
152
+ // "standard" ul has no margins or padding, except left margin.
153
+ ul
154
+ {
155
+ list-style: square outside;
156
+ margin-left: 2em;
157
+ }
158
+
159
+
160
+ // "standard" li only spaces the items. Set the <ul> or <ol>
161
+ // in a styling container if you want padding or margins.
162
+ // The default aligns the left of the text with the body
163
+ // left text, meaning the bullets or counters will stick out
164
+ // to the left.
165
+ li
166
+ {
167
+ margin: 0.8ex 0 0.8ex 0;
168
+ }
169
+
170
+
171
+ /* fix for FireFox, apparently */
172
+ li p { display: inline; }
173
+
174
+
175
+ //*************************************
176
+ // tidyoptions dt
177
+ //*************************************
178
+ body.tidyoptions
179
+ {
180
+ dt
181
+ {
182
+ margin-top: $interMargins * 2;
183
+ }
184
+ }
185
+
186
+
187
+ //*************************************
188
+ // related_topics
189
+ //*************************************
190
+ div.related_topics
191
+ {
192
+ ul
193
+ {
194
+ list-style: none;
195
+ margin-left: 1em;
196
+ }
197
+ }
198
+
199
+
200
+ //*************************************
201
+ // table_contents
202
+ //*************************************
203
+ div.table_contents
204
+ {
205
+ dl
206
+ {
207
+ margin: 1em;
208
+ }
209
+ dt
210
+ {
211
+ margin-top: $interMargins * 2;
212
+ }
213
+ }
214
+
215
+ //*************************************
216
+ // yield-content settings
217
+ //*************************************
218
+ div.yield-content
219
+ {
220
+ h1
221
+ {
222
+ margin-bottom: $interMargins;
223
+ }
224
+
225
+ h2,
226
+ h3
227
+ {
228
+ margin-top: ($interMargins / 1);
229
+ margin-bottom: ($interMargins / 2);
230
+ }
231
+ p
232
+ {
233
+ margin-top: ($interMargins / 2);
234
+ margin-bottom: ($interMargins / 2);
235
+ }
236
+ }
237
+
238
+
239
+ //*************************************
240
+ // help_map settings
241
+ //*************************************
242
+ .help_map
243
+ {
244
+ }
245
+
246
+
247
+ //*************************************
248
+ // Breadcrumbs
249
+ //*************************************
250
+ nav#breadcrumbs
251
+ {
252
+ height: 22px;
253
+ width: 100%;
254
+ overflow: hidden;
255
+ position: fixed;
256
+ top: 0;
257
+ border-bottom: 1pt solid #7E7E7E;
258
+ @include background(linear-gradient(top, rgba(224,224,224,1) 0%,rgba(201,201,202,1) 100%));
259
+ z-index: 10;
260
+
261
+ // target the main content div for additional margin.
262
+ & + div
263
+ {
264
+ margin-top: 2em;
265
+ }
266
+
267
+ ul,
268
+ ul li,
269
+ ul li a
270
+ {
271
+ font-size: 11px;
272
+ line-height: 22px;
273
+ height: 22px;
274
+ font-weight: 100;
275
+ margin: 0;
276
+ padding: 0;
277
+ }
278
+
279
+ ul li
280
+ {
281
+ list-style-type: none;
282
+ float: left;
283
+ padding: 0 0 0 10px;
284
+ margin: 0;
285
+
286
+ a
287
+ {
288
+ display: block;
289
+ background: url('breadcrumb-separator-light.png') no-repeat right;
290
+ padding-right: 15px;
291
+ text-decoration: none;
292
+ color: #353535;
293
+ }
294
+
295
+ &:last-child
296
+ {
297
+ color: #555555;
298
+
299
+ a
300
+ {
301
+ background: none;
302
+ cursor: default;
303
+ }
304
+ }
305
+ }
306
+ }
307
+
308
+
309
+ //*************************************
310
+ // Navigation Buttons
311
+ //*************************************
312
+ div.navigate_prev_next
313
+ {
314
+ display: block;
315
+ width: auto;
316
+ margin: $interMargins auto $interMargins auto;
317
+ text-align: center;
318
+ $height: 2.5em;
319
+
320
+ a,
321
+ span
322
+ {
323
+ display: inline-block;
324
+ color: #353535;
325
+ @include background(linear-gradient(top, rgba(224,224,224,1) 0%,rgba(201,201,202,1) 100%));
326
+ border-radius: 2px;
327
+ font-size: 0.8em;
328
+ text-decoration: none;
329
+ font-weight: bold;
330
+ width: 10em;
331
+ height: $height;
332
+ line-height: $height;
333
+
334
+ // space between buttons.
335
+ &:first-child
336
+ {
337
+ margin-right: 1em;
338
+ }
339
+
340
+ &:first-child:before
341
+ {
342
+ @include icon($fa-var-chevron-left);
343
+ font-size: 1.5em;
344
+ margin: 0 0 0 10px;
345
+ float: left;
346
+ color: whitesmoke;
347
+ }
348
+
349
+ &:first-child + a:after,
350
+ &:first-child + span:after
351
+ {
352
+ @include icon($fa-var-chevron-right);
353
+ font-size: 1.5em;
354
+ margin-right: 10px;
355
+ float: right;
356
+ color: whitesmoke;
357
+ }
358
+ }
359
+
360
+ a:hover
361
+ {
362
+ @include background(linear-gradient(top, rgba(211,211,211,1) 0%,rgba(191,191,191,1) 100%));
363
+
364
+ &:before,
365
+ &:after
366
+ {
367
+ color: $linkColor !important; // specificity
368
+ }
369
+ }
370
+
371
+ // override span color, as it's disabled.
372
+ span
373
+ {
374
+ color: #888888;
375
+ @include background(linear-gradient(top, rgba(234,234,234,1) 0%,rgba(244,244,244,1) 100%));
376
+ &:before,
377
+ &:after
378
+ {
379
+ color: #aaaaaa;
380
+ }
381
+ }
382
+
383
+
384
+ }
385
+
386
+
387
+ //*************************************
388
+ // layout-logo-large layout styles
389
+ //*************************************
390
+ div.container-logo-large
391
+ {
392
+ $logo-width: 200pt;
393
+
394
+ position: relative;
395
+ left: 0;
396
+ right: 0;
397
+ width: 100%;
398
+ height: 100%;
399
+
400
+ // left block, template content area.
401
+ > div:first-child
402
+ {
403
+ position: absolute;
404
+ top: 0;
405
+ left: 0;
406
+ width: $logo-width;
407
+ text-align: center;
408
+ font-size: 0.8em;
409
+
410
+ // top of left block, where image,
411
+ // headline, and link all live.
412
+ > div:first-child
413
+ {
414
+ margin-top: 1em;
415
+
416
+ > img
417
+ {
418
+ display: block;
419
+ //width: 80%;
420
+ margin: 0 auto 1em auto;
421
+ }
422
+ }
423
+
424
+ // bottom of left block, for related topics
425
+ > div:first-child + div
426
+ {
427
+ font-size: 0.9em;
428
+ margin: 2em 1em 0 3em;
429
+ text-align: left;
430
+
431
+ h1
432
+ {
433
+ font-size: 1.3em;
434
+ }
435
+ }
436
+ }
437
+
438
+
439
+ // right block, the structure block. We will
440
+ // perform divider styling here, despite my no-styling rule,
441
+ // so that we can ensure it extends to the whole content.
442
+ > div:first-child + div
443
+ {
444
+ margin-left: $logo-width;
445
+ border-left: $standard_border;
446
+ min-height: 100%;
447
+
448
+ // finally the user's block with a nice padding
449
+ > div:first-child
450
+ {
451
+ padding: 2em;
452
+ }
453
+ }
454
+ }
455
+
456
+
457
+ //*************************************
458
+ // layout-logo-medium styles
459
+ //*************************************
460
+ div.container-logo-medium
461
+ {
462
+ $logo-width: 130pt;
463
+
464
+ position: relative;
465
+ left: 0;
466
+ right: 0;
467
+ width: 100%;
468
+ height: 100%;
469
+
470
+ // left block, the structure block. We will
471
+ // perform divider styling here, despite my no-styling rule,
472
+ // so that we can ensure it extends to the whole content.
473
+ > div:first-child
474
+ {
475
+ margin-right: $logo-width;
476
+ border-right: $standard_border;
477
+ min-height: 100%;
478
+
479
+ /* other images in the div, after the first-child */
480
+ img
481
+ {
482
+ margin: $interMargins auto $interMargins auto;
483
+ //width: 100%;
484
+ }
485
+
486
+ /* finally the user's block with a nice padding */
487
+ > div:first-child
488
+ {
489
+ padding: 2em;
490
+ }
491
+ }
492
+
493
+ // right block, template content area.
494
+ > div:first-child + div
495
+ {
496
+ position: absolute;
497
+ top: 0;
498
+ right: 0;
499
+ width: $logo-width;
500
+
501
+ // top of right block, where image lives
502
+ > div:first-child
503
+ {
504
+ padding-top: 1em;
505
+
506
+ > img
507
+ {
508
+ display: block;
509
+ width: 80%;
510
+ margin: 0 auto 1em auto;
511
+ }
512
+ }
513
+
514
+ // bottom of left block, for related topics
515
+ > div:first-child + div
516
+ {
517
+ font-size: 0.8em;
518
+ margin: 2em 1em 0 1em;
519
+ text-align: left;
520
+
521
+ h1
522
+ {
523
+ font-size: 1.3em;
524
+ }
525
+ }
526
+ }
527
+ }
528
+
529
+
530
+ //*************************************
531
+ // layout-logo-small styles
532
+ //*************************************
533
+ div.container-logo-small
534
+ {
535
+ $bannerHeight: 36pt;
536
+ padding: 1em 2em 1em 2em;
537
+
538
+ // banner AND body text
539
+ > div:first-child
540
+ {
541
+ > img:first-child
542
+ {
543
+ height: $bannerHeight;
544
+ width: auto;
545
+ padding: 0 1em 0 0;
546
+ float: left;
547
+
548
+ + h1
549
+ {
550
+ line-height: $bannerHeight;
551
+ margin-bottom: 1ex;
552
+ }
553
+ }
554
+ }
555
+
556
+ // This will be the related topics div
557
+ > div:first-child ~ div
558
+ {
559
+ font-size: 0.8em;
560
+ padding-bottom: 1em;
561
+
562
+ h1
563
+ {
564
+ font-size: 1.3em;
565
+ }
566
+ }
567
+ }
568
+
569
+
570
+ //*************************************
571
+ // Other Block Level Elements
572
+ //*************************************
573
+
574
+ // for displaying source code
575
+ pre
576
+ {
577
+ background-color: #eeeeee;
578
+ display: block;
579
+ margin: 2ex 2em 2ex 2em;
580
+ padding: 1em;
581
+ font-family: Menlo, Courier, monospace;
582
+ white-space: pre; //pre-line;
583
+ word-wrap: normal;
584
+ overflow: auto;
585
+ }
586
+
587
+ code
588
+ {
589
+ white-space: pre;
590
+ word-wrap: normal;
591
+ }
592
+
593
+
594
+ // for highlighting important information
595
+ .note
596
+ {
597
+ margin: 1em;
598
+ padding: 1em;
599
+ background-color: #e6edff;
600
+ border: 1px solid #eaeaea;
601
+ }
602
+
603
+
604
+ // a container for showing things that are done step by step
605
+ div.steps
606
+ {
607
+ margin: 0 0 ($interMargins * 2) 0;
608
+ padding: 1em 2em 1em 2em;
609
+ border: $standard_border;
610
+ border-radius: 10px;
611
+
612
+ ul,
613
+ ol
614
+ {
615
+ margin-left: 2em;
616
+ }
617
+
618
+ ul:first-child,
619
+ ol:first-child
620
+ {
621
+ margin-left: 1em;
622
+ }
623
+ }
624
+
625
+ // indented left and right version of the container
626
+ div.steps.narrow
627
+ {
628
+ margin-left: 3em;
629
+ margin-right: 3em;
630
+ }
631
+
632
+
633
+ // image_article
634
+ div.image_article
635
+ {
636
+ margin-top: $interMargins;
637
+
638
+ > div:first-child
639
+ {
640
+ float: left;
641
+ width: 45%;
642
+ margin: 0 1em 0 0;
643
+
644
+ > img
645
+ {
646
+ margin-top: 0 !important;
647
+ }
648
+ }
649
+
650
+ &.narrow > div:first-child
651
+ {
652
+ width: 10%;
653
+ }
654
+
655
+
656
+ ul,
657
+ ol
658
+ {
659
+ list-style-position:inside;
660
+ }
661
+ }
662
+
663
+ div.image_article:after
664
+ {
665
+ content: "";
666
+ display: table;
667
+ clear: both;
668
+ }