hyla 1.0.7 → 1.0.8

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 (37) hide show
  1. checksums.yaml +8 -8
  2. data/Rakefile +6 -2
  3. data/bin/hyla +3 -2
  4. data/lib/hyla/commands/generate.rb +43 -41
  5. data/lib/hyla/configuration.rb +1 -1
  6. data/lib/hyla/project.rb +1 -1
  7. data/lib/resources/assets/revealjs-redhat/image/collapsed.png +0 -0
  8. data/lib/resources/assets/revealjs-redhat/image/expanded.png +0 -0
  9. data/lib/resources/assets/revealjs-redhat/lib/css/conference.css +663 -0
  10. data/lib/resources/assets/revealjs-redhat/lib/css/font-awesome-4.3.0.css +2886 -1098
  11. data/lib/resources/assets/revealjs-redhat/lib/css/gpe.css +746 -180
  12. data/lib/resources/assets/revealjs-redhat/lib/css/print/pdf.css +32 -65
  13. data/lib/resources/assets/revealjs-redhat/lib/css/theme-output.css +1509 -395
  14. data/lib/resources/assets/revealjs-redhat/lib/css/theme-v2-liberation.css +4332 -1366
  15. data/lib/resources/assets/revealjs-redhat/lib/css/theme-v2-overpass.css +4320 -1364
  16. data/lib/resources/assets/revealjs-redhat/lib/js/debug/gpe.js +8 -8
  17. data/lib/resources/assets/revealjs-redhat/lib/js/debug/reveal.js +129 -91
  18. data/lib/resources/assets/revealjs-redhat/lib/js/gpe.min.js +3 -3
  19. data/lib/resources/assets/revealjs-redhat/lib/js/reveal.min.js +18 -13
  20. data/lib/resources/assets/revealjs/css/theme/conference-redhat.css +14 -6
  21. data/lib/resources/assets/revealjs/css/theme/old-gpe.css +670 -181
  22. data/lib/resources/assets/revealjs/js/{reveal.js → debug/reveal.js} +1619 -492
  23. data/lib/resources/assets/revealjs/js/reveal.min.js +342 -9
  24. data/lib/resources/assets/revealjs/lib/css/font-awesome-4.3.0.css +2886 -1098
  25. data/lib/resources/assets/sass/conference.scss +589 -0
  26. data/lib/resources/assets/sass/new-gpe.scss +79 -0
  27. data/lib/resources/backends/slim/revealjs-redhat/block_paragraph.html.slim +18 -6
  28. data/lib/resources/backends/slim/revealjs-redhat/block_ulist.html.slim +25 -9
  29. data/lib/resources/backends/slim/revealjs/document.html.slim +1 -1
  30. data/lib/templates/course/audio.txt +2 -2
  31. data/lib/templates/course/cover.txt +19 -7
  32. data/lib/templates/course/footer.txt +1 -3
  33. data/lib/templates/course/index.txt +2 -2
  34. data/lib/templates/course/labinstructions.txt +1 -3
  35. data/lib/templates/course/objectives.txt +1 -12
  36. data/lib/templates/course/summary.txt +1 -8
  37. metadata +7 -3
