Skip to content

Commit 3578caf

Browse files
committed
Add documentation structures
1 parent 0150c4c commit 3578caf

25 files changed

+425
-1537
lines changed

docs/assets/css/docs.css

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
body, h1, h2, h3 { margin:0; padding:0; }
2+
body { font-family:Helvetica Neue; font-size:18px; }
3+
.hot-doc {
4+
background:#f65656;
5+
}
6+
.avg-doc {
7+
background:#54cb44;
8+
}
9+
.cold-doc {
10+
background:#4C94FF;
11+
}
12+
.wrapper {
13+
position:relative;
14+
max-width:900px;
15+
margin:auto;
16+
}
17+
.description {
18+
padding:10px;
19+
line-height: 28px;
20+
}
21+
strong {
22+
background:#f65656; padding: 4px;
23+
border-radius: 4px;
24+
font-weight: normal;
25+
color:white;
26+
}
27+
.functions .description {
28+
background:white;
29+
margin-bottom: 5px;
30+
}
31+
.fn { box-shadow:0 1px 1px rgba(0,0,0,.23); }
32+
.fn h3 {
33+
padding:10px;
34+
font-size:22px;
35+
letter-spacing:1px;
36+
font-weight:normal;
37+
background: -webkit-linear-gradient(white, rgba(0, 0, 0, 0.11));
38+
background: -moz-linear-gradient(rgba(255,255,255,.35), rgba(0, 0, 0, 0.11));
39+
}
40+
41+
h2 { font-size:40px; padding-left:10px; }
42+
h1 { font-size:60px; text-align:center; margin-top:30px;}
43+
ul {
44+
list-style: none;
45+
margin:0;
46+
padding:0;
47+
}
48+
49+
li {
50+
padding-left: 1em;
51+
padding-top:8px;
52+
padding-bottom:8px;
53+
text-indent: -1em;
54+
border-bottom:1px solid rgba(0,0,0,.3);
55+
}
56+
57+
li:before {
58+
content: "+";
59+
padding-left:5px;
60+
padding-right: 5px;
61+
}
62+
63+
li a { color:white; letter-spacing:1px;}
64+
#index h2 { font-size:26px; padding-left:15px; padding-top:5px; margin-bottom:8px; }
65+
#index div {
66+
color: black;
67+
display:inline-table;
68+
box-shadow: 0 0 1px black;
69+
width:48%;
70+
margin-right:1%;
71+
border-radius:5px;
72+
overflow:hidden;
73+
}
74+
#index { width:65%; margin:auto; margin-top:30px; margin-bottom:50px; }
75+
section { margin-bottom:60px; }
76+
#message {
77+
overflow:hidden;
78+
width: 75%;
79+
margin: auto;
80+
margin-top: 30px;
81+
background: rgb(236, 236, 236);
82+
padding-left:20px;
83+
padding-right:20px;
84+
}
85+
#message h3 { padding:20px; font-weight:normal; cursor:pointer;}
86+
#msg-content {
87+
height:230px; padding-top:0; padding-bottom:0; opacity:1;
88+
}
89+
#msg-content.animate {
90+
-webkit-transition:.7s ease all;
91+
-moz-transition:.7s ease all;
92+
transition:.7s ease all;
93+
}
94+
#msg-content.hide{ height:0; padding-left:20px; padding-right:20px; opacity:0; }
95+
.msg { padding:10px;background:white; line-height:32px;}
96+
#btn-confirm {
97+
padding: 15px;
98+
text-align: center;
99+
background: #54cb44;
100+
margin: auto;
101+
color: white;
102+
border-radius: 10px;
103+
cursor: pointer;
104+
-webkit-transition: 0.7s all ease;
105+
-moz-transition:.7 all ease;
106+
transition: 0.7s all ease;
107+
border:none;
108+
font-size:20px;
109+
width: 150px;
110+
margin-top: 15px;
111+
112+
}
113+
#btn-confirm:hover {
114+
background: #f65656;
115+
}
116+
}

docs/assets/css/prism.css

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript */
2+
/**
3+
* prism.js default theme for JavaScript, CSS and HTML
4+
* Based on dabblet (http://dabblet.com)
5+
* @author Lea Verou
6+
*/
7+
8+
code[class*="language-"],
9+
pre[class*="language-"] {
10+
color: black;
11+
text-shadow: 0 1px white;
12+
font-family: Consolas, Monaco, 'Andale Mono', monospace;
13+
direction: ltr;
14+
text-align: left;
15+
white-space: pre;
16+
word-spacing: normal;
17+
word-break: normal;
18+
19+
20+
-moz-tab-size: 4;
21+
-o-tab-size: 4;
22+
tab-size: 4;
23+
24+
-webkit-hyphens: none;
25+
-moz-hyphens: none;
26+
-ms-hyphens: none;
27+
hyphens: none;
28+
}
29+
30+
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
31+
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
32+
text-shadow: none;
33+
background: #b3d4fc;
34+
}
35+
36+
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
37+
code[class*="language-"]::selection, code[class*="language-"] ::selection {
38+
text-shadow: none;
39+
background: #b3d4fc;
40+
}
41+
42+
@media print {
43+
code[class*="language-"],
44+
pre[class*="language-"] {
45+
text-shadow: none;
46+
}
47+
}
48+
49+
/* Code blocks */
50+
pre[class*="language-"] {
51+
padding: 1em;
52+
margin: .5em 0;
53+
overflow: auto;
54+
}
55+
56+
:not(pre) > code[class*="language-"],
57+
pre[class*="language-"] {
58+
background: #f5f2f0;
59+
}
60+
61+
/* Inline code */
62+
:not(pre) > code[class*="language-"] {
63+
padding: .1em;
64+
border-radius: .3em;
65+
}
66+
67+
.token.comment,
68+
.token.prolog,
69+
.token.doctype,
70+
.token.cdata {
71+
color: slategray;
72+
}
73+
74+
.token.punctuation {
75+
color: #999;
76+
}
77+
78+
.namespace {
79+
opacity: .7;
80+
}
81+
82+
.token.property,
83+
.token.tag,
84+
.token.boolean,
85+
.token.number,
86+
.token.constant,
87+
.token.symbol {
88+
color: #905;
89+
}
90+
91+
.token.selector,
92+
.token.attr-name,
93+
.token.string,
94+
.token.builtin {
95+
color: #690;
96+
}
97+
98+
.token.operator,
99+
.token.entity,
100+
.token.url,
101+
.language-css .token.string,
102+
.style .token.string,
103+
.token.variable {
104+
color: #a67f59;
105+
background: hsla(0,0%,100%,.5);
106+
}
107+
108+
.token.atrule,
109+
.token.attr-value,
110+
.token.keyword {
111+
color: #07a;
112+
}
113+
114+
115+
.token.regex,
116+
.token.important {
117+
color: #e90;
118+
}
119+
120+
.token.important {
121+
font-weight: bold;
122+
}
123+
124+
.token.entity {
125+
cursor: help;
126+
}

docs/assets/js/prism.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/canvas-webgl.html

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)