polkamarkets-js 1.0.2 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/.openzeppelin/unknown-1337.json +2056 -0
  2. package/CONTRIBUTING.md +36 -0
  3. package/README.md +24 -25
  4. package/_book/README.md +590 -0
  5. package/_book/core.md +50 -0
  6. package/_book/gitbook/fonts/fontawesome/FontAwesome.otf +0 -0
  7. package/_book/gitbook/fonts/fontawesome/fontawesome-webfont.eot +0 -0
  8. package/_book/gitbook/fonts/fontawesome/fontawesome-webfont.svg +685 -0
  9. package/_book/gitbook/fonts/fontawesome/fontawesome-webfont.ttf +0 -0
  10. package/_book/gitbook/fonts/fontawesome/fontawesome-webfont.woff +0 -0
  11. package/_book/gitbook/fonts/fontawesome/fontawesome-webfont.woff2 +0 -0
  12. package/_book/gitbook/gitbook-plugin-fontsettings/fontsettings.js +240 -0
  13. package/_book/gitbook/gitbook-plugin-fontsettings/website.css +291 -0
  14. package/_book/gitbook/gitbook-plugin-highlight/ebook.css +135 -0
  15. package/_book/gitbook/gitbook-plugin-highlight/website.css +434 -0
  16. package/_book/gitbook/gitbook-plugin-lunr/lunr.min.js +7 -0
  17. package/_book/gitbook/gitbook-plugin-lunr/search-lunr.js +59 -0
  18. package/_book/gitbook/gitbook-plugin-search/lunr.min.js +7 -0
  19. package/_book/gitbook/gitbook-plugin-search/search-engine.js +50 -0
  20. package/_book/gitbook/gitbook-plugin-search/search.css +35 -0
  21. package/_book/gitbook/gitbook-plugin-search/search.js +213 -0
  22. package/_book/gitbook/gitbook-plugin-sharing/buttons.js +90 -0
  23. package/_book/gitbook/gitbook.js +4 -0
  24. package/_book/gitbook/images/apple-touch-icon-precomposed-152.png +0 -0
  25. package/_book/gitbook/images/favicon.ico +0 -0
  26. package/_book/gitbook/style.css +9 -0
  27. package/_book/gitbook/theme.js +4 -0
  28. package/_book/index.html +705 -0
  29. package/_book/intro.md +32 -0
  30. package/_book/search_index.json +1 -0
  31. package/book.json +8 -0
  32. package/build/contracts/AccessControl.json +1 -0
  33. package/build/contracts/AccessControlEnumerable.json +1 -0
  34. package/build/contracts/Achievements.json +1 -0
  35. package/build/contracts/Address.json +1 -0
  36. package/build/contracts/BalanceHolder.json +1 -0
  37. package/build/contracts/BalanceHolder_ERC20.json +1 -0
  38. package/build/contracts/CeilDiv.json +1 -0
  39. package/build/contracts/Clones.json +1 -0
  40. package/build/contracts/Context.json +1 -0
  41. package/build/contracts/Counters.json +1 -0
  42. package/build/contracts/ERC165.json +1 -0
  43. package/build/contracts/ERC20.json +1 -0
  44. package/build/contracts/ERC20Burnable.json +1 -0
  45. package/build/contracts/ERC20Pausable.json +1 -0
  46. package/build/contracts/ERC20PresetMinterPauser.json +1 -0
  47. package/build/contracts/ERC721.json +1 -0
  48. package/build/contracts/EnumerableMap.json +1 -0
  49. package/build/contracts/EnumerableSet.json +1 -0
  50. package/build/contracts/FantasyERC20.json +1 -0
  51. package/build/contracts/IAccessControl.json +1 -0
  52. package/build/contracts/IAccessControlEnumerable.json +1 -0
  53. package/build/contracts/IBalanceHolder_ERC20.json +1 -0
  54. package/build/contracts/IERC165.json +1 -0
  55. package/build/contracts/IERC20.json +1 -0
  56. package/build/contracts/IERC20Metadata.json +1 -0
  57. package/build/contracts/IERC20Permit.json +1 -0
  58. package/build/contracts/IERC721.json +1 -0
  59. package/build/contracts/IERC721Enumerable.json +1 -0
  60. package/build/contracts/IERC721Metadata.json +1 -0
  61. package/build/contracts/IERC721Receiver.json +1 -0
  62. package/build/contracts/IFantasyERC20.json +1 -0
  63. package/build/contracts/IPredictionMarketV3.json +1 -0
  64. package/build/contracts/IPredictionMarketV3Factory.json +1 -0
  65. package/build/contracts/IPredictionMarketV3Manager.json +1 -0
  66. package/build/contracts/IRealityETH_ERC20.json +1 -0
  67. package/build/contracts/IRealityETH_IERC20.json +1 -0
  68. package/build/contracts/IWETH.json +1 -0
  69. package/build/contracts/LandFactory.json +1 -0
  70. package/build/contracts/Math.json +1 -0
  71. package/build/contracts/Migrations.json +1 -0
  72. package/build/contracts/Ownable.json +1 -0
  73. package/build/contracts/Pausable.json +1 -0
  74. package/build/contracts/PredictionMarket.json +1 -0
  75. package/build/contracts/PredictionMarketV2.json +1 -0
  76. package/build/contracts/PredictionMarketV3.json +1 -0
  77. package/build/contracts/PredictionMarketV3Controller.json +1 -0
  78. package/build/contracts/PredictionMarketV3Factory.json +1 -0
  79. package/build/contracts/PredictionMarketV3Manager.json +1 -0
  80. package/build/contracts/PredictionMarketV3Querier.json +1 -0
  81. package/build/contracts/RealitioERC20.json +1 -0
  82. package/build/contracts/RealitioForeignArbitrationProxyWithAppeals.json +1 -0
  83. package/build/contracts/RealitioHomeArbitrationProxy.json +1 -0
  84. package/build/contracts/RealitioSafeMath256.json +1 -0
  85. package/build/contracts/RealitioSafeMath32.json +1 -0
  86. package/build/contracts/RealityETH_ERC20_Factory.json +1 -0
  87. package/build/contracts/RealityETH_ERC20_v3_0.json +1 -0
  88. package/build/contracts/ReentrancyGuard.json +1 -0
  89. package/build/contracts/SafeERC20.json +1 -0
  90. package/build/contracts/SafeMath.json +1 -0
  91. package/build/contracts/Strings.json +1 -0
  92. package/build/contracts/Voting.json +1 -0
  93. package/build/contracts/WETH9.json +1 -0
  94. package/build/contracts/test.json +1 -0
  95. package/cleanContracts.js +22 -0
  96. package/contracts/FantasyERC20.sol +81 -0
  97. package/contracts/IFantasyERC20.sol +20 -0
  98. package/contracts/IPredictionMarketV3.sol +207 -0
  99. package/contracts/IPredictionMarketV3Factory.sol +10 -0
  100. package/contracts/IPredictionMarketV3Manager.sol +12 -0
  101. package/contracts/IRealityETH_ERC20.sol +64 -0
  102. package/contracts/LandFactory.sol +248 -0
  103. package/contracts/Migrations.sol +24 -0
  104. package/contracts/PredictionMarketV3.sol +1332 -0
  105. package/contracts/PredictionMarketV3Controller.sol +87 -0
  106. package/contracts/PredictionMarketV3Factory.sol +205 -0
  107. package/contracts/PredictionMarketV3Manager.sol +45 -0
  108. package/contracts/PredictionMarketV3Querier.sol +79 -0
  109. package/contracts/RealityETH_ERC20_Factory.sol +54 -0
  110. package/contracts/Voting.sol +153 -0
  111. package/contracts/WETH9.sol +62 -0
  112. package/help.txt +8 -0
  113. package/index.js +3 -0
  114. package/migrations/10_deploy_weth.js +5 -0
  115. package/migrations/11_deploy_full_flow.js +99 -0
  116. package/migrations/12_deploy_pm_v3_querier.js +7 -0
  117. package/migrations/13_deploy_pm_v3_factory.js +14 -0
  118. package/migrations/1_initial_migration.js +5 -0
  119. package/migrations/2_deploy_erc20.js +10 -0
  120. package/migrations/3_deploy_realitio.js +11 -0
  121. package/migrations/4_deploy_pm.js +20 -0
  122. package/migrations/5_seed_markets.js +51 -0
  123. package/migrations/6_deploy_achievements.js +5 -0
  124. package/migrations/7_deploy_voting.js +14 -0
  125. package/migrations/8_deploy_pm_v2.js +20 -0
  126. package/migrations/9_seed_markets_v2.js +68 -0
  127. package/package.json +106 -13
  128. package/src/Application.js +421 -0
  129. package/src/interfaces/index.js +19 -0
  130. package/src/models/AchievementsContract.js +217 -0
  131. package/src/models/ArbitrationContract.js +69 -0
  132. package/src/models/ArbitrationProxyContract.js +32 -0
  133. package/src/models/ERC20Contract.js +156 -0
  134. package/src/models/FantasyERC20Contract.js +92 -0
  135. package/src/models/IContract.js +1002 -0
  136. package/src/models/PolkamarketsSmartAccount.js +100 -0
  137. package/src/models/PredictionMarketContract.js +562 -0
  138. package/src/models/PredictionMarketV2Contract.js +830 -0
  139. package/src/models/PredictionMarketV3Contract.js +233 -0
  140. package/src/models/PredictionMarketV3ControllerContract.js +102 -0
  141. package/src/models/PredictionMarketV3FactoryContract.js +96 -0
  142. package/src/models/PredictionMarketV3ManagerContract.js +111 -0
  143. package/src/models/PredictionMarketV3QuerierContract.js +24 -0
  144. package/src/models/RealitioERC20Contract.js +286 -0
  145. package/src/models/VotingContract.js +182 -0
  146. package/src/models/WETH9Contract.js +92 -0
  147. package/src/models/index.js +33 -0
  148. package/src/utils/Account.js +40 -0
  149. package/src/utils/Contract.js +120 -0
  150. package/src/utils/Numbers.js +94 -0
  151. package/tests/fantasyERC20Contract.js +225 -0
  152. package/tests/index.js +10 -0
  153. package/tests/predictionMarketContract.js +466 -0
  154. package/tests/predictionMarketV2Contract.js +1042 -0
  155. package/tests/predictionMarketV3Contract.js +1079 -0
  156. package/tests/predictionMarketV3ControllerContract.js +613 -0
  157. package/tests/predictionMarketV3FactoryContract.js +469 -0
  158. package/tests/predictionMarketV3ManagerContract.js +610 -0
  159. package/tests/utils.js +16 -0
  160. package/tests/votingContract.js +490 -0
  161. package/tooling/docs/jsdoc.json +6 -0
  162. package/truffle-config.js +134 -0
  163. package/polkamarkets.js +0 -436
