graphael-rails 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/Rakefile +1 -0
  2. data/VERSION +1 -1
  3. data/graphael-rails.gemspec +53 -12
  4. data/vendor/assets/javascripts/g.raphael/README.markdown +21 -0
  5. data/vendor/assets/javascripts/g.raphael/docs/blueprint-min.png +0 -0
  6. data/vendor/assets/javascripts/g.raphael/docs/dr-print.css +218 -0
  7. data/vendor/assets/javascripts/g.raphael/docs/dr.css +404 -0
  8. data/vendor/assets/javascripts/g.raphael/docs/reference.html +350 -0
  9. data/vendor/assets/javascripts/g.raphael/docs/reference.js +35 -0
  10. data/vendor/assets/javascripts/g.raphael/g.bar.js +621 -0
  11. data/vendor/assets/javascripts/g.raphael/g.dot.js +156 -0
  12. data/vendor/assets/javascripts/g.raphael/g.line.js +329 -0
  13. data/vendor/assets/javascripts/g.raphael/g.pie.js +255 -0
  14. data/vendor/assets/javascripts/g.raphael/g.raphael.js +887 -0
  15. data/vendor/assets/javascripts/g.raphael/g.raphael.json +9 -0
  16. data/vendor/assets/javascripts/g.raphael/min/g.bar-min.js +7 -0
  17. data/vendor/assets/javascripts/g.raphael/min/g.dot-min.js +7 -0
  18. data/vendor/assets/javascripts/g.raphael/min/g.line-min.js +7 -0
  19. data/vendor/assets/javascripts/g.raphael/min/g.pie-min.js +1 -0
  20. data/vendor/assets/javascripts/g.raphael/min/g.raphael-min.js +7 -0
  21. data/vendor/assets/javascripts/g.raphael/raphael-min.js +9 -0
  22. data/vendor/assets/javascripts/g.raphael/test/barchart.html +37 -0
  23. data/vendor/assets/javascripts/g.raphael/test/barchart2.html +51 -0
  24. data/vendor/assets/javascripts/g.raphael/test/brightness.html +47 -0
  25. data/vendor/assets/javascripts/g.raphael/test/css/demo-print.css +17 -0
  26. data/vendor/assets/javascripts/g.raphael/test/css/demo.css +21 -0
  27. data/vendor/assets/javascripts/g.raphael/test/dotchart.html +35 -0
  28. data/vendor/assets/javascripts/g.raphael/test/images/bg.png +0 -0
  29. data/vendor/assets/javascripts/g.raphael/test/images/bgbg.png +0 -0
  30. data/vendor/assets/javascripts/g.raphael/test/linechart.html +66 -0
  31. data/vendor/assets/javascripts/g.raphael/test/piechart.html +26 -0
  32. data/vendor/assets/javascripts/g.raphael/test/piechart2.html +46 -0
  33. data/vendor/assets/javascripts/g.raphael/test/tooltips.html +85 -0
  34. data/vendor/assets/javascripts/raphael/README.markdown +3 -0
  35. data/vendor/assets/javascripts/raphael/history.md +82 -0
  36. data/vendor/assets/javascripts/raphael/license.txt +21 -0
  37. data/vendor/assets/javascripts/raphael/make +45 -0
  38. data/vendor/assets/javascripts/raphael/raphael-min.js +10 -0
  39. data/vendor/assets/javascripts/raphael/raphael.core.js +5189 -0
  40. data/vendor/assets/javascripts/raphael/raphael.js +5815 -0
  41. data/vendor/assets/javascripts/raphael/raphael.svg.js +1360 -0
  42. data/vendor/assets/javascripts/raphael/raphael.vml.js +973 -0
  43. data/vendor/assets/javascripts/raphael/reference.html +2489 -0
  44. data/vendor/assets/javascripts/raphael/reference.js +248 -0
  45. metadata +47 -6
data/Rakefile CHANGED
@@ -21,6 +21,7 @@ Jeweler::Tasks.new do |gem|
21
21
  gem.description = gem.summary
22
22
  gem.email = "christian.schwartz@informatik.uni-wuerzburg.de"
23
23
  gem.authors = ["christian schwartz"]
24
+ gem.files.include Dir['vendor/**/*'].to_a
24
25
  end
