brick-engine-js 1.0.26 → 1.0.28

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 (67) hide show
  1. package/dist/css/game.bundle.css +5 -0
  2. package/dist/docs/GAME_DEVELOPER_GUIDE.html +2271 -662
  3. package/dist/docs/brick-engine-guide.html +2238 -609
  4. package/dist/docs/documentation_style_guide.html +2698 -973
  5. package/dist/docs/getting-started.html +2192 -574
  6. package/dist/docs/index.html +2278 -608
  7. package/dist/docs/jsdoc_standard.html +2235 -617
  8. package/dist/docs/publishing.html +2196 -572
  9. package/dist/docs/reference/bootstrap.html +2172 -555
  10. package/dist/docs/reference/context/RendererContext.html +2220 -582
  11. package/dist/docs/reference/enums/Color.html +2152 -538
  12. package/dist/docs/reference/enums/ControlEventType.html +2108 -506
  13. package/dist/docs/reference/enums/ControlKey.html +2144 -530
  14. package/dist/docs/reference/enums/EventSuffix.html +2121 -514
  15. package/dist/docs/reference/enums/FontAlignment.html +2157 -546
  16. package/dist/docs/reference/enums/FontSize.html +2122 -518
  17. package/dist/docs/reference/enums/Sound.html +2210 -559
  18. package/dist/docs/reference/enums/StateProperty.html +2131 -526
  19. package/dist/docs/reference/helpers/CellHelper.html +2135 -523
  20. package/dist/docs/reference/helpers/ControlInputHandlerHelper.html +2204 -572
  21. package/dist/docs/reference/helpers/CoordinateHelper.html +2377 -681
  22. package/dist/docs/reference/helpers/RelativeValuesHelper.html +2165 -553
  23. package/dist/docs/reference/interfaces/Debuggable.html +2103 -502
  24. package/dist/docs/reference/interfaces/GameModules.html +2203 -550
  25. package/dist/docs/reference/interfaces/Initializable.html +2093 -496
  26. package/dist/docs/reference/interfaces/RendererInitializable.html +2125 -518
  27. package/dist/docs/reference/interfaces/StateContext.html +2133 -518
  28. package/dist/docs/reference/interfaces/StateSyncable.html +2154 -543
  29. package/dist/docs/reference/interfaces/modules/Control.html +2353 -649
  30. package/dist/docs/reference/interfaces/modules/Grid.html +3202 -1277
  31. package/dist/docs/reference/interfaces/modules/Renderer.html +2140 -523
  32. package/dist/docs/reference/interfaces/modules/RendererComposite.html +2209 -578
  33. package/dist/docs/reference/interfaces/modules/Score.html +2326 -670
  34. package/dist/docs/reference/interfaces/modules/Session.html +2333 -660
  35. package/dist/docs/reference/interfaces/modules/State.html +2651 -898
  36. package/dist/docs/reference/interfaces/modules/Text.html +2362 -669
  37. package/dist/docs/reference/interfaces/modules/Time.html +2418 -739
  38. package/dist/docs/reference/modules/Debugger.html +2206 -578
  39. package/dist/docs/reference/modules/DisplayRenderer.html +2186 -558
  40. package/dist/docs/reference/modules/EventEmitter.html +2321 -631
  41. package/dist/docs/reference/modules/Game.html +2544 -808
  42. package/dist/docs/reference/modules/GameControl.html +2745 -879
  43. package/dist/docs/reference/modules/GameEventRegistry.html +2226 -587
  44. package/dist/docs/reference/modules/GameGrid.html +4236 -1967
  45. package/dist/docs/reference/modules/GameHudGrid.html +2103 -503
  46. package/dist/docs/reference/modules/GameRenderer.html +2247 -590
  47. package/dist/docs/reference/modules/GameScore.html +2383 -695
  48. package/dist/docs/reference/modules/GameSession.html +2232 -580
  49. package/dist/docs/reference/modules/GameSound.html +2300 -637
  50. package/dist/docs/reference/modules/GameState.html +2846 -1032
  51. package/dist/docs/reference/modules/GameText.html +2427 -702
  52. package/dist/docs/reference/modules/GameTime.html +2460 -763
  53. package/dist/docs/reference/modules/HudRenderer.html +2205 -569
  54. package/dist/docs/reference/modules/InitialStateSnapshot.html +2185 -561
  55. package/dist/docs/reference/modules/SessionModal.html +2145 -521
  56. package/dist/docs/reference/types/Axis.html +2102 -506
  57. package/dist/docs/reference/types/Cell.html +2124 -515
  58. package/dist/docs/reference/types/ControlCallback.html +2084 -489
  59. package/dist/docs/reference/types/Coordinate.html +2110 -511
  60. package/dist/docs/reference/types/GameEvent.html +2123 -515
  61. package/dist/docs/reference/types/RendererMetrics.html +2133 -515
  62. package/dist/docs/reference/types/Vector.html +2111 -510
  63. package/dist/docs/reference/view/GameView.html +2282 -613
  64. package/dist/docs/testing_best_practices.html +2338 -699
  65. package/dist/game.bundle.js +1 -1
  66. package/dist/types/view/components/layout/FrameLayout.d.ts +1 -1
  67. package/package.json +1 -1