@@ -0,0 +1,240 @@
1
+ require(['gitbook', 'jquery'], function(gitbook, $) {
2
+ // Configuration
3
+ var MAX_SIZE = 4,
4
+ MIN_SIZE = 0,
5
+ BUTTON_ID;
6
+
7
+ // Current fontsettings state
8
+ var fontState;
9
+
10
+ // Default themes
11
+ var THEMES = [
12
+ {
13
+ config: 'white',
14
+ text: 'White',
15
+ id: 0
16
+ },
17
+ {
18
+ config: 'sepia',
19
+ text: 'Sepia',
20
+ id: 1
21
+ },
22
+ {
23
+ config: 'night',
24
+ text: 'Night',
25
+ id: 2
26
+ }
27
+ ];
28
+
29
+ // Default font families
30
+ var FAMILIES = [
31
+ {
32
+ config: 'serif',
33
+ text: 'Serif',
34
+ id: 0
35
+ },
36
+ {
37
+ config: 'sans',
38
+ text: 'Sans',
39
+ id: 1
40
+ }
41
+ ];
42
+
43
+ // Return configured themes
44
+ function getThemes() {
45
+ return THEMES;
46
+ }
47
+
48
+ // Modify configured themes
49
+ function setThemes(themes) {
50
+ THEMES = themes;
51
+ updateButtons();
52
+ }
53
+
54
+ // Return configured font families
55
+ function getFamilies() {
56
+ return FAMILIES;
57
+ }
58
+
59
+ // Modify configured font families
60
+ function setFamilies(families) {
61
+ FAMILIES = families;
62
+ updateButtons();
63
+ }
64
+
65
+ // Save current font settings
66
+ function saveFontSettings() {
67
+ gitbook.storage.set('fontState', fontState);
68
+ update();
69
+ }
70
+
71
+ // Increase font size
72
+ function enlargeFontSize(e) {
73
+ e.preventDefault();
74
+ if (fontState.size >= MAX_SIZE) return;
75
+
76
+ fontState.size++;
77
+ saveFontSettings();
78
+ }
79
+
80
+ // Decrease font size
81
+ function reduceFontSize(e) {
82
+ e.preventDefault();
83
+ if (fontState.size <= MIN_SIZE) return;
84
+
85
+ fontState.size--;
86
+ saveFontSettings();
87
+ }
88
+
89
+ // Change font family
90
+ function changeFontFamily(configName, e) {
91
+ if (e && e instanceof Event) {
92
+ e.preventDefault();
93
+ }
94
+
95
+ var familyId = getFontFamilyId(configName);
96
+ fontState.family = familyId;
97
+ saveFontSettings();
98
+ }
99
+
100
+ // Change type of color theme
101
+ function changeColorTheme(configName, e) {
102
+ if (e && e instanceof Event) {
103
+ e.preventDefault();
104
+ }
105
+
106
+ var $book = gitbook.state.$book;
107
+
108
+ // Remove currently applied color theme
109
+ if (fontState.theme !== 0)
110
+ $book.removeClass('color-theme-'+fontState.theme);
111
+
112
+ // Set new color theme
113
+ var themeId = getThemeId(configName);
114
+ fontState.theme = themeId;
115
+ if (fontState.theme !== 0)
116
+ $book.addClass('color-theme-'+fontState.theme);
117
+
118
+ saveFontSettings();
119
+ }
120
+
121
+ // Return the correct id for a font-family config key
122
+ // Default to first font-family
123
+ function getFontFamilyId(configName) {
124
+ // Search for plugin configured font family
125
+ var configFamily = $.grep(FAMILIES, function(family) {
126
+ return family.config == configName;
127
+ })[0];
128
+ // Fallback to default font family
129
+ return (!!configFamily)? configFamily.id : 0;
130
+ }
131
+
132
+ // Return the correct id for a theme config key
133
+ // Default to first theme
134
+ function getThemeId(configName) {
135
+ // Search for plugin configured theme
136
+ var configTheme = $.grep(THEMES, function(theme) {
137
+ return theme.config == configName;
138
+ })[0];
139
+ // Fallback to default theme
140
+ return (!!configTheme)? configTheme.id : 0;
141
+ }
142
+
143
+ function update() {
144
+ var $book = gitbook.state.$book;
145
+
146
+ $('.font-settings .font-family-list li').removeClass('active');
147
+ $('.font-settings .font-family-list li:nth-child('+(fontState.family+1)+')').addClass('active');
148
+
149
+ $book[0].className = $book[0].className.replace(/\bfont-\S+/g, '');
150
+ $book.addClass('font-size-'+fontState.size);
151
+ $book.addClass('font-family-'+fontState.family);
152
+
153
+ if(fontState.theme !== 0) {
154
+ $book[0].className = $book[0].className.replace(/\bcolor-theme-\S+/g, '');
155
+ $book.addClass('color-theme-'+fontState.theme);
156
+ }
157
+ }
158
+
159
+ function init(config) {
160
+ // Search for plugin configured font family
161
+ var configFamily = getFontFamilyId(config.family),
162
+ configTheme = getThemeId(config.theme);
163
+
164
+ // Instantiate font state object
165
+ fontState = gitbook.storage.get('fontState', {
166
+ size: config.size || 2,
167
+ family: configFamily,
168
+ theme: configTheme
169
+ });
170
+
171
+ update();
172
+ }
173
+
174
+ function updateButtons() {
175
+ // Remove existing fontsettings buttons
176
+ if (!!BUTTON_ID) {
177
+ gitbook.toolbar.removeButton(BUTTON_ID);
178
+ }
179
+
180
+ // Create buttons in toolbar
181
+ BUTTON_ID = gitbook.toolbar.createButton({
182
+ icon: 'fa fa-font',
183
+ label: 'Font Settings',
184
+ className: 'font-settings',
185
+ dropdown: [
186
+ [
187
+ {
188
+ text: 'A',
189
+ className: 'font-reduce',
190
+ onClick: reduceFontSize
191
+ },
192
+ {
193
+ text: 'A',
194
+ className: 'font-enlarge',
195
+ onClick: enlargeFontSize
196
+ }
197
+ ],
198
+ $.map(FAMILIES, function(family) {
199
+ family.onClick = function(e) {
200
+ return changeFontFamily(family.config, e);
201
+ };
202
+
203
+ return family;
204
+ }),
205
+ $.map(THEMES, function(theme) {
206
+ theme.onClick = function(e) {
207
+ return changeColorTheme(theme.config, e);
208
+ };
209
+
210
+ return theme;
211
+ })
212
+ ]
213
+ });
214
+ }
215
+
216
+ // Init configuration at start
217
+ gitbook.events.bind('start', function(e, config) {
218
+ var opts = config.fontsettings;
219
+
220
+ // Generate buttons at start
221
+ updateButtons();
222
+
223
+ // Init current settings
224
+ init(opts);
225
+ });
226
+
227
+ // Expose API
228
+ gitbook.fontsettings = {
229
+ enlargeFontSize: enlargeFontSize,
230
+ reduceFontSize: reduceFontSize,
231
+ setTheme: changeColorTheme,
232
+ setFamily: changeFontFamily,
233
+ getThemes: getThemes,
234
+ setThemes: setThemes,
235
+ getFamilies: getFamilies,
236
+ setFamilies: setFamilies
237
+ };
238
+ });
239
+
240
+
@@ -0,0 +1,291 @@
1
+ /*
2
+ * Theme 1
3
+ */
4
+ .color-theme-1 .dropdown-menu {
5
+ background-color: #111111;
6
+ border-color: #7e888b;
7
+ }
8
+ .color-theme-1 .dropdown-menu .dropdown-caret .caret-inner {
9
+ border-bottom: 9px solid #111111;
10
+ }
11
+ .color-theme-1 .dropdown-menu .buttons {
12
+ border-color: #7e888b;
13
+ }
14
+ .color-theme-1 .dropdown-menu .button {
15
+ color: #afa790;
16
+ }
17
+ .color-theme-1 .dropdown-menu .button:hover {
18
+ color: #73553c;
19
+ }
20
+ /*
21
+ * Theme 2
22
+ */
23
+ .color-theme-2 .dropdown-menu {
24
+ background-color: #2d3143;
25
+ border-color: #272a3a;
26
+ }
27
+ .color-theme-2 .dropdown-menu .dropdown-caret .caret-inner {
28
+ border-bottom: 9px solid #2d3143;
29
+ }
30
+ .color-theme-2 .dropdown-menu .buttons {
31
+ border-color: #272a3a;
32
+ }
33
+ .color-theme-2 .dropdown-menu .button {
34
+ color: #62677f;
35
+ }
36
+ .color-theme-2 .dropdown-menu .button:hover {
37
+ color: #f4f4f5;
38
+ }
39
+ .book .book-header .font-settings .font-enlarge {
40
+ line-height: 30px;
41
+ font-size: 1.4em;
42
+ }
43
+ .book .book-header .font-settings .font-reduce {
44
+ line-height: 30px;
45
+ font-size: 1em;
46
+ }
47
+ .book.color-theme-1 .book-body {
48
+ color: #704214;
49
+ background: #f3eacb;
50
+ }
51
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section {
52
+ background: #f3eacb;
53
+ }
54
+ .book.color-theme-2 .book-body {
55
+ color: #bdcadb;
56
+ background: #1c1f2b;
57
+ }
58
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section {
59
+ background: #1c1f2b;
60
+ }
61
+ .book.font-size-0 .book-body .page-inner section {
62
+ font-size: 1.2rem;
63
+ }
64
+ .book.font-size-1 .book-body .page-inner section {
65
+ font-size: 1.4rem;
66
+ }
67
+ .book.font-size-2 .book-body .page-inner section {
68
+ font-size: 1.6rem;
69
+ }
70
+ .book.font-size-3 .book-body .page-inner section {
71
+ font-size: 2.2rem;
72
+ }
73
+ .book.font-size-4 .book-body .page-inner section {
74
+ font-size: 4rem;
75
+ }
76
+ .book.font-family-0 {
77
+ font-family: Georgia, serif;
78
+ }
79
+ .book.font-family-1 {
80
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
81
+ }
82
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal {
83
+ color: #704214;
84
+ }
85
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal a {
86
+ color: inherit;
87
+ }
88
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h1,
89
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h2,
90
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h3,
91
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h4,
92
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h5,
93
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h6 {
94
+ color: inherit;
95
+ }
96
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h1,
97
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h2 {
98
+ border-color: inherit;
99
+ }
100
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h6 {
101
+ color: inherit;
102
+ }
103
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal hr {
104
+ background-color: inherit;
105
+ }
106
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal blockquote {
107
+ border-color: inherit;
108
+ }
109
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre,
110
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code {
111
+ background: #fdf6e3;
112
+ color: #657b83;
113
+ border-color: #f8df9c;
114
+ }
115
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal .highlight {
116
+ background-color: inherit;
117
+ }
118
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal table th,
119
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal table td {
120
+ border-color: #f5d06c;
121
+ }
122
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal table tr {
123
+ color: inherit;
124
+ background-color: #fdf6e3;
125
+ border-color: #444444;
126
+ }
127
+ .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal table tr:nth-child(2n) {
128
+ background-color: #fbeecb;
129
+ }
130
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal {
131
+ color: #bdcadb;
132
+ }
133
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal a {
134
+ color: #3eb1d0;
135
+ }
136
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h1,
137
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h2,
138
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h3,
139
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h4,
140
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h5,
141
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h6 {
142
+ color: #fffffa;
143
+ }
144
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h1,
145
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h2 {
146
+ border-color: #373b4e;
147
+ }
148
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h6 {
149
+ color: #373b4e;
150
+ }
151
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal hr {
152
+ background-color: #373b4e;
153
+ }
154
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal blockquote {
155
+ border-color: #373b4e;
156
+ }
157
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre,
158
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code {
159
+ color: #9dbed8;
160
+ background: #2d3143;
161
+ border-color: #2d3143;
162
+ }
163
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal .highlight {
164
+ background-color: #282a39;
165
+ }
166
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal table th,
167
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal table td {
168
+ border-color: #3b3f54;
169
+ }
170
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal table tr {
171
+ color: #b6c2d2;
172
+ background-color: #2d3143;
173
+ border-color: #3b3f54;
174
+ }
175
+ .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal table tr:nth-child(2n) {
176
+ background-color: #35394b;
177
+ }
178
+ .book.color-theme-1 .book-header {
179
+ color: #afa790;
180
+ background: transparent;
181
+ }
182
+ .book.color-theme-1 .book-header .btn {
183
+ color: #afa790;
184
+ }
185
+ .book.color-theme-1 .book-header .btn:hover {
186
+ color: #73553c;
187
+ background: none;
188
+ }
189
+ .book.color-theme-1 .book-header h1 {
190
+ color: #704214;
191
+ }
192
+ .book.color-theme-2 .book-header {
193
+ color: #7e888b;
194
+ background: transparent;
195
+ }
196
+ .book.color-theme-2 .book-header .btn {
197
+ color: #3b3f54;
198
+ }
199
+ .book.color-theme-2 .book-header .btn:hover {
200
+ color: #fffff5;
201
+ background: none;
202
+ }
203
+ .book.color-theme-2 .book-header h1 {
204
+ color: #bdcadb;
205
+ }
206
+ .book.color-theme-1 .book-body .navigation {
207
+ color: #afa790;
208
+ }
209
+ .book.color-theme-1 .book-body .navigation:hover {
210
+ color: #73553c;
211
+ }
212
+ .book.color-theme-2 .book-body .navigation {
213
+ color: #383f52;
214
+ }
215
+ .book.color-theme-2 .book-body .navigation:hover {
216
+ color: #fffff5;
217
+ }
218
+ /*
219
+ * Theme 1
220
+ */
221
+ .book.color-theme-1 .book-summary {
222
+ color: #afa790;
223
+ background: #111111;
224
+ border-right: 1px solid rgba(0, 0, 0, 0.07);
225
+ }
226
+ .book.color-theme-1 .book-summary .book-search {
227
+ background: transparent;
228
+ }
229
+ .book.color-theme-1 .book-summary .book-search input,
230
+ .book.color-theme-1 .book-summary .book-search input:focus {
231
+ border: 1px solid transparent;
232
+ }
233
+ .book.color-theme-1 .book-summary ul.summary li.divider {
234
+ background: #7e888b;
235
+ box-shadow: none;
236
+ }
237
+ .book.color-theme-1 .book-summary ul.summary li i.fa-check {
238
+ color: #33cc33;
239
+ }
240
+ .book.color-theme-1 .book-summary ul.summary li.done > a {
241
+ color: #877f6a;
242
+ }
243
+ .book.color-theme-1 .book-summary ul.summary li a,
244
+ .book.color-theme-1 .book-summary ul.summary li span {
245
+ color: #877f6a;
246
+ background: transparent;
247
+ font-weight: normal;
248
+ }
249
+ .book.color-theme-1 .book-summary ul.summary li.active > a,
250
+ .book.color-theme-1 .book-summary ul.summary li a:hover {
251
+ color: #704214;
252
+ background: transparent;
253
+ font-weight: normal;
254
+ }
255
+ /*
256
+ * Theme 2
257
+ */
258
+ .book.color-theme-2 .book-summary {
259
+ color: #bcc1d2;
260
+ background: #2d3143;
261
+ border-right: none;
262
+ }
263
+ .book.color-theme-2 .book-summary .book-search {
264
+ background: transparent;
265
+ }
266
+ .book.color-theme-2 .book-summary .book-search input,
267
+ .book.color-theme-2 .book-summary .book-search input:focus {
268
+ border: 1px solid transparent;
269
+ }
270
+ .book.color-theme-2 .book-summary ul.summary li.divider {
271
+ background: #272a3a;
272
+ box-shadow: none;
273
+ }
274
+ .book.color-theme-2 .book-summary ul.summary li i.fa-check {
275
+ color: #33cc33;
276
+ }
277
+ .book.color-theme-2 .book-summary ul.summary li.done > a {
278
+ color: #62687f;
279
+ }
280
+ .book.color-theme-2 .book-summary ul.summary li a,
281
+ .book.color-theme-2 .book-summary ul.summary li span {
282
+ color: #c1c6d7;
283
+ background: transparent;
284
+ font-weight: 600;
285
+ }
286
+ .book.color-theme-2 .book-summary ul.summary li.active > a,
287
+ .book.color-theme-2 .book-summary ul.summary li a:hover {
288
+ color: #f4f4f5;
289
+ background: #252737;
290
+ font-weight: 600;
291
+ }
@@ -0,0 +1,135 @@
1
+ pre,
2
+ code {
3
+ /* http://jmblog.github.io/color-themes-for-highlightjs */
4
+ /* Tomorrow Comment */
5
+ /* Tomorrow Red */
6
+ /* Tomorrow Orange */
7
+ /* Tomorrow Yellow */
8
+ /* Tomorrow Green */
9
+ /* Tomorrow Aqua */
10
+ /* Tomorrow Blue */
11
+ /* Tomorrow Purple */
12
+ }
13
+ pre .hljs-comment,
14
+ code .hljs-comment,
15
+ pre .hljs-title,
16
+ code .hljs-title {
17
+ color: #8e908c;
18
+ }
19
+ pre .hljs-variable,
20
+ code .hljs-variable,
21
+ pre .hljs-attribute,
22
+ code .hljs-attribute,
23
+ pre .hljs-tag,
24
+ code .hljs-tag,
25
+ pre .hljs-regexp,
26
+ code .hljs-regexp,
27
+ pre .hljs-deletion,
28
+ code .hljs-deletion,
29
+ pre .ruby .hljs-constant,
30
+ code .ruby .hljs-constant,
31
+ pre .xml .hljs-tag .hljs-title,
32
+ code .xml .hljs-tag .hljs-title,
33
+ pre .xml .hljs-pi,
34
+ code .xml .hljs-pi,
35
+ pre .xml .hljs-doctype,
36
+ code .xml .hljs-doctype,
37
+ pre .html .hljs-doctype,
38
+ code .html .hljs-doctype,
39
+ pre .css .hljs-id,
40
+ code .css .hljs-id,
41
+ pre .css .hljs-class,
42
+ code .css .hljs-class,
43
+ pre .css .hljs-pseudo,
44
+ code .css .hljs-pseudo {
45
+ color: #c82829;
46
+ }
47
+ pre .hljs-number,
48
+ code .hljs-number,
49
+ pre .hljs-preprocessor,
50
+ code .hljs-preprocessor,
51
+ pre .hljs-pragma,
52
+ code .hljs-pragma,
53
+ pre .hljs-built_in,
54
+ code .hljs-built_in,
55
+ pre .hljs-literal,
56
+ code .hljs-literal,
57
+ pre .hljs-params,
58
+ code .hljs-params,
59
+ pre .hljs-constant,
60
+ code .hljs-constant {
61
+ color: #f5871f;
62
+ }
63
+ pre .ruby .hljs-class .hljs-title,
64
+ code .ruby .hljs-class .hljs-title,
65
+ pre .css .hljs-rules .hljs-attribute,
66
+ code .css .hljs-rules .hljs-attribute {
67
+ color: #eab700;
68
+ }
69
+ pre .hljs-string,
70
+ code .hljs-string,
71
+ pre .hljs-value,
72
+ code .hljs-value,
73
+ pre .hljs-inheritance,
74
+ code .hljs-inheritance,
75
+ pre .hljs-header,
76
+ code .hljs-header,
77
+ pre .hljs-addition,
78
+ code .hljs-addition,
79
+ pre .ruby .hljs-symbol,
80
+ code .ruby .hljs-symbol,
81
+ pre .xml .hljs-cdata,
82
+ code .xml .hljs-cdata {
83
+ color: #718c00;
84
+ }
85
+ pre .css .hljs-hexcolor,
86
+ code .css .hljs-hexcolor {
87
+ color: #3e999f;
88
+ }
89
+ pre .hljs-function,
90
+ code .hljs-function,
91
+ pre .python .hljs-decorator,
92
+ code .python .hljs-decorator,
93
+ pre .python .hljs-title,
94
+ code .python .hljs-title,
95
+ pre .ruby .hljs-function .hljs-title,
96
+ code .ruby .hljs-function .hljs-title,
97
+ pre .ruby .hljs-title .hljs-keyword,
98
+ code .ruby .hljs-title .hljs-keyword,
99
+ pre .perl .hljs-sub,
100
+ code .perl .hljs-sub,
101
+ pre .javascript .hljs-title,
102
+ code .javascript .hljs-title,
103
+ pre .coffeescript .hljs-title,
104
+ code .coffeescript .hljs-title {
105
+ color: #4271ae;
106
+ }
107
+ pre .hljs-keyword,
108
+ code .hljs-keyword,
109
+ pre .javascript .hljs-function,
110
+ code .javascript .hljs-function {
111
+ color: #8959a8;
112
+ }
113
+ pre .hljs,
114
+ code .hljs {
115
+ display: block;
116
+ background: white;
117
+ color: #4d4d4c;
118
+ padding: 0.5em;
119
+ }
120
+ pre .coffeescript .javascript,
121
+ code .coffeescript .javascript,
122
+ pre .javascript .xml,
123
+ code .javascript .xml,
124
+ pre .tex .hljs-formula,
125
+ code .tex .hljs-formula,
126
+ pre .xml .javascript,
127
+ code .xml .javascript,
128
+ pre .xml .vbscript,
129
+ code .xml .vbscript,
130
+ pre .xml .css,
131
+ code .xml .css,
132
+ pre .xml .hljs-cdata,
133
+ code .xml .hljs-cdata {
134
+ opacity: 0.5;
135
+ }