schizm 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/bin/schizm +36 -0
- data/lib/schizm/chunk.rb +130 -0
- data/lib/schizm/env.rb +421 -0
- data/lib/schizm/env_colors.rb +173 -0
- data/lib/schizm/markup.rb +157 -0
- data/lib/schizm/match.rb +211 -0
- data/lib/schizm/parse.rb +398 -0
- data/lib/schizm/string.rb +161 -0
- data/res/fonts/fira-code-bold.otf +0 -0
- data/res/fonts/fira-code-license +102 -0
- data/res/fonts/fira-code-light.otf +0 -0
- data/res/fonts/fira-code-medium.otf +0 -0
- data/res/fonts/fira-code-regular.otf +0 -0
- data/res/fonts/fira-code.css +20 -0
- data/res/fonts/genericons-neue-license +339 -0
- data/res/fonts/genericons-neue.css +1 -0
- data/res/fonts/genericons-neue.eot +0 -0
- data/res/fonts/genericons-neue.ttf +0 -0
- data/res/fonts/genericons-neue.woff2 +0 -0
- data/res/fonts/social-logos-license +264 -0
- data/res/fonts/social-logos.css +1 -0
- data/res/fonts/social-logos.eot +0 -0
- data/res/fonts/social-logos.ttf +0 -0
- data/res/fonts/social-logos.woff2 +0 -0
- data/res/license/BSD-2-Clause +24 -0
- data/res/license/BSD-3-Clause +29 -0
- data/res/license/GPL-2.0 +13 -0
- data/res/license/GPL-3.0 +12 -0
- data/res/license/LGPL-2.1 +14 -0
- data/res/license/LGPL-3.0 +14 -0
- data/res/license/MIT +17 -0
- data/res/license/MPL-2.0 +3 -0
- data/res/schizm.js +0 -0
- data/res/schizm.liquid +81 -0
- data/res/scss/fonts.scss +4 -0
- data/res/scss/mixin.scss +20 -0
- data/res/scss/style.scss +323 -0
- metadata +81 -0
data/res/scss/style.scss
ADDED
@@ -0,0 +1,323 @@
|
|
1
|
+
body {
|
2
|
+
color: #222;
|
3
|
+
font-size: 11pt;
|
4
|
+
font-weight: 400;
|
5
|
+
font-family: $body-family;
|
6
|
+
padding: 0;
|
7
|
+
margin: 0;
|
8
|
+
}
|
9
|
+
|
10
|
+
h1, h2, h3, h4, h5, h6 {
|
11
|
+
font-weight: 700;
|
12
|
+
font-family: $sans-family;
|
13
|
+
}
|
14
|
+
|
15
|
+
code, pre {
|
16
|
+
font-size: 9pt;
|
17
|
+
font-weight: 400;
|
18
|
+
font-family: $mono-family;
|
19
|
+
}
|
20
|
+
|
21
|
+
.hi-comment {
|
22
|
+
color: #999999;
|
23
|
+
}
|
24
|
+
.hi-preproc {
|
25
|
+
color: #B91372;
|
26
|
+
}
|
27
|
+
.hi-type {
|
28
|
+
color: #07A0C3;
|
29
|
+
}
|
30
|
+
.hi-type-spec {
|
31
|
+
color: #1C77C3;
|
32
|
+
}
|
33
|
+
.hi-flow {
|
34
|
+
color: #3BB273;
|
35
|
+
}
|
36
|
+
.hi-op {
|
37
|
+
color: #25A18E;
|
38
|
+
}
|
39
|
+
.hi-value {
|
40
|
+
color: #F56416;
|
41
|
+
}
|
42
|
+
.hi-other {
|
43
|
+
color: #B96AC9;
|
44
|
+
}
|
45
|
+
.hi-ident {
|
46
|
+
color: #004E64;
|
47
|
+
}
|
48
|
+
|
49
|
+
p {
|
50
|
+
line-height: 125%;
|
51
|
+
}
|
52
|
+
|
53
|
+
hr {
|
54
|
+
border: none;
|
55
|
+
border-bottom-color: rgba(0, 0, 0, 0.2);
|
56
|
+
border-bottom-style: solid;
|
57
|
+
border-bottom-width: 1pt;
|
58
|
+
background: transparent;
|
59
|
+
margin-top: 24pt;
|
60
|
+
margin-bottom: 24pt;
|
61
|
+
}
|
62
|
+
|
63
|
+
.container {
|
64
|
+
padding: 0;
|
65
|
+
margin: 0;
|
66
|
+
}
|
67
|
+
|
68
|
+
.sidenav {
|
69
|
+
z-index: 200;
|
70
|
+
width: 192pt;
|
71
|
+
height: 100%;
|
72
|
+
position: fixed;
|
73
|
+
overflow-x: hidden;
|
74
|
+
overflow-y: auto;
|
75
|
+
color: $primary-500-text;
|
76
|
+
background: $primary-500;
|
77
|
+
border-right-style: solid;
|
78
|
+
border-right-width: 4pt;
|
79
|
+
border-right-color: $primary-700;
|
80
|
+
font-family: $sans-family;
|
81
|
+
}
|
82
|
+
|
83
|
+
.toc-home {
|
84
|
+
padding: 16pt;
|
85
|
+
> a {
|
86
|
+
color: $primary-500-text;
|
87
|
+
text-shadow: 0pt 1pt 0.5pt rgba(0, 0, 0, 0.2);
|
88
|
+
font-size: 24pt;
|
89
|
+
font-weight: 700;
|
90
|
+
text-decoration: none;
|
91
|
+
display: inline-block;
|
92
|
+
&:hover { text-decoration: underline; }
|
93
|
+
}
|
94
|
+
> p {
|
95
|
+
color: $primary-900;
|
96
|
+
line-height: 125%;
|
97
|
+
padding: 0;
|
98
|
+
margin: 0;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
.toc-list {
|
103
|
+
padding: 0;
|
104
|
+
padding-left: 8pt;
|
105
|
+
margin: 0;
|
106
|
+
}
|
107
|
+
|
108
|
+
.toc-tree,
|
109
|
+
.toc-tree ul {
|
110
|
+
list-style: none;
|
111
|
+
position: relative;
|
112
|
+
padding: 0;
|
113
|
+
margin: 0 0 0 8pt;
|
114
|
+
}
|
115
|
+
|
116
|
+
.toc-tree ul {
|
117
|
+
padding: 0;
|
118
|
+
margin: 0 0 0 4pt;
|
119
|
+
}
|
120
|
+
|
121
|
+
.toc-tree:before,
|
122
|
+
.toc-tree ul:before {
|
123
|
+
content: '';
|
124
|
+
display: block;
|
125
|
+
position: absolute;
|
126
|
+
left: 0;
|
127
|
+
top: 0;
|
128
|
+
bottom: 0;
|
129
|
+
border-left-width: 2pt;
|
130
|
+
border-left-style: solid;
|
131
|
+
border-left-color: $primary-700;
|
132
|
+
width: 0;
|
133
|
+
}
|
134
|
+
|
135
|
+
.toc-tree li {
|
136
|
+
margin: 0;
|
137
|
+
padding: 0 12pt;
|
138
|
+
line-height: 2em;
|
139
|
+
font-weight: 700;
|
140
|
+
position: relative;
|
141
|
+
}
|
142
|
+
|
143
|
+
.toc-tree li:before {
|
144
|
+
content: '';
|
145
|
+
display: block;
|
146
|
+
width: 8pt;
|
147
|
+
height: 0;
|
148
|
+
border-top-width: 2pt;
|
149
|
+
border-top-style: solid;
|
150
|
+
border-top-color: $primary-700;
|
151
|
+
margin-top: -2pt;
|
152
|
+
position: absolute;
|
153
|
+
top: 1em; /* line-height / 2 */
|
154
|
+
left: 0;
|
155
|
+
}
|
156
|
+
|
157
|
+
.toc-tree li:last-child:before {
|
158
|
+
background: $primary-500;
|
159
|
+
height: auto;
|
160
|
+
top: 1em; /* line-height / 2 */
|
161
|
+
bottom: 0;
|
162
|
+
}
|
163
|
+
|
164
|
+
.toc-link {
|
165
|
+
display: inline-block;
|
166
|
+
color: $primary-500-text;
|
167
|
+
text-shadow: 0pt 1pt 0.5pt rgba(0, 0, 0, 0.2);
|
168
|
+
text-decoration: none;
|
169
|
+
font-size: 12pt;
|
170
|
+
&:hover {
|
171
|
+
text-decoration: underline;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
.content {
|
176
|
+
padding: 32pt;
|
177
|
+
padding-left: 48pt;
|
178
|
+
padding-right: 48pt;
|
179
|
+
margin-left: 192pt;
|
180
|
+
max-width: 512pt;
|
181
|
+
min-width: 192pt;
|
182
|
+
}
|
183
|
+
|
184
|
+
.copyright {
|
185
|
+
width: 100%;
|
186
|
+
font-size: 10pt;
|
187
|
+
font-family: $sans-family;
|
188
|
+
text-align: center;
|
189
|
+
display: inline-block;
|
190
|
+
padding: 0;
|
191
|
+
margin: 0;
|
192
|
+
margin-top: 32pt;
|
193
|
+
}
|
194
|
+
|
195
|
+
.icon-holder {
|
196
|
+
font-size: 32pt;
|
197
|
+
position: relative;
|
198
|
+
display: inline-block;
|
199
|
+
padding: 0;
|
200
|
+
padding-right: 8pt;
|
201
|
+
margin: 0;
|
202
|
+
float: left;
|
203
|
+
top: -2pt;
|
204
|
+
}
|
205
|
+
|
206
|
+
.aside {
|
207
|
+
padding-top: 2pt;
|
208
|
+
padding-bottom: 2pt;
|
209
|
+
padding-right: 16pt;
|
210
|
+
padding-left: 16pt;
|
211
|
+
margin-top: 16pt;
|
212
|
+
margin-bottom: 16pt;
|
213
|
+
color: $secondary-50-text;
|
214
|
+
background: $secondary-50;
|
215
|
+
border-left-width: 4pt;
|
216
|
+
border-left-style: solid;
|
217
|
+
border-left-color: $secondary-A700;
|
218
|
+
> .icon-holder {
|
219
|
+
color: $secondary-A700;
|
220
|
+
}
|
221
|
+
}
|
222
|
+
|
223
|
+
.alert {
|
224
|
+
padding-top: 2pt;
|
225
|
+
padding-bottom: 2pt;
|
226
|
+
padding-right: 16pt;
|
227
|
+
padding-left: 16pt;
|
228
|
+
margin-top: 16pt;
|
229
|
+
margin-bottom: 16pt;
|
230
|
+
color: $primary-50-text;
|
231
|
+
background: $primary-50;
|
232
|
+
border-left-width: 4pt;
|
233
|
+
border-left-style: solid;
|
234
|
+
border-left-color: $primary-A700;
|
235
|
+
> .icon-holder {
|
236
|
+
color: $primary-A700;
|
237
|
+
}
|
238
|
+
}
|
239
|
+
|
240
|
+
.chunk {
|
241
|
+
font-size: 11pt;
|
242
|
+
font-weight: 400;
|
243
|
+
font-family: $sans-family;
|
244
|
+
text-decoration: none;
|
245
|
+
color: #999;
|
246
|
+
&:link { color: #222; }
|
247
|
+
&:link:hover { color: #222; text-decoration: underline; }
|
248
|
+
&::before { content: "\3008"; } // ⟨
|
249
|
+
&::after { content: "\3009"; } // ⟩
|
250
|
+
}
|
251
|
+
|
252
|
+
.panel-link {
|
253
|
+
font-size: 16pt;
|
254
|
+
line-height: 11pt;
|
255
|
+
text-decoration: none;
|
256
|
+
color: #EEE;
|
257
|
+
&:link { color: lightgray; }
|
258
|
+
&:link:hover { color: #333; }
|
259
|
+
}
|
260
|
+
|
261
|
+
.panel {
|
262
|
+
margin-top: 16pt;
|
263
|
+
margin-bottom: 16pt;
|
264
|
+
}
|
265
|
+
|
266
|
+
.panel-head {
|
267
|
+
padding: 8pt;
|
268
|
+
}
|
269
|
+
|
270
|
+
.the-chunk {
|
271
|
+
font-family: $sans-family;
|
272
|
+
&::before { content: "\3008"; } // ⟨
|
273
|
+
&::after { content: "\3009+="; } // ⟩ +=
|
274
|
+
}
|
275
|
+
|
276
|
+
.the-block {
|
277
|
+
font-family: $sans-family;
|
278
|
+
color: #777;
|
279
|
+
}
|
280
|
+
|
281
|
+
.panel-body {
|
282
|
+
padding: 8pt;
|
283
|
+
border-width: 1pt;
|
284
|
+
border-color: lightgray;
|
285
|
+
border-style: solid;
|
286
|
+
overflow-x: auto;
|
287
|
+
overflow-y: auto;
|
288
|
+
max-height: 256pt;
|
289
|
+
background: #FAFAFA;
|
290
|
+
> pre {
|
291
|
+
color: #999999;
|
292
|
+
}
|
293
|
+
}
|
294
|
+
|
295
|
+
.tl {
|
296
|
+
list-style: none;
|
297
|
+
}
|
298
|
+
|
299
|
+
.li-todo {
|
300
|
+
position: relative;
|
301
|
+
&::before {
|
302
|
+
color: $secondary-A700;
|
303
|
+
content: '\f405'; // close
|
304
|
+
font-family: 'Genericons-Neue';
|
305
|
+
font-weight: 400;
|
306
|
+
position: absolute;
|
307
|
+
top: 2pt;
|
308
|
+
left: -16pt;
|
309
|
+
}
|
310
|
+
}
|
311
|
+
|
312
|
+
.li-done {
|
313
|
+
position: relative;
|
314
|
+
&::before {
|
315
|
+
color: $primary-A700;
|
316
|
+
content: '\f418'; // checkmark
|
317
|
+
font-family: 'Genericons-Neue';
|
318
|
+
font-weight: 400;
|
319
|
+
position: absolute;
|
320
|
+
top: 2pt;
|
321
|
+
left: -16pt;
|
322
|
+
}
|
323
|
+
}
|
metadata
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: schizm
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- M. Grady Saunders
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-11-26 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description:
|
14
|
+
email: mgradysaunders@gmail.com
|
15
|
+
executables:
|
16
|
+
- schizm
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- bin/schizm
|
21
|
+
- lib/schizm/chunk.rb
|
22
|
+
- lib/schizm/env.rb
|
23
|
+
- lib/schizm/env_colors.rb
|
24
|
+
- lib/schizm/markup.rb
|
25
|
+
- lib/schizm/match.rb
|
26
|
+
- lib/schizm/parse.rb
|
27
|
+
- lib/schizm/string.rb
|
28
|
+
- res/fonts/fira-code-bold.otf
|
29
|
+
- res/fonts/fira-code-license
|
30
|
+
- res/fonts/fira-code-light.otf
|
31
|
+
- res/fonts/fira-code-medium.otf
|
32
|
+
- res/fonts/fira-code-regular.otf
|
33
|
+
- res/fonts/fira-code.css
|
34
|
+
- res/fonts/genericons-neue-license
|
35
|
+
- res/fonts/genericons-neue.css
|
36
|
+
- res/fonts/genericons-neue.eot
|
37
|
+
- res/fonts/genericons-neue.ttf
|
38
|
+
- res/fonts/genericons-neue.woff2
|
39
|
+
- res/fonts/social-logos-license
|
40
|
+
- res/fonts/social-logos.css
|
41
|
+
- res/fonts/social-logos.eot
|
42
|
+
- res/fonts/social-logos.ttf
|
43
|
+
- res/fonts/social-logos.woff2
|
44
|
+
- res/license/BSD-2-Clause
|
45
|
+
- res/license/BSD-3-Clause
|
46
|
+
- res/license/GPL-2.0
|
47
|
+
- res/license/GPL-3.0
|
48
|
+
- res/license/LGPL-2.1
|
49
|
+
- res/license/LGPL-3.0
|
50
|
+
- res/license/MIT
|
51
|
+
- res/license/MPL-2.0
|
52
|
+
- res/schizm.js
|
53
|
+
- res/schizm.liquid
|
54
|
+
- res/scss/fonts.scss
|
55
|
+
- res/scss/mixin.scss
|
56
|
+
- res/scss/style.scss
|
57
|
+
homepage: https://github.com/mgradysaunders/schizm
|
58
|
+
licenses:
|
59
|
+
- BSD-2-Clause
|
60
|
+
metadata: {}
|
61
|
+
post_install_message:
|
62
|
+
rdoc_options: []
|
63
|
+
require_paths:
|
64
|
+
- lib
|
65
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
requirements: []
|
76
|
+
rubyforge_project:
|
77
|
+
rubygems_version: 2.5.1
|
78
|
+
signing_key:
|
79
|
+
specification_version: 4
|
80
|
+
summary: A literate programming tool for C/C++
|
81
|
+
test_files: []
|