@@ -1,550 +1,2165 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <meta name="generator" content="Asciidoctor 2.0.20">
8
- <meta name="description" content="Detailed instructions for setting up and building games with the Brick Engine.">
9
- <title>Getting Started Guide</title>
10
- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700">
11
- <style>
12
- /*! Asciidoctor default stylesheet | MIT License | https://asciidoctor.org */
13
- /* Uncomment the following line when using as a custom stylesheet */
14
- /* @import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700"; */
15
- html{font-family:sans-serif;-webkit-text-size-adjust:100%}
16
- a{background:none}
17
- a:focus{outline:thin dotted}
18
- a:active,a:hover{outline:0}
19
- h1{font-size:2em;margin:.67em 0}
20
- b,strong{font-weight:bold}
21
- abbr{font-size:.9em}
22
- abbr[title]{cursor:help;border-bottom:1px dotted #dddddf;text-decoration:none}
23
- dfn{font-style:italic}
24
- hr{height:0}
25
- mark{background:#ff0;color:#000}
26
- code,kbd,pre,samp{font-family:monospace;font-size:1em}
27
- pre{white-space:pre-wrap}
28
- q{quotes:"\201C" "\201D" "\2018" "\2019"}
29
- small{font-size:80%}
30
- sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
31
- sup{top:-.5em}
32
- sub{bottom:-.25em}
33
- img{border:0}
34
- svg:not(:root){overflow:hidden}
35
- figure{margin:0}
36
- audio,video{display:inline-block}
37
- audio:not([controls]){display:none;height:0}
38
- fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}
39
- legend{border:0;padding:0}
40
- button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}
41
- button,input{line-height:normal}
42
- button,select{text-transform:none}
43
- button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}
44
- button[disabled],html input[disabled]{cursor:default}
45
- input[type=checkbox],input[type=radio]{padding:0}
46
- button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}
47
- textarea{overflow:auto;vertical-align:top}
48
- table{border-collapse:collapse;border-spacing:0}
49
- *,::before,::after{box-sizing:border-box}
50
- html,body{font-size:100%}
51
- body{background:#fff;color:rgba(0,0,0,.8);padding:0;margin:0;font-family:"Noto Serif","DejaVu Serif",serif;line-height:1;position:relative;cursor:auto;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-wrap:anywhere;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}
52
- a:hover{cursor:pointer}
53
- img,object,embed{max-width:100%;height:auto}
54
- object,embed{height:100%}
55
- img{-ms-interpolation-mode:bicubic}
56
- .left{float:left!important}
57
- .right{float:right!important}
58
- .text-left{text-align:left!important}
59
- .text-right{text-align:right!important}
60
- .text-center{text-align:center!important}
61
- .text-justify{text-align:justify!important}
62
- .hide{display:none}
63
- img,object,svg{display:inline-block;vertical-align:middle}
64
- textarea{height:auto;min-height:50px}
65
- select{width:100%}
66
- .subheader,.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{line-height:1.45;color:#7a2518;font-weight:400;margin-top:0;margin-bottom:.25em}
67
- div,dl,dt,dd,ul,ol,li,h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6,pre,form,p,blockquote,th,td{margin:0;padding:0}
68
- a{color:#2156a5;text-decoration:underline;line-height:inherit}
69
- a:hover,a:focus{color:#1d4b8f}
70
- a img{border:0}
71
- p{line-height:1.6;margin-bottom:1.25em;text-rendering:optimizeLegibility}
72
- p aside{font-size:.875em;line-height:1.35;font-style:italic}
73
- h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{font-family:"Open Sans","DejaVu Sans",sans-serif;font-weight:300;font-style:normal;color:#ba3925;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.0125em}
74
- h1 small,h2 small,h3 small,#toctitle small,.sidebarblock>.content>.title small,h4 small,h5 small,h6 small{font-size:60%;color:#e99b8f;line-height:0}
75
- h1{font-size:2.125em}
76
- h2{font-size:1.6875em}
77
- h3,#toctitle,.sidebarblock>.content>.title{font-size:1.375em}
78
- h4,h5{font-size:1.125em}
79
- h6{font-size:1em}
80
- hr{border:solid #dddddf;border-width:1px 0 0;clear:both;margin:1.25em 0 1.1875em}
81
- em,i{font-style:italic;line-height:inherit}
82
- strong,b{font-weight:bold;line-height:inherit}
83
- small{font-size:60%;line-height:inherit}
84
- code{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-weight:400;color:rgba(0,0,0,.9)}
85
- ul,ol,dl{line-height:1.6;margin-bottom:1.25em;list-style-position:outside;font-family:inherit}
86
- ul,ol{margin-left:1.5em}
87
- ul li ul,ul li ol{margin-left:1.25em;margin-bottom:0}
88
- ul.circle{list-style-type:circle}
89
- ul.disc{list-style-type:disc}
90
- ul.square{list-style-type:square}
91
- ul.circle ul:not([class]),ul.disc ul:not([class]),ul.square ul:not([class]){list-style:inherit}
92
- ol li ul,ol li ol{margin-left:1.25em;margin-bottom:0}
93
- dl dt{margin-bottom:.3125em;font-weight:bold}
94
- dl dd{margin-bottom:1.25em}
95
- blockquote{margin:0 0 1.25em;padding:.5625em 1.25em 0 1.1875em;border-left:1px solid #ddd}
96
- blockquote,blockquote p{line-height:1.6;color:rgba(0,0,0,.85)}
97
- @media screen and (min-width:768px){h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2}
98
- h1{font-size:2.75em}
99
- h2{font-size:2.3125em}
100
- h3,#toctitle,.sidebarblock>.content>.title{font-size:1.6875em}
101
- h4{font-size:1.4375em}}
102
- table{background:#fff;margin-bottom:1.25em;border:1px solid #dedede;word-wrap:normal}
103
- table thead,table tfoot{background:#f7f8f7}
104
- table thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{padding:.5em .625em .625em;font-size:inherit;color:rgba(0,0,0,.8);text-align:left}
105
- table tr th,table tr td{padding:.5625em .625em;font-size:inherit;color:rgba(0,0,0,.8)}
106
- table tr.even,table tr.alt{background:#f8f8f7}
107
- table thead tr th,table tfoot tr th,table tbody tr td,table tr td,table tfoot tr td{line-height:1.6}
108
- h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2;word-spacing:-.05em}
109
- h1 strong,h2 strong,h3 strong,#toctitle strong,.sidebarblock>.content>.title strong,h4 strong,h5 strong,h6 strong{font-weight:400}
110
- .center{margin-left:auto;margin-right:auto}
111
- .stretch{width:100%}
112
- .clearfix::before,.clearfix::after,.float-group::before,.float-group::after{content:" ";display:table}
113
- .clearfix::after,.float-group::after{clear:both}
114
- :not(pre).nobreak{word-wrap:normal}
115
- :not(pre).nowrap{white-space:nowrap}
116
- :not(pre).pre-wrap{white-space:pre-wrap}
117
- :not(pre):not([class^=L])>code{font-size:.9375em;font-style:normal!important;letter-spacing:0;padding:.1em .5ex;word-spacing:-.15em;background:#f7f7f8;border-radius:4px;line-height:1.45;text-rendering:optimizeSpeed}
118
- pre{color:rgba(0,0,0,.9);font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;line-height:1.45;text-rendering:optimizeSpeed}
119
- pre code,pre pre{color:inherit;font-size:inherit;line-height:inherit}
120
- pre>code{display:block}
121
- pre.nowrap,pre.nowrap pre{white-space:pre;word-wrap:normal}
122
- em em{font-style:normal}
123
- strong strong{font-weight:400}
124
- .keyseq{color:rgba(51,51,51,.8)}
125
- kbd{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;display:inline-block;color:rgba(0,0,0,.8);font-size:.65em;line-height:1.45;background:#f7f7f7;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.2),inset 0 0 0 .1em #fff;margin:0 .15em;padding:.2em .5em;vertical-align:middle;position:relative;top:-.1em;white-space:nowrap}
126
- .keyseq kbd:first-child{margin-left:0}
127
- .keyseq kbd:last-child{margin-right:0}
128
- .menuseq,.menuref{color:#000}
129
- .menuseq b:not(.caret),.menuref{font-weight:inherit}
130
- .menuseq{word-spacing:-.02em}
131
- .menuseq b.caret{font-size:1.25em;line-height:.8}
132
- .menuseq i.caret{font-weight:bold;text-align:center;width:.45em}
133
- b.button::before,b.button::after{position:relative;top:-1px;font-weight:400}
134
- b.button::before{content:"[";padding:0 3px 0 2px}
135
- b.button::after{content:"]";padding:0 2px 0 3px}
136
- p a>code:hover{color:rgba(0,0,0,.9)}
137
- #header,#content,#footnotes,#footer{width:100%;margin:0 auto;max-width:62.5em;*zoom:1;position:relative;padding-left:.9375em;padding-right:.9375em}
138
- #header::before,#header::after,#content::before,#content::after,#footnotes::before,#footnotes::after,#footer::before,#footer::after{content:" ";display:table}
139
- #header::after,#content::after,#footnotes::after,#footer::after{clear:both}
140
- #content{margin-top:1.25em}
141
- #content::before{content:none}
142
- #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0}
143
- #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf}
144
- #header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px}
145
- #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap}
146
- #header .details span:first-child{margin-left:-.125em}
147
- #header .details span.email a{color:rgba(0,0,0,.85)}
148
- #header .details br{display:none}
149
- #header .details br+span::before{content:"\00a0\2013\00a0"}
150
- #header .details br+span.author::before{content:"\00a0\22c5\00a0";color:rgba(0,0,0,.85)}
151
- #header .details br+span#revremark::before{content:"\00a0|\00a0"}
152
- #header #revnumber{text-transform:capitalize}
153
- #header #revnumber::after{content:"\00a0"}
154
- #content>h1:first-child:not([class]){color:rgba(0,0,0,.85);border-bottom:1px solid #dddddf;padding-bottom:8px;margin-top:0;padding-top:1rem;margin-bottom:1.25rem}
155
- #toc{border-bottom:1px solid #e7e7e9;padding-bottom:.5em}
156
- #toc>ul{margin-left:.125em}
157
- #toc ul.sectlevel0>li>a{font-style:italic}
158
- #toc ul.sectlevel0 ul.sectlevel1{margin:.5em 0}
159
- #toc ul{font-family:"Open Sans","DejaVu Sans",sans-serif;list-style-type:none}
160
- #toc li{line-height:1.3334;margin-top:.3334em}
161
- #toc a{text-decoration:none}
162
- #toc a:active{text-decoration:underline}
163
- #toctitle{color:#7a2518;font-size:1.2em}
164
- @media screen and (min-width:768px){#toctitle{font-size:1.375em}
165
- body.toc2{padding-left:15em;padding-right:0}
166
- #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto}
167
- #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em}
168
- #toc.toc2>ul{font-size:.9em;margin-bottom:0}
169
- #toc.toc2 ul ul{margin-left:0;padding-left:1em}
170
- #toc.toc2 ul.sectlevel0 ul.sectlevel1{padding-left:0;margin-top:.5em;margin-bottom:.5em}
171
- body.toc2.toc-right{padding-left:0;padding-right:15em}
172
- body.toc2.toc-right #toc.toc2{border-right-width:0;border-left:1px solid #e7e7e9;left:auto;right:0}}
173
- @media screen and (min-width:1280px){body.toc2{padding-left:20em;padding-right:0}
174
- #toc.toc2{width:20em}
175
- #toc.toc2 #toctitle{font-size:1.375em}
176
- #toc.toc2>ul{font-size:.95em}
177
- #toc.toc2 ul ul{padding-left:1.25em}
178
- body.toc2.toc-right{padding-left:0;padding-right:20em}}
179
- #content #toc{border:1px solid #e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;border-radius:4px}
180
- #content #toc>:first-child{margin-top:0}
181
- #content #toc>:last-child{margin-bottom:0}
182
- #footer{max-width:none;background:rgba(0,0,0,.8);padding:1.25em}
183
- #footer-text{color:hsla(0,0%,100%,.8);line-height:1.44}
184
- #content{margin-bottom:.625em}
185
- .sect1{padding-bottom:.625em}
186
- @media screen and (min-width:768px){#content{margin-bottom:1.25em}
187
- .sect1{padding-bottom:1.25em}}
188
- .sect1:last-child{padding-bottom:0}
189
- .sect1+.sect1{border-top:1px solid #e7e7e9}
190
- #content h1>a.anchor,h2>a.anchor,h3>a.anchor,#toctitle>a.anchor,.sidebarblock>.content>.title>a.anchor,h4>a.anchor,h5>a.anchor,h6>a.anchor{position:absolute;z-index:1001;width:1.5ex;margin-left:-1.5ex;display:block;text-decoration:none!important;visibility:hidden;text-align:center;font-weight:400}
191
- #content h1>a.anchor::before,h2>a.anchor::before,h3>a.anchor::before,#toctitle>a.anchor::before,.sidebarblock>.content>.title>a.anchor::before,h4>a.anchor::before,h5>a.anchor::before,h6>a.anchor::before{content:"\00A7";font-size:.85em;display:block;padding-top:.1em}
192
- #content h1:hover>a.anchor,#content h1>a.anchor:hover,h2:hover>a.anchor,h2>a.anchor:hover,h3:hover>a.anchor,#toctitle:hover>a.anchor,.sidebarblock>.content>.title:hover>a.anchor,h3>a.anchor:hover,#toctitle>a.anchor:hover,.sidebarblock>.content>.title>a.anchor:hover,h4:hover>a.anchor,h4>a.anchor:hover,h5:hover>a.anchor,h5>a.anchor:hover,h6:hover>a.anchor,h6>a.anchor:hover{visibility:visible}
193
- #content h1>a.link,h2>a.link,h3>a.link,#toctitle>a.link,.sidebarblock>.content>.title>a.link,h4>a.link,h5>a.link,h6>a.link{color:#ba3925;text-decoration:none}
194
- #content h1>a.link:hover,h2>a.link:hover,h3>a.link:hover,#toctitle>a.link:hover,.sidebarblock>.content>.title>a.link:hover,h4>a.link:hover,h5>a.link:hover,h6>a.link:hover{color:#a53221}
195
- details,.audioblock,.imageblock,.literalblock,.listingblock,.stemblock,.videoblock{margin-bottom:1.25em}
196
- details{margin-left:1.25rem}
197
- details>summary{cursor:pointer;display:block;position:relative;line-height:1.6;margin-bottom:.625rem;outline:none;-webkit-tap-highlight-color:transparent}
198
- details>summary::-webkit-details-marker{display:none}
199
- details>summary::before{content:"";border:solid transparent;border-left:solid;border-width:.3em 0 .3em .5em;position:absolute;top:.5em;left:-1.25rem;transform:translateX(15%)}
200
- details[open]>summary::before{border:solid transparent;border-top:solid;border-width:.5em .3em 0;transform:translateY(15%)}
201
- details>summary::after{content:"";width:1.25rem;height:1em;position:absolute;top:.3em;left:-1.25rem}
202
- .admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{text-rendering:optimizeLegibility;text-align:left;font-family:"Noto Serif","DejaVu Serif",serif;font-size:1rem;font-style:italic}
203
- table.tableblock.fit-content>caption.title{white-space:nowrap;width:0}
204
- .paragraph.lead>p,#preamble>.sectionbody>[class=paragraph]:first-of-type p{font-size:1.21875em;line-height:1.6;color:rgba(0,0,0,.85)}
205
- .admonitionblock>table{border-collapse:separate;border:0;background:none;width:100%}
206
- .admonitionblock>table td.icon{text-align:center;width:80px}
207
- .admonitionblock>table td.icon img{max-width:none}
208
- .admonitionblock>table td.icon .title{font-weight:bold;font-family:"Open Sans","DejaVu Sans",sans-serif;text-transform:uppercase}
209
- .admonitionblock>table td.content{padding-left:1.125em;padding-right:1.25em;border-left:1px solid #dddddf;color:rgba(0,0,0,.6);word-wrap:anywhere}
210
- .admonitionblock>table td.content>:last-child>:last-child{margin-bottom:0}
211
- .exampleblock>.content{border:1px solid #e6e6e6;margin-bottom:1.25em;padding:1.25em;background:#fff;border-radius:4px}
212
- .sidebarblock{border:1px solid #dbdbd6;margin-bottom:1.25em;padding:1.25em;background:#f3f3f2;border-radius:4px}
213
- .sidebarblock>.content>.title{color:#7a2518;margin-top:0;text-align:center}
214
- .exampleblock>.content>:first-child,.sidebarblock>.content>:first-child{margin-top:0}
215
- .exampleblock>.content>:last-child,.exampleblock>.content>:last-child>:last-child,.exampleblock>.content .olist>ol>li:last-child>:last-child,.exampleblock>.content .ulist>ul>li:last-child>:last-child,.exampleblock>.content .qlist>ol>li:last-child>:last-child,.sidebarblock>.content>:last-child,.sidebarblock>.content>:last-child>:last-child,.sidebarblock>.content .olist>ol>li:last-child>:last-child,.sidebarblock>.content .ulist>ul>li:last-child>:last-child,.sidebarblock>.content .qlist>ol>li:last-child>:last-child{margin-bottom:0}
216
- .literalblock pre,.listingblock>.content>pre{border-radius:4px;overflow-x:auto;padding:1em;font-size:.8125em}
217
- @media screen and (min-width:768px){.literalblock pre,.listingblock>.content>pre{font-size:.90625em}}
218
- @media screen and (min-width:1280px){.literalblock pre,.listingblock>.content>pre{font-size:1em}}
219
- .literalblock pre,.listingblock>.content>pre:not(.highlight),.listingblock>.content>pre[class=highlight],.listingblock>.content>pre[class^="highlight "]{background:#f7f7f8}
220
- .literalblock.output pre{color:#f7f7f8;background:rgba(0,0,0,.9)}
221
- .listingblock>.content{position:relative}
222
- .listingblock code[data-lang]::before{display:none;content:attr(data-lang);position:absolute;font-size:.75em;top:.425rem;right:.5rem;line-height:1;text-transform:uppercase;color:inherit;opacity:.5}
223
- .listingblock:hover code[data-lang]::before{display:block}
224
- .listingblock.terminal pre .command::before{content:attr(data-prompt);padding-right:.5em;color:inherit;opacity:.5}
225
- .listingblock.terminal pre .command:not([data-prompt])::before{content:"$"}
226
- .listingblock pre.highlightjs{padding:0}
227
- .listingblock pre.highlightjs>code{padding:1em;border-radius:4px}
228
- .listingblock pre.prettyprint{border-width:0}
229
- .prettyprint{background:#f7f7f8}
230
- pre.prettyprint .linenums{line-height:1.45;margin-left:2em}
231
- pre.prettyprint li{background:none;list-style-type:inherit;padding-left:0}
232
- pre.prettyprint li code[data-lang]::before{opacity:1}
233
- pre.prettyprint li:not(:first-child) code[data-lang]::before{display:none}
234
- table.linenotable{border-collapse:separate;border:0;margin-bottom:0;background:none}
235
- table.linenotable td[class]{color:inherit;vertical-align:top;padding:0;line-height:inherit;white-space:normal}
236
- table.linenotable td.code{padding-left:.75em}
237
- table.linenotable td.linenos,pre.pygments .linenos{border-right:1px solid;opacity:.35;padding-right:.5em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
238
- pre.pygments span.linenos{display:inline-block;margin-right:.75em}
239
- .quoteblock{margin:0 1em 1.25em 1.5em;display:table}
240
- .quoteblock:not(.excerpt)>.title{margin-left:-1.5em;margin-bottom:.75em}
241
- .quoteblock blockquote,.quoteblock p{color:rgba(0,0,0,.85);font-size:1.15rem;line-height:1.75;word-spacing:.1em;letter-spacing:0;font-style:italic;text-align:justify}
242
- .quoteblock blockquote{margin:0;padding:0;border:0}
243
- .quoteblock blockquote::before{content:"\201c";float:left;font-size:2.75em;font-weight:bold;line-height:.6em;margin-left:-.6em;color:#7a2518;text-shadow:0 1px 2px rgba(0,0,0,.1)}
244
- .quoteblock blockquote>.paragraph:last-child p{margin-bottom:0}
245
- .quoteblock .attribution{margin-top:.75em;margin-right:.5ex;text-align:right}
246
- .verseblock{margin:0 1em 1.25em}
247
- .verseblock pre{font-family:"Open Sans","DejaVu Sans",sans-serif;font-size:1.15rem;color:rgba(0,0,0,.85);font-weight:300;text-rendering:optimizeLegibility}
248
- .verseblock pre strong{font-weight:400}
249
- .verseblock .attribution{margin-top:1.25rem;margin-left:.5ex}
250
- .quoteblock .attribution,.verseblock .attribution{font-size:.9375em;line-height:1.45;font-style:italic}
251
- .quoteblock .attribution br,.verseblock .attribution br{display:none}
252
- .quoteblock .attribution cite,.verseblock .attribution cite{display:block;letter-spacing:-.025em;color:rgba(0,0,0,.6)}
253
- .quoteblock.abstract blockquote::before,.quoteblock.excerpt blockquote::before,.quoteblock .quoteblock blockquote::before{display:none}
254
- .quoteblock.abstract blockquote,.quoteblock.abstract p,.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{line-height:1.6;word-spacing:0}
255
- .quoteblock.abstract{margin:0 1em 1.25em;display:block}
256
- .quoteblock.abstract>.title{margin:0 0 .375em;font-size:1.15em;text-align:center}
257
- .quoteblock.excerpt>blockquote,.quoteblock .quoteblock{padding:0 0 .25em 1em;border-left:.25em solid #dddddf}
258
- .quoteblock.excerpt,.quoteblock .quoteblock{margin-left:0}
259
- .quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{color:inherit;font-size:1.0625rem}
260
- .quoteblock.excerpt .attribution,.quoteblock .quoteblock .attribution{color:inherit;font-size:.85rem;text-align:left;margin-right:0}
261
- p.tableblock:last-child{margin-bottom:0}
262
- td.tableblock>.content{margin-bottom:1.25em;word-wrap:anywhere}
263
- td.tableblock>.content>:last-child{margin-bottom:-1.25em}
264
- table.tableblock,th.tableblock,td.tableblock{border:0 solid #dedede}
265
- table.grid-all>*>tr>*{border-width:1px}
266
- table.grid-cols>*>tr>*{border-width:0 1px}
267
- table.grid-rows>*>tr>*{border-width:1px 0}
268
- table.frame-all{border-width:1px}
269
- table.frame-ends{border-width:1px 0}
270
- table.frame-sides{border-width:0 1px}
271
- table.frame-none>colgroup+*>:first-child>*,table.frame-sides>colgroup+*>:first-child>*{border-top-width:0}
272
- table.frame-none>:last-child>:last-child>*,table.frame-sides>:last-child>:last-child>*{border-bottom-width:0}
273
- table.frame-none>*>tr>:first-child,table.frame-ends>*>tr>:first-child{border-left-width:0}
274
- table.frame-none>*>tr>:last-child,table.frame-ends>*>tr>:last-child{border-right-width:0}
275
- table.stripes-all>*>tr,table.stripes-odd>*>tr:nth-of-type(odd),table.stripes-even>*>tr:nth-of-type(even),table.stripes-hover>*>tr:hover{background:#f8f8f7}
276
- th.halign-left,td.halign-left{text-align:left}
277
- th.halign-right,td.halign-right{text-align:right}
278
- th.halign-center,td.halign-center{text-align:center}
279
- th.valign-top,td.valign-top{vertical-align:top}
280
- th.valign-bottom,td.valign-bottom{vertical-align:bottom}
281
- th.valign-middle,td.valign-middle{vertical-align:middle}
282
- table thead th,table tfoot th{font-weight:bold}
283
- tbody tr th{background:#f7f8f7}
284
- tbody tr th,tbody tr th p,tfoot tr th,tfoot tr th p{color:rgba(0,0,0,.8);font-weight:bold}
285
- p.tableblock>code:only-child{background:none;padding:0}
286
- p.tableblock{font-size:1em}
287
- ol{margin-left:1.75em}
288
- ul li ol{margin-left:1.5em}
289
- dl dd{margin-left:1.125em}
290
- dl dd:last-child,dl dd:last-child>:last-child{margin-bottom:0}
291
- li p,ul dd,ol dd,.olist .olist,.ulist .ulist,.ulist .olist,.olist .ulist{margin-bottom:.625em}
292
- ul.checklist,ul.none,ol.none,ul.no-bullet,ol.no-bullet,ol.unnumbered,ul.unstyled,ol.unstyled{list-style-type:none}
293
- ul.no-bullet,ol.no-bullet,ol.unnumbered{margin-left:.625em}
294
- ul.unstyled,ol.unstyled{margin-left:0}
295
- li>p:empty:only-child::before{content:"";display:inline-block}
296
- ul.checklist>li>p:first-child{margin-left:-1em}
297
- ul.checklist>li>p:first-child>.fa-square-o:first-child,ul.checklist>li>p:first-child>.fa-check-square-o:first-child{width:1.25em;font-size:.8em;position:relative;bottom:.125em}
298
- ul.checklist>li>p:first-child>input[type=checkbox]:first-child{margin-right:.25em}
299
- ul.inline{display:flex;flex-flow:row wrap;list-style:none;margin:0 0 .625em -1.25em}
300
- ul.inline>li{margin-left:1.25em}
301
- .unstyled dl dt{font-weight:400;font-style:normal}
302
- ol.arabic{list-style-type:decimal}
303
- ol.decimal{list-style-type:decimal-leading-zero}
304
- ol.loweralpha{list-style-type:lower-alpha}
305
- ol.upperalpha{list-style-type:upper-alpha}
306
- ol.lowerroman{list-style-type:lower-roman}
307
- ol.upperroman{list-style-type:upper-roman}
308
- ol.lowergreek{list-style-type:lower-greek}
309
- .hdlist>table,.colist>table{border:0;background:none}
310
- .hdlist>table>tbody>tr,.colist>table>tbody>tr{background:none}
311
- td.hdlist1,td.hdlist2{vertical-align:top;padding:0 .625em}
312
- td.hdlist1{font-weight:bold;padding-bottom:1.25em}
313
- td.hdlist2{word-wrap:anywhere}
314
- .literalblock+.colist,.listingblock+.colist{margin-top:-.5em}
315
- .colist td:not([class]):first-child{padding:.4em .75em 0;line-height:1;vertical-align:top}
316
- .colist td:not([class]):first-child img{max-width:none}
317
- .colist td:not([class]):last-child{padding:.25em 0}
318
- .thumb,.th{line-height:0;display:inline-block;border:4px solid #fff;box-shadow:0 0 0 1px #ddd}
319
- .imageblock.left{margin:.25em .625em 1.25em 0}
320
- .imageblock.right{margin:.25em 0 1.25em .625em}
321
- .imageblock>.title{margin-bottom:0}
322
- .imageblock.thumb,.imageblock.th{border-width:6px}
323
- .imageblock.thumb>.title,.imageblock.th>.title{padding:0 .125em}
324
- .image.left,.image.right{margin-top:.25em;margin-bottom:.25em;display:inline-block;line-height:0}
325
- .image.left{margin-right:.625em}
326
- .image.right{margin-left:.625em}
327
- a.image{text-decoration:none;display:inline-block}
328
- a.image object{pointer-events:none}
329
- sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super}
330
- sup.footnote a,sup.footnoteref a{text-decoration:none}
331
- sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline}
332
- #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em}
333
- #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0}
334
- #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em}
335
- #footnotes .footnote a:first-of-type{font-weight:bold;text-decoration:none;margin-left:-1.05em}
336
- #footnotes .footnote:last-of-type{margin-bottom:0}
337
- #content #footnotes{margin-top:-.625em;margin-bottom:0;padding:.75em 0}
338
- div.unbreakable{page-break-inside:avoid}
339
- .big{font-size:larger}
340
- .small{font-size:smaller}
341
- .underline{text-decoration:underline}
342
- .overline{text-decoration:overline}
343
- .line-through{text-decoration:line-through}
344
- .aqua{color:#00bfbf}
345
- .aqua-background{background:#00fafa}
346
- .black{color:#000}
347
- .black-background{background:#000}
348
- .blue{color:#0000bf}
349
- .blue-background{background:#0000fa}
350
- .fuchsia{color:#bf00bf}
351
- .fuchsia-background{background:#fa00fa}
352
- .gray{color:#606060}
353
- .gray-background{background:#7d7d7d}
354
- .green{color:#006000}
355
- .green-background{background:#007d00}
356
- .lime{color:#00bf00}
357
- .lime-background{background:#00fa00}
358
- .maroon{color:#600000}
359
- .maroon-background{background:#7d0000}
360
- .navy{color:#000060}
361
- .navy-background{background:#00007d}
362
- .olive{color:#606000}
363
- .olive-background{background:#7d7d00}
364
- .purple{color:#600060}
365
- .purple-background{background:#7d007d}
366
- .red{color:#bf0000}
367
- .red-background{background:#fa0000}
368
- .silver{color:#909090}
369
- .silver-background{background:#bcbcbc}
370
- .teal{color:#006060}
371
- .teal-background{background:#007d7d}
372
- .white{color:#bfbfbf}
373
- .white-background{background:#fafafa}
374
- .yellow{color:#bfbf00}
375
- .yellow-background{background:#fafa00}
376
- span.icon>.fa{cursor:default}
377
- a span.icon>.fa{cursor:inherit}
378
- .admonitionblock td.icon [class^="fa icon-"]{font-size:2.5em;text-shadow:1px 1px 2px rgba(0,0,0,.5);cursor:default}
379
- .admonitionblock td.icon .icon-note::before{content:"\f05a";color:#19407c}
380
- .admonitionblock td.icon .icon-tip::before{content:"\f0eb";text-shadow:1px 1px 2px rgba(155,155,0,.8);color:#111}
381
- .admonitionblock td.icon .icon-warning::before{content:"\f071";color:#bf6900}
382
- .admonitionblock td.icon .icon-caution::before{content:"\f06d";color:#bf3400}
383
- .admonitionblock td.icon .icon-important::before{content:"\f06a";color:#bf0000}
384
- .conum[data-value]{display:inline-block;color:#fff!important;background:rgba(0,0,0,.8);border-radius:50%;text-align:center;font-size:.75em;width:1.67em;height:1.67em;line-height:1.67em;font-family:"Open Sans","DejaVu Sans",sans-serif;font-style:normal;font-weight:bold}
385
- .conum[data-value] *{color:#fff!important}
386
- .conum[data-value]+b{display:none}
387
- .conum[data-value]::after{content:attr(data-value)}
388
- pre .conum[data-value]{position:relative;top:-.125em}
389
- b.conum *{color:inherit!important}
390
- .conum:not([data-value]):empty{display:none}
391
- dt,th.tableblock,td.content,div.footnote{text-rendering:optimizeLegibility}
392
- h1,h2,p,td.content,span.alt,summary{letter-spacing:-.01em}
393
- p strong,td.content strong,div.footnote strong{letter-spacing:-.005em}
394
- p,blockquote,dt,td.content,td.hdlist1,span.alt,summary{font-size:1.0625rem}
395
- p{margin-bottom:1.25rem}
396
- .sidebarblock p,.sidebarblock dt,.sidebarblock td.content,p.tableblock{font-size:1em}
397
- .exampleblock>.content{background:#fffef7;border-color:#e0e0dc;box-shadow:0 1px 4px #e0e0dc}
398
- .print-only{display:none!important}
399
- @page{margin:1.25cm .75cm}
400
- @media print{*{box-shadow:none!important;text-shadow:none!important}
401
- html{font-size:80%}
402
- a{color:inherit!important;text-decoration:underline!important}
403
- a.bare,a[href^="#"],a[href^="mailto:"]{text-decoration:none!important}
404
- a[href^="http:"]:not(.bare)::after,a[href^="https:"]:not(.bare)::after{content:"(" attr(href) ")";display:inline-block;font-size:.875em;padding-left:.25em}
405
- abbr[title]{border-bottom:1px dotted}
406
- abbr[title]::after{content:" (" attr(title) ")"}
407
- pre,blockquote,tr,img,object,svg{page-break-inside:avoid}
408
- thead{display:table-header-group}
409
- svg{max-width:100%}
410
- p,blockquote,dt,td.content{font-size:1em;orphans:3;widows:3}
411
- h2,h3,#toctitle,.sidebarblock>.content>.title{page-break-after:avoid}
412
- #header,#content,#footnotes,#footer{max-width:none}
413
- #toc,.sidebarblock,.exampleblock>.content{background:none!important}
414
- #toc{border-bottom:1px solid #dddddf!important;padding-bottom:0!important}
415
- body.book #header{text-align:center}
416
- body.book #header>h1:first-child{border:0!important;margin:2.5em 0 1em}
417
- body.book #header .details{border:0!important;display:block;padding:0!important}
418
- body.book #header .details span:first-child{margin-left:0!important}
419
- body.book #header .details br{display:block}
420
- body.book #header .details br+span::before{content:none!important}
421
- body.book #toc{border:0!important;text-align:left!important;padding:0!important;margin:0!important}
422
- body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-break-before:always}
423
- .listingblock code[data-lang]::before{display:block}
424
- #footer{padding:0 .9375em}
425
- .hide-on-print{display:none!important}
426
- .print-only{display:block!important}
427
- .hide-for-print{display:none!important}
428
- .show-for-print{display:inherit!important}}
429
- @media amzn-kf8,print{#header>h1:first-child{margin-top:1.25rem}
430
- .sect1{padding:0!important}
431
- .sect1+.sect1{border:0}
432
- #footer{background:none}
433
- #footer-text{color:rgba(0,0,0,.6);font-size:.9em}}
434
- @media amzn-kf8{#header,#content,#footnotes,#footer{padding:0}}
435
- </style>
436
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
437
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.3/styles/github.min.css">
438
- </head>
439
- <body class="article toc2 toc-left">
440
- <div id="header">
441
- <h1>Getting Started Guide</h1>
442
- <div id="toc" class="toc2">
443
- <div id="toctitle">Table of Contents</div>
444
- <ul class="sectlevel1">
445
- <li><a href="#_installation">1. Installation</a>
446
- <ul class="sectlevel2">
447
- <li><a href="#_quick_start_cli">1.1. Quick Start (CLI)</a></li>
448
- <li><a href="#_available_scripts">1.2. Available Scripts</a></li>
449
- <li><a href="#_manual_installation">1.3. Manual Installation</a></li>
450
- </ul>
451
- </li>
452
- <li><a href="#_creating_a_game">2. Creating a Game</a></li>
453
- <li><a href="#_next_steps">3. Next Steps</a></li>
454
- </ul>
455
- </div>
456
- </div>
457
- <div id="content">
458
- <div id="preamble">
459
- <div class="sectionbody">
460
- <div class="paragraph">
461
- <p>This guide provides everything you need to know to start building retro grid-based games with the <strong>Brick Engine</strong>.</p>
462
- </div>
463
- </div>
464
- </div>
465
- <div class="sect1">
466
- <h2 id="_installation"><a class="link" href="#_installation">1. Installation</a></h2>
467
- <div class="sectionbody">
468
- <div class="paragraph">
469
- <p>The fastest way to build a game is using the <strong>Brick Engine CLI</strong>, which scaffolds a complete project with build tools and quality checks.</p>
470
- </div>
471
- <div class="sect2">
472
- <h3 id="_quick_start_cli"><a class="link" href="#_quick_start_cli">1.1. Quick Start (CLI)</a></h3>
473
- <div class="paragraph">
474
- <p>Use <code>npx</code> to create a new project without installing anything globally:</p>
475
- </div>
476
- <div class="listingblock">
477
- <div class="content">
478
- <pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">npx brick-engine-cli init my-brick-game</code></pre>
479
- </div>
480
- </div>
481
- <div class="paragraph">
482
- <p>This command will:
483
- * Create a project directory with a ready-to-use structure.
484
- * Generate <code>src/index.ts</code> with a boilerplate <code>Game</code> implementation, ready for coding.
485
- * Configure <strong>Webpack</strong> for development and production builds.
486
- * (Optional) Set up <strong>ESLint</strong> and <strong>Prettier</strong> for code quality.</p>
487
- </div>
488
- </div>
489
- <div class="sect2">
490
- <h3 id="_available_scripts"><a class="link" href="#_available_scripts">1.2. Available Scripts</a></h3>
491
- <div class="paragraph">
492
- <p>Once your project is created, use the following commands:</p>
493
- </div>
494
- <table class="tableblock frame-all grid-all stretch">
495
- <colgroup>
496
- <col style="width: 25%;">
497
- <col style="width: 75%;">
498
- </colgroup>
499
- <thead>
500
- <tr>
501
- <th class="tableblock halign-left valign-top">Command</th>
502
- <th class="tableblock halign-left valign-top">Description</th>
503
- </tr>
504
- </thead>
505
- <tbody>
506
- <tr>
507
- <td class="tableblock halign-left valign-top"><p class="tableblock"><code>npm start</code></p></td>
508
- <td class="tableblock halign-left valign-top"><p class="tableblock">Starts the dev server with hot reload at <code>localhost:8080</code>.</p></td>
509
- </tr>
510
- <tr>
511
- <td class="tableblock halign-left valign-top"><p class="tableblock"><code>npm run build:standalone</code></p></td>
512
- <td class="tableblock halign-left valign-top"><p class="tableblock">Generates a production-ready <code>/dist</code> folder for independent hosting.</p></td>
513
- </tr>
514
- <tr>
515
- <td class="tableblock halign-left valign-top"><p class="tableblock"><code>npm run build:bundle</code></p></td>
516
- <td class="tableblock halign-left valign-top"><p class="tableblock">Generates a bundle optimized for <a href="https://brickengine.com.br">brickengine.com.br</a>.</p></td>
517
- </tr>
518
- <tr>
519
- <td class="tableblock halign-left valign-top"><p class="tableblock"><code>npm run lint</code> / <code>npm run format</code></p></td>
520
- <td class="tableblock halign-left valign-top"><p class="tableblock">Checks and fixes code style (if enabled during init).</p></td>
521
- </tr>
522
- </tbody>
523
- </table>
524
- </div>
525
- <div class="sect2">
526
- <h3 id="_manual_installation"><a class="link" href="#_manual_installation">1.3. Manual Installation</a></h3>
527
- <div class="paragraph">
528
- <p>If you prefer to integrate the engine into an existing project, install it via npm:</p>
529
- </div>
530
- <div class="listingblock">
531
- <div class="content">
532
- <pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">npm install brick-engine-js p5
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <meta name="generator" content="Asciidoctor 2.0.20" />
8
+ <meta name="description" content="Detailed instructions for setting up and building games with the Brick Engine." />
9
+ <title>Getting Started Guide</title>
10
+ <link
11
+ rel="stylesheet"
12
+ href="https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700"
13
+ />
14
+ <style>
15
+ /*! Asciidoctor default stylesheet | MIT License | https://asciidoctor.org */
16
+ /* Uncomment the following line when using as a custom stylesheet */
17
+ /* @import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700"; */
18
+ html {
19
+ font-family: sans-serif;
20
+ -webkit-text-size-adjust: 100%;
21
+ }
22
+ a {
23
+ background: none;
24
+ }
25
+ a:focus {
26
+ outline: thin dotted;
27
+ }
28
+ a:active,
29
+ a:hover {
30
+ outline: 0;
31
+ }
32
+ h1 {
33
+ font-size: 2em;
34
+ margin: 0.67em 0;
35
+ }
36
+ b,
37
+ strong {
38
+ font-weight: bold;
39
+ }
40
+ abbr {
41
+ font-size: 0.9em;
42
+ }
43
+ abbr[title] {
44
+ cursor: help;
45
+ border-bottom: 1px dotted #dddddf;
46
+ text-decoration: none;
47
+ }
48
+ dfn {
49
+ font-style: italic;
50
+ }
51
+ hr {
52
+ height: 0;
53
+ }
54
+ mark {
55
+ background: #ff0;
56
+ color: #000;
57
+ }
58
+ code,
59
+ kbd,
60
+ pre,
61
+ samp {
62
+ font-family: monospace;
63
+ font-size: 1em;
64
+ }
65
+ pre {
66
+ white-space: pre-wrap;
67
+ }
68
+ q {
69
+ quotes: '\201C' '\201D' '\2018' '\2019';
70
+ }
71
+ small {
72
+ font-size: 80%;
73
+ }
74
+ sub,
75
+ sup {
76
+ font-size: 75%;
77
+ line-height: 0;
78
+ position: relative;
79
+ vertical-align: baseline;
80
+ }
81
+ sup {
82
+ top: -0.5em;
83
+ }
84
+ sub {
85
+ bottom: -0.25em;
86
+ }
87
+ img {
88
+ border: 0;
89
+ }
90
+ svg:not(:root) {
91
+ overflow: hidden;
92
+ }
93
+ figure {
94
+ margin: 0;
95
+ }
96
+ audio,
97
+ video {
98
+ display: inline-block;
99
+ }
100
+ audio:not([controls]) {
101
+ display: none;
102
+ height: 0;
103
+ }
104
+ fieldset {
105
+ border: 1px solid silver;
106
+ margin: 0 2px;
107
+ padding: 0.35em 0.625em 0.75em;
108
+ }
109
+ legend {
110
+ border: 0;
111
+ padding: 0;
112
+ }
113
+ button,
114
+ input,
115
+ select,
116
+ textarea {
117
+ font-family: inherit;
118
+ font-size: 100%;
119
+ margin: 0;
120
+ }
121
+ button,
122
+ input {
123
+ line-height: normal;
124
+ }
125
+ button,
126
+ select {
127
+ text-transform: none;
128
+ }
129
+ button,
130
+ html input[type='button'],
131
+ input[type='reset'],
132
+ input[type='submit'] {
133
+ -webkit-appearance: button;
134
+ cursor: pointer;
135
+ }
136
+ button[disabled],
137
+ html input[disabled] {
138
+ cursor: default;
139
+ }
140
+ input[type='checkbox'],
141
+ input[type='radio'] {
142
+ padding: 0;
143
+ }
144
+ button::-moz-focus-inner,
145
+ input::-moz-focus-inner {
146
+ border: 0;
147
+ padding: 0;
148
+ }
149
+ textarea {
150
+ overflow: auto;
151
+ vertical-align: top;
152
+ }
153
+ table {
154
+ border-collapse: collapse;
155
+ border-spacing: 0;
156
+ }
157
+ *,
158
+ ::before,
159
+ ::after {
160
+ box-sizing: border-box;
161
+ }
162
+ html,
163
+ body {
164
+ font-size: 100%;
165
+ }
166
+ body {
167
+ background: #fff;
168
+ color: rgba(0, 0, 0, 0.8);
169
+ padding: 0;
170
+ margin: 0;
171
+ font-family: 'Noto Serif', 'DejaVu Serif', serif;
172
+ line-height: 1;
173
+ position: relative;
174
+ cursor: auto;
175
+ -moz-tab-size: 4;
176
+ -o-tab-size: 4;
177
+ tab-size: 4;
178
+ word-wrap: anywhere;
179
+ -moz-osx-font-smoothing: grayscale;
180
+ -webkit-font-smoothing: antialiased;
181
+ }
182
+ a:hover {
183
+ cursor: pointer;
184
+ }
185
+ img,
186
+ object,
187
+ embed {
188
+ max-width: 100%;
189
+ height: auto;
190
+ }
191
+ object,
192
+ embed {
193
+ height: 100%;
194
+ }
195
+ img {
196
+ -ms-interpolation-mode: bicubic;
197
+ }
198
+ .left {
199
+ float: left !important;
200
+ }
201
+ .right {
202
+ float: right !important;
203
+ }
204
+ .text-left {
205
+ text-align: left !important;
206
+ }
207
+ .text-right {
208
+ text-align: right !important;
209
+ }
210
+ .text-center {
211
+ text-align: center !important;
212
+ }
213
+ .text-justify {
214
+ text-align: justify !important;
215
+ }
216
+ .hide {
217
+ display: none;
218
+ }
219
+ img,
220
+ object,
221
+ svg {
222
+ display: inline-block;
223
+ vertical-align: middle;
224
+ }
225
+ textarea {
226
+ height: auto;
227
+ min-height: 50px;
228
+ }
229
+ select {
230
+ width: 100%;
231
+ }
232
+ .subheader,
233
+ .admonitionblock td.content > .title,
234
+ .audioblock > .title,
235
+ .exampleblock > .title,
236
+ .imageblock > .title,
237
+ .listingblock > .title,
238
+ .literalblock > .title,
239
+ .stemblock > .title,
240
+ .openblock > .title,
241
+ .paragraph > .title,
242
+ .quoteblock > .title,
243
+ table.tableblock > .title,
244
+ .verseblock > .title,
245
+ .videoblock > .title,
246
+ .dlist > .title,
247
+ .olist > .title,
248
+ .ulist > .title,
249
+ .qlist > .title,
250
+ .hdlist > .title {
251
+ line-height: 1.45;
252
+ color: #7a2518;
253
+ font-weight: 400;
254
+ margin-top: 0;
255
+ margin-bottom: 0.25em;
256
+ }
257
+ div,
258
+ dl,
259
+ dt,
260
+ dd,
261
+ ul,
262
+ ol,
263
+ li,
264
+ h1,
265
+ h2,
266
+ h3,
267
+ #toctitle,
268
+ .sidebarblock > .content > .title,
269
+ h4,
270
+ h5,
271
+ h6,
272
+ pre,
273
+ form,
274
+ p,
275
+ blockquote,
276
+ th,
277
+ td {
278
+ margin: 0;
279
+ padding: 0;
280
+ }
281
+ a {
282
+ color: #2156a5;
283
+ text-decoration: underline;
284
+ line-height: inherit;
285
+ }
286
+ a:hover,
287
+ a:focus {
288
+ color: #1d4b8f;
289
+ }
290
+ a img {
291
+ border: 0;
292
+ }
293
+ p {
294
+ line-height: 1.6;
295
+ margin-bottom: 1.25em;
296
+ text-rendering: optimizeLegibility;
297
+ }
298
+ p aside {
299
+ font-size: 0.875em;
300
+ line-height: 1.35;
301
+ font-style: italic;
302
+ }
303
+ h1,
304
+ h2,
305
+ h3,
306
+ #toctitle,
307
+ .sidebarblock > .content > .title,
308
+ h4,
309
+ h5,
310
+ h6 {
311
+ font-family: 'Open Sans', 'DejaVu Sans', sans-serif;
312
+ font-weight: 300;
313
+ font-style: normal;
314
+ color: #ba3925;
315
+ text-rendering: optimizeLegibility;
316
+ margin-top: 1em;
317
+ margin-bottom: 0.5em;
318
+ line-height: 1.0125em;
319
+ }
320
+ h1 small,
321
+ h2 small,
322
+ h3 small,
323
+ #toctitle small,
324
+ .sidebarblock > .content > .title small,
325
+ h4 small,
326
+ h5 small,
327
+ h6 small {
328
+ font-size: 60%;
329
+ color: #e99b8f;
330
+ line-height: 0;
331
+ }
332
+ h1 {
333
+ font-size: 2.125em;
334
+ }
335
+ h2 {
336
+ font-size: 1.6875em;
337
+ }
338
+ h3,
339
+ #toctitle,
340
+ .sidebarblock > .content > .title {
341
+ font-size: 1.375em;
342
+ }
343
+ h4,
344
+ h5 {
345
+ font-size: 1.125em;
346
+ }
347
+ h6 {
348
+ font-size: 1em;
349
+ }
350
+ hr {
351
+ border: solid #dddddf;
352
+ border-width: 1px 0 0;
353
+ clear: both;
354
+ margin: 1.25em 0 1.1875em;
355
+ }
356
+ em,
357
+ i {
358
+ font-style: italic;
359
+ line-height: inherit;
360
+ }
361
+ strong,
362
+ b {
363
+ font-weight: bold;
364
+ line-height: inherit;
365
+ }
366
+ small {
367
+ font-size: 60%;
368
+ line-height: inherit;
369
+ }
370
+ code {
371
+ font-family: 'Droid Sans Mono', 'DejaVu Sans Mono', monospace;
372
+ font-weight: 400;
373
+ color: rgba(0, 0, 0, 0.9);
374
+ }
375
+ ul,
376
+ ol,
377
+ dl {
378
+ line-height: 1.6;
379
+ margin-bottom: 1.25em;
380
+ list-style-position: outside;
381
+ font-family: inherit;
382
+ }
383
+ ul,
384
+ ol {
385
+ margin-left: 1.5em;
386
+ }
387
+ ul li ul,
388
+ ul li ol {
389
+ margin-left: 1.25em;
390
+ margin-bottom: 0;
391
+ }
392
+ ul.circle {
393
+ list-style-type: circle;
394
+ }
395
+ ul.disc {
396
+ list-style-type: disc;
397
+ }
398
+ ul.square {
399
+ list-style-type: square;
400
+ }
401
+ ul.circle ul:not([class]),
402
+ ul.disc ul:not([class]),
403
+ ul.square ul:not([class]) {
404
+ list-style: inherit;
405
+ }
406
+ ol li ul,
407
+ ol li ol {
408
+ margin-left: 1.25em;
409
+ margin-bottom: 0;
410
+ }
411
+ dl dt {
412
+ margin-bottom: 0.3125em;
413
+ font-weight: bold;
414
+ }
415
+ dl dd {
416
+ margin-bottom: 1.25em;
417
+ }
418
+ blockquote {
419
+ margin: 0 0 1.25em;
420
+ padding: 0.5625em 1.25em 0 1.1875em;
421
+ border-left: 1px solid #ddd;
422
+ }
423
+ blockquote,
424
+ blockquote p {
425
+ line-height: 1.6;
426
+ color: rgba(0, 0, 0, 0.85);
427
+ }
428
+ @media screen and (min-width: 768px) {
429
+ h1,
430
+ h2,
431
+ h3,
432
+ #toctitle,
433
+ .sidebarblock > .content > .title,
434
+ h4,
435
+ h5,
436
+ h6 {
437
+ line-height: 1.2;
438
+ }
439
+ h1 {
440
+ font-size: 2.75em;
441
+ }
442
+ h2 {
443
+ font-size: 2.3125em;
444
+ }
445
+ h3,
446
+ #toctitle,
447
+ .sidebarblock > .content > .title {
448
+ font-size: 1.6875em;
449
+ }
450
+ h4 {
451
+ font-size: 1.4375em;
452
+ }
453
+ }
454
+ table {
455
+ background: #fff;
456
+ margin-bottom: 1.25em;
457
+ border: 1px solid #dedede;
458
+ word-wrap: normal;
459
+ }
460
+ table thead,
461
+ table tfoot {
462
+ background: #f7f8f7;
463
+ }
464
+ table thead tr th,
465
+ table thead tr td,
466
+ table tfoot tr th,
467
+ table tfoot tr td {
468
+ padding: 0.5em 0.625em 0.625em;
469
+ font-size: inherit;
470
+ color: rgba(0, 0, 0, 0.8);
471
+ text-align: left;
472
+ }
473
+ table tr th,
474
+ table tr td {
475
+ padding: 0.5625em 0.625em;
476
+ font-size: inherit;
477
+ color: rgba(0, 0, 0, 0.8);
478
+ }
479
+ table tr.even,
480
+ table tr.alt {
481
+ background: #f8f8f7;
482
+ }
483
+ table thead tr th,
484
+ table tfoot tr th,
485
+ table tbody tr td,
486
+ table tr td,
487
+ table tfoot tr td {
488
+ line-height: 1.6;
489
+ }
490
+ h1,
491
+ h2,
492
+ h3,
493
+ #toctitle,
494
+ .sidebarblock > .content > .title,
495
+ h4,
496
+ h5,
497
+ h6 {
498
+ line-height: 1.2;
499
+ word-spacing: -0.05em;
500
+ }
501
+ h1 strong,
502
+ h2 strong,
503
+ h3 strong,
504
+ #toctitle strong,
505
+ .sidebarblock > .content > .title strong,
506
+ h4 strong,
507
+ h5 strong,
508
+ h6 strong {
509
+ font-weight: 400;
510
+ }
511
+ .center {
512
+ margin-left: auto;
513
+ margin-right: auto;
514
+ }
515
+ .stretch {
516
+ width: 100%;
517
+ }
518
+ .clearfix::before,
519
+ .clearfix::after,
520
+ .float-group::before,
521
+ .float-group::after {
522
+ content: ' ';
523
+ display: table;
524
+ }
525
+ .clearfix::after,
526
+ .float-group::after {
527
+ clear: both;
528
+ }
529
+ :not(pre).nobreak {
530
+ word-wrap: normal;
531
+ }
532
+ :not(pre).nowrap {
533
+ white-space: nowrap;
534
+ }
535
+ :not(pre).pre-wrap {
536
+ white-space: pre-wrap;
537
+ }
538
+ :not(pre):not([class^='L']) > code {
539
+ font-size: 0.9375em;
540
+ font-style: normal !important;
541
+ letter-spacing: 0;
542
+ padding: 0.1em 0.5ex;
543
+ word-spacing: -0.15em;
544
+ background: #f7f7f8;
545
+ border-radius: 4px;
546
+ line-height: 1.45;
547
+ text-rendering: optimizeSpeed;
548
+ }
549
+ pre {
550
+ color: rgba(0, 0, 0, 0.9);
551
+ font-family: 'Droid Sans Mono', 'DejaVu Sans Mono', monospace;
552
+ line-height: 1.45;
553
+ text-rendering: optimizeSpeed;
554
+ }
555
+ pre code,
556
+ pre pre {
557
+ color: inherit;
558
+ font-size: inherit;
559
+ line-height: inherit;
560
+ }
561
+ pre > code {
562
+ display: block;
563
+ }
564
+ pre.nowrap,
565
+ pre.nowrap pre {
566
+ white-space: pre;
567
+ word-wrap: normal;
568
+ }
569
+ em em {
570
+ font-style: normal;
571
+ }
572
+ strong strong {
573
+ font-weight: 400;
574
+ }
575
+ .keyseq {
576
+ color: rgba(51, 51, 51, 0.8);
577
+ }
578
+ kbd {
579
+ font-family: 'Droid Sans Mono', 'DejaVu Sans Mono', monospace;
580
+ display: inline-block;
581
+ color: rgba(0, 0, 0, 0.8);
582
+ font-size: 0.65em;
583
+ line-height: 1.45;
584
+ background: #f7f7f7;
585
+ border: 1px solid #ccc;
586
+ border-radius: 3px;
587
+ box-shadow:
588
+ 0 1px 0 rgba(0, 0, 0, 0.2),
589
+ inset 0 0 0 0.1em #fff;
590
+ margin: 0 0.15em;
591
+ padding: 0.2em 0.5em;
592
+ vertical-align: middle;
593
+ position: relative;
594
+ top: -0.1em;
595
+ white-space: nowrap;
596
+ }
597
+ .keyseq kbd:first-child {
598
+ margin-left: 0;
599
+ }
600
+ .keyseq kbd:last-child {
601
+ margin-right: 0;
602
+ }
603
+ .menuseq,
604
+ .menuref {
605
+ color: #000;
606
+ }
607
+ .menuseq b:not(.caret),
608
+ .menuref {
609
+ font-weight: inherit;
610
+ }
611
+ .menuseq {
612
+ word-spacing: -0.02em;
613
+ }
614
+ .menuseq b.caret {
615
+ font-size: 1.25em;
616
+ line-height: 0.8;
617
+ }
618
+ .menuseq i.caret {
619
+ font-weight: bold;
620
+ text-align: center;
621
+ width: 0.45em;
622
+ }
623
+ b.button::before,
624
+ b.button::after {
625
+ position: relative;
626
+ top: -1px;
627
+ font-weight: 400;
628
+ }
629
+ b.button::before {
630
+ content: '[';
631
+ padding: 0 3px 0 2px;
632
+ }
633
+ b.button::after {
634
+ content: ']';
635
+ padding: 0 2px 0 3px;
636
+ }
637
+ p a > code:hover {
638
+ color: rgba(0, 0, 0, 0.9);
639
+ }
640
+ #header,
641
+ #content,
642
+ #footnotes,
643
+ #footer {
644
+ width: 100%;
645
+ margin: 0 auto;
646
+ max-width: 62.5em;
647
+ *zoom: 1;
648
+ position: relative;
649
+ padding-left: 0.9375em;
650
+ padding-right: 0.9375em;
651
+ }
652
+ #header::before,
653
+ #header::after,
654
+ #content::before,
655
+ #content::after,
656
+ #footnotes::before,
657
+ #footnotes::after,
658
+ #footer::before,
659
+ #footer::after {
660
+ content: ' ';
661
+ display: table;
662
+ }
663
+ #header::after,
664
+ #content::after,
665
+ #footnotes::after,
666
+ #footer::after {
667
+ clear: both;
668
+ }
669
+ #content {
670
+ margin-top: 1.25em;
671
+ }
672
+ #content::before {
673
+ content: none;
674
+ }
675
+ #header > h1:first-child {
676
+ color: rgba(0, 0, 0, 0.85);
677
+ margin-top: 2.25rem;
678
+ margin-bottom: 0;
679
+ }
680
+ #header > h1:first-child + #toc {
681
+ margin-top: 8px;
682
+ border-top: 1px solid #dddddf;
683
+ }
684
+ #header > h1:only-child,
685
+ body.toc2 #header > h1:nth-last-child(2) {
686
+ border-bottom: 1px solid #dddddf;
687
+ padding-bottom: 8px;
688
+ }
689
+ #header .details {
690
+ border-bottom: 1px solid #dddddf;
691
+ line-height: 1.45;
692
+ padding-top: 0.25em;
693
+ padding-bottom: 0.25em;
694
+ padding-left: 0.25em;
695
+ color: rgba(0, 0, 0, 0.6);
696
+ display: flex;
697
+ flex-flow: row wrap;
698
+ }
699
+ #header .details span:first-child {
700
+ margin-left: -0.125em;
701
+ }
702
+ #header .details span.email a {
703
+ color: rgba(0, 0, 0, 0.85);
704
+ }
705
+ #header .details br {
706
+ display: none;
707
+ }
708
+ #header .details br + span::before {
709
+ content: '\00a0\2013\00a0';
710
+ }
711
+ #header .details br + span.author::before {
712
+ content: '\00a0\22c5\00a0';
713
+ color: rgba(0, 0, 0, 0.85);
714
+ }
715
+ #header .details br + span#revremark::before {
716
+ content: '\00a0|\00a0';
717
+ }
718
+ #header #revnumber {
719
+ text-transform: capitalize;
720
+ }
721
+ #header #revnumber::after {
722
+ content: '\00a0';
723
+ }
724
+ #content > h1:first-child:not([class]) {
725
+ color: rgba(0, 0, 0, 0.85);
726
+ border-bottom: 1px solid #dddddf;
727
+ padding-bottom: 8px;
728
+ margin-top: 0;
729
+ padding-top: 1rem;
730
+ margin-bottom: 1.25rem;
731
+ }
732
+ #toc {
733
+ border-bottom: 1px solid #e7e7e9;
734
+ padding-bottom: 0.5em;
735
+ }
736
+ #toc > ul {
737
+ margin-left: 0.125em;
738
+ }
739
+ #toc ul.sectlevel0 > li > a {
740
+ font-style: italic;
741
+ }
742
+ #toc ul.sectlevel0 ul.sectlevel1 {
743
+ margin: 0.5em 0;
744
+ }
745
+ #toc ul {
746
+ font-family: 'Open Sans', 'DejaVu Sans', sans-serif;
747
+ list-style-type: none;
748
+ }
749
+ #toc li {
750
+ line-height: 1.3334;
751
+ margin-top: 0.3334em;
752
+ }
753
+ #toc a {
754
+ text-decoration: none;
755
+ }
756
+ #toc a:active {
757
+ text-decoration: underline;
758
+ }
759
+ #toctitle {
760
+ color: #7a2518;
761
+ font-size: 1.2em;
762
+ }
763
+ @media screen and (min-width: 768px) {
764
+ #toctitle {
765
+ font-size: 1.375em;
766
+ }
767
+ body.toc2 {
768
+ padding-left: 15em;
769
+ padding-right: 0;
770
+ }
771
+ #toc.toc2 {
772
+ margin-top: 0 !important;
773
+ background: #f8f8f7;
774
+ position: fixed;
775
+ width: 15em;
776
+ left: 0;
777
+ top: 0;
778
+ border-right: 1px solid #e7e7e9;
779
+ border-top-width: 0 !important;
780
+ border-bottom-width: 0 !important;
781
+ z-index: 1000;
782
+ padding: 1.25em 1em;
783
+ height: 100%;
784
+ overflow: auto;
785
+ }
786
+ #toc.toc2 #toctitle {
787
+ margin-top: 0;
788
+ margin-bottom: 0.8rem;
789
+ font-size: 1.2em;
790
+ }
791
+ #toc.toc2 > ul {
792
+ font-size: 0.9em;
793
+ margin-bottom: 0;
794
+ }
795
+ #toc.toc2 ul ul {
796
+ margin-left: 0;
797
+ padding-left: 1em;
798
+ }
799
+ #toc.toc2 ul.sectlevel0 ul.sectlevel1 {
800
+ padding-left: 0;
801
+ margin-top: 0.5em;
802
+ margin-bottom: 0.5em;
803
+ }
804
+ body.toc2.toc-right {
805
+ padding-left: 0;
806
+ padding-right: 15em;
807
+ }
808
+ body.toc2.toc-right #toc.toc2 {
809
+ border-right-width: 0;
810
+ border-left: 1px solid #e7e7e9;
811
+ left: auto;
812
+ right: 0;
813
+ }
814
+ }
815
+ @media screen and (min-width: 1280px) {
816
+ body.toc2 {
817
+ padding-left: 20em;
818
+ padding-right: 0;
819
+ }
820
+ #toc.toc2 {
821
+ width: 20em;
822
+ }
823
+ #toc.toc2 #toctitle {
824
+ font-size: 1.375em;
825
+ }
826
+ #toc.toc2 > ul {
827
+ font-size: 0.95em;
828
+ }
829
+ #toc.toc2 ul ul {
830
+ padding-left: 1.25em;
831
+ }
832
+ body.toc2.toc-right {
833
+ padding-left: 0;
834
+ padding-right: 20em;
835
+ }
836
+ }
837
+ #content #toc {
838
+ border: 1px solid #e0e0dc;
839
+ margin-bottom: 1.25em;
840
+ padding: 1.25em;
841
+ background: #f8f8f7;
842
+ border-radius: 4px;
843
+ }
844
+ #content #toc > :first-child {
845
+ margin-top: 0;
846
+ }
847
+ #content #toc > :last-child {
848
+ margin-bottom: 0;
849
+ }
850
+ #footer {
851
+ max-width: none;
852
+ background: rgba(0, 0, 0, 0.8);
853
+ padding: 1.25em;
854
+ }
855
+ #footer-text {
856
+ color: hsla(0, 0%, 100%, 0.8);
857
+ line-height: 1.44;
858
+ }
859
+ #content {
860
+ margin-bottom: 0.625em;
861
+ }
862
+ .sect1 {
863
+ padding-bottom: 0.625em;
864
+ }
865
+ @media screen and (min-width: 768px) {
866
+ #content {
867
+ margin-bottom: 1.25em;
868
+ }
869
+ .sect1 {
870
+ padding-bottom: 1.25em;
871
+ }
872
+ }
873
+ .sect1:last-child {
874
+ padding-bottom: 0;
875
+ }
876
+ .sect1 + .sect1 {
877
+ border-top: 1px solid #e7e7e9;
878
+ }
879
+ #content h1 > a.anchor,
880
+ h2 > a.anchor,
881
+ h3 > a.anchor,
882
+ #toctitle > a.anchor,
883
+ .sidebarblock > .content > .title > a.anchor,
884
+ h4 > a.anchor,
885
+ h5 > a.anchor,
886
+ h6 > a.anchor {
887
+ position: absolute;
888
+ z-index: 1001;
889
+ width: 1.5ex;
890
+ margin-left: -1.5ex;
891
+ display: block;
892
+ text-decoration: none !important;
893
+ visibility: hidden;
894
+ text-align: center;
895
+ font-weight: 400;
896
+ }
897
+ #content h1 > a.anchor::before,
898
+ h2 > a.anchor::before,
899
+ h3 > a.anchor::before,
900
+ #toctitle > a.anchor::before,
901
+ .sidebarblock > .content > .title > a.anchor::before,
902
+ h4 > a.anchor::before,
903
+ h5 > a.anchor::before,
904
+ h6 > a.anchor::before {
905
+ content: '\00A7';
906
+ font-size: 0.85em;
907
+ display: block;
908
+ padding-top: 0.1em;
909
+ }
910
+ #content h1:hover > a.anchor,
911
+ #content h1 > a.anchor:hover,
912
+ h2:hover > a.anchor,
913
+ h2 > a.anchor:hover,
914
+ h3:hover > a.anchor,
915
+ #toctitle:hover > a.anchor,
916
+ .sidebarblock > .content > .title:hover > a.anchor,
917
+ h3 > a.anchor:hover,
918
+ #toctitle > a.anchor:hover,
919
+ .sidebarblock > .content > .title > a.anchor:hover,
920
+ h4:hover > a.anchor,
921
+ h4 > a.anchor:hover,
922
+ h5:hover > a.anchor,
923
+ h5 > a.anchor:hover,
924
+ h6:hover > a.anchor,
925
+ h6 > a.anchor:hover {
926
+ visibility: visible;
927
+ }
928
+ #content h1 > a.link,
929
+ h2 > a.link,
930
+ h3 > a.link,
931
+ #toctitle > a.link,
932
+ .sidebarblock > .content > .title > a.link,
933
+ h4 > a.link,
934
+ h5 > a.link,
935
+ h6 > a.link {
936
+ color: #ba3925;
937
+ text-decoration: none;
938
+ }
939
+ #content h1 > a.link:hover,
940
+ h2 > a.link:hover,
941
+ h3 > a.link:hover,
942
+ #toctitle > a.link:hover,
943
+ .sidebarblock > .content > .title > a.link:hover,
944
+ h4 > a.link:hover,
945
+ h5 > a.link:hover,
946
+ h6 > a.link:hover {
947
+ color: #a53221;
948
+ }
949
+ details,
950
+ .audioblock,
951
+ .imageblock,
952
+ .literalblock,
953
+ .listingblock,
954
+ .stemblock,
955
+ .videoblock {
956
+ margin-bottom: 1.25em;
957
+ }
958
+ details {
959
+ margin-left: 1.25rem;
960
+ }
961
+ details > summary {
962
+ cursor: pointer;
963
+ display: block;
964
+ position: relative;
965
+ line-height: 1.6;
966
+ margin-bottom: 0.625rem;
967
+ outline: none;
968
+ -webkit-tap-highlight-color: transparent;
969
+ }
970
+ details > summary::-webkit-details-marker {
971
+ display: none;
972
+ }
973
+ details > summary::before {
974
+ content: '';
975
+ border: solid transparent;
976
+ border-left: solid;
977
+ border-width: 0.3em 0 0.3em 0.5em;
978
+ position: absolute;
979
+ top: 0.5em;
980
+ left: -1.25rem;
981
+ transform: translateX(15%);
982
+ }
983
+ details[open] > summary::before {
984
+ border: solid transparent;
985
+ border-top: solid;
986
+ border-width: 0.5em 0.3em 0;
987
+ transform: translateY(15%);
988
+ }
989
+ details > summary::after {
990
+ content: '';
991
+ width: 1.25rem;
992
+ height: 1em;
993
+ position: absolute;
994
+ top: 0.3em;
995
+ left: -1.25rem;
996
+ }
997
+ .admonitionblock td.content > .title,
998
+ .audioblock > .title,
999
+ .exampleblock > .title,
1000
+ .imageblock > .title,
1001
+ .listingblock > .title,
1002
+ .literalblock > .title,
1003
+ .stemblock > .title,
1004
+ .openblock > .title,
1005
+ .paragraph > .title,
1006
+ .quoteblock > .title,
1007
+ table.tableblock > .title,
1008
+ .verseblock > .title,
1009
+ .videoblock > .title,
1010
+ .dlist > .title,
1011
+ .olist > .title,
1012
+ .ulist > .title,
1013
+ .qlist > .title,
1014
+ .hdlist > .title {
1015
+ text-rendering: optimizeLegibility;
1016
+ text-align: left;
1017
+ font-family: 'Noto Serif', 'DejaVu Serif', serif;
1018
+ font-size: 1rem;
1019
+ font-style: italic;
1020
+ }
1021
+ table.tableblock.fit-content > caption.title {
1022
+ white-space: nowrap;
1023
+ width: 0;
1024
+ }
1025
+ .paragraph.lead > p,
1026
+ #preamble > .sectionbody > [class='paragraph']:first-of-type p {
1027
+ font-size: 1.21875em;
1028
+ line-height: 1.6;
1029
+ color: rgba(0, 0, 0, 0.85);
1030
+ }
1031
+ .admonitionblock > table {
1032
+ border-collapse: separate;
1033
+ border: 0;
1034
+ background: none;
1035
+ width: 100%;
1036
+ }
1037
+ .admonitionblock > table td.icon {
1038
+ text-align: center;
1039
+ width: 80px;
1040
+ }
1041
+ .admonitionblock > table td.icon img {
1042
+ max-width: none;
1043
+ }
1044
+ .admonitionblock > table td.icon .title {
1045
+ font-weight: bold;
1046
+ font-family: 'Open Sans', 'DejaVu Sans', sans-serif;
1047
+ text-transform: uppercase;
1048
+ }
1049
+ .admonitionblock > table td.content {
1050
+ padding-left: 1.125em;
1051
+ padding-right: 1.25em;
1052
+ border-left: 1px solid #dddddf;
1053
+ color: rgba(0, 0, 0, 0.6);
1054
+ word-wrap: anywhere;
1055
+ }
1056
+ .admonitionblock > table td.content > :last-child > :last-child {
1057
+ margin-bottom: 0;
1058
+ }
1059
+ .exampleblock > .content {
1060
+ border: 1px solid #e6e6e6;
1061
+ margin-bottom: 1.25em;
1062
+ padding: 1.25em;
1063
+ background: #fff;
1064
+ border-radius: 4px;
1065
+ }
1066
+ .sidebarblock {
1067
+ border: 1px solid #dbdbd6;
1068
+ margin-bottom: 1.25em;
1069
+ padding: 1.25em;
1070
+ background: #f3f3f2;
1071
+ border-radius: 4px;
1072
+ }
1073
+ .sidebarblock > .content > .title {
1074
+ color: #7a2518;
1075
+ margin-top: 0;
1076
+ text-align: center;
1077
+ }
1078
+ .exampleblock > .content > :first-child,
1079
+ .sidebarblock > .content > :first-child {
1080
+ margin-top: 0;
1081
+ }
1082
+ .exampleblock > .content > :last-child,
1083
+ .exampleblock > .content > :last-child > :last-child,
1084
+ .exampleblock > .content .olist > ol > li:last-child > :last-child,
1085
+ .exampleblock > .content .ulist > ul > li:last-child > :last-child,
1086
+ .exampleblock > .content .qlist > ol > li:last-child > :last-child,
1087
+ .sidebarblock > .content > :last-child,
1088
+ .sidebarblock > .content > :last-child > :last-child,
1089
+ .sidebarblock > .content .olist > ol > li:last-child > :last-child,
1090
+ .sidebarblock > .content .ulist > ul > li:last-child > :last-child,
1091
+ .sidebarblock > .content .qlist > ol > li:last-child > :last-child {
1092
+ margin-bottom: 0;
1093
+ }
1094
+ .literalblock pre,
1095
+ .listingblock > .content > pre {
1096
+ border-radius: 4px;
1097
+ overflow-x: auto;
1098
+ padding: 1em;
1099
+ font-size: 0.8125em;
1100
+ }
1101
+ @media screen and (min-width: 768px) {
1102
+ .literalblock pre,
1103
+ .listingblock > .content > pre {
1104
+ font-size: 0.90625em;
1105
+ }
1106
+ }
1107
+ @media screen and (min-width: 1280px) {
1108
+ .literalblock pre,
1109
+ .listingblock > .content > pre {
1110
+ font-size: 1em;
1111
+ }
1112
+ }
1113
+ .literalblock pre,
1114
+ .listingblock > .content > pre:not(.highlight),
1115
+ .listingblock > .content > pre[class='highlight'],
1116
+ .listingblock > .content > pre[class^='highlight '] {
1117
+ background: #f7f7f8;
1118
+ }
1119
+ .literalblock.output pre {
1120
+ color: #f7f7f8;
1121
+ background: rgba(0, 0, 0, 0.9);
1122
+ }
1123
+ .listingblock > .content {
1124
+ position: relative;
1125
+ }
1126
+ .listingblock code[data-lang]::before {
1127
+ display: none;
1128
+ content: attr(data-lang);
1129
+ position: absolute;
1130
+ font-size: 0.75em;
1131
+ top: 0.425rem;
1132
+ right: 0.5rem;
1133
+ line-height: 1;
1134
+ text-transform: uppercase;
1135
+ color: inherit;
1136
+ opacity: 0.5;
1137
+ }
1138
+ .listingblock:hover code[data-lang]::before {
1139
+ display: block;
1140
+ }
1141
+ .listingblock.terminal pre .command::before {
1142
+ content: attr(data-prompt);
1143
+ padding-right: 0.5em;
1144
+ color: inherit;
1145
+ opacity: 0.5;
1146
+ }
1147
+ .listingblock.terminal pre .command:not([data-prompt])::before {
1148
+ content: '$';
1149
+ }
1150
+ .listingblock pre.highlightjs {
1151
+ padding: 0;
1152
+ }
1153
+ .listingblock pre.highlightjs > code {
1154
+ padding: 1em;
1155
+ border-radius: 4px;
1156
+ }
1157
+ .listingblock pre.prettyprint {
1158
+ border-width: 0;
1159
+ }
1160
+ .prettyprint {
1161
+ background: #f7f7f8;
1162
+ }
1163
+ pre.prettyprint .linenums {
1164
+ line-height: 1.45;
1165
+ margin-left: 2em;
1166
+ }
1167
+ pre.prettyprint li {
1168
+ background: none;
1169
+ list-style-type: inherit;
1170
+ padding-left: 0;
1171
+ }
1172
+ pre.prettyprint li code[data-lang]::before {
1173
+ opacity: 1;
1174
+ }
1175
+ pre.prettyprint li:not(:first-child) code[data-lang]::before {
1176
+ display: none;
1177
+ }
1178
+ table.linenotable {
1179
+ border-collapse: separate;
1180
+ border: 0;
1181
+ margin-bottom: 0;
1182
+ background: none;
1183
+ }
1184
+ table.linenotable td[class] {
1185
+ color: inherit;
1186
+ vertical-align: top;
1187
+ padding: 0;
1188
+ line-height: inherit;
1189
+ white-space: normal;
1190
+ }
1191
+ table.linenotable td.code {
1192
+ padding-left: 0.75em;
1193
+ }
1194
+ table.linenotable td.linenos,
1195
+ pre.pygments .linenos {
1196
+ border-right: 1px solid;
1197
+ opacity: 0.35;
1198
+ padding-right: 0.5em;
1199
+ -webkit-user-select: none;
1200
+ -moz-user-select: none;
1201
+ -ms-user-select: none;
1202
+ user-select: none;
1203
+ }
1204
+ pre.pygments span.linenos {
1205
+ display: inline-block;
1206
+ margin-right: 0.75em;
1207
+ }
1208
+ .quoteblock {
1209
+ margin: 0 1em 1.25em 1.5em;
1210
+ display: table;
1211
+ }
1212
+ .quoteblock:not(.excerpt) > .title {
1213
+ margin-left: -1.5em;
1214
+ margin-bottom: 0.75em;
1215
+ }
1216
+ .quoteblock blockquote,
1217
+ .quoteblock p {
1218
+ color: rgba(0, 0, 0, 0.85);
1219
+ font-size: 1.15rem;
1220
+ line-height: 1.75;
1221
+ word-spacing: 0.1em;
1222
+ letter-spacing: 0;
1223
+ font-style: italic;
1224
+ text-align: justify;
1225
+ }
1226
+ .quoteblock blockquote {
1227
+ margin: 0;
1228
+ padding: 0;
1229
+ border: 0;
1230
+ }
1231
+ .quoteblock blockquote::before {
1232
+ content: '\201c';
1233
+ float: left;
1234
+ font-size: 2.75em;
1235
+ font-weight: bold;
1236
+ line-height: 0.6em;
1237
+ margin-left: -0.6em;
1238
+ color: #7a2518;
1239
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
1240
+ }
1241
+ .quoteblock blockquote > .paragraph:last-child p {
1242
+ margin-bottom: 0;
1243
+ }
1244
+ .quoteblock .attribution {
1245
+ margin-top: 0.75em;
1246
+ margin-right: 0.5ex;
1247
+ text-align: right;
1248
+ }
1249
+ .verseblock {
1250
+ margin: 0 1em 1.25em;
1251
+ }
1252
+ .verseblock pre {
1253
+ font-family: 'Open Sans', 'DejaVu Sans', sans-serif;
1254
+ font-size: 1.15rem;
1255
+ color: rgba(0, 0, 0, 0.85);
1256
+ font-weight: 300;
1257
+ text-rendering: optimizeLegibility;
1258
+ }
1259
+ .verseblock pre strong {
1260
+ font-weight: 400;
1261
+ }
1262
+ .verseblock .attribution {
1263
+ margin-top: 1.25rem;
1264
+ margin-left: 0.5ex;
1265
+ }
1266
+ .quoteblock .attribution,
1267
+ .verseblock .attribution {
1268
+ font-size: 0.9375em;
1269
+ line-height: 1.45;
1270
+ font-style: italic;
1271
+ }
1272
+ .quoteblock .attribution br,
1273
+ .verseblock .attribution br {
1274
+ display: none;
1275
+ }
1276
+ .quoteblock .attribution cite,
1277
+ .verseblock .attribution cite {
1278
+ display: block;
1279
+ letter-spacing: -0.025em;
1280
+ color: rgba(0, 0, 0, 0.6);
1281
+ }
1282
+ .quoteblock.abstract blockquote::before,
1283
+ .quoteblock.excerpt blockquote::before,
1284
+ .quoteblock .quoteblock blockquote::before {
1285
+ display: none;
1286
+ }
1287
+ .quoteblock.abstract blockquote,
1288
+ .quoteblock.abstract p,
1289
+ .quoteblock.excerpt blockquote,
1290
+ .quoteblock.excerpt p,
1291
+ .quoteblock .quoteblock blockquote,
1292
+ .quoteblock .quoteblock p {
1293
+ line-height: 1.6;
1294
+ word-spacing: 0;
1295
+ }
1296
+ .quoteblock.abstract {
1297
+ margin: 0 1em 1.25em;
1298
+ display: block;
1299
+ }
1300
+ .quoteblock.abstract > .title {
1301
+ margin: 0 0 0.375em;
1302
+ font-size: 1.15em;
1303
+ text-align: center;
1304
+ }
1305
+ .quoteblock.excerpt > blockquote,
1306
+ .quoteblock .quoteblock {
1307
+ padding: 0 0 0.25em 1em;
1308
+ border-left: 0.25em solid #dddddf;
1309
+ }
1310
+ .quoteblock.excerpt,
1311
+ .quoteblock .quoteblock {
1312
+ margin-left: 0;
1313
+ }
1314
+ .quoteblock.excerpt blockquote,
1315
+ .quoteblock.excerpt p,
1316
+ .quoteblock .quoteblock blockquote,
1317
+ .quoteblock .quoteblock p {
1318
+ color: inherit;
1319
+ font-size: 1.0625rem;
1320
+ }
1321
+ .quoteblock.excerpt .attribution,
1322
+ .quoteblock .quoteblock .attribution {
1323
+ color: inherit;
1324
+ font-size: 0.85rem;
1325
+ text-align: left;
1326
+ margin-right: 0;
1327
+ }
1328
+ p.tableblock:last-child {
1329
+ margin-bottom: 0;
1330
+ }
1331
+ td.tableblock > .content {
1332
+ margin-bottom: 1.25em;
1333
+ word-wrap: anywhere;
1334
+ }
1335
+ td.tableblock > .content > :last-child {
1336
+ margin-bottom: -1.25em;
1337
+ }
1338
+ table.tableblock,
1339
+ th.tableblock,
1340
+ td.tableblock {
1341
+ border: 0 solid #dedede;
1342
+ }
1343
+ table.grid-all > * > tr > * {
1344
+ border-width: 1px;
1345
+ }
1346
+ table.grid-cols > * > tr > * {
1347
+ border-width: 0 1px;
1348
+ }
1349
+ table.grid-rows > * > tr > * {
1350
+ border-width: 1px 0;
1351
+ }
1352
+ table.frame-all {
1353
+ border-width: 1px;
1354
+ }
1355
+ table.frame-ends {
1356
+ border-width: 1px 0;
1357
+ }
1358
+ table.frame-sides {
1359
+ border-width: 0 1px;
1360
+ }
1361
+ table.frame-none > colgroup + * > :first-child > *,
1362
+ table.frame-sides > colgroup + * > :first-child > * {
1363
+ border-top-width: 0;
1364
+ }
1365
+ table.frame-none > :last-child > :last-child > *,
1366
+ table.frame-sides > :last-child > :last-child > * {
1367
+ border-bottom-width: 0;
1368
+ }
1369
+ table.frame-none > * > tr > :first-child,
1370
+ table.frame-ends > * > tr > :first-child {
1371
+ border-left-width: 0;
1372
+ }
1373
+ table.frame-none > * > tr > :last-child,
1374
+ table.frame-ends > * > tr > :last-child {
1375
+ border-right-width: 0;
1376
+ }
1377
+ table.stripes-all > * > tr,
1378
+ table.stripes-odd > * > tr:nth-of-type(odd),
1379
+ table.stripes-even > * > tr:nth-of-type(even),
1380
+ table.stripes-hover > * > tr:hover {
1381
+ background: #f8f8f7;
1382
+ }
1383
+ th.halign-left,
1384
+ td.halign-left {
1385
+ text-align: left;
1386
+ }
1387
+ th.halign-right,
1388
+ td.halign-right {
1389
+ text-align: right;
1390
+ }
1391
+ th.halign-center,
1392
+ td.halign-center {
1393
+ text-align: center;
1394
+ }
1395
+ th.valign-top,
1396
+ td.valign-top {
1397
+ vertical-align: top;
1398
+ }
1399
+ th.valign-bottom,
1400
+ td.valign-bottom {
1401
+ vertical-align: bottom;
1402
+ }
1403
+ th.valign-middle,
1404
+ td.valign-middle {
1405
+ vertical-align: middle;
1406
+ }
1407
+ table thead th,
1408
+ table tfoot th {
1409
+ font-weight: bold;
1410
+ }
1411
+ tbody tr th {
1412
+ background: #f7f8f7;
1413
+ }
1414
+ tbody tr th,
1415
+ tbody tr th p,
1416
+ tfoot tr th,
1417
+ tfoot tr th p {
1418
+ color: rgba(0, 0, 0, 0.8);
1419
+ font-weight: bold;
1420
+ }
1421
+ p.tableblock > code:only-child {
1422
+ background: none;
1423
+ padding: 0;
1424
+ }
1425
+ p.tableblock {
1426
+ font-size: 1em;
1427
+ }
1428
+ ol {
1429
+ margin-left: 1.75em;
1430
+ }
1431
+ ul li ol {
1432
+ margin-left: 1.5em;
1433
+ }
1434
+ dl dd {
1435
+ margin-left: 1.125em;
1436
+ }
1437
+ dl dd:last-child,
1438
+ dl dd:last-child > :last-child {
1439
+ margin-bottom: 0;
1440
+ }
1441
+ li p,
1442
+ ul dd,
1443
+ ol dd,
1444
+ .olist .olist,
1445
+ .ulist .ulist,
1446
+ .ulist .olist,
1447
+ .olist .ulist {
1448
+ margin-bottom: 0.625em;
1449
+ }
1450
+ ul.checklist,
1451
+ ul.none,
1452
+ ol.none,
1453
+ ul.no-bullet,
1454
+ ol.no-bullet,
1455
+ ol.unnumbered,
1456
+ ul.unstyled,
1457
+ ol.unstyled {
1458
+ list-style-type: none;
1459
+ }
1460
+ ul.no-bullet,
1461
+ ol.no-bullet,
1462
+ ol.unnumbered {
1463
+ margin-left: 0.625em;
1464
+ }
1465
+ ul.unstyled,
1466
+ ol.unstyled {
1467
+ margin-left: 0;
1468
+ }
1469
+ li > p:empty:only-child::before {
1470
+ content: '';
1471
+ display: inline-block;
1472
+ }
1473
+ ul.checklist > li > p:first-child {
1474
+ margin-left: -1em;
1475
+ }
1476
+ ul.checklist > li > p:first-child > .fa-square-o:first-child,
1477
+ ul.checklist > li > p:first-child > .fa-check-square-o:first-child {
1478
+ width: 1.25em;
1479
+ font-size: 0.8em;
1480
+ position: relative;
1481
+ bottom: 0.125em;
1482
+ }
1483
+ ul.checklist > li > p:first-child > input[type='checkbox']:first-child {
1484
+ margin-right: 0.25em;
1485
+ }
1486
+ ul.inline {
1487
+ display: flex;
1488
+ flex-flow: row wrap;
1489
+ list-style: none;
1490
+ margin: 0 0 0.625em -1.25em;
1491
+ }
1492
+ ul.inline > li {
1493
+ margin-left: 1.25em;
1494
+ }
1495
+ .unstyled dl dt {
1496
+ font-weight: 400;
1497
+ font-style: normal;
1498
+ }
1499
+ ol.arabic {
1500
+ list-style-type: decimal;
1501
+ }
1502
+ ol.decimal {
1503
+ list-style-type: decimal-leading-zero;
1504
+ }
1505
+ ol.loweralpha {
1506
+ list-style-type: lower-alpha;
1507
+ }
1508
+ ol.upperalpha {
1509
+ list-style-type: upper-alpha;
1510
+ }
1511
+ ol.lowerroman {
1512
+ list-style-type: lower-roman;
1513
+ }
1514
+ ol.upperroman {
1515
+ list-style-type: upper-roman;
1516
+ }
1517
+ ol.lowergreek {
1518
+ list-style-type: lower-greek;
1519
+ }
1520
+ .hdlist > table,
1521
+ .colist > table {
1522
+ border: 0;
1523
+ background: none;
1524
+ }
1525
+ .hdlist > table > tbody > tr,
1526
+ .colist > table > tbody > tr {
1527
+ background: none;
1528
+ }
1529
+ td.hdlist1,
1530
+ td.hdlist2 {
1531
+ vertical-align: top;
1532
+ padding: 0 0.625em;
1533
+ }
1534
+ td.hdlist1 {
1535
+ font-weight: bold;
1536
+ padding-bottom: 1.25em;
1537
+ }
1538
+ td.hdlist2 {
1539
+ word-wrap: anywhere;
1540
+ }
1541
+ .literalblock + .colist,
1542
+ .listingblock + .colist {
1543
+ margin-top: -0.5em;
1544
+ }
1545
+ .colist td:not([class]):first-child {
1546
+ padding: 0.4em 0.75em 0;
1547
+ line-height: 1;
1548
+ vertical-align: top;
1549
+ }
1550
+ .colist td:not([class]):first-child img {
1551
+ max-width: none;
1552
+ }
1553
+ .colist td:not([class]):last-child {
1554
+ padding: 0.25em 0;
1555
+ }
1556
+ .thumb,
1557
+ .th {
1558
+ line-height: 0;
1559
+ display: inline-block;
1560
+ border: 4px solid #fff;
1561
+ box-shadow: 0 0 0 1px #ddd;
1562
+ }
1563
+ .imageblock.left {
1564
+ margin: 0.25em 0.625em 1.25em 0;
1565
+ }
1566
+ .imageblock.right {
1567
+ margin: 0.25em 0 1.25em 0.625em;
1568
+ }
1569
+ .imageblock > .title {
1570
+ margin-bottom: 0;
1571
+ }
1572
+ .imageblock.thumb,
1573
+ .imageblock.th {
1574
+ border-width: 6px;
1575
+ }
1576
+ .imageblock.thumb > .title,
1577
+ .imageblock.th > .title {
1578
+ padding: 0 0.125em;
1579
+ }
1580
+ .image.left,
1581
+ .image.right {
1582
+ margin-top: 0.25em;
1583
+ margin-bottom: 0.25em;
1584
+ display: inline-block;
1585
+ line-height: 0;
1586
+ }
1587
+ .image.left {
1588
+ margin-right: 0.625em;
1589
+ }
1590
+ .image.right {
1591
+ margin-left: 0.625em;
1592
+ }
1593
+ a.image {
1594
+ text-decoration: none;
1595
+ display: inline-block;
1596
+ }
1597
+ a.image object {
1598
+ pointer-events: none;
1599
+ }
1600
+ sup.footnote,
1601
+ sup.footnoteref {
1602
+ font-size: 0.875em;
1603
+ position: static;
1604
+ vertical-align: super;
1605
+ }
1606
+ sup.footnote a,
1607
+ sup.footnoteref a {
1608
+ text-decoration: none;
1609
+ }
1610
+ sup.footnote a:active,
1611
+ sup.footnoteref a:active {
1612
+ text-decoration: underline;
1613
+ }
1614
+ #footnotes {
1615
+ padding-top: 0.75em;
1616
+ padding-bottom: 0.75em;
1617
+ margin-bottom: 0.625em;
1618
+ }
1619
+ #footnotes hr {
1620
+ width: 20%;
1621
+ min-width: 6.25em;
1622
+ margin: -0.25em 0 0.75em;
1623
+ border-width: 1px 0 0;
1624
+ }
1625
+ #footnotes .footnote {
1626
+ padding: 0 0.375em 0 0.225em;
1627
+ line-height: 1.3334;
1628
+ font-size: 0.875em;
1629
+ margin-left: 1.2em;
1630
+ margin-bottom: 0.2em;
1631
+ }
1632
+ #footnotes .footnote a:first-of-type {
1633
+ font-weight: bold;
1634
+ text-decoration: none;
1635
+ margin-left: -1.05em;
1636
+ }
1637
+ #footnotes .footnote:last-of-type {
1638
+ margin-bottom: 0;
1639
+ }
1640
+ #content #footnotes {
1641
+ margin-top: -0.625em;
1642
+ margin-bottom: 0;
1643
+ padding: 0.75em 0;
1644
+ }
1645
+ div.unbreakable {
1646
+ page-break-inside: avoid;
1647
+ }
1648
+ .big {
1649
+ font-size: larger;
1650
+ }
1651
+ .small {
1652
+ font-size: smaller;
1653
+ }
1654
+ .underline {
1655
+ text-decoration: underline;
1656
+ }
1657
+ .overline {
1658
+ text-decoration: overline;
1659
+ }
1660
+ .line-through {
1661
+ text-decoration: line-through;
1662
+ }
1663
+ .aqua {
1664
+ color: #00bfbf;
1665
+ }
1666
+ .aqua-background {
1667
+ background: #00fafa;
1668
+ }
1669
+ .black {
1670
+ color: #000;
1671
+ }
1672
+ .black-background {
1673
+ background: #000;
1674
+ }
1675
+ .blue {
1676
+ color: #0000bf;
1677
+ }
1678
+ .blue-background {
1679
+ background: #0000fa;
1680
+ }
1681
+ .fuchsia {
1682
+ color: #bf00bf;
1683
+ }
1684
+ .fuchsia-background {
1685
+ background: #fa00fa;
1686
+ }
1687
+ .gray {
1688
+ color: #606060;
1689
+ }
1690
+ .gray-background {
1691
+ background: #7d7d7d;
1692
+ }
1693
+ .green {
1694
+ color: #006000;
1695
+ }
1696
+ .green-background {
1697
+ background: #007d00;
1698
+ }
1699
+ .lime {
1700
+ color: #00bf00;
1701
+ }
1702
+ .lime-background {
1703
+ background: #00fa00;
1704
+ }
1705
+ .maroon {
1706
+ color: #600000;
1707
+ }
1708
+ .maroon-background {
1709
+ background: #7d0000;
1710
+ }
1711
+ .navy {
1712
+ color: #000060;
1713
+ }
1714
+ .navy-background {
1715
+ background: #00007d;
1716
+ }
1717
+ .olive {
1718
+ color: #606000;
1719
+ }
1720
+ .olive-background {
1721
+ background: #7d7d00;
1722
+ }
1723
+ .purple {
1724
+ color: #600060;
1725
+ }
1726
+ .purple-background {
1727
+ background: #7d007d;
1728
+ }
1729
+ .red {
1730
+ color: #bf0000;
1731
+ }
1732
+ .red-background {
1733
+ background: #fa0000;
1734
+ }
1735
+ .silver {
1736
+ color: #909090;
1737
+ }
1738
+ .silver-background {
1739
+ background: #bcbcbc;
1740
+ }
1741
+ .teal {
1742
+ color: #006060;
1743
+ }
1744
+ .teal-background {
1745
+ background: #007d7d;
1746
+ }
1747
+ .white {
1748
+ color: #bfbfbf;
1749
+ }
1750
+ .white-background {
1751
+ background: #fafafa;
1752
+ }
1753
+ .yellow {
1754
+ color: #bfbf00;
1755
+ }
1756
+ .yellow-background {
1757
+ background: #fafa00;
1758
+ }
1759
+ span.icon > .fa {
1760
+ cursor: default;
1761
+ }
1762
+ a span.icon > .fa {
1763
+ cursor: inherit;
1764
+ }
1765
+ .admonitionblock td.icon [class^='fa icon-'] {
1766
+ font-size: 2.5em;
1767
+ text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
1768
+ cursor: default;
1769
+ }
1770
+ .admonitionblock td.icon .icon-note::before {
1771
+ content: '\f05a';
1772
+ color: #19407c;
1773
+ }
1774
+ .admonitionblock td.icon .icon-tip::before {
1775
+ content: '\f0eb';
1776
+ text-shadow: 1px 1px 2px rgba(155, 155, 0, 0.8);
1777
+ color: #111;
1778
+ }
1779
+ .admonitionblock td.icon .icon-warning::before {
1780
+ content: '\f071';
1781
+ color: #bf6900;
1782
+ }
1783
+ .admonitionblock td.icon .icon-caution::before {
1784
+ content: '\f06d';
1785
+ color: #bf3400;
1786
+ }
1787
+ .admonitionblock td.icon .icon-important::before {
1788
+ content: '\f06a';
1789
+ color: #bf0000;
1790
+ }
1791
+ .conum[data-value] {
1792
+ display: inline-block;
1793
+ color: #fff !important;
1794
+ background: rgba(0, 0, 0, 0.8);
1795
+ border-radius: 50%;
1796
+ text-align: center;
1797
+ font-size: 0.75em;
1798
+ width: 1.67em;
1799
+ height: 1.67em;
1800
+ line-height: 1.67em;
1801
+ font-family: 'Open Sans', 'DejaVu Sans', sans-serif;
1802
+ font-style: normal;
1803
+ font-weight: bold;
1804
+ }
1805
+ .conum[data-value] * {
1806
+ color: #fff !important;
1807
+ }
1808
+ .conum[data-value] + b {
1809
+ display: none;
1810
+ }
1811
+ .conum[data-value]::after {
1812
+ content: attr(data-value);
1813
+ }
1814
+ pre .conum[data-value] {
1815
+ position: relative;
1816
+ top: -0.125em;
1817
+ }
1818
+ b.conum * {
1819
+ color: inherit !important;
1820
+ }
1821
+ .conum:not([data-value]):empty {
1822
+ display: none;
1823
+ }
1824
+ dt,
1825
+ th.tableblock,
1826
+ td.content,
1827
+ div.footnote {
1828
+ text-rendering: optimizeLegibility;
1829
+ }
1830
+ h1,
1831
+ h2,
1832
+ p,
1833
+ td.content,
1834
+ span.alt,
1835
+ summary {
1836
+ letter-spacing: -0.01em;
1837
+ }
1838
+ p strong,
1839
+ td.content strong,
1840
+ div.footnote strong {
1841
+ letter-spacing: -0.005em;
1842
+ }
1843
+ p,
1844
+ blockquote,
1845
+ dt,
1846
+ td.content,
1847
+ td.hdlist1,
1848
+ span.alt,
1849
+ summary {
1850
+ font-size: 1.0625rem;
1851
+ }
1852
+ p {
1853
+ margin-bottom: 1.25rem;
1854
+ }
1855
+ .sidebarblock p,
1856
+ .sidebarblock dt,
1857
+ .sidebarblock td.content,
1858
+ p.tableblock {
1859
+ font-size: 1em;
1860
+ }
1861
+ .exampleblock > .content {
1862
+ background: #fffef7;
1863
+ border-color: #e0e0dc;
1864
+ box-shadow: 0 1px 4px #e0e0dc;
1865
+ }
1866
+ .print-only {
1867
+ display: none !important;
1868
+ }
1869
+ @page {
1870
+ margin: 1.25cm 0.75cm;
1871
+ }
1872
+ @media print {
1873
+ * {
1874
+ box-shadow: none !important;
1875
+ text-shadow: none !important;
1876
+ }
1877
+ html {
1878
+ font-size: 80%;
1879
+ }
1880
+ a {
1881
+ color: inherit !important;
1882
+ text-decoration: underline !important;
1883
+ }
1884
+ a.bare,
1885
+ a[href^='#'],
1886
+ a[href^='mailto:'] {
1887
+ text-decoration: none !important;
1888
+ }
1889
+ a[href^='http:']:not(.bare)::after,
1890
+ a[href^='https:']:not(.bare)::after {
1891
+ content: '(' attr(href) ')';
1892
+ display: inline-block;
1893
+ font-size: 0.875em;
1894
+ padding-left: 0.25em;
1895
+ }
1896
+ abbr[title] {
1897
+ border-bottom: 1px dotted;
1898
+ }
1899
+ abbr[title]::after {
1900
+ content: ' (' attr(title) ')';
1901
+ }
1902
+ pre,
1903
+ blockquote,
1904
+ tr,
1905
+ img,
1906
+ object,
1907
+ svg {
1908
+ page-break-inside: avoid;
1909
+ }
1910
+ thead {
1911
+ display: table-header-group;
1912
+ }
1913
+ svg {
1914
+ max-width: 100%;
1915
+ }
1916
+ p,
1917
+ blockquote,
1918
+ dt,
1919
+ td.content {
1920
+ font-size: 1em;
1921
+ orphans: 3;
1922
+ widows: 3;
1923
+ }
1924
+ h2,
1925
+ h3,
1926
+ #toctitle,
1927
+ .sidebarblock > .content > .title {
1928
+ page-break-after: avoid;
1929
+ }
1930
+ #header,
1931
+ #content,
1932
+ #footnotes,
1933
+ #footer {
1934
+ max-width: none;
1935
+ }
1936
+ #toc,
1937
+ .sidebarblock,
1938
+ .exampleblock > .content {
1939
+ background: none !important;
1940
+ }
1941
+ #toc {
1942
+ border-bottom: 1px solid #dddddf !important;
1943
+ padding-bottom: 0 !important;
1944
+ }
1945
+ body.book #header {
1946
+ text-align: center;
1947
+ }
1948
+ body.book #header > h1:first-child {
1949
+ border: 0 !important;
1950
+ margin: 2.5em 0 1em;
1951
+ }
1952
+ body.book #header .details {
1953
+ border: 0 !important;
1954
+ display: block;
1955
+ padding: 0 !important;
1956
+ }
1957
+ body.book #header .details span:first-child {
1958
+ margin-left: 0 !important;
1959
+ }
1960
+ body.book #header .details br {
1961
+ display: block;
1962
+ }
1963
+ body.book #header .details br + span::before {
1964
+ content: none !important;
1965
+ }
1966
+ body.book #toc {
1967
+ border: 0 !important;
1968
+ text-align: left !important;
1969
+ padding: 0 !important;
1970
+ margin: 0 !important;
1971
+ }
1972
+ body.book #toc,
1973
+ body.book #preamble,
1974
+ body.book h1.sect0,
1975
+ body.book .sect1 > h2 {
1976
+ page-break-before: always;
1977
+ }
1978
+ .listingblock code[data-lang]::before {
1979
+ display: block;
1980
+ }
1981
+ #footer {
1982
+ padding: 0 0.9375em;
1983
+ }
1984
+ .hide-on-print {
1985
+ display: none !important;
1986
+ }
1987
+ .print-only {
1988
+ display: block !important;
1989
+ }
1990
+ .hide-for-print {
1991
+ display: none !important;
1992
+ }
1993
+ .show-for-print {
1994
+ display: inherit !important;
1995
+ }
1996
+ }
1997
+ @media amzn-kf8, print {
1998
+ #header > h1:first-child {
1999
+ margin-top: 1.25rem;
2000
+ }
2001
+ .sect1 {
2002
+ padding: 0 !important;
2003
+ }
2004
+ .sect1 + .sect1 {
2005
+ border: 0;
2006
+ }
2007
+ #footer {
2008
+ background: none;
2009
+ }
2010
+ #footer-text {
2011
+ color: rgba(0, 0, 0, 0.6);
2012
+ font-size: 0.9em;
2013
+ }
2014
+ }
2015
+ @media amzn-kf8 {
2016
+ #header,
2017
+ #content,
2018
+ #footnotes,
2019
+ #footer {
2020
+ padding: 0;
2021
+ }
2022
+ }
2023
+ </style>
2024
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
2025
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.3/styles/github.min.css" />
2026
+ </head>
2027
+ <body class="article toc2 toc-left">
2028
+ <div id="header">
2029
+ <h1>Getting Started Guide</h1>
2030
+ <div id="toc" class="toc2">
2031
+ <div id="toctitle">Table of Contents</div>
2032
+ <ul class="sectlevel1">
2033
+ <li>
2034
+ <a href="#_installation">1. Installation</a>
2035
+ <ul class="sectlevel2">
2036
+ <li><a href="#_quick_start_cli">1.1. Quick Start (CLI)</a></li>
2037
+ <li><a href="#_available_scripts">1.2. Available Scripts</a></li>
2038
+ <li><a href="#_manual_installation">1.3. Manual Installation</a></li>
2039
+ </ul>
2040
+ </li>
2041
+ <li><a href="#_creating_a_game">2. Creating a Game</a></li>
2042
+ <li><a href="#_next_steps">3. Next Steps</a></li>
2043
+ </ul>
2044
+ </div>
2045
+ </div>
2046
+ <div id="content">
2047
+ <div id="preamble">
2048
+ <div class="sectionbody">
2049
+ <div class="paragraph">
2050
+ <p>This guide provides everything you need to know to start building retro grid-based games with the <strong>Brick Engine</strong>.</p>
2051
+ </div>
2052
+ </div>
2053
+ </div>
2054
+ <div class="sect1">
2055
+ <h2 id="_installation"><a class="link" href="#_installation">1. Installation</a></h2>
2056
+ <div class="sectionbody">
2057
+ <div class="paragraph">
2058
+ <p>
2059
+ The fastest way to build a game is using the <strong>Brick Engine CLI</strong>, which scaffolds a complete project with build tools
2060
+ and quality checks.
2061
+ </p>
2062
+ </div>
2063
+ <div class="sect2">
2064
+ <h3 id="_quick_start_cli"><a class="link" href="#_quick_start_cli">1.1. Quick Start (CLI)</a></h3>
2065
+ <div class="paragraph">
2066
+ <p>Use <code>npx</code> to create a new project without installing anything globally:</p>
2067
+ </div>
2068
+ <div class="listingblock">
2069
+ <div class="content">
2070
+ <pre
2071
+ class="highlightjs highlight"
2072
+ ><code class="language-bash hljs" data-lang="bash">npx brick-engine-cli init my-brick-game</code></pre>
2073
+ </div>
2074
+ </div>
2075
+ <div class="paragraph">
2076
+ <p>
2077
+ This command will: * Create a project directory with a ready-to-use structure. * Generate <code>src/index.ts</code> with a
2078
+ boilerplate <code>Game</code> implementation, ready for coding. * Configure <strong>Webpack</strong> for development and
2079
+ production builds. * (Optional) Set up <strong>ESLint</strong> and <strong>Prettier</strong> for code quality.
2080
+ </p>
2081
+ </div>
2082
+ </div>
2083
+ <div class="sect2">
2084
+ <h3 id="_available_scripts"><a class="link" href="#_available_scripts">1.2. Available Scripts</a></h3>
2085
+ <div class="paragraph">
2086
+ <p>Once your project is created, use the following commands:</p>
2087
+ </div>
2088
+ <table class="tableblock frame-all grid-all stretch">
2089
+ <colgroup>
2090
+ <col style="width: 25%" />
2091
+ <col style="width: 75%" />
2092
+ </colgroup>
2093
+ <thead>
2094
+ <tr>
2095
+ <th class="tableblock halign-left valign-top">Command</th>
2096
+ <th class="tableblock halign-left valign-top">Description</th>
2097
+ </tr>
2098
+ </thead>
2099
+ <tbody>
2100
+ <tr>
2101
+ <td class="tableblock halign-left valign-top">
2102
+ <p class="tableblock"><code>npm start</code></p>
2103
+ </td>
2104
+ <td class="tableblock halign-left valign-top">
2105
+ <p class="tableblock">Starts the dev server with hot reload at <code>localhost:8080</code>.</p>
2106
+ </td>
2107
+ </tr>
2108
+ <tr>
2109
+ <td class="tableblock halign-left valign-top">
2110
+ <p class="tableblock"><code>npm run build:standalone</code></p>
2111
+ </td>
2112
+ <td class="tableblock halign-left valign-top">
2113
+ <p class="tableblock">Generates a production-ready <code>/dist</code> folder for independent hosting.</p>
2114
+ </td>
2115
+ </tr>
2116
+ <tr>
2117
+ <td class="tableblock halign-left valign-top">
2118
+ <p class="tableblock"><code>npm run build:bundle</code></p>
2119
+ </td>
2120
+ <td class="tableblock halign-left valign-top">
2121
+ <p class="tableblock">Generates a bundle optimized for <a href="https://brickengine.com.br">brickengine.com.br</a>.</p>
2122
+ </td>
2123
+ </tr>
2124
+ <tr>
2125
+ <td class="tableblock halign-left valign-top">
2126
+ <p class="tableblock"><code>npm run lint</code> / <code>npm run format</code></p>
2127
+ </td>
2128
+ <td class="tableblock halign-left valign-top">
2129
+ <p class="tableblock">Checks and fixes code style (if enabled during init).</p>
2130
+ </td>
2131
+ </tr>
2132
+ </tbody>
2133
+ </table>
2134
+ </div>
2135
+ <div class="sect2">
2136
+ <h3 id="_manual_installation"><a class="link" href="#_manual_installation">1.3. Manual Installation</a></h3>
2137
+ <div class="paragraph">
2138
+ <p>If you prefer to integrate the engine into an existing project, install it via npm:</p>
2139
+ </div>
2140
+ <div class="listingblock">
2141
+ <div class="content">
2142
+ <pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">npm install brick-engine-js p5
533
2143
  npm install --save-dev @types/p5</code></pre>