25
26
  Jeweler::RubygemsDotOrgTasks.new
26
27
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{graphael-rails}
8
- s.version = "0.1.3"
7
+ s.name = "graphael-rails"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{christian schwartz}]
12
- s.date = %q{2012-04-18}
13
- s.description = %q{raphael and graphael bundle for rails}
14
- s.email = %q{christian.schwartz@informatik.uni-wuerzburg.de}
11
+ s.authors = ["christian schwartz"]
12
+ s.date = "2012-04-20"
13
+ s.description = "raphael and graphael bundle for rails"
14
+ s.email = "christian.schwartz@informatik.uni-wuerzburg.de"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.rdoc"
@@ -26,13 +26,54 @@ Gem::Specification.new do |s|
26
26
  "Rakefile",
27
27
  "VERSION",
28
28
  "graphael-rails.gemspec",
29
- "lib/graphael-rails.rb"
29
+ "lib/graphael-rails.rb",
30
+ "vendor/assets/javascripts/g.raphael/README.markdown",
31
+ "vendor/assets/javascripts/g.raphael/docs/blueprint-min.png",
32
+ "vendor/assets/javascripts/g.raphael/docs/dr-print.css",
33
+ "vendor/assets/javascripts/g.raphael/docs/dr.css",
34
+ "vendor/assets/javascripts/g.raphael/docs/reference.html",
35
+ "vendor/assets/javascripts/g.raphael/docs/reference.js",
36
+ "vendor/assets/javascripts/g.raphael/g.bar.js",
37
+ "vendor/assets/javascripts/g.raphael/g.dot.js",
38
+ "vendor/assets/javascripts/g.raphael/g.line.js",
39
+ "vendor/assets/javascripts/g.raphael/g.pie.js",
40
+ "vendor/assets/javascripts/g.raphael/g.raphael.js",
41
+ "vendor/assets/javascripts/g.raphael/g.raphael.json",
42
+ "vendor/assets/javascripts/g.raphael/min/g.bar-min.js",
43
+ "vendor/assets/javascripts/g.raphael/min/g.dot-min.js",
44
+ "vendor/assets/javascripts/g.raphael/min/g.line-min.js",
45
+ "vendor/assets/javascripts/g.raphael/min/g.pie-min.js",
46
+ "vendor/assets/javascripts/g.raphael/min/g.raphael-min.js",
47
+ "vendor/assets/javascripts/g.raphael/raphael-min.js",
48
+ "vendor/assets/javascripts/g.raphael/test/barchart.html",
49
+ "vendor/assets/javascripts/g.raphael/test/barchart2.html",
50
+ "vendor/assets/javascripts/g.raphael/test/brightness.html",
51
+ "vendor/assets/javascripts/g.raphael/test/css/demo-print.css",
52
+ "vendor/assets/javascripts/g.raphael/test/css/demo.css",
53
+ "vendor/assets/javascripts/g.raphael/test/dotchart.html",
54
+ "vendor/assets/javascripts/g.raphael/test/images/bg.png",
55
+ "vendor/assets/javascripts/g.raphael/test/images/bgbg.png",
56
+ "vendor/assets/javascripts/g.raphael/test/linechart.html",
57
+ "vendor/assets/javascripts/g.raphael/test/piechart.html",
58
+ "vendor/assets/javascripts/g.raphael/test/piechart2.html",
59
+ "vendor/assets/javascripts/g.raphael/test/tooltips.html",
60
+ "vendor/assets/javascripts/raphael/README.markdown",
61
+ "vendor/assets/javascripts/raphael/history.md",
62
+ "vendor/assets/javascripts/raphael/license.txt",
63
+ "vendor/assets/javascripts/raphael/make",
64
+ "vendor/assets/javascripts/raphael/raphael-min.js",
65
+ "vendor/assets/javascripts/raphael/raphael.core.js",
66
+ "vendor/assets/javascripts/raphael/raphael.js",
67
+ "vendor/assets/javascripts/raphael/raphael.svg.js",
68
+ "vendor/assets/javascripts/raphael/raphael.vml.js",
69
+ "vendor/assets/javascripts/raphael/reference.html",
70
+ "vendor/assets/javascripts/raphael/reference.js"
30
71
  ]
