hyla 1.0.6 → 1.0.7.pre.1

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 (36) hide show
  1. checksums.yaml +8 -8
  2. data/README.adoc +7 -0
  3. data/lib/hyla/commands/generate.rb +288 -83
  4. data/lib/hyla/configuration.rb +62 -42
  5. data/lib/hyla/project.rb +1 -1
  6. data/lib/resources/backends/haml/deckjs/document.html.haml +2 -2
  7. data/lib/resources/backends/haml/html5/document.html.haml +2 -2
  8. data/lib/resources/backends/slim/html5/document.html.slim +2 -2
  9. data/lib/resources/backends/slim/revealjs/block_sidebar.html.slim +1 -1
  10. data/lib/resources/backends/slim/revealjs/document.html.slim +2 -2
  11. data/lib/resources/course/assessment.txt +7 -0
  12. data/lib/resources/course/audio.txt +3 -0
  13. data/lib/resources/course/cover.txt +13 -0
  14. data/lib/resources/course/footer.txt +10 -0
  15. data/lib/resources/course/header_index.txt +1 -0
  16. data/lib/resources/course/index.txt +3 -0
  17. data/lib/resources/course/labinstructions.txt +26 -0
  18. data/lib/resources/course/objectives.txt +28 -0
  19. data/lib/resources/course/summary.txt +27 -0
  20. data/lib/resources/cover.slim +1 -1
  21. data/lib/resources/revealjs/css/theme/conference-redhat.css +369 -61
  22. data/lib/resources/revealjs/css/theme/conference.css +179 -15
  23. data/lib/resources/revealjs/css/theme/gpe.css +362 -53
  24. data/lib/templates/_config.yaml +26 -2
  25. data/lib/templates/sample/{asciidoc_article.ad → asciidoc_article.adoc} +0 -0
  26. data/lib/templates/sample/{asciidoc_audio.ad → asciidoc_audio.adoc} +0 -0
  27. data/lib/templates/sample/{asciidoc_book.ad → asciidoc_book.adoc} +0 -0
  28. data/lib/templates/sample/{asciidoc_image.ad → asciidoc_image.adoc} +0 -0
  29. data/lib/templates/sample/{asciidoc_report.ad → asciidoc_report.adoc} +0 -0
  30. data/lib/templates/sample/{asciidoc_source.ad → asciidoc_source.adoc} +0 -0
  31. data/lib/templates/sample/{asciidoc_table.ad → asciidoc_table.adoc} +0 -0
  32. data/lib/templates/sample/{asciidoc_video.ad → asciidoc_video.adoc} +0 -0
  33. data/lib/templates/sample/{slideshow_deckjs.ad → slideshow_deckjs.adoc} +0 -0
  34. data/lib/templates/sample/{slideshow_revealjs.ad → slideshow_revealjs.adoc} +31 -0
  35. data/lib/templates/training-exercises/{README.ad → README.adoc} +0 -0
  36. metadata +24 -15
@@ -27,7 +27,6 @@ module Hyla
27
27
  },
28
28
  'safe' => 'unsafe',
29
29
  'header_footer' => true
30
-
31
30
  }
32
31
 
33
32
  #
@@ -46,20 +45,23 @@ module Hyla
46
45
 
47
46
  INDEX_SUFFIX = '_AllSlides.txt'
48
47
 
48
+ INDEX_FILE = 'AllSlides.txt'
49
+
49
50
  SNIPPET_TAG = 'snippet'
50
51
 
51
- HEADER = ":data-uri:\n" +
52
- ":icons: font\n" +
53
- ":last-update-label!:\n" +
54
- ":source-highlighter: coderay\n"
55
52
 
56
- HEADER_INDEX = ":data-uri:\n" +
57
- ":navigation: # navigation attribute used for DeckJS Slideshow\n" +
58
- ":menu: # navigation attribute used for DeckJS Slideshow\n" +
59
- ":status: # navigation attribute used for DeckJS Slideshow\n" +
60
- ":goto: # navigation attribute used for DeckJS Slideshow\n" +
61
- ":notitle: \n" +
62
- ":toc: left # Comment or uncomment this attribute if you don't need to display left part of the HTML page a table of content\n"
53
+ # OLD HEADER_TXT used with hyla < 1.0.7
54
+ # HEADER_TXT = ":data-uri:\n" +
55
+ # ":icons: font\n" +
56
+ # ":last-update-label!:\n" +
57
+ # ":source-highlighter: coderay\n"
58
+ #
59
+ # HEADER_TXT = "ifndef::local[]\n" +
60
+ # ":imagesdir: ../image/\n" +
61
+ # "endif::[]\n"
62
+
63
+
64
+ HEADER_TXT = "// Asciidoctor attributes\n"
63
65
 