534
- </div>
535
- </div>
536
- </div>
537
- </div>
538
- </div>
539
- <div class="sect1">
540
- <h2 id="_creating_a_game"><a class="link" href="#_creating_a_game">2. Creating a Game</a></h2>
541
- <div class="sectionbody">
542
- <div class="paragraph">
543
- <p>To create a game, you must extend the abstract <code>Game</code> class. If you used the CLI, this logic is already scaffolded in <code>src/index.ts</code>. Here is a reference implementation:</p>
544
- </div>
545
- <div class="listingblock">
546
- <div class="content">
547
- <pre class="highlightjs highlight"><code class="language-typescript hljs" data-lang="typescript">import { Game, FontSize, ControlKey, ControlEventType, Sound, FontAlign, FontVerticalAlign } from 'brick-engine-js';
2144
+ </div>
2145
+ </div>
2146
+ </div>
2147
+ </div>
2148
+ </div>
2149
+ <div class="sect1">
2150
+ <h2 id="_creating_a_game"><a class="link" href="#_creating_a_game">2. Creating a Game</a></h2>
2151
+ <div class="sectionbody">
2152
+ <div class="paragraph">
2153
+ <p>
2154
+ To create a game, you must extend the abstract <code>Game</code> class. If you used the CLI, this logic is already scaffolded in
2155
+ <code>src/index.ts</code>. Here is a reference implementation:
2156
+ </p>
2157
+ </div>
2158
+ <div class="listingblock">
2159
+ <div class="content">
2160
+ <pre
2161
+ class="highlightjs highlight"
2162
+ ><code class="language-typescript hljs" data-lang="typescript">import { Game, FontSize, ControlKey, ControlEventType, Sound, FontAlign, FontVerticalAlign } from 'brick-engine-js';
548
2163
 