31
- s.homepage = %q{http://github.com/cschwartz/graphael-rails}
32
- s.licenses = [%q{MIT}]
33
- s.require_paths = [%q{lib}]
34
- s.rubygems_version = %q{1.8.6}
35
- s.summary = %q{raphael and graphael bundle for rails}
72
+ s.homepage = "http://github.com/cschwartz/graphael-rails"
73
+ s.licenses = ["MIT"]
74
+ s.require_paths = ["lib"]
75
+ s.rubygems_version = "1.8.11"
76
+ s.summary = "raphael and graphael bundle for rails"
36
77
 
37
78
  if s.respond_to? :specification_version then
38
79
  s.specification_version = 3
@@ -0,0 +1,21 @@
1
+ g.Raphaël - Official charting plugin for Raphaël
2
+ =========
3
+
4
+ For more information, see: http://g.raphaeljs.com/
5
+
6
+ Changelog
7
+ ---------
8
+
9
+ **v0.5**
10
+
11
+ * Refactored codebase and API to work with Raphaël 2.0
12
+ * `g` is no longer a namespace, but instead a prototype object that all charts inherit. See documentation for all configurable options on the `g` prototype.
13
+ * `g.markers` has been removed. The marker parameter strings now just try and resolve functions on the Paper prototype.
14
+ * All primitive shapes have been removed. They are now part of Raphaël core in `plugins/`
15
+ * The companion function `original` to the brightness functions `lighter` and `darker` has been renamed to `resetBrightness` to account for the `g` namespace removal
16
+ * Tooltips have been modified/enhanced in the following ways:
17
+ * All tooltips can now be called on any Element or Set instance, as well as from the paper object.
18
+ * All tooltip `update` functions have been removed. Tooltip functions now return their path element. It is up to the caller to manage both the Element or set that is used as the context and the path element that was drawn by the tooltip function.
19
+ * All tooltip `dir` options have been changed from `0`, `1`, `2`, `3`, to `'down'`, `'left'`, `'up'`, `'right'` repectively.
20
+ * `blob` and `drop` tooltips no longer accept `size` parameters. Instead, the bounding box of the Element/Set being used as content is used to automatically determine the size.
21
+ * `popupit` and `labelit` have been removed. Their functionality is now the default behavior of all tooltips
@@ -0,0 +1,218 @@
1
+ html, body {
2
+ background: #fff;
3
+ margin: 2cm 1cm;
4
+ padding: 0;
5
+ }
6
+ .dr-doc {
7
+ font: 300 16px/1.4 "Myriad Pro", "Helvetica Neue", Helvetica, "Arial Unicode MS", Arial, sans-serif;
8
+ }
9
+ .dr-toc {
10
+ display: none;
11
+ }
12
+ ::-moz-selection {
13
+ background: #c00;
14
+ color: #fff;
15
+ }
16
+ ::selection {
17
+ background: #c00;
18
+ color: #fff;
19
+ }
20
+ .dr-doc code,
21
+ .dr-type em,
22
+ .dr-returns em,
23
+ .dr-property em {
24
+ font-family: Menlo, Consolas, Monaco, "Lucida Console", monospace;
25
+ }
26
+ pre.code {
27
+ -moz-border-radius: 10px;
28
+ -webkit-border-radius: 10px;
29
+ border: dotted 1px #666;
30
+ padding: .5em;
31
+ }
32
+ pre.code code {
33
+ color: #000;
34
+ }
35
+ code b {
36
+ color: #63f;
37
+ font-weight: normal;
38
+ }
39
+ code i,
40
+ code i *,
41
+ code i .d {
42
+ color: #363;
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: 8px 0;
62
+ }
63
+ dt.dr-param {
64
+ color: #666;
65
+ font-weight: 400;
66
+ float: left;
67
+ margin-right: 16px;
68
+ min-width: 160px;
69
+ }
70
+ dd.dr-type {
71
+ margin: 0;
72
+ }
73
+ dd.dr-description {
74
+ display: table;
75
+ min-height: 24px;
76
+ border: solid 1px #fff;
77
+ }
78
+ .dr-type {
79
+ float: left;
80
+ }
81
+ .extra {
82
+ display: none;
83
+ }
84
+ .dr-type em,
85
+ .dr-returns em,
86
+ .dr-property em {
87
+ -moz-border-radius: 5px;
88
+ -webkit-border-radius: 5px;
89
+ background: #ccc;
90
+ border-radius: 5px;
91
+ float: left;
92
+ font-size: .75em;
93
+ font-style: normal;
94
+ font-weight: 700;
95
+ margin: 0 8px 0 0;
96
+ min-width: 80px;
97
+ padding: 2px 5px;
98
+ text-align: center;
99
+ }
100
+ .dr-type em.amp,
101
+ .dr-returns em.amp,
102
+ .dr-property em.amp {
103
+ float: none;
104
+ background: none;
105
+ font-size: 1em;
106
+ font-weight: 400;
107
+ font-style: italic;
108
+ margin: 0;
109
+ padding: 0;
110
+ min-width: 0;
111
+ }
112
+ .dr-property em.dr-type {
113
+ margin: 4px 16px 0 0;
114
+ }
115
+ em.dr-type-string {
116
+ background: #e1edb1;
117
+ color: #3d4c00;
118
+ }
119
+ em.dr-type-object {
120
+ background: #edb1b1;
121
+ color: #4c0000;
122
+ }
123
+ em.dr-type-function {
124
+ background: #cfb1ed;
125
+ color: #26004c;
126
+ }
127
+ em.dr-type-number {
128
+ background: #b1c9ed;
129
+ color: #001e4c;
130
+ }
131
+ em.dr-type-boolean {
132
+ background: #b1edc9;
133
+ color: #004c1e;
134
+ }
135
+ em.dr-type-array {
136
+ background: #edd5b1;
137
+ color: #4c2d00;
138
+ }
139
+ dd.dr-optional {
140
+ display: none;
141
+ }
142
+ ol.dr-json {
143
+ list-style: none;
144
+ margin: 0 -30px;
145
+ padding: 16px 30px;
146
+ }
147
+ ol.dr-json .dr-json-key {
148
+ float: left;
149
+ min-width: 50px;
150
+ margin-right: 16px;
151
+ }
152
+ ol.dr-json .dr-json-description {
153
+ display: table;
154
+ }
155
+ ol.dr-json ol.dr-json {
156
+ margin: 0;
157
+ padding: 0 0 0 50px;
158
+ }
159
+ h1 {
160
+ font-weight: 400;
161
+ font-size: 2.6em;
162
+ margin: 0;
163
+ }
164
+ h2, h3, h4, h5 {
165
+ margin: 1em 0 .5em 0;
166
+ padding: 6px 0 0;
167
+ font-weight: 600;
168
+ position: relative;
169
+ clear: left;
170
+ }
171
+ h5 {
172
+ font-size: 18px;
173
+ }
174
+ h4 {
175
+ font-size: 20px;
176
+ }
177
+ h3 {
178
+ font-size: 28px;
179
+ }
180
+ h2 {
181
+ font-size: 38px;
182
+ }
183
+ h2.dr-method,
184
+ h3.dr-method,
185
+ h4.dr-method,
186
+ h5.dr-method {
187
+ color: #900;
188
+ }
189
+ h2.dr-property,
190
+ h3.dr-property,
191
+ h4.dr-property,
192
+ h5.dr-property {
193
+ color: #009;
194
+ }
195
+ i.dr-trixie {
196
+ display: none;
197
+ }
198
+ p.header {
199
+ font-size: 19px;
200
+ font-weight: 600;
201
+ margin: 1em 0 .3em;
202
+ }
203
+ .dr-returns {
204
+ margin-top: 16px;
205
+ }
206
+ .dr-returns .dr-title {
207
+ float: left;
208
+ margin-right: 16px;
209
+ width: 160px;
210
+ }
211
+ a.dr-hash,
212
+ a.dr-link,
213
+ a.dr-sourceline {
214
+ display: none;
215
+ }
216
+ p {
217
+ margin: 0 0 .5em;
218
+ }
@@ -0,0 +1,404 @@
1
+ html, body {
2
+ height: 100%;
3
+ margin: 0;
4
+ padding: 0;
5
+ }
6
+ #dr-js {
7
+ background: #999;
8
+ margin: 0;
9
+ padding: 0;
10
+ overflow-y: hidden;
11
+ }
12
+ #src-dr-js {
13
+ background: #000;
14
+ margin: 1em;
15
+ padding: 0;
16
+ }
17
+ .dr-doc {
18
+ background: #eee;
19
+ border-right: solid #eee 3px;
20
+ float: right;
21
+ font: 300 16px/1.4 "Myriad Pro", "Helvetica Neue", Helvetica, "Arial Unicode MS", Arial, sans-serif;
22
+ height: 100%;
23
+ margin: 0;
24
+ overflow: auto;
25
+ padding: 0 30px;
26
+ width: 800px;
27
+ }
28
+ .dr-toc {
29
+ background: #ddd;
30
+ background: -moz-linear-gradient(left, #ddd 0%, #eee 100%); /* firefox */
31
+ background: -webkit-gradient(linear, left top, right top, color-stop(0%, #ddd), color-stop(100%, #eee)); /* webkit */
32
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ddd', endColorstr='#eee',GradientType=1); /* ie */
33
+ border-right: solid #ddd 3px;
34
+ float: right;
35
+ font-family: Menlo, Consolas, Monaco, "Lucida Console", monospace;
36
+ height: 100%;
37
+ list-style: none;
38
+ margin: 0;
39
+ overflow: auto;
40
+ padding: 0 16px;
41
+ width: 240px;
42
+ }
43
+ #dr {
44
+ margin: 0 auto;
45
+ width: 1152px;
46
+ height: 100%;
47
+ }
48
+ ::-moz-selection {
49
+ background: #c00;
50
+ color: #fff;
51
+ }
52
+ ::selection {
53
+ background: #c00;
54
+ color: #fff;
55
+ }
56
+ .dr-doc code,
57
+ .dr-type em,
58
+ .dr-returns em,
59
+ .dr-property em {
60
+ font-family: Menlo, Consolas, Monaco, "Lucida Console", monospace;
61
+ }
62
+ .extra {
63
+ display: none;
64
+ }
65
+ pre.code code {
66
+ color: #fff;
67
+ }
68
+ pre.code {
69
+ background: #333;
70
+ color: #fff;
71
+ overflow-x: auto;
72
+ padding: 16px 30px;
73
+ margin: 0 -30px;
74
+ }
75
+ code b {
76
+ color: #e9df8f;
77
+ font-weight: normal;
78
+ }
79
+ code i,
80
+ code i *,
81
+ code i .d {
82
+ color: #8b9967;
83
+ font-style: normal;
84
+ }
85
+ code .s {
86
+ color: #e7be61;
87
+ }
88
+ code .d {
89
+ color: #cf6a4c;
90
+ }
91
+ code .c,
92
+ code .c * {
93
+ color: #999;
94
+ font-style: italic;
95
+ }
96
+ em.amp {
97
+ font-family: Baskerville, "Goudy Old Style", Palatino, "Book Antiqua", serif;
98
+ font-style: italic;
99
+ }
100
+ dl.dr-parameters {
101
+ margin: 8px 0;
102
+ }
103
+ dt.dr-param {
104
+ color: #666;
105
+ font-weight: 400;
106
+ float: left;
107
+ margin-right: 16px;
108
+ min-width: 160px;
109
+ }
110
+ dd.dr-type {
111
+ margin: 0;
112
+ }
113
+ dd.dr-description {
114
+ display: table;
115
+ min-height: 24px;
116
+ border: solid 1px #eee;
117
+ }
118
+ .dr-type {
119
+ float: left;
120
+ }
121
+ .dr-type em,
122
+ .dr-returns em,
123
+ .dr-property em {
124
+ -moz-border-radius: 5px;
125
+ -webkit-border-radius: 5px;
126
+ background: #ccc;
127
+ border-radius: 5px;
128
+ float: left;
129
+ font-size: .75em;
130
+ font-style: normal;
131
+ font-weight: 700;
132
+ margin: 0 8px 0 0;
133
+ min-width: 80px;
134
+ padding: 2px 5px;
135
+ text-align: center;
136
+ }
137
+ .dr-type em.amp,
138
+ .dr-returns em.amp,
139
+ .dr-property em.amp {
140
+ float: none;
141
+ background: none;
142
+ font-size: 1em;
143
+ font-weight: 400;
144
+ font-style: italic;
145
+ margin: 0;
146
+ padding: 0;
147
+ min-width: 0;
148
+ }
149
+ .dr-property em.dr-type {
150
+ margin: 4px 16px 0 0;
151
+ }
152
+ em.dr-type-string {
153
+ background: #e1edb1;
154
+ color: #3d4c00;
155
+ }
156
+ em.dr-type-object {
157
+ background: #edb1b1;
158
+ color: #4c0000;
159
+ }
160
+ em.dr-type-function {
161
+ background: #cfb1ed;
162
+ color: #26004c;
163
+ }
164
+ em.dr-type-number {
165
+ background: #b1c9ed;
166
+ color: #001e4c;
167
+ }
168
+ em.dr-type-boolean {
169
+ background: #b1edc9;
170
+ color: #004c1e;
171
+ }
172
+ em.dr-type-array {
173
+ background: #edd5b1;
174
+ color: #4c2d00;
175
+ }
176
+ dd.dr-optional {
177
+ display: none;
178
+ }
179
+ ol.dr-json {
180
+ background: #ddd;
181
+ list-style: none;
182
+ margin: 0 -30px;
183
+ padding: 16px 30px;
184
+ }
185
+ ol.dr-json .dr-json-key {
186
+ float: left;
187
+ min-width: 50px;
188
+ margin-right: 16px;
189
+ }
190
+ ol.dr-json .dr-json-description {
191
+ display: table;
192
+ }
193
+ ol.dr-json ol.dr-json {
194
+ margin: 0;
195
+ padding: 0 0 0 50px;
196
+ }
197
+ h1 {
198
+ font-weight: 400;
199
+ font-size: 2.6em;
200
+ margin: 0;
201
+ }
202
+ h2, h3, h4, h5 {
203
+ margin: 1em 0 .5em 0;
204
+ padding: 6px 0 0;
205
+ font-weight: 600;
206
+ position: relative;
207
+ }
208
+ h5 {
209
+ font-size: 18px;
210
+ }
211
+ h4 {
212
+ font-size: 20px;
213
+ }
214
+ h3 {
215
+ font-size: 28px;
216
+ }
217
+ h2 {
218
+ font-size: 38px;
219
+ }
220
+ h2.dr-method,
221
+ h3.dr-method,
222
+ h4.dr-method,
223
+ h5.dr-method {
224
+ color: #900;
225
+ }
226
+ h2.dr-property,
227
+ h3.dr-property,
228
+ h4.dr-property,
229
+ h5.dr-property {
230
+ color: #009;
231
+ }
232
+ i.dr-trixie {
233
+ border: solid 10px #eee;
234
+ border-left-color: #999;
235
+ height: 0;
236
+ margin-left: -30px;
237
+ margin-top: -10px;
238
+ overflow: hidden;
239
+ position: absolute;
240
+ top: 50%;
241
+ width: 0;
242
+ }
243
+ p.header {
244
+ font-size: 19px;
245
+ font-weight: 600;
246
+ margin: 1em 0 .3em;
247
+ }
248
+ .dr-returns {
249
+ margin-top: 16px;
250
+ }
251
+ .dr-returns .dr-title {
252
+ float: left;
253
+ margin-right: 16px;
254
+ width: 160px;
255
+ }
256
+ .dr-toc a {
257
+ display: block;
258
+ text-decoration: none;
259
+ color: #333;
260
+ padding-top: 8px;
261
+ position: relative;
262
+ z-index: 1000;
263
+ }
264
+ .dr-toc li.dr-lvl1 a {
265
+ padding-left: 1em;
266
+ }
267
+ .dr-toc li.dr-lvl2 a {
268
+ padding-left: 2em;
269
+ }
270
+ .dr-toc li.dr-lvl3 a {
271
+ padding-left: 3em;
272
+ }
273
+ .dr-toc li.dr-lvl4 a {
274
+ padding-left: 4em;
275
+ }
276
+ .dr-toc li.dr-lvl5 a {
277
+ padding-left: 5em;
278
+ }
279
+ .dr-toc li.dr-lvl6 a {
280
+ padding-left: 6em;
281
+ }
282
+ .dr-toc a.dr-property {
283
+ color: #339;
284
+ }
285
+ .dr-toc a.dr-method {
286
+ color: #933;
287
+ }
288
+ .dr-toc a:hover {
289
+ text-shadow: 0 0 2px #333;
290
+ }
291
+ .dr-toc a.dr-property:hover {
292
+ text-shadow: 0 0 2px #66c;
293
+ }
294
+ .dr-toc a.dr-method:hover {
295
+ text-shadow: 0 0 2px #c66;
296
+ }
297
+ a.dr-hash,
298
+ a.dr-sourceline {
299
+ -webkit-transition: opacity 0.2s linear;
300
+ color: #333;
301
+ font-family: Menlo, "Arial Unicode MS", sans-serif;
302
+ margin: 0 0 0 .3em;
303
+ opacity: 0;
304
+ text-decoration: none;
305
+ }
306
+ a.dr-link {
307
+ position: relative;
308
+ color: #3875c0;
309
+ }
310
+ a.dr-link:hover {
311
+ text-shadow: 0 1px 2px #999;
312
+ bottom: 1px;
313
+ padding-bottom: 1px;
314
+ }
315
+ a.dr-link:visited {
316
+ color: #7051bc;
317
+ }
318
+ h2:hover a.dr-hash,
319
+ h3:hover a.dr-hash,
320
+ h4:hover a.dr-hash,
321
+ h5:hover a.dr-hash,
322
+ h2:hover a.dr-sourceline,
323
+ h3:hover a.dr-sourceline,
324
+ h4:hover a.dr-sourceline,
325
+ h5:hover a.dr-sourceline {
326
+ opacity: 1;
327
+ }
328
+ p {
329
+ margin: 0 0 .5em;
330
+ }
331
+
332
+ .dr-source-line {
333
+ margin: 0;
334
+ }
335
+ .dr-source-line a {
336
+ -webkit-border-radius: 5px;
337
+ -webkit-border-radius: 5px;
338
+ -moz-border-radius: 5px;
339
+ -moz-border-radius: 5px;
340
+ border-radius: 5px;
341
+ border-radius: 5px;
342
+ color: #000;
343
+ background: #999;
344
+ font-weight: 400;
345
+ font-size: .75em;
346
+ text-decoration: none;
347
+ padding: 5px;
348
+ }
349
+ #src-dr-js code {
350
+ background: #000;
351
+ display: block;
352
+ color: #fff;
353
+ font-family: Menlo, Consolas, Monaco, "Lucida Console", monospace;
354
+ white-space: pre;
355
+ padding-left: 100px;
356
+ position: relative;
357
+ line-height: 1.2;
358
+ }
359
+ #src-dr-js code:hover {
360
+ background: #333;
361
+ }
362
+ #src-dr-js code:hover .ln {
363
+ color: #fff;
364
+ }
365
+ #src-dr-js code .ln {
366
+ position: absolute;
367
+ left: 0;
368
+ color: #333;
369
+ width: 70px;
370
+ text-align: right;
371
+ }
372
+
373
+ /*Scrollbar*/
374
+ .dr-doc::-webkit-scrollbar,
375
+ .dr-toc::-webkit-scrollbar {
376
+ width: 7px;
377
+ height: 9px;
378
+ }
379
+ .dr-doc::-webkit-scrollbar-button:start:decrement,
380
+ .dr-doc::-webkit-scrollbar-button:end:increment,
381
+ .dr-toc::-webkit-scrollbar-button:start:decrement,
382
+ .dr-toc::-webkit-scrollbar-button:end:increment {
383
+ display: block;
384
+ height: 0;
385
+ background-color: transparent;
386
+ }
387
+ .dr-doc::-webkit-scrollbar-track-piece,
388
+ .dr-toc::-webkit-scrollbar-track-piece {
389
+ -webkit-border-radius: 0;
390
+ -webkit-border-bottom-right-radius: 4px;
391
+ -webkit-border-bottom-left-radius: 4px;
392
+ }
393
+ .dr-doc::-webkit-scrollbar-thumb:vertical,
394
+ .dr-toc::-webkit-scrollbar-thumb:vertical {
395
+ height: 50px;
396
+ background-color: rgba(0, 0, 0, 0.2);
397
+ -webkit-border-radius: 4px;
398
+ }
399
+ .dr-doc::-webkit-scrollbar-thumb:horizontal,
400
+ .dr-toc::-webkit-scrollbar-thumb:horizontal {
401
+ width: 50px;
402
+ background-color: rgba(0, 0, 0, 0.2);
403
+ -webkit-border-radius: 4px;
404
+ }