64
66
  LEVEL_1 = '= '
65
67
 
@@ -67,24 +69,11 @@ module Hyla
67
69
 
68
70
  SKIP_CHARACTERS = '>>'
69
71
 
70
- ADOC_EXT = '.ad'
72
+ #ADOC_EXT = '.ad'
73
+ ADOC_EXT = '.adoc'
71
74
 
72
75
  PREFIX_ARTEFACT = 'asciidoc_'
73
76
 
74
- TEMPLATES = '../../lib/templates'
75
-
76
- RESOURCES = '../../lib/resources'
77
-
78
- SAMPLES = '../../lib/templates/sample'
79
-
80
- STYLES = '../../lib/resources/styles'
81
-
82
- FONTS = '../../lib/resources/fonts'
83
-
84
- BACKENDS = '../../lib/resources/backends'
85
-
86
- COVER_TEMPLATE = '../../lib/resources/cover.slim'
87
-
88
77
  YAML_CONFIG_FILE_NAME = '_config.yaml'
89
78
 
90
79
  #
@@ -146,7 +135,6 @@ module Hyla
146
135
  # Returns the final configuration Hash.
147
136
  def self.parse(override)
148
137
 
149
-
150
138
  # Extract Asciidoctor attributes received from hyla command line '-a key=value,key=value'
151
139
  # Convert them to a Hash of attributes 'attributes' => { 'backend' => html5 ... }
152
140
  # Assign hash to override[:attributes]
@@ -205,6 +193,21 @@ module Hyla
205
193
  YAML.safe_load_file(filename)
206
194
  end
207
195
 
196
+ #
197
+ # Retrieve asciidoctor attributes
198
+ # Could be an Arrays of Strings key=value,key=value
199
+ # or
200
+ # Could be a Hash (DEFAULTS, CONFIG_File)
201
+ def self.extract_attributes(attributes)
202
+ result = attributes.split(',')
203
+ attributes = Hash.new
204
+ result.each do |entry|
205
+ words = entry.split('=')
206
+ attributes[words[0]] = words[1]
207
+ end
208
+ return attributes
209
+ end
210
+
208
211
  # Public: Turn all keys into string
209
212
  #
210
213
  # Return a copy of the hash where all its keys are strings
@@ -239,20 +242,37 @@ module Hyla
239
242
  }
240
243
  end
241
244
 
242
- #
243
- # Retrieve asciidoctor attributes
244
- # Could be an Arrays of Strings key=value,key=value
245
- # or
246
- # Could be a Hash (DEFAULTS, CONFIG_File)
247
- def self.extract_attributes(attributes)
248
- result = attributes.split(',')
249
- attributes = Hash.new
250
- result.each do |entry|
251
- words = entry.split('=')
252
- attributes[words[0]] = words[1]
253
- end
254
- return attributes
255
- end
245
+ TEMPLATES = '../../lib/templates'
246
+
247
+ RESOURCES = '../../lib/resources'
248
+
249
+ SAMPLES = '../../lib/templates/sample'
250
+
251
+ STYLES = '../../lib/resources/styles'
252
+
253
+ FONTS = '../../lib/resources/fonts'
254
+
255
+ BACKENDS = '../../lib/resources/backends'
256
+
257
+ COVER_TEMPLATE = '../../lib/resources/cover.slim'
258
+
259
+ ASSESSMENT_TXT = File.open(self.resources + '/course/assessment.txt','r').read
260
+
261
+ LABS_TXT = File.open(self.resources + '/course/labinstructions.txt','r').read
262
+
263
+ INDEX = File.open(self.resources + '/course/index.txt','r').read
264
+
265
+ HEADER_INDEX = File.open(self.resources + '/course/header_index.txt','r').read
266
+
267
+ FOOTER_TXT = File.open(self.resources + '/course/footer.txt','r').read
268
+
269
+ COVER_TXT = File.open(self.resources + '/course/cover.txt','r').read
270
+
271
+ OBJECTIVES_TXT = File.open(self.resources + '/course/objectives.txt','r').read
272
+
273
+ SUMMARY_TXT = File.open(self.resources + '/course/summary.txt','r').read
274
+
275
+ AUDIO_TXT = File.open(self.resources + '/course/audio.txt','r').read
256
276
 
257
277
  end # Class Configuration
258
278
  end # module Hyla
data/lib/hyla/project.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Hyla
2
- VERSION = '1.0.6'
2
+ VERSION = '1.0.7.pre.1'
3
3
  DESCRIPTION = 'Asciidoctor Hyla - Command Line tool to create new project, watch modifications, generate content, publish or consult it live !'
