dr.css
[raphael] / dr.css
1 #dr-js {
2     background: #999;
3     margin: 0;
4     padding: 0;
5 }
6 #src-dr-js {
7     background: #000;
8     margin: 1em;
9     padding: 0;
10 }
11 .dr-doc {
12     background: #eee;
13     font: 300 100.01%/1.4 "Myriad Pro", "Helvetica Neue", Helvetica, "Arial Unicode MS", Arial, sans-serif;
14     width: 60em;
15     padding: 0 2em 2em;
16     margin: 0 auto;
17     position: relative;
18 }
19 .dr-doc code,
20 .dr-type em,
21 .dr-returns em,
22 .dr-property em {
23     font-family: Menlo, Consolas, Monaco, "Lucida Console", monospace;
24 }
25 pre.code code {
26     color: #fff;
27 }
28 pre.code {
29     background: #333;
30     color: #fff;
31     overflow-x: auto;
32     padding: 1em 2.5em;
33     margin: 0 -2.5em;
34 }
35 code b {
36     color: #e9df8f;
37     font-weight: normal;
38 }
39 code i,
40 code i *,
41 code i .d {
42     color: #8b9967;
43     font-style: normal;
44 }
45 code .s {
46     color: #e7be61;
47 }
48 code .d {
49     color: #cf6a4c;
50 }
51 code .c,
52 code .c * {
53     color: #999;
54     font-style: italic;
55 }
56 em.amp {
57     font-family: Baskerville, "Goudy Old Style", Palatino, "Book Antiqua", serif;
58     font-style: italic;
59 }
60 dl.dr-parameters {
61     margin: .5em 0;
62 }
63 dt.dr-param {
64     color: #666;
65     font-weight: 400;
66     float: left;
67     margin-right: 1em;
68     min-width: 10em;
69 }
70 dd.dr-type {
71     margin: 0;
72 }
73 dd.dr-description {
74     display: table;
75     min-height: 1.5em;
76     border: solid 1px #eee;
77 }
78 .dr-type {
79     float: left;
80 }
81 .dr-type em,
82 .dr-returns em,
83 .dr-property em {
84     -webkit-border-radius: .3em;
85     -webkit-border-radius: .3em;
86     -moz-border-radius: .3em;
87     -moz-border-radius: .3em;
88     background: #ccc;
89     border-radius: .3em;
90     border-radius: .3em;
91     float: left;
92     display: block;
93     font-size: .75em;
94     font-style: normal;
95     font-weight: 700;
96     margin: .2em .5em .2em 0;
97     padding: .1em .5em;
98     text-align: center;
99     min-width: 5em;
100 }
101 .dr-property em.dr-type {
102     margin: .23em 1em 0 0;
103 }
104 em.dr-type-string {
105     background: #e5ff7f;
106     color: #667f00;
107 }
108 em.dr-type-object {
109     background: #ff7f7f;
110     color: #7f0000;
111 }
112 em.dr-type-function {
113     background: #bf7fff;
114     color: #3f007f;
115 }
116 em.dr-type-number {
117     background: #7fb2ff;
118     color: #00327f;
119 }
120 em.dr-type-boolean {
121     background: #7fffb2;
122     color: #007f32;
123 }
124 em.dr-type-array {
125     background: #ffcc7f;
126     color: #7f4c00;
127 }
128 dd.dr-optional {
129     display: none;
130 }
131 h1 {
132     font-weight: 400;
133     font-size: 2.6em;
134     margin: 0;
135 }
136 h2, h3, h4, h5 {
137     margin: 1em 0;
138     padding: .4em 0 0;
139     font-weight: 100;
140     position: relative;
141 }
142 h5 {
143     font-size: 1.1em;
144 }
145 h4 {
146     font-size: 1.2em;
147 }
148 h3 {
149     font-size: 1.8em;
150 }
151 h2 {
152     font-size: 2.4em;
153 }
154 h2.dr-method,
155 h3.dr-method,
156 h4.dr-method,
157 h5.dr-method {
158     color: #900;
159 }
160 h2.dr-property,
161 h3.dr-property,
162 h4.dr-property,
163 h5.dr-property {
164     color: #009;
165 }
166 p.header {
167     font-size: 1.2em;
168     font-weight: 200;
169 }
170 .dr-returns {
171     margin-top: 1em;
172 }
173 .dr-returns .dr-title {
174     float: left;
175     margin-right: 1em;
176     width: 10em;
177 }
178 .dr-toc {
179     -webkit-border-bottom-left-radius: 1em;
180     -webkit-border-bottom-right-radius: 1em;
181     -moz-border-radius-bottomleft: 1em;
182     -moz-border-radius-bottomright: 1em;
183     border-bottom-left-radius: 1em;
184     border-bottom-right-radius: 1em;
185     float: right;
186     margin: -3px 0 1em 1em;
187     padding: 1em;
188     background: #ddd;
189     list-style: none;
190     border: solid 3px #999;
191     font-family: Menlo, Consolas, Monaco, "Lucida Console", monospace;
192 }
193 .dr-toc a {
194     display: block;
195     text-decoration: none;
196     color: #333;
197     padding-top: .5em;
198     position: relative;
199     z-index: 1000;
200 }
201 .dr-toc li.dr-lvl1 a {
202     padding-left: 1em;
203 }
204 .dr-toc li.dr-lvl2 a {
205     padding-left: 2em;
206 }
207 .dr-toc li.dr-lvl3 a {
208     padding-left: 3em;
209 }
210 .dr-toc li.dr-lvl4 a {
211     padding-left: 4em;
212 }
213 .dr-toc li.dr-lvl5 a {
214     padding-left: 5em;
215 }
216 .dr-toc li.dr-lvl6 a {
217     padding-left: 6em;
218 }
219 .dr-toc a.dr-property {
220     color: #339;
221 }
222 .dr-toc a.dr-method {
223     color: #933;
224 }
225 .dr-toc a:hover {
226     text-shadow: 0 0 2px #333;
227 }
228 .dr-toc a.dr-property:hover {
229     text-shadow: 0 0 2px #66c;
230 }
231 .dr-toc a.dr-method:hover {
232     text-shadow: 0 0 2px #c66;
233 }
234 a.dr-hash,
235 a.dr-sourceline {
236     -webkit-transition: opacity 0.2s linear;
237     color: #333;
238     font-family: Menlo, "Arial Unicode MS", sans-serif;
239 /*    left: -20px;*/
240 /*    line-height: 1;*/
241     margin: 0 0 0 .3em;
242 /*    overflow: hidden;*/
243     opacity: 0;
244     text-decoration: none;
245 /*    width: 1em;*/
246 }
247 a.dr-link {
248     position: relative;
249     color: #3875c0;
250 }
251 a.dr-link:hover {
252     text-shadow: 0 1px 2px #999;
253     bottom: 1px;
254     padding-bottom: 1px;
255 }
256 a.dr-link:visited {
257     color: #7051bc;
258 }
259 h2:hover a.dr-hash,
260 h3:hover a.dr-hash,
261 h4:hover a.dr-hash,
262 h5:hover a.dr-hash,
263 h2:hover a.dr-sourceline,
264 h3:hover a.dr-sourceline,
265 h4:hover a.dr-sourceline,
266 h5:hover a.dr-sourceline {
267     opacity: 1;
268 }
269 p {
270     margin: 0 0 .5em;
271 }
272
273 .dr-source-line {
274     margin: 0;
275 }
276 .dr-source-line a {
277     -webkit-border-radius: 5px;
278     -webkit-border-radius: 5px;
279     -moz-border-radius: 5px;
280     -moz-border-radius: 5px;
281     border-radius: 5px;
282     border-radius: 5px;
283     color: #000;
284     background: #999;
285     font-weight: 400;
286     font-size: .75em;
287     text-decoration: none;
288     padding: 5px;
289 }
290 #src-dr-js code {
291     -webkit-transition: background 0.2s linear;
292     background: #000;
293     display: block;
294     color: #fff;
295     font-family: Menlo, Consolas, Monaco, "Lucida Console", monospace;
296     white-space: pre;
297     padding-left: 100px;
298     position: relative;
299     line-height: 1.2;
300 }
301 #src-dr-js code:hover {
302     background: #666;
303 }
304 #src-dr-js code .ln {
305     position: absolute;
306     left: 0;
307     color: #000;
308     width: 70px;
309     text-align: right;
310 }