549
2164
  export default class MyGame extends Game {
550
2165
  /**
@@ -617,32 +2232,35 @@ export default class MyGame extends Game {
617
2232
  text.textOnDisplay(`SCORE: ${score.getScore()}`, { x: 0.5, y: 0.6 });
618
2233
  }
619
2234
  }</code></pre>
620
- </div>
621
- </div>
622
- </div>
623
- </div>
624
- <div class="sect1">
625
- <h2 id="_next_steps"><a class="link" href="#_next_steps">3. Next Steps</a></h2>
626
- <div class="sectionbody">
627
- <div class="paragraph">
628
- <p>Once you&#8217;ve set up your project and created your game class:
629
- * Explore the modules reference to learn about all the engine&#8217;s capabilities.
630
- * Learn how to share your completed game in the <strong><a href="publishing.html">Publishing Guide</a></strong>.</p>
631
- </div>
632
- </div>
633
- </div>
634
- </div>
635
- <div id="footer">
636
- <div id="footer-text">
637
- Last updated 2026-02-24 23:24:58 -0300
638
- </div>
639
- </div>
640
- <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.3/highlight.min.js"></script>
641
- <script>
642
- if (!hljs.initHighlighting.called) {
643
- hljs.initHighlighting.called = true
644
- ;[].slice.call(document.querySelectorAll('pre.highlight > code[data-lang]')).forEach(function (el) { hljs.highlightBlock(el) })
645
- }
646
- </script>
647
- </body>
648
- </html>
2235
+ </div>
2236
+ </div>
2237
+ </div>
2238
+ </div>
2239
+ <div class="sect1">
2240
+ <h2 id="_next_steps"><a class="link" href="#_next_steps">3. Next Steps</a></h2>
2241
+ <div class="sectionbody">
2242
+ <div class="paragraph">
2243
+ <p>
2244
+ Once you&#8217;ve set up your project and created your game class: * Explore the modules reference to learn about all the
2245
+ engine&#8217;s capabilities. * Learn how to share your completed game in the
2246
+ <strong><a href="publishing.html">Publishing Guide</a></strong
2247
+ >.
2248
+ </p>
2249
+ </div>
2250
+ </div>
2251
+ </div>
2252
+ </div>
2253
+ <div id="footer">
2254
+ <div id="footer-text">Last updated 2026-02-24 23:24:58 -0300</div>
2255
+ </div>
2256
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.3/highlight.min.js"></script>
2257
+ <script>
2258
+ if (!hljs.initHighlighting.called) {
2259
+ hljs.initHighlighting.called = true;
2260
+ [].slice.call(document.querySelectorAll('pre.highlight > code[data-lang]')).forEach(function (el) {
2261
+ hljs.highlightBlock(el);
2262
+ });
2263
+ }
2264
+ </script>
2265
+ </body>
2266
+ </html>