4
4
  SUMMARY = 'Asciidoctor Hyla - builder/generator of HTML5, slideshow. Watch modifications, generate content, publish or consult it live !'
5
5
  end
@@ -25,8 +25,8 @@
25
25
  - else
26
26
  %style=Asciidoctor::HTML5.pygments_stylesheet(attr 'pygments-style')
27
27
  - when 'highlightjs'
28
- %link(rel='stylesheet' href="#{attr :highlightjsdir, 'http://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3'}/styles/#{attr 'highlightjs-theme', 'default'}.min.css")
29
- %script(src="#{attr :highlightjsdir, 'http://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3'}/highlight.min.js")
28
+ %link(rel='stylesheet' href="#{attr :highlightjsdir, 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4'}/styles/#{attr 'highlightjs-theme', 'default'}.min.css")
29
+ %script(src="#{attr :highlightjsdir, 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4'}/highlight.min.js")
30
30
  %script hljs.initHighlightingOnLoad()
31
31
  - when 'prettify'
32
32
  %link(rel='stylesheet' href="#{attr :prettifydir, 'http://cdnjs.cloudflare.com/ajax/libs/prettify/r298'}/#{attr 'prettify-theme', 'prettify'}.min.css")
@@ -37,8 +37,8 @@
37
37
  - else
38
38
  %style=Asciidoctor::HTML5.pygments_stylesheet(attr 'pygments-style')
39
39
  - when 'highlightjs'
40
- %link(rel='stylesheet' href="#{attr :highlightjsdir, 'http://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3'}/styles/#{attr 'highlightjs-theme', 'default'}.min.css")
41
- %script(src="#{attr :highlightjsdir, 'http://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3'}/highlight.min.js")
40
+ %link(rel='stylesheet' href="#{attr :highlightjsdir, 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4'}/styles/#{attr 'highlightjs-theme', 'default'}.min.css")
41
+ %script(src="#{attr :highlightjsdir, 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4'}/highlight.min.js")
42
42
  %script hljs.initHighlightingOnLoad()
43
43
  - when 'prettify'
44
44
  %link(rel='stylesheet' href="#{attr :prettifydir, 'http://cdnjs.cloudflare.com/ajax/libs/prettify/r298'}/#{attr 'prettify-theme', 'prettify'}.min.css")
@@ -37,8 +37,8 @@ html lang=(attr :lang, 'en' unless attr? :nolang)
37
37
  - else
38
38
  style=Asciidoctor::HTML5.pygments_stylesheet(attr 'pygments-style')
39
39
  - when 'highlightjs'
40
- link rel='stylesheet' href="#{attr :highlightjsdir, 'http://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3'}/styles/#{attr 'highlightjs-theme', 'googlecode'}.min.css"
41
- script src="#{attr :highlightjsdir, 'http://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3'}/highlight.min.js"
40
+ link rel='stylesheet' href="#{attr :highlightjsdir, 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4'}/styles/#{attr 'highlightjs-theme', 'googlecode'}.min.css"
41
+ script src="#{attr :highlightjsdir, 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4'}/highlight.min.js"
42
42
  script hljs.initHighlightingOnLoad()
43
43
  - when 'prettify'
44
44
  link rel='stylesheet' href="#{attr :prettifydir, 'http://cdnjs.cloudflare.com/ajax/libs/prettify/r298'}/#{attr 'prettify-theme', 'prettify'}.min.css"
@@ -1,4 +1,4 @@
1
- aside id=@id class='notes'
1
+ aside id=@id class=role
2
2
  - if title?
3
3
  .title=title
4
4
  =content
@@ -47,8 +47,8 @@ html lang=(attr :lang, 'en' unless attr? :nolang)
47
47
  - else
48
48
  style=Asciidoctor::HTML5.pygments_stylesheet(attr 'pygments-style')
49
49
  - when 'highlightjs'
50
- link rel='stylesheet' href="#{attr :highlightjsdir, 'http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.0'}/styles/#{attr 'highlightjs-theme', 'default'}.min.css"
51
- script src="#{attr :highlightjsdir, 'http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.0'}/highlight.min.js"
50
+ link rel='stylesheet' href="#{attr :highlightjsdir, 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4'}/styles/#{attr 'highlightjs-theme', 'default'}.min.css"
51
+ script src="#{attr :highlightjsdir, 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4'}/highlight.min.js"
52
52
  script hljs.initHighlightingOnLoad()
53
53
  - when 'prettify'
54
54
  link rel='stylesheet' href="#{attr :prettifydir, 'http://cdnjs.cloudflare.com/ajax/libs/prettify/r298'}/#{attr 'prettify-theme', 'prettify'}.min.css"
