-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
543 lines (483 loc) · 22.1 KB
/
index.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
<!DOCTYPE html>
<html>
<head>
<title>Lori.css</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="./dist/lori.min.css">
<style>
/* Additional styles */
code{
white-space: pre-line;
}
code:first-line { font-size:0; }
code b{
background-color: #ffeccf !important;
}
</style>
</head>
<body>
<div style="position: fixed; top: 0; right: 0; z-index: 10;">
<a href="https://github.com/hlorand/lori.css"><img width="149" height="149" src="https://github.blog/wp-content/uploads/2008/12/forkme_right_orange_ff7600.png?resize=149%2C149" alt="Fork me on GitHub"></a>
</div>
<div class="row">
<div class="c-12 center t-white" style="background: linear-gradient(90deg, rgba(185,121,20,1) 0%, rgba(158,98,182,1) 100%);">
<h1 class="m-4">LORI.CSS</h1>
<p class="m-4">A small (<b>2 kb</b> gzipped) but powerful responsive CSS library.</p>
<p class="m-3">
<a href="dist/lori.min.css" download><button class="large orange m-1 s-2">Download</button></a>
<a href="#documentation"><button class="lightgray m-1 s-2">Documentation</button></a><br>
<a href="#custombuild"><button class="lightgray m-1 s-2">Create custom build</button></a>
</p>
</div>
</div>
<div class="row left pl-2 pr-2 pt-2">
<div class="c-12 c-l7">
<div class="c-6 p-2">
<h3 class="mb-1">Insanely tiny</h3>
<p>The whole library is only 7 kb! 2 kb gzipped. You can get the size down by creating a <a href="#custombuild">custom build</a> below.</p>
</div>
<div class="c-6 p-2">
<h3 class="mb-1">Responsive</h3>
<p>You can quickly design and customize responsive, mobile-first sites with Lori.css. The page you are watching was built with it.</p>
</div>
<div class="c-12 p-2">
<h3 class="mb-1">Getting started</h3>
<p>Add the following lines to your <kbd><head></kbd> section, and you are ready to go:</p>
<code class="p-1 white m-1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="lori.min.css">
</code>
</div>
</div>
<div class="c-s10 o-s1 c-8 o-2 c-l5 p-2">
<a href="examples/example1.htm">
<div class="video">
<video src="examples/example1.mp4" autoplay muted loop></video>
</div>
<button class="orange center t-white">Open example page</button>
</a>
</div>
</div>
<hr>
<div class="row pl-4 pr-4 mt-2">
<div class="c-12">
<h1 id="documentation" class="center mb-2">Documentation</h1>
</div>
<div class="c-12">
<h2>Grid system</h2>
</div>
<div class="c-7 c-l6">
<p>There are <b>12 columns</b>. Lori.css's grid system uses a series of rows and columns to layout and align content. You can specify the column width in the class name. The example below is an 50%-50% division.</p>
<code class="p-1 mt-1 mb-1 white m-1">
<div class="row"><br>
<div class="<b>c-6</b>"> This is a column. </div><br>
<div class="<b>c-6</b>"> This is also a column. </div><br>
</div><br>
</code>
</div>
<div class="c-5 c-l6 pr-4 pl-4">
<div class="c-6 mb-1 orange center">c-6</div>
<div class="c-6 mb-1 purple center">c-6</div>
<div class="c-8 mb-1 purple center">c-8</div>
<div class="c-4 mb-1 orange center">c-4</div>
<div class="c-3 mb-1 orange center">c-3</div>
<div class="c-3 mb-1 purple center">c-3</div>
<div class="c-6 mb-1 orange center">c-6</div>
<div class="c-2 c-sh mb-1 orange center">c-2</div>
<div class="c-2 c-sh mb-1 purple center">c-2</div>
<div class="c-2 c-sh mb-1 orange center">c-2</div>
<div class="c-2 c-sh mb-1 purple center">c-2</div>
<div class="c-2 c-sh mb-1 orange center">c-2</div>
<div class="c-2 c-sh mb-1 purple center">c-2</div>
<p class="c-h c-lh">A normal column collapsing into a row on small screens.</p>
</div>
</div>
<div class="row pl-4 pr-4">
<div class="c-7 c-l6 mt-2">
<p>There are <b>3 breakpoints</b> based on screen size:</p>
<table style="width: 100%;">
<tr>
<th> </th>
<th>Size</th>
<th>Class</th>
</tr>
<tr>
<td>Small</td>
<td><kbd>screen < 640px</kbd></td>
<td><kbd>c-s*</li></td>
</tr>
<tr>
<td>Normal</td>
<td><kbd>640px <= screen < 1280px</kbd></td>
<td><kbd>c-*</kbd></td>
</tr>
<tr>
<td>Large</td>
<td><kbd>1280px <= screen</kbd></td>
<td><kbd>c-l*</kbd></td>
</tr>
</table>
<p>Resize your browser window and watch how colums change their sizes.</p>
</div>
<div class="c-5 c-l6 p-4">
<div class="c-s4 c-6 c-l9 orange center" style="height:50px; line-height: 50px;">c-s4 c-6 c-l9</div>
<div class="c-s8 c-6 c-l3 mb-1 purple center" style="height:50px; line-height: 50px;">c-s8 c-6 c-l3</div>
<code class="p-1 mt-3 mb-1 white" style="margin-top: 30px;">
<div class="row"><br>
<div class="<b>c-s4 c-6 c-l9</b>"> <br>
33% on small, 50% on normal, 75% on large. <br>
</div><br>
<div class="<b>c-s8 c-6 c-l3</b>"><br>
66% on small, 50% on normal, 25% on large.<br>
</div><br>
</div><br>
</code>
</div>
<div class="c-7 c-l6">
<p>If you want to <b>hide a column</b> on a certain screen size, use one or more of the following classes:</p>
<ul>
<li>Hide column on small screens: <kbd>c-sh</kbd></li>
<li>Hide column on normal screens: <kbd>c-h</kbd></li>
<li>Hide column on large screens: <kbd>c-lh</kbd></li>
</ul>
</div>
<div class="c-5 c-l6 p-4">
<div class="c-s6 c-sh purple center" style="height:50px; line-height: 50px;">Hidden on small</div>
<div class="c-s6 c-h orange center" style="height:50px; line-height: 50px;">Hidden on normal</div>
<div class="c-s6 c-lh yellow center" style="height:50px; line-height: 50px;">Hidden on large</div>
<code class="c-12 p-1 mb-1 white" style="margin-top: 30px;">
<div class="c-6 <b>c-sh</b>">Hidden on small</div><br>
<div class="c-6 <b>c-h</b>">Hidden on normal</div><br>
<div class="c-6 <b>c-lh</b>">Hidden on large</div><br>
</code>
</div>
<div class="c-7 c-l6">
<p>If you want to <b>offset a column</b> on a certain screen size, use one or more of the following classes:</p>
<ul>
<li>Offset by * columns on small screens: <kbd>o-s*</kbd></li>
<li>Offset by * columns on normal screens: <kbd>o-*</kbd></li>
<li>Offset by * columns on large screens: <kbd>o-l*</kbd></li>
</ul>
</div>
<div class="c-5 c-l6 p-4">
<div class="c-s12 lightgray" style="border: 1px dotted gray;">
<div class="c-s8 o-s2 c-8 o-2 c-l8 o-l2 purple center" style="height:50px; line-height: 25px;">8 cols with 2 offset on every screen</div>
</div>
<code class="c-12 p-1 mt-3 mb-1 white" style="margin-top: 30px;">
<div class="c-s8 <b>o-s2</b> c-8 <b>o-2</b> c-l8 <b>o-l2</b>" ><br>
8 cols with 2 offset on every screen<br>
</div>
</code>
</div>
</div>
<div class="row pl-4 pr-4">
<div class="c-12">
<h2>Menus</h2>
<p>Menus are just simple lists with the <kbd>.menu</kbd> class and some additional helper "toggle" elements.</p>
<ul>
<li>You can change the menu toggler text</li>
<li>You can set the menu thickness by adding padding (<kbd>p-1</kbd>, <kbd>p-2</kbd>... see below).</li>
<li>You can set the menu z-depth by using another shadow class (<kbd>s-1</kbd>, <kbd>s-2</kbd>... see below).</li>
<li>You can change the colors.</li>
</ul>
</div>
<div class="c-12 s-3 mt-2">
<label class="menutoggle orange p-1" for="menutoggle">☰</label>
<input id="menutoggle" type="checkbox">
<ul class="menu orange">
<a href="#"><li class="orange p-1">MenuItem</li></a>
<a href="#"><li class="orange active p-1">ActiveItem</li></a>
<a href="#"><li class="orange p-1">MenuItem</li></a>
</ul>
</div>
<div class="c-12 pr-3">
<code class="p-1 mt-1 mb-1 white m-1">
<nav class="c-12 s-3"><br>
<label class="menutoggle orange p-1" for="menutoggle">☰</label><br>
<input id="menutoggle" type="checkbox"><br>
<ul class="menu orange"><br>
<a href="#"><li class="orange p-1"> MenuItem </li></a><br>
<a href="#"><li class="orange active p-1"> ActiveItem </li></a><br>
<a href="#"><li class="orange p-1"> MenuItem </li></a><br>
</ul><br>
</nav>
</code>
</div>
</div>
<div class="row pl-4 pr-4 mb-3">
<div class="c-s12">
<h2>Colors</h2>
<p>You can set background and text colors using the following classes:</p>
</div>
<div class="c-s6 c-12 mt-2">
<div class="c-s12 c-2 c-l1 center black">.black</div>
<div class="c-s12 c-2 c-l1 center darkgray">.darkgray</div>
<div class="c-s12 c-2 c-l1 center brown">.brown</div>
<div class="c-s12 c-2 c-l1 center red">.red</div>
<div class="c-s12 c-2 c-l1 center orange">.orange</div>
<div class="c-s12 c-2 c-l1 center yellow">.yellow</div>
<div class="c-s12 c-2 c-l1 center green">.green</div>
<div class="c-s12 c-2 c-l1 center blue">.blue</div>
<div class="c-s12 c-2 c-l1 center purple">.purple</div>
<div class="c-s12 c-2 c-l1 center gray">.gray</div>
<div class="c-s12 c-2 c-l1 center lightgray">.lightgray</div>
<div class="c-s12 c-2 c-l1 center white">.white</div>
</div>
<div class="c-s6 c-12 mt-2">
<div class="c-s12 c-2 c-l1 center white t-black">.t-black</div>
<div class="c-s12 c-2 c-l1 center white t-darkgray">.t-darkgray</div>
<div class="c-s12 c-2 c-l1 center white t-brown">.t-brown</div>
<div class="c-s12 c-2 c-l1 center white t-red">.t-red</div>
<div class="c-s12 c-2 c-l1 center white t-orange">.t-orange</div>
<div class="c-s12 c-2 c-l1 center white t-yellow">.t-yellow</div>
<div class="c-s12 c-2 c-l1 center white t-green">.t-green</div>
<div class="c-s12 c-2 c-l1 center white t-blue">.t-blue</div>
<div class="c-s12 c-2 c-l1 center white t-purple">.t-purple</div>
<div class="c-s12 c-2 c-l1 center white t-gray">.t-gray</div>
<div class="c-s12 c-2 c-l1 center white t-lightgray">.t-lightgray</div>
<div class="c-s12 c-2 c-l1 center darkgray t-white">.t-white</div>
</div>
<div class="c-12 p-1">
<h3 class="mb-1">Shadow</h3>
<p>You can drop shadow behind elements with the following classes:</p>
<ul>
<li>1px shadow: <kbd class="s-1">.s-1</kbd></li>
<li>2px shadow: <kbd class="s-2">.s-2</kbd></li>
<li>3px shadow: <kbd class="s-3">.s-3</kbd></li>
<li>4px shadow: <kbd class="s-4">.s-4</kbd></li>
<li>5px shadow: <kbd class="s-5">.s-5</kbd></li>
</ul>
</div>
</div>
<div class="row pl-4 pr-4">
<div class="c-s12 c-10 c-l8 mt-2">
<h2>Margins, paddings</h2>
<p>Use the <kbd>m-*</kbd> or the <kbd>p-*</kbd> classes to set the margin or padding width, where <kbd>*</kbd> can be 0,1,2,3,4,5 which means 5px, 10px, 20px, 30px 40px or 50px.</p>
<p>Examples:</p>
<ul>
<li><kbd>m-1</kbd> = <kbd>margin: 10px;</kbd></li>
<li><kbd>p-4</kbd> = <kbd>padding: 40px;</kbd></li>
</ul>
<p>Use the <kbd>ml-*</kbd>, <kbd>mr-*</kbd>, <kbd>mt-*</kbd>, <kbd>mb-*</kbd> to set the left, right, top or bottom margin.</p>
<p>Use the <kbd>pl-*</kbd>, <kbd>pr-*</kbd>, <kbd>pt-*</kbd>, <kbd>pb-*</kbd> to set the left, right, top or bottom padding.</p>
<p>Examples:</p>
<ul>
<li><kbd>mr-2</kbd> = <kbd>margin-right: 20px;</kbd></li>
<li><kbd>pb-3</kbd> = <kbd>padding-bottom: 30px;</kbd></li>
</ul>
<p>Real life example:</p>
<code class="p-1 white m-1">
<div class="<b>m-2 pl-1</b>"><br>
<p>This is a div with 20px margin and 10px padding-left.</p><br>
</div><br>
</code>
</div>
</div>
<div class="row pl-4 pr-4">
<div class="c-s12">
<h2>Images</h2>
</div>
<div class="c-6 c-l4 p-1">
<p>Every image is responsive by default, you don't need to add any class to it:</p>
<img class="mt-1" src="https://dummyimage.com/1280x720">
</div>
<div class="c-s6 o-s3 c-4 o-1 c-l2 o-l2 p-1 center">
<p>Circle image: <kbd>.circle</kbd></p><br class="h-s">
<img class="mt-2 circle" src="https://dummyimage.com/500x500">
</div>
</div>
<div class="row pl-4 pr-4 mb-5">
<div class="c-s12">
<h2>Helpers</h2>
</div>
<div class="c-6 c-l5 p-1">
<h3 class="mb-1">Align things</h3>
<ul>
<li>Left align: <kbd>.left</kbd></li>
<li>Center align: <kbd>.center</kbd></li>
<li>Right align: <kbd>.right</kbd></li>
</ul>
<div class="c-12 p-3">
<div class="left purple p-1" style="width:100px;">left</div>
<div class="center purple p-1" style="width:100px;">center</div>
<div class="right purple p-1" style="width:100px;">right</div>
</div>
</div>
<div class="c-6 c-l6 o-l1 p-1">
<h3 class="mb-1">Videos</h3>
<p>If you wrap video embeds with the <kbd>.video</kbd> class, you get a responsive scaling video.</p>
<div class="video mt-2">
<iframe width="560" height="315" srcdoc="<style>*{padding:0;margin:0;overflow:hidden}html,body{height:100%}img,span{position:absolute;width:100%;top:0;bottom:0;margin:auto}span{height:1.5em;text-align:center;font-size:48px;color:#fff;text-shadow:0 0 0.5em black}</style><a href=https://www.youtube.com/embed/aqz-KE-bpKQ?autoplay=1><img src=https://img.youtube.com/vi/aqz-KE-bpKQ/hqdefault.jpg><span>▶</span></a>" frameborder="0" allow="autoplay; encrypted-media;" allowfullscreen></iframe>
</div>
<code class="p-1 white m-1">
<div <b>class="video"</b>><br>
<iframe src="https://youtube..."><br>
</div><br>
</code>
</div>
</div>
<div class="row pl-4 pr-4 mb-5">
<div class="c-s12">
<h2>Forms</h2>
</div>
<div class="c-6 p-2">
<p>The form elements are automatically styled, you don't need to add any class.</p>
<form>
<label for="text">Text input</label>
<input type="text" id="text" placeholder="Text input">
<label for="password">Password input</label>
<input type="password" id="password" placeholder="Password" value="asdf">
<label for="disabled">Disabled input</label>
<input type="text" disabled id="disabled" placeholder="Disabled">
<label>
<input type="checkbox" id="checkbox">
Checkbox
</label>
<label for="dropdown">Dropdown</label>
<select id="dropdown">
<option value="1">AAAA</option>
<option value="2">BBBB</option>
<option value="3">CCCC</option>
</select>
<textarea rows="5">Textarea textarea textarea</textarea>
<input type="submit" class="purple" onclick="return false" value="Submit">
</form>
</div>
<div class="c-6 p-2">
<h3 class="mb-1">Buttons</h3>
<button class="purple large m-1 s-2">Large</button>
<button class="purple m-1 s-2">Normal</button>
<button class="purple small m-1 s-2">Small</button>
<code class="p-1 white m-1">
<button class="purple <b>large</b> s-2">Large</button><br>
<button class="purple s-2">Normal</button><br>
<button class="purple <b>small</b> s-2">Small</button><br>
</code>
</div>
</div>
<div class="row pl-4 pr-4 mb-5">
<div class="c-s12">
<h2>Other elements</h2>
</div>
<div class="c-6 p-2">
<p>Other elements are automatically styled, you don't need to add any class.</p>
<table style="width: 100%;">
<tr>
<th>Table heading</th>
<th>Table heading</th>
</tr>
<tr>
<td>AAAA</td>
<td>1234</td>
</tr>
<tr>
<td>BBBB</td>
<td>5678</td>
</tr>
<tr>
<td>CCCC</td>
<td>9999</td>
</tr>
</table>
</div>
<div class="c-6 p-2">
<p>This is a blockquote:</p>
<blockquote cite="http://example.com/facts">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p>
</blockquote>
<p>This is a <mark>marked</mark> text, and a <kbd>kbd</kbd> text. <b>Bold</b>, <i>italic</i>, <u>underlined</u>, super<sup>script</sup>, sub<sub>script</sub>.</p>
</div>
</div>
<div class="row pl-4 pr-4">
<div class="c-12 pb-5">
<h1 id="custombuild" class="center mb-2">Create custom build</h1>
<p>What do you want to include in the build?</p>
<label>
<input type="checkbox" name="build" onclick="build()" value="typography.min.css" checked>
Typography (Basic page style, font, table and other elements styling)
</label>
<label>
<input type="checkbox" name="build" onclick="build()" value="grid.min.css" checked>
Grid system (responsive images included)
</label>
<label>
<input type="checkbox" name="build" onclick="build()" value="menu.min.css">
Menu
</label>
<label>
<input type="checkbox" name="build" onclick="build()" value="margin-padding.min.css">
Margins + paddings
</label>
<label>
<input type="checkbox" name="build" onclick="build()" value="color-shadow.min.css">
Colors + shadows
</label>
<label>
<input type="checkbox" name="build" onclick="build()" value="helper.min.css">
Helpers (align, reponsive video)
</label>
<label>
<input type="checkbox" name="build" onclick="build()" value="form.min.css">
Forms + buttons
</label>
<script>
document.addEventListener("DOMContentLoaded", function(event) {
build();
});
function build(){
var build = document.getElementsByName("build");
var buildresult = document.getElementById('buildresult');
buildresult.value = "";
var buildsize = document.getElementById('buildsize');
buildsize.innerHTML = 0;
var extrafolder = "";
if(window.location.hostname == "hlorand.github.io"){
extrafolder = "/lori.css";
}
for(i=0; i<build.length; i++)
{
if ( build[i].checked ){
fetch(extrafolder + "/min/" + build[i].value)
.then(response => response.text())
.then((data) => {
buildresult.value += data;
buildsize.innerHTML = Math.round(buildresult.value.length / 1024 * 10) / 10;
})
}
}
}
function saveTextAsFile(textToWrite, fileNameToSaveAs) {
var textFileAsBlob = new Blob([textToWrite], {type:'text/plain'});
var downloadLink = document.createElement("a");
downloadLink.download = fileNameToSaveAs;
downloadLink.innerHTML = "Download File";
if (window.webkitURL != null){
downloadLink.href = window.webkitURL.createObjectURL(textFileAsBlob);
}
else{
downloadLink.href = window.URL.createObjectURL(textFileAsBlob);
downloadLink.onclick = destroyClickedElement;
downloadLink.style.display = "none";
document.body.appendChild(downloadLink);
}
downloadLink.click();
}
</script>
<p><b>Build</b>: (<span id="buildsize">0</span> kb minified)</p>
<textarea id="buildresult" style="width:100%;" rows="10" onclick="this.focus();this.select()" readonly="readonly"></textarea>
<button class="orange s-3" onclick="saveTextAsFile(buildresult.value,'lori.custom.min.css')">Download build</button>
</div>
</div>
<script>
var elm = document.getElementsByTagName('code');
var length = elm.length;
for (var i = 0; i < length; i++) {
elm[i].className = elm[i].className + " lolight";
}
/*! lolight v1.3.0 - https://larsjung.de/lolight/
removed the following keywords: and, is, with*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):e.lolight=t()}(this,function(){function t(e){if("string"!=typeof e)throw new Error("tok: no string");for(var t=[],n=u.length,o=!1;e;)for(var r=0;r<n;r+=1){var i=u[r][1].exec(e);if(i&&0===i.index){var a=u[r][0];if("rex"!==a||!o){var l=i[0];a===s&&c.test(l)&&(a="key"),"spc"===a?0<=l.indexOf("\n")&&(o=!1):o=a===f||a===s,e=e.slice(l.length),t.push([a,l]);break}}}return t}function e(e,t){if("undefined"!=typeof document)t(document);else if(e)throw new Error("no doc")}function n(o){e(!0,function(n){var e=t(o.textContent);o.innerHTML="",e.forEach(function(e){var t=n.createElement("span");t.className="ll-"+e[0],t.textContent=e[1],o.appendChild(t)})})}function o(t){e(!0,function(e){[].forEach.call(e.querySelectorAll(t||".lolight"),function(e){n(e)})})}var r="_nam#2196f3}_num#ec407a}_str#43a047}_rex#ef6c00}_pct#666}_key#555;font-weight:bold}_com#aaa;font-style:italic}".replace(/_/g,".ll-").replace(/#/g,"{color:#"),c=/^(a(bstract|lias|rguments|rray|s(m|sert)?|uto)|b(ase|egin|ool(ean)?|reak|yte)|c(ase|atch|har|hecked|lass|lone|ompl|onst|ontinue)|de(bugger|cimal|clare|f(ault|er)?|init|l(egate|ete)?)|do|double|e(cho|ls?if|lse(if)?|nd|nsure|num|vent|x(cept|ec|p(licit|ort)|te(nds|nsion|rn)))|f(allthrough|alse|inal(ly)?|ixed|loat|or(each)?|riend|rom|unc(tion)?)|global|goto|guard|i(f|mp(lements|licit|ort)|n(it|clude(_once)?|line|out|stanceof|t(erface|ernal)?)?|)|l(ambda|et|ock|ong)|m(odule|utable)|NaN|n(amespace|ative|ext|ew|il|ot|ull)|o(bject|perator|r|ut|verride)|p(ackage|arams|rivate|rotected|rotocol|ublic)|r(aise|e(adonly|do|f|gister|peat|quire(_once)?|scue|strict|try|turn))|s(byte|ealed|elf|hort|igned|izeof|tatic|tring|truct|ubscript|uper|ynchronized|witch)|t(emplate|hen|his|hrows?|ransient|rue|ry|ype(alias|def|id|name|of))|u(n(checked|def(ined)?|ion|less|signed|til)|se|sing)|v(ar|irtual|oid|olatile)|w(char_t|hen|here|hile)|xor|yield)$/,i="com",s="nam",f="num",u=[[f,/#([0-9a-f]{6}|[0-9a-f]{3})\b/],[i,/(\/\/|#).*?(?=\n|$)/],[i,/\/\*[\s\S]*?\*\//],[i,/<!--[\s\S]*?-->/],["rex",/\/(\\\/|[^\n])*?\//],["str",/(['"`])(\\\1|[\s\S])*?\1/],[f,/[+-]?([0-9]*\.?[0-9]+|[0-9]+\.?[0-9]*)([eE][+-]?[0-9]+)?/],["pct",/[\\.,:;+\-*\/=<>()[\]{}|?!&@~]/],["spc",/\s+/],[s,/[\w$]+/],["unk",/./]];return e(!1,function(e){var t=e.querySelector("head"),n=e.createElement("style");n.textContent=r,t.insertBefore(n,t.firstChild),/^(i|c|loade)/.test(e.readyState)?o():e.addEventListener("DOMContentLoaded",function(){o()})}),o.tok=t,o.el=n,o});
</script>
</body>
</html>