@@ -0,0 +1,589 @@
1
+ /* $fonts: 'Overpass', 'Liberation Sans', 'Open Sans', sans-serif; */
2
+ $fonts: 'Liberation Sans', 'Overpass', 'Open Sans', sans-serif;
3
+ $red-color: #a70000;
4
+ $scrollbar-height: 600px;
5
+ $footer-bottom: -25%;
6
+ $slides-margin-top: 15px;
7
+
8
+ /*********************************************
9
+ * GLOBAL STYLES
10
+ * Feb 24, ART: added a border to the body, attempting to see how the margin is being used.
11
+ * Feb 24, ART: added a border to the reveal section, attempting to see how the margin is being used.
12
+ *********************************************/
13
+ body {
14
+ font-family: $fonts;
15
+ }
16
+
17
+ .reveal {
18
+ font-family: $fonts;
19
+ font-size: 28px;
20
+ font-weight: normal;
21
+ letter-spacing: -0.02em;
22
+ color: black;
23
+ }
24
+
25
+ ::selection {
26
+ color: white;
27
+ background: rgba(0, 0, 0, 0.99);
28
+ text-shadow: none;
29
+ }
30
+
31
+ /*********************************************
32
+ * HEADERS
33
+ *********************************************/
34
+ .reveal h1,
35
+ .reveal h2,
36
+ .reveal h3,
37
+ .reveal h4,
38
+ .reveal h5,
39
+ .reveal h6 {
40
+ margin: 0 0 20px 0;
41
+ color: #3E4349;
42
+ font-family: $fonts;
43
+ line-height: 0.9em;
44
+ letter-spacing: 0.02em;
45
+ text-transform: none;
46
+ text-shadow: none;
47
+ }
48
+
49
+ /**************************************************************
50
+ * Change color of the cover slide using class sl-block-content
51
+ **************************************************************/
52
+ .reveal .sl-block-content h1,
53
+ .reveal .sl-block-content h2,
54
+ .reveal .sl-block-content h3,
55
+ .reveal .sl-block-content h4,
56
+ .reveal .sl-block-content h5,
57
+ .reveal .sl-block-content h6 {
58
+ color: white;
59
+ }
60
+
61
+ /***************************************************
62
+ * Feb 26, ART: Font Size 2em and width: 900px added
63
+ **************************************************/
64
+ .reveal h1 {
65
+ text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
66
+ font-size: 2em;
67
+ width: 900px;
68
+ }
69
+
70
+ .reveal h2 {
71
+ font-size: 2em;
72
+ }
73
+
74
+ /******************************************
75
+ * Fill screen to 100% & align text on left
76
+ * Feb 26, CHM : Add top: 370px to fill the screen to 100%
77
+ * Mar 24 3015, CHM : Remove top due to cutoff with safari, firefox & add margin-top
78
+ ******************************************/
79
+ .reveal .slides {
80
+ text-align: left;
81
+ /* margin-top: $slides-margin-top; WE don't use it as the value is assigned by Revealjs */
82
+ }
83
+
84
+ /*********************************************
85
+ * ScrollBar
86
+ * Feb 24, ART: Changed the height of the scrollbar from 450 600
87
+ * Feb 24, ART: Changed the padding from 10 20 20 20 to 5 10 10 10
88
+ * Feb 24, ART: Changed the margin from 20px 0 0 to 5px 0 0
89
+ * Mar 02, CHM: Increase height from 600 to 670px
90
+ * Mar 06, CHM: Change overflow from scroll to auto
91
+ *********************************************/
92
+ .scrollbar {
93
+ border: 1px solid #eee;
94
+ height: $scrollbar-height;
95
+ overflow: auto;
96
+ margin: 5px 0 0;
97
+ padding: 5px 10px 10px 10px;
98
+ }
99
+
100
+ /**************************************************************
101
+ * Style used to display the cover picture full screen
102
+ * Add this tag [.cover] before the picture of the cover page
103
+ * Mar 04 2015, CHM: Initial
104
+ **************************************************************/
105
+ .cover {
106
+ position: absolute;
107
+ top: 20px;
108
+ text-align: center;
109
+ }
110
+
111
+ /*********************************************
112
+ * Corporate Logo Header Image
113
+ * Feb 26, CHM: Changed the height from 80px to 0px
114
+ *********************************************/
115
+ .header {
116
+ position: absolute;
117
+ margin: 0 auto;
118
+ left: 0;
119
+ right: 0;
120
+ top: 0;
121
+ height: 0px;
122
+ font-family: $fonts;
123
+ font-size: 20px;
124
+ text-align: center;
125
+ }
126
+
127
+ /*****************************************************
128
+ * Copyright Footer
129
+ * Feb 24, ART: Changed to footer height from 80 to 40
130
+ * Mar 13 2015, CHM : Add footer-cover to override the color for cover slide
131
+ * Mar 24 2015, CHM : Remove hard coded px and use percentages
132
+ ******************************************************/
133
+ .reveal .footer {
134
+ position: absolute;
135
+ margin: 0 auto;
136
+ left: 0;
137
+ right: 0;
138
+ bottom: $footer-bottom;
139
+ height: 80px;
140
+ font-family: $fonts;
141
+ font-size: 14px;
142
+ text-align: center;
143
+ }
144
+
145
+ .reveal .footer-cover {
146
+ position: absolute;
147
+ margin: 0 auto;
148
+ left: 0;
149
+ right: 0;
150
+ bottom: $footer-bottom;
151
+ height: 80px;
152
+ font-family: "Overpass", "Liberation Sans", "Open Sans", sans-serif;
153
+ font-size: 14px;
154
+ text-align: center;
155
+ color: white;
156
+ }
157
+
158
+ /*********************************************
159
+ * LINKS
160
+ *********************************************/
161
+ .reveal a:not(.image) {
162
+ color: $red-color;
163
+ text-decoration: none;
164
+ -webkit-transition: color .15s ease;
165
+ -moz-transition: color .15s ease;
166
+ -ms-transition: color .15s ease;
167
+ -o-transition: color .15s ease;
168
+ transition: color .15s ease;
169
+
170
+ }
171
+
172
+ .reveal a:not(.image):hover {
173
+ color: $red-color;
174
+ text-shadow: none;
175
+ border: none;
176
+ }
177
+
178
+ .reveal .roll span:after {
179
+ color: #fff;
180
+ background: $red-color;
181
+ }
182
+
183
+ /*********************************************
184
+ * IMAGES
185
+ * Mar 13 2015, CHM : Remove the shadow box around the image
186
+ *********************************************/
187
+ .reveal section img {
188
+ margin: 15px 0px;
189
+ -webkit-transition: all .2s linear;
190
+ -moz-transition: all .2s linear;
191
+ -ms-transition: all .2s linear;
192
+ -o-transition: all .2s linear;
193
+ transition: all .2s linear;
194
+ }
195
+
196
+ .reveal a:hover img {
197
+ background: rgba(255, 255, 255, 0.2);
198
+ border-color: $red-color;
199
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
200
+ }
201
+
202
+ /*********************************************
203
+ * NAVIGATION CONTROLS
204
+ *********************************************/
205
+ .reveal .controls div.navigate-left,
206
+ .reveal .controls div.navigate-left.enabled {
207
+ border-right-color: #C1100C;
208
+ }
209
+
210
+ .reveal .controls div.navigate-right,
211
+ .reveal .controls div.navigate-right.enabled {
212
+ border-left-color: #C1100C;
213
+ }
214
+
215
+ .reveal .controls div.navigate-up,
216
+ .reveal .controls div.navigate-up.enabled {
217
+ border-bottom-color: #C1100C;
218
+ }
219
+
220
+ .reveal .controls div.navigate-down,
221
+ .reveal .controls div.navigate-down.enabled {
222
+ border-top-color: #C1100C;
223
+ }
224
+
225
+ .reveal .controls div.navigate-left.enabled:hover {
226
+ border-right-color: #ef6f16;
227
+ }
228
+
229
+ .reveal .controls div.navigate-right.enabled:hover {
230
+ border-left-color: #ef6f16;
231
+ }
232
+
233
+ .reveal .controls div.navigate-up.enabled:hover {
234
+ border-bottom-color: #ef6f16;
235
+ }
236
+
237
+ .reveal .controls div.navigate-down.enabled:hover {
238
+ border-top-color: #ef6f16;
239
+ }
240
+
241
+ /*********************************************
242
+ * PROGRESS BAR
243
+ *********************************************/
244
+ .reveal .progress {
245
+ background: rgba(0, 0, 0, 0.2);
246
+ }
247
+
248
+ .reveal .progress span {
249
+ background: $red-color;
250
+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
251
+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
252
+ -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
253
+ -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
254
+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
255
+ }
256
+
257
+ /*********************************************
258
+ * SLIDE NUMBER
259
+ *********************************************/
260
+ .reveal .slide-number {
261
+ color: darkblue;
262
+ }
263
+
264
+ /*********************************************************************************
265
+ * Trick to avoid to define [square] or [circle] for each item of an unordered list
266
+ * and solve issue that we have here as we have nested lists
267
+ * Feb 27, CHM : Added
268
+ * Mar 04 2015, CHM: Add red colors & square, disc & circle
269
+ * Mar 13 2015, CHM: Change color to black and revert square, disc & circle
270
+ *********************************************************************************/
271
+ /* line 287, ../gpe.scss */
272
+ .reveal ul li p, ul li li p, ul li li p {
273
+ color: black;
274
+ list-style: none;
275
+ }
276
+
277
+ /* line 293, ../gpe.scss */
278
+ .reveal ul li {
279
+ list-style-type: disc;
280
+ color: black;
281
+ }
282
+
283
+ /* line 298, ../gpe.scss */
284
+ .reveal ul li li {
285
+ list-style-type: square;
286
+ color: black;
287
+ }
288
+
289
+ /* line 303, ../gpe.scss */
290
+ .reveal ul li li li {
291
+ list-style-type: circle;
292
+ color: black;
293
+ }
294
+
295
+ /*******************************************************************
296
+ * .reveal i must be override in order to be able to use Asciidoctor and
297
+ * Font Awesome icons for NOTE, WARNING, REMARK, ....
298
+ * Feb, CHM: Added
299
+ *******************************************************************/
300
+ .reveal i.fa {
301
+ font-family: 'FontAwesome';
302
+ font-style: normal;
303
+ font-size: 100%;
304
+ }
305
+
306
+ /*********************************************
307
+ * Support asciidoctor callout
308
+ * Feb 27, CHM: Added
309
+ *********************************************/
310
+ .reveal i.conum {
311
+ display: inline-block;
312
+ color: white !important;
313
+ background-color: $red-color;
314
+ -webkit-border-radius: 100px;
315
+ border-radius: 100px;
316
+ text-align: center;
317
+ width: 25px;
318
+ height: 25px;
319
+ font-size: 14px;
320
+ font-weight: bold;
321
+ line-height: 25px;
322
+ font-style: normal;
323
+ position: relative;
324
+ top: -2px;
325
+ letter-spacing: -2px;
326
+ }
327
+
328
+ .reveal i.conum * {
329
+ color: white !important;
330
+ }
331
+
332
+ .reveal i.conum + b {
333
+ display: none;
334
+ }
335
+
336
+ .reveal i.conum:after {
337
+ content: attr(data-value);
338
+ }
339
+
340
+ .reveal i.conum:not([data-value]):empty {
341
+ display: none;
342
+ }
343
+
344
+ /*******************************************************
345
+ * Asciidoctor Table style rendering
346
+ * Feb 27, CHM: Added & Refactor to display the borders
347
+ * Mar 02, CHM: Add caption to display the Table title with a different style, color
348
+ * Mar 03, CHM: Improve style to be compliant with Redhat styles
349
+ * Mar 06, CHM: Add a noredheader class to avoid to display the first line in red of a table containing images, ..
350
+ ******************************************************/
351
+ table.tableblock, table.tableblock td {
352
+ border-style: none;
353
+ border-color: #F3F4F4;;
354
+ border-width: 0px;
355
+ border-collapse: collapse;
356
+ border-spacing: 0px;
357
+ padding: 5px;
358
+ }
359
+
360
+ table.tableblock > caption {
361
+ line-height: 1.4;
362
+ color: #333333;
363
+ margin-top: 0.2em;
364
+ margin-bottom: 0.5em;
365
+ overflow: visible;
366
+ max-width: 0;
367
+ white-space: nowrap;
368
+ display: table-caption;
369
+ }
370
+
371
+ table.tableblock:not(.noredheader) thead tr, table.tableblock:not(.noredheader) :not(thead) + tbody tr:first-child td {
372
+ background-color: #a70000;
373
+ text-align: left;
374
+ padding: 10px;
375
+ color: white;
376
+ font-size: 24px;
377
+ }
378
+
379
+ table.tableblock.noredheader tr:first-child td {
380
+ /* background-color: #EEEEEE;*/
381
+ }
382
+
383
+ table.tableblock tr:nth-child(even) {
384
+ /* background: white;*/
385
+ }
386
+
387
+ table.tableblock tr:nth-child(odd) {
388
+ /* background-color: #F3F4F4;*/
389
+ }
390
+
391
+ th.tableblock.halign-left, td.tableblock.halign-left {
392
+ text-align: left;
393
+ }
394
+
395
+ th.tableblock.halign-right, td.tableblock.halign-right {
396
+ text-align: right;
397
+ }
398
+
399
+ th.tableblock.halign-center, td.tableblock.halign-center {
400
+ text-align: center;
401
+ }
402
+
403
+ th.tableblock.valign-top, td.tableblock.valign-top {
404
+ vertical-align: top;
405
+ }
406
+
407
+ th.tableblock.valign-bottom, td.tableblock.valign-bottom {
408
+ vertical-align: bottom;
409
+ }
410
+
411
+ th.tableblock.valign-middle, td.tableblock.valign-middle {
412
+ vertical-align: middle;
413
+ }
414
+
415
+ /**************************************************************
416
+ * By default, it is not possible to display text in Bold, ... within <li> tag
417
+ * Here is a trick to support that <strong>text</strong> enclosed in <li> tag & color
418
+ * Feb 27, CHM: Added
419
+ **************************************************************/
420
+ li strong {
421
+ color: $red-color;
422
+ font-weight: bold;
423
+ }
424
+
425
+ /**************************************************************
426
+ * Override Revealjs Pre class
427
+ * Mar 04 2015, CHM : Change width from 90% to 100% and margin to reduce size of the box hightlighted
428
+ *************************************************************/
429
+ .reveal pre {
430
+ width: 100%;
431
+ }
432
+
433
+ .listingblock .content {
434
+ margin-right: 50px;
435
+ padding-right: 50px;
436
+ }
437
+
438
+ /****************
439
+ * Override Revealjs ordered list
440
+ * Mar 06 2015, CHM : Numbers displayed were cut
441
+ * Mar 16 2015, CHM : Change margin left for font overlap otherwise it is cut
442
+ ****************/
443
+ .reveal ol {
444
+ margin-left: 50px;
445
+ }
446
+
447
+ ol.arabic {
448
+ list-style-type: decimal;
449
+ }
450
+
451
+ ol.decimal {
452
+ list-style-type: decimal-leading-zero;
453
+ }
454
+
455
+ ol.loweralpha {
456
+ list-style-type: lower-alpha;
457
+ }
458
+
459
+ ol.upperalpha {
460
+ list-style-type: upper-alpha;
461
+ }
462
+
463
+ ol.lowerroman {
464
+ list-style-type: lower-roman;
465
+ }
466
+
467
+ ol.upperroman {
468
+ list-style-type: upper-roman;
469
+ }
470
+
471
+ ol.lowergreek {
472
+ list-style-type: lower-greek;
473
+ }
474
+
475
+ /**************************************************************
476
+ * Admonition Asciidoctor
477
+ *
478
+ * Mar 03, CHM: Added
479
+ **************************************************************/
480
+ .admonitionblock td.content > .title, .exampleblock > .title, .imageblock > .title, .listingblock > .title, .literalblock > .title, .mathblock > .title, .openblock > .title, .paragraph > .title, .quoteblock > .title, .sidebarblock > .title, .tableblock > .title, .verseblock > .title, .videoblock > .title, .dlist > .title, .olist > .title, .ulist > .title, .qlist > .title, .hdlist > .title {
481
+ text-align: left;
482
+ font-weight: bold;
483
+ }
484
+
485
+ .admonitionblock > table {
486
+ border: 0;
487
+ background: none;
488
+ width: 100%;
489
+ padding: 5px 0px;
490
+ }
491
+
492
+ .admonitionblock > table td.icon {
493
+ text-align: center;
494
+ width: 80px;
495
+ }
496
+
497
+ .admonitionblock > table td.icon img {
498
+ max-width: none;
499
+ }
500
+
501
+ .admonitionblock > table td.icon .title {
502
+ font-weight: bold;
503
+ text-transform: uppercase;
504
+ }
505
+
506
+ .admonitionblock > table td.content {
507
+ padding-left: 1.125em;
508
+ padding-right: 1.25em;
509
+ border-left: 1px solid #dddddd;
510
+ color: #6f6f6f;
511
+ font-size: 20px;
512
+ font-style: normal;
513
+ }
514
+
515
+ /* Override the color for the list */
516
+ .admonitionblock > table td.content ul li, .admonitionblock > table td.content ol li, .admonitionblock > table td.content ol p, .admonitionblock > table td.content ul p {
517
+ color: #6f6f6f;
518
+ }
519
+
520
+ .admonitionblock > table td.content > :last-child > :last-child {
521
+ margin-bottom: 0;
522
+ }
523
+
524
+ .admonitionblock > table td.icon {
525
+ vertical-align: middle;
526
+ }
527
+
528
+ .admonitionblock td.icon [class^="icon-"]:before {
529
+ text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
530
+ cursor: default;
531
+ font-style: normal;
532
+ font-weight: normal;
533
+ font-family: FontAwesome;
534
+ text-decoration: inherit;
535
+ font-size: 46px;
536
+ padding-right: 0.5em;
537
+ position: relative;
538
+ left: 0;
539
+ top: 5px;
540
+ }
541
+
542
+ .admonitionblock td.icon .icon-note:before {
543
+ content: "\f05a";
544
+ color: #005498;
545
+ color: #003f72;
546
+ }
547
+
548
+ .admonitionblock td.icon .icon-tip:before {
549
+ content: "\f0eb";
550
+ text-shadow: 1px 1px 2px rgba(155, 155, 0, 0.8);
551
+ color: #111;
552
+ }
553
+
554
+ /* Use a more yellow lighter color */
555
+ .admonitionblock td.icon .icon-warning:before {
556
+ content: "\f071";
557
+ color: #EFEF0C;
558
+ }
559
+
560
+ .admonitionblock td.icon .icon-caution:before {
561
+ content: "\f06d";
562
+ color: #bf3400;
563
+ }
564
+
565
+ .admonitionblock td.icon .icon-important:before {
566
+ content: "\f06a";
567
+ color: #bf0000;
568
+ }
569
+
570
+ /**************************************************************
571
+ * Audio, pre tag, ...
572
+ * Mar 23 2015, CHM: Added
573
+ * Mar 25 2015, CHM: Change font size to 28px;
574
+ **************************************************************/
575
+ .reveal .audioblock {
576
+ padding: 15px 0px;
577
+ }
578
+
579
+ .reveal p, .reveal ol, .reveal ul, .reveal table, .reveal .colist td {
580
+ font-size: 28px;
581
+ }
582
+
583
+ .reveal pre {
584
+ font-size: 0.55em;
585
+ }
586
+
587
+ .reveal .listingblock {
588
+ padding-bottom: 10px;
589
+ }