@@ -0,0 +1,7 @@
1
+ QUESTIONBANKCODE|QUESTIONCODE|QUESTIONTYPE|QUESTIONTEXT|QUESTIONTEXTFORMAT|QUESTIONFEEDBACK|OPTION|RIGHTOPTION|OPTIONFEEDBACK|ISCORRECT|OPTIONWEIGHT|ISCASESENSITIVE|RANDOMIZEOPTIONS|STATUS
2
+ OPENTEST|OPENTEST0101|1|Which of the following is not a Red Hat JBoss supported product?|||JBoss BPM Suite|||0|0|||
3
+ OPENTEST|OPENTEST0101|1|Which of the following is not a Red Hat JBoss supported product?|||JBoss Enterprise Application Platform|||0|0|||
4
+ OPENTEST|OPENTEST0101|1|Which of the following is not a Red Hat JBoss supported product?|||Hibernate|||1|100|||
5
+ OPENTEST|OPENTEST0101|1|Which of the following is not a Red Hat JBoss supported product?|||JBoss Data Grid|||0|0|||
6
+ OPENTEST|OPENTEST0102|5|The Red Hat Global Partner Enablement Team is cool?|||TRUE|||1|100|||
7
+ OPENTEST|OPENTEST0102|5|The Red Hat Global Partner Enablement Team is cool?|||FALSE|||0|0|||
@@ -0,0 +1,3 @@
1
+ ifdef::audioscript[]
2
+ audio::audio/xxx.mp3[]
3
+ endif::[]
@@ -0,0 +1,13 @@
1
+ :noheader: true
2
+
3
+ // No title should be displayed for Slideshow presentation as the cover picture already content the text
4
+ ifdef::slideshow[]
5
+ == &nbsp;
6
+ endif::[]
7
+
8
+ ifndef::slideshow[]
9
+ == Cover
10
+ endif::[]
11
+
12
+ [.cover]
13
+ image::image/xxx.png[]
@@ -0,0 +1,10 @@
1
+ ifdef::showscript[]
2
+ [.notes]
3
+ ****
4
+ //tag::snippet[]
5
+
6
+ == TITLE
7
+
8
+ //end::snippet[]
9
+ ****
10
+ endif::[]
@@ -0,0 +1 @@
1
+ :toc: left
@@ -0,0 +1,3 @@
1
+ ifndef::slideshow[]
2
+ == xxx
3
+ endif::[]
@@ -0,0 +1,26 @@
1
+ :numbered:
2
+ == MODULE NAME Lab
3
+
4
+ .Goals
5
+ After completing this lab, you should understand the following XXX key concepts:
6
+
7
+ * Concept 1
8
+ * Concept 2
9
+ * Concept n
10
+
11
+ .Lab Assets
12
+ The lab exercises and solutions are available in the following zip archives:
13
+
14
+ * link:lab_assets.zip[]
15
+ * link:lab_assets_solution.zip[]
16
+
17
+ ...
18
+
19
+ ifdef::showscript[]
20
+ [.notes]
21
+ ****
22
+ //tag::snippet[]
23
+
24
+ //end::snippet[]
25
+ ****
26
+ endif::[]
@@ -0,0 +1,28 @@
1
+
2
+ == Module Topics
3
+
4
+ ifdef::audioscript[]
5
+ audio::audio/xxx.mp3[]
6
+ endif::[]
7
+
8
+ By completing this module you will learn about the following topics:
9
+
10
+ * Item 1
11
+ * Item 2
12
+
13
+ ifdef::showscript[]
14
+ [.notes]
15
+ ****
16
+ //tag::snippet[]
17
+
18
+ == Module Topics
19
+
20
+ ifdef::audioscript[]
21
+ audio::audio/xxx.mp3[]
22
+ endif::[]
23
+
24
+ * This module introduces ...
25
+
26
+ //end::snippet[]
27
+ ****
28
+ endif::[]
@@ -0,0 +1,27 @@
1
+
2
+ == Summary
3
+
4
+ ifdef::includeaudio[]
5
+ audio::audio/xxx.mp3[]
6
+ endif::[]
7
+
8
+ This module introduced you to the following topics:
9
+
10
+ ** Item 1
11
+ ** Item 2
12
+ ** Item 3
13
+
14
+ ifdef::showscript[]
15
+ [.notes]
16
+ ****
17
+ //tag::snippet[]
18
+
19
+ == Summary
20
+
21
+ This module addressed questions about ...
22
+
23
+ //end::snippet[]
24
+ ****
25
+ endif::[]
26
+
27
+
@@ -1,7 +1,7 @@
1
1
  doctype html
2
2
  html
3
3
  head
4
- title Cove page generated by Hyla
4
+ title Cover page generated by Hyla
5
5
  body
6
6
  css:
7
7
  body {
@@ -1,20 +1,92 @@
1
- /********************************************
2
- * FONTS
1
+ /*********************************************
2
+ *
3
+ * RedHat Conference Theme customized from GPE & RevealJS
4
+ *
5
+ *********************************************/
6
+
7
+ /*********************************************
8
+ * LIBERATION FONTS
3
9
  *********************************************/
4
10
  @font-face {
5
11
  font-family: 'liberation';
6
- src: url(../../lib/font/liberation_sans-regular.ttf) format('truetype');
12
+ src: url("../../lib/font/liberation_sans-regular.ttf") format('truetype');
7
13
  font-weight: normal;
8
14
  font-style: normal;
9
15
  }
10
16
 
11
- /**
12
- * RedHat GPE Conference theme
13
- */
17
+ @font-face {
18
+ font-family: 'liberation';
19
+ src: url("../../lib/font/liberation_sans-bold.ttf") format('truetype');
20
+ font-weight: bold;
21
+ font-style: normal;
22
+ }
23
+
24
+ @font-face {
25
+ font-family: 'liberation';
26
+ src: url("../../lib/font/liberation_sans-bolditalic.ttf") format('truetype');
27
+ font-weight: bold;
28
+ font-style: italic;
29
+ }
30
+
31
+ @font-face {
32
+ font-family: 'liberation';
33
+ src: url("../../lib/font/liberation_sans-italic.ttf") format('truetype');
34
+ font-weight: normal;
35
+ font-style: italic;
36
+ }
14
37
 
15
38
  /*********************************************
16
- * GLOBAL STYLES
39
+ * ScrollBar
40
+ * Feb 24, ART: Changed the height of the scrollbar from 450 600
41
+ * Feb 24, ART: Changed the padding from 10 20 20 20 to 5 10 10 10
42
+ * Feb 24, ART: Changed the margin from 20px 0 0 to 5px 0 0
43
+ *********************************************/
44
+ .scrollbar {
45
+ border: 1px solid #eee;
46
+ height: 600px;
47
+ overflow: scroll;
48
+ margin: 5px 0 0;
49
+ padding: 5px 10px 10px 10px;
50
+ }
51
+
52
+ /*********************************************
53
+ * Corporate Logo Header Image
54
+ * Feb 26, CHM: Changed the height from 80px to 0px
55
+ *********************************************/
56
+ .header {
57
+ position: absolute;
58
+ margin: 0 auto;
59
+ left: 0;
60
+ right: 0;
61
+ top: 0;
62
+ height: 0px;
63
+ font-family: 'liberation';
64
+ font-size: 20px;
65
+ text-align: center;
66
+ }
67
+
68
+ /*********************************************
69
+ * Copyright Footer
70
+ * Feb 24, ART: Changed to footer height from 80 to 40
17
71
  *********************************************/
72
+ .footer {
73
+ position: absolute;
74
+ margin: 0 auto;
75
+ left: 0;
76
+ right: 0;
77
+ bottom: 0;
78
+ height: 40px;
79
+ font-family: 'liberation';
80
+ font-size: 20px;
81
+ text-align: center;
82
+ }
83
+
84
+ /*********************************************
85
+ * GLOBAL STYLES
86
+ * Feb 24, ART: added a border to the body, attempting to see how the margin is being used.
87
+ * Feb 24, ART: added a border to the reveal section, attempting to see how the margin is being used.
88
+ * Feb 26, CHM : Reduce font-size from 32px to 30px
89
+ *********************************************/
18
90
  body {
19
91
  background: white;
20
92
  background-color: white;
@@ -22,16 +94,16 @@ body {
22
94
 
23
95
  .reveal {
24
96
  font-family: 'liberation';
25
- font-size: 32px;
97
+ font-size: 28px;
26
98
  font-weight: normal;
27
99
  letter-spacing: -0.02em;
28
100
  /* Color used within paragraphs - text */
29
101
  color: #4E4E4E;
30
102
  }
31
103
 
32
- /*.reveal .slides {
104
+ .reveal .slides {
33
105
  margin-top: 80px;
34
- }*/
106
+ }
35
107
 
36
108
  .reveal section {
37
109
  text-align: left;
@@ -63,10 +135,6 @@ body {
63
135
  text-align: left;
64
136
  }
65
137
 
66
- /*.reveal h1 {
67
- text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
68
- }*/
69
-
70
138
  .reveal h2 {
71
139
  font-size: 2em;
72
140
  }
@@ -169,16 +237,13 @@ body {
169
237
  .reveal .slide-number {
170
238
  color: darkblue; }
171
239
 
172
- /***********************************************
173
- * Modified for RedHat Style
174
- ***********************************************/
175
-
176
240
  /*********************************************
177
241
  * ScrollBar
242
+ * Feb 26, CHM : Increase height from 450 to 480px
178
243
  *********************************************/
179
244
  .scrollbar {
180
245
  border: 1px solid #eee;
181
- height: 450px;
246
+ height: 480px;
182
247
  overflow: scroll;
183
248
  margin: 20px 0 0;
184
249
  padding: 10px 20px 20px 20px;
@@ -186,6 +251,7 @@ body {
186
251
 
187
252
  /*********************************************
188
253
  * Corporate Logo Header Image
254
+ * Feb 26, CHM : Changed text-align right to center
189
255
  *********************************************/
190
256
  .header {
191
257
  position: absolute;
@@ -199,45 +265,137 @@ body {
199
265
  text-align: right;
200
266
  }
201
267
 
268
+ /*********************************************
269
+ * Copyright Footer
270
+ *********************************************/
271
+ .footer {
272
+ position: absolute;
273
+ margin: 0 auto;
274
+ left: 0;
275
+ right: 0;
276
+ bottom: 0;
277
+ height: 50px;
278
+ font-family: 'liberation';
279
+ font-size: 15px;
280
+ color: #aeb3b6;
281
+ text-align: center;
282
+ }
283
+
284
+ /******************************************
285
+ * Fill screen to 100% & align text on left
286
+ * Feb 26, CHM : Changed top: to 350px otherwise the text is mixed with header image
287
+ ******************************************/
202
288
  .reveal .slides {
203
289
  text-align: left;
290
+ top: 350px;
291
+ }
292
+
293
+ /*******************************************************
294
+ * Asciidoctor Table style rendering
295
+ * Feb 27, CHM: Added & Refactor to display the borders
296
+ * Mar 02, CHM: Add caption to display the Table title with a different style, color
297
+ * Mar 03, CHM: Improve style to be compliant with Redhat styles
298
+ ******************************************************/
299
+ table.tableblock, table.tableblock td {
300
+ border-style: solid;
301
+ border-color: rgb(183, 188, 190);
302
+ border-width: 0.99px;
303
+ border-collapse: collapse;
304
+ border-spacing: 0px;
305
+ padding: 5px;
306
+ }
307
+
308
+ table.tableblock > caption {
309
+ line-height: 1.4;
310
+ color: #333333;
311
+ margin-top: 0.2em;
312
+ margin-bottom: 0.5em;
313
+ overflow: visible;
314
+ max-width: 0;
315
+ white-space: nowrap;
316
+ display: table-caption
317
+ }
318
+
319
+ table.tableblock tr:first-child td {
320
+ background-color: #a70000;
321
+ text-align: left;
322
+ padding: 10px;
323
+ color: white;
324
+ font-size: 24px;
325
+ }
326
+
327
+ table.tableblock tr:nth-child(even) {
328
+ background: white;
329
+ }
330
+
331
+ table.tableblock tr:nth-child(odd) {
332
+ background: rgb(238, 238, 238);
333
+ }
334
+
335
+ th.tableblock.halign-left, td.tableblock.halign-left {
336
+ text-align: left;
204
337
  }
205
338
 
206
- table thead th, table tfoot th { font-weight: bold; }
207
- /*
208
- table.tableblock.grid-all { border-collapse: separate; border-spacing: 1px; -webkit-border-radius: 4px; border-radius: 4px; border-top: 1px solid #dddddd; border-bottom: 1px solid #dddddd; }
209
- */
210
- table.tableblock.frame-topbot, table.tableblock.frame-none { border-left: 0; border-right: 0; }
211
- table.tableblock.frame-sides, table.tableblock.frame-none { border-top: 0; border-bottom: 0; }
212
- table.tableblock td .paragraph:last-child p > p:last-child, table.tableblock th > p:last-child, table.tableblock td > p:last-child { margin-bottom: 0; }
213
- th.tableblock.halign-left, td.tableblock.halign-left { text-align: left; }
214
- th.tableblock.halign-right, td.tableblock.halign-right { text-align: right; }
215
- th.tableblock.halign-center, td.tableblock.halign-center { text-align: center; }
216
- th.tableblock.valign-top, td.tableblock.valign-top { vertical-align: top; }
217
- th.tableblock.valign-bottom, td.tableblock.valign-bottom { vertical-align: bottom; }
218
- th.tableblock.valign-middle, td.tableblock.valign-middle { vertical-align: middle; }
219
-
220
- /*
221
- Used for <strong>text</strong> enclosed in <li> tag
222
- & color
223
- */
339
+ th.tableblock.halign-right, td.tableblock.halign-right {
340
+ text-align: right;
341
+ }
342
+
343
+ th.tableblock.halign-center, td.tableblock.halign-center {
344
+ text-align: center;
345
+ }
346
+
347
+ th.tableblock.valign-top, td.tableblock.valign-top {
348
+ vertical-align: top;
349
+ }
350
+
351
+ th.tableblock.valign-bottom, td.tableblock.valign-bottom {
352
+ vertical-align: bottom;
353
+ }
354
+
355
+ th.tableblock.valign-middle, td.tableblock.valign-middle {
356
+ vertical-align: middle;
357
+ }
358
+
359
+ /**************************************************************
360
+ * By default, it is not possible to display text in Bold or within <li>> tag
361
+ * Here is a trick to support that <strong>text</strong> enclosed in <li> tag & color
362
+ **************************************************************/
224
363
  li strong {
225
364
  /* color: #268bd2;*/
226
365
  color: #C1100C;
227
366
  font-weight: bold;
228
367
  }
229
368
 
230
- /*
231
- Trick to avoid to define [square] or [circle] for each item of an unordered list
232
- and solve issue that we have here as we have nested lists
233
- */
234
- ul li {list-style-type:square;}
235
- ul li li {list-style-type:disc;}
236
- ul li li li {list-style-type:circle;}
369
+ /*********************************************************************************
370
+ * Trick to avoid to define [square] or [circle] for each item of an unordered list
371
+ * and solve issue that we have here as we have nested lists
372
+ * Feb 27, CHM : Added
373
+ * Mar 04 2015, CHM: Add red colors & square, disc & circle
374
+ *********************************************************************************/
375
+ .reveal ul li p, ul li li p, ul li li p {
376
+ color: black;
377
+ list-style:none;
378
+ }
379
+
380
+ .reveal ul li {
381
+ list-style-type: square;
382
+ color: #a70000;
383
+ }
384
+
385
+ .reveal ul li li {
386
+ list-style-type: disc;
387
+ color: #a70000;
388
+ }
237
389
 
238
- /*
239
- * .reveal i must be overrided to let to use Font Awesome
240
- */
390
+ .reveal ul li li li {
391
+ list-style-type: circle;
392
+ color: #a70000;
393
+ }
394
+
395
+ /*******************************************************************
396
+ * .reveal i must be override in order to be able to use Asciidoctor and
397
+ * Font Awesome icons for NOTE, WARNING, REMARK, ....
398
+ *******************************************************************/
241
399
  .reveal i.fa {
242
400
  font-family: 'FontAwesome';
243
401
  font-style: normal;
@@ -245,12 +403,13 @@ ul li li li {list-style-type:circle;}
245
403
  }
246
404
 
247
405
  /*********************************************
248
- * Callout
406
+ * Support asciidoctor callout
249
407
  *********************************************/
250
408
  .reveal i.conum {
251
409
  display: inline-block;
252
410
  color: white !important;
253
- background-color: #222222;
411
+ /* background-color: #222222;*/
412
+ background-color: #c50000;
254
413
  -webkit-border-radius: 100px;
255
414
  border-radius: 100px;
256
415
  text-align: center;
@@ -265,12 +424,29 @@ ul li li li {list-style-type:circle;}
265
424
  .reveal i.conum:after { content: attr(data-value); }
266
425
  .reveal i.conum:not([data-value]):empty { display: none; }
267
426
 
268
-
427
+ /****************************************************
428
+ * Increase size of a paragraph block
429
+ * Improve content readability
430
+ * Feb 26, CHM : Remove white color
431
+ ****************************************************/
269
432
  .paragraph p {
270
433
  display:block;
271
434
  line-height: 1.3;
272
435
  }
273
436
 
437
+ /*****************************************************
438
+ * Cover page
439
+ * Feb 26, CHM : Display text of the speaker-page in white
440
+ *****************************************************/
441
+ .paragraph {
442
+ color: #ffffff;
443
+ text-align: left;
444
+ }
445
+
446
+ /****************************************************
447
+ * Include a new line when the slide contains &nbps;
448
+ * Improve content readability
449
+ ****************************************************/
274
450
  .newline:before {
275
451
  content: '\A';
276
452
  white-space:pre;
@@ -292,22 +468,154 @@ ul li li li {list-style-type:circle;}
292
468
  text-align: center;
293
469
  }
294
470
 
295
- /*
296
- First Page - Background Red
297
- Title H2 Strong - white
298
- Paragraph class - white
299
- */
471
+ /**************************************************************
472
+ * First Page - Background Red
473
+ * Title H2 Strong - white
474
+ * Paragraph class - white
475
+ **************************************************************/
300
476
  .reveal h2 strong {
301
477
  color: #ffffff;
302
478
  }
303
479
 
304
- .paragraph {
305
- color: #ffffff;
480
+ /**************************************************************
481
+ * Override Revealjs Pre class
482
+ * Mar 04 2015, CHM : Change width from 90% to 100% and margin to reduce size of the box hightlighted
483
+ *************************************************************/
484
+ .reveal pre {
485
+ width: 100%;
486
+ }
487
+ .listingblock .content {
488
+ margin-right: 50px;
489
+ padding-right: 50px;
306
490
  }
307
491
 
492
+ /**************************************************************
493
+ * Style used to display the cover picture full screen
494
+ * Add this tag [.cover] before the picture of the cover page
495
+ **************************************************************/
308
496
  .cover {
309
- position:absolute;
310
- top:150px;
311
- left:10px;
312
- right:10px;
497
+ position: absolute;
498
+ top: 150px;
499
+ text-align: center;
500
+ }
501
+
502
+ /**************************************************************
503
+ * Admonition Asciidoctor
504
+ *
505
+ * Mar 03, CHM: Added
506
+ **************************************************************/
507
+ .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 {
508
+ text-align: left;
509
+ font-weight: bold;
510
+ }
511
+
512
+ .admonitionblock > table {
513
+ border: 0;
514
+ background: none;
515
+ width: 100%;
516
+ padding: 5px 0px;
517
+ }
518
+
519
+ .admonitionblock > table td.icon {
520
+ text-align: center;
521
+ width: 80px;
522
+ }
523
+
524
+ .admonitionblock > table td.icon img {
525
+ max-width: none;
526
+ }
527
+
528
+ .admonitionblock > table td.icon .title {
529
+ font-weight: bold;
530
+ text-transform: uppercase;
531
+ }
532
+
533
+ .admonitionblock > table td.content {
534
+ padding-left: 1.125em;
535
+ padding-right: 1.25em;
536
+ border-left: 1px solid #dddddd;
537
+ color: #6f6f6f;
538
+ font-size: 20px;
539
+ font-style: normal;
540
+ }
541
+
542
+ .admonitionblock > table td.content > :last-child > :last-child {
543
+ margin-bottom: 0;
544
+ }
545
+
546
+ .admonitionblock td.icon [class^="icon-"]:before {
547
+ text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
548
+ cursor: default;
549
+ }
550
+
551
+ .admonitionblock td.icon .icon-note:before {
552
+ content: "\f05a";
553
+ color: #005498;
554
+ color: #003f72;
555
+ font-family: FontAwesome;
556
+ font-style: normal;
557
+ font-weight: normal;
558
+ text-decoration: inherit;
559
+ font-size: 46px;
560
+ padding-right: 0.5em;
561
+ position: relative;
562
+ top: 10px;
563
+ left: 0;
564
+ }
565
+
566
+ .admonitionblock td.icon .icon-tip:before {
567
+ content: "\f0eb";
568
+ font-family: FontAwesome;
569
+ text-shadow: 1px 1px 2px rgba(155, 155, 0, 0.8);
570
+ color: #111;
571
+ font-style: normal;
572
+ font-weight: normal;
573
+ text-decoration: inherit;
574
+ font-size: 46px;
575
+ padding-right: 0.5em;
576
+ position: relative;
577
+ top: 10px;
578
+ left: 0;
579
+ }
580
+
581
+ .admonitionblock td.icon .icon-warning:before {
582
+ content: "\f071";
583
+ color: #bf6900;
584
+ font-family: FontAwesome;
585
+ font-style: normal;
586
+ font-weight: normal;
587
+ text-decoration: inherit;
588
+ font-size: 46px;
589
+ padding-right: 0.5em;
590
+ position: relative;
591
+ top: 10px;
592
+ left: 0;
593
+ }
594
+
595
+ .admonitionblock td.icon .icon-caution:before {
596
+ content: "\f06d";
597
+ color: #bf3400;
598
+ font-family: FontAwesome;
599
+ font-style: normal;
600
+ font-weight: normal;
601
+ text-decoration: inherit;
602
+ font-size: 46px;
603
+ padding-right: 0.5em;
604
+ position: relative;
605
+ top: 10px;
606
+ left: 0;
607
+ }
608
+
609
+ .admonitionblock td.icon .icon-important:before {
610
+ content: "\f06a";
611
+ font-family: FontAwesome;
612
+ color: #bf0000;
613
+ font-style: normal;
614
+ font-weight: normal;
615
+ text-decoration: inherit;
616
+ font-size: 46px;
617
+ padding-right: 0.5em;
618
+ position: relative;
619
+ top: 10px;
620
+ left: 0;
313
621
  }