prismic.io 1.4.3 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/docs/Prismic/API/BadPrismicResponseError.html +44 -43
  4. data/docs/Prismic/API/OAuth.html +99 -98
  5. data/docs/Prismic/API/PrismicWSAuthError.html +67 -66
  6. data/docs/Prismic/API/PrismicWSConnectionError.html +51 -50
  7. data/docs/Prismic/API.html +434 -280
  8. data/docs/Prismic/BasicNullCache.html +49 -48
  9. data/docs/Prismic/DefaultHTTPClient.html +85 -79
  10. data/docs/Prismic/Document.html +279 -83
  11. data/docs/Prismic/Error.html +52 -51
  12. data/docs/Prismic/Experiment.html +60 -59
  13. data/docs/Prismic/Experiments.html +61 -60
  14. data/docs/Prismic/Field.html +54 -53
  15. data/docs/Prismic/Form.html +70 -69
  16. data/docs/Prismic/Fragments/Color.html +60 -59
  17. data/docs/Prismic/Fragments/Date.html +52 -51
  18. data/docs/Prismic/Fragments/DocumentLink.html +78 -76
  19. data/docs/Prismic/Fragments/Embed.html +60 -59
  20. data/docs/Prismic/Fragments/FileLink.html +58 -57
  21. data/docs/Prismic/Fragments/Fragment.html +49 -48
  22. data/docs/Prismic/Fragments/GeoPoint.html +54 -53
  23. data/docs/Prismic/Fragments/Group.html +65 -63
  24. data/docs/Prismic/Fragments/GroupDocument.html +57 -55
  25. data/docs/Prismic/Fragments/Image/View.html +64 -63
  26. data/docs/Prismic/Fragments/Image/ViewDoesNotExistException.html +44 -43
  27. data/docs/Prismic/Fragments/Image.html +69 -68
  28. data/docs/Prismic/Fragments/ImageLink.html +50 -49
  29. data/docs/Prismic/Fragments/Link.html +53 -52
  30. data/docs/Prismic/Fragments/Multiple.html +58 -57
  31. data/docs/Prismic/Fragments/Number.html +54 -53
  32. data/docs/Prismic/Fragments/Select.html +52 -51
  33. data/docs/Prismic/Fragments/Separator.html +54 -53
  34. data/docs/Prismic/Fragments/Slice.html +58 -57
  35. data/docs/Prismic/Fragments/SliceZone.html +54 -53
  36. data/docs/Prismic/Fragments/StructuredText/Block/Embed.html +52 -51
  37. data/docs/Prismic/Fragments/StructuredText/Block/Heading.html +52 -51
  38. data/docs/Prismic/Fragments/StructuredText/Block/Image.html +66 -65
  39. data/docs/Prismic/Fragments/StructuredText/Block/ListItem.html +52 -51
  40. data/docs/Prismic/Fragments/StructuredText/Block/Paragraph.html +47 -46
  41. data/docs/Prismic/Fragments/StructuredText/Block/Preformatted.html +47 -46
  42. data/docs/Prismic/Fragments/StructuredText/Block/Text.html +68 -64
  43. data/docs/Prismic/Fragments/StructuredText/Block.html +47 -46
  44. data/docs/Prismic/Fragments/StructuredText/BlockGroup.html +54 -53
  45. data/docs/Prismic/Fragments/StructuredText/Span/Em.html +47 -46
  46. data/docs/Prismic/Fragments/StructuredText/Span/Hyperlink.html +53 -52
  47. data/docs/Prismic/Fragments/StructuredText/Span/Label.html +52 -51
  48. data/docs/Prismic/Fragments/StructuredText/Span/Strong.html +47 -46
  49. data/docs/Prismic/Fragments/StructuredText/Span.html +52 -51
  50. data/docs/Prismic/Fragments/StructuredText.html +59 -58
  51. data/docs/Prismic/Fragments/Text.html +54 -53
  52. data/docs/Prismic/Fragments/Timestamp.html +52 -51
  53. data/docs/Prismic/Fragments/WebLink.html +50 -49
  54. data/docs/Prismic/Fragments.html +39 -39
  55. data/docs/Prismic/HtmlSerializer.html +57 -56
  56. data/docs/Prismic/JsonParser.html +145 -143
  57. data/docs/Prismic/LinkResolver.html +73 -72
  58. data/docs/Prismic/LruCache.html +70 -69
  59. data/docs/Prismic/Predicates.html +261 -209
  60. data/docs/Prismic/Ref.html +86 -85
  61. data/docs/Prismic/Response.html +75 -73
  62. data/docs/Prismic/SearchForm/AuthenticationException.html +44 -43
  63. data/docs/Prismic/SearchForm/AuthorizationException.html +44 -43
  64. data/docs/Prismic/SearchForm/FormSearchException.html +44 -43
  65. data/docs/Prismic/SearchForm/NoRefSetException.html +44 -43
  66. data/docs/Prismic/SearchForm/RefNotFoundException.html +44 -43
  67. data/docs/Prismic/SearchForm/UnsupportedFormKind.html +44 -43
  68. data/docs/Prismic/SearchForm.html +97 -96
  69. data/docs/Prismic/Variation.html +57 -56
  70. data/docs/Prismic/WithFragments.html +115 -113
  71. data/docs/Prismic.html +91 -93
  72. data/docs/_index.html +32 -35
  73. data/docs/class_list.html +24 -27
  74. data/docs/css/full_list.css +32 -31
  75. data/docs/css/style.css +244 -91
  76. data/docs/file.README.html +39 -74
  77. data/docs/file_list.html +26 -26
  78. data/docs/frames.html +7 -16
  79. data/docs/index.html +39 -74
  80. data/docs/js/app.js +101 -77
  81. data/docs/js/full_list.js +170 -132
  82. data/docs/method_list.html +1995 -1189
  83. data/docs/top-level-namespace.html +34 -36
  84. data/lib/prismic/api.rb +10 -1
  85. data/lib/prismic/fragments/link.rb +3 -2
  86. data/lib/prismic/json_parsers.rb +14 -0
  87. data/lib/prismic/version.rb +1 -1
  88. data/lib/prismic.rb +47 -5
  89. data/spec/cache_spec.rb +2 -2
  90. data/spec/fragments_spec.rb +8 -1
  91. data/spec/json_parsers_spec.rb +13 -1
  92. data/spec/prismic_spec.rb +14 -7
  93. data/spec/responses_mocks/document.json +13 -0
  94. data/spec/simple_search_spec.rb +9 -0
  95. metadata +2 -2
data/docs/css/style.css CHANGED
@@ -1,9 +1,87 @@
1
+ html {
2
+ width: 100%;
3
+ height: 100%;
4
+ }
1
5
  body {
2
- padding: 0 20px;
3
6
  font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
4
7
  font-size: 13px;
8
+ width: 100%;
9
+ margin: 0;
10
+ padding: 0;
11
+ display: flex;
12
+ display: -webkit-flex;
13
+ display: -ms-flexbox;
14
+ }
15
+
16
+ #nav {
17
+ position: relative;
18
+ width: 100%;
19
+ height: 100%;
20
+ border: 0;
21
+ border-right: 1px dotted #eee;
22
+ overflow: auto;
23
+ }
24
+ .nav_wrap {
25
+ margin: 0;
26
+ padding: 0;
27
+ width: 20%;
28
+ height: 100%;
29
+ position: relative;
30
+ display: flex;
31
+ display: -webkit-flex;
32
+ display: -ms-flexbox;
33
+ flex-shrink: 0;
34
+ -webkit-flex-shrink: 0;
35
+ -ms-flex: 1 0;
36
+ }
37
+ #resizer {
38
+ position: absolute;
39
+ right: -5px;
40
+ top: 0;
41
+ width: 10px;
42
+ height: 100%;
43
+ cursor: col-resize;
44
+ z-index: 9999;
5
45
  }
6
- body.frames { padding: 0 5px; }
46
+ #main {
47
+ flex: 5 1;
48
+ -webkit-flex: 5 1;
49
+ -ms-flex: 5 1;
50
+ outline: none;
51
+ position: relative;
52
+ background: #fff;
53
+ padding: 1.2em;
54
+ padding-top: 0.2em;
55
+ }
56
+
57
+ @media (max-width: 920px) {
58
+ .nav_wrap { width: 100%; top: 0; right: 0; overflow: visible; position: absolute; }
59
+ #resizer { display: none; }
60
+ #nav {
61
+ z-index: 9999;
62
+ background: #fff;
63
+ display: none;
64
+ position: absolute;
65
+ top: 40px;
66
+ right: 12px;
67
+ width: 500px;
68
+ max-width: 80%;
69
+ height: 80%;
70
+ overflow-y: scroll;
71
+ border: 1px solid #999;
72
+ border-collapse: collapse;
73
+ box-shadow: -7px 5px 25px #aaa;
74
+ border-radius: 2px;
75
+ }
76
+ }
77
+
78
+ @media (min-width: 920px) {
79
+ body { height: 100%; overflow: hidden; }
80
+ #main { height: 100%; overflow: auto; }
81
+ #search { display: none; }
82
+ }
83
+
84
+ #main img { max-width: 100%; }
7
85
  h1 { font-size: 25px; margin: 1em 0 0.5em; padding-top: 4px; border-top: 1px dotted #d5d5d5; }
8
86
  h1.noborder { border-top: 0px; margin-top: 0; padding-top: 4px; }
9
87
  h1.title { margin-bottom: 10px; }
@@ -14,18 +92,41 @@ h2 {
14
92
  border-bottom: 1px #aaa solid;
15
93
  font-size: 1.4em;
16
94
  margin: 1.8em 0 0.5em;
95
+ position: relative;
96
+ }
97
+ h2 small { font-weight: normal; font-size: 0.7em; display: inline; position: absolute; right: 0; }
98
+ h2 small a {
99
+ display: block;
100
+ height: 20px;
101
+ border: 1px solid #aaa;
102
+ border-bottom: 0;
103
+ border-top-left-radius: 5px;
104
+ background: #f8f8f8;
105
+ position: relative;
106
+ padding: 2px 7px;
17
107
  }
18
- h2 small { font-weight: normal; font-size: 0.7em; display: block; float: right; }
19
108
  .clear { clear: both; }
20
109
  .inline { display: inline; }
21
110
  .inline p:first-child { display: inline; }
111
+ .docstring, .tags, #filecontents { font-size: 15px; line-height: 1.5145em; }
112
+ .docstring p > code, .docstring p > tt, .tags p > code, .tags p > tt {
113
+ color: #c7254e; background: #f9f2f4; padding: 2px 4px; font-size: 1em;
114
+ border-radius: 4px;
115
+ }
22
116
  .docstring h1, .docstring h2, .docstring h3, .docstring h4 { padding: 0; border: 0; border-bottom: 1px dotted #bbb; }
23
117
  .docstring h1 { font-size: 1.2em; }
24
118
  .docstring h2 { font-size: 1.1em; }
25
119
  .docstring h3, .docstring h4 { font-size: 1em; border-bottom: 0; padding-top: 10px; }
26
- .summary_desc .object_link, .docstring .object_link { font-family: monospace; }
120
+ .summary_desc .object_link a, .docstring .object_link a {
121
+ font-family: monospace; font-size: 1.05em;
122
+ color: #05a; background: #EDF4FA; padding: 2px 4px; font-size: 1em;
123
+ border-radius: 4px;
124
+ }
27
125
  .rdoc-term { padding-right: 25px; font-weight: bold; }
28
126
  .rdoc-list p { margin: 0; padding: 0; margin-bottom: 4px; }
127
+ .summary_desc pre.code .object_link a, .docstring pre.code .object_link a {
128
+ padding: 0px; background: inherit; color: inherit; border-radius: inherit;
129
+ }
29
130
 
30
131
  /* style for <table> */
31
132
  #filecontents table, .docstring table { border-collapse: collapse; }
@@ -48,17 +149,25 @@ h2 small { font-weight: normal; font-size: 0.7em; display: block; float: right;
48
149
 
49
150
  .note {
50
151
  color: #222;
51
- -moz-border-radius: 3px; -webkit-border-radius: 3px;
52
- background: #e3e4e3; border: 1px solid #d5d5d5; padding: 7px 10px;
152
+ margin: 20px 0;
153
+ padding: 10px;
154
+ border: 1px solid #eee;
155
+ border-radius: 3px;
53
156
  display: block;
54
157
  }
158
+ .docstring .note {
159
+ border-left-color: #ccc;
160
+ border-left-width: 5px;
161
+ }
55
162
  .note.todo { background: #ffffc5; border-color: #ececaa; }
56
163
  .note.returns_void { background: #efefef; }
57
164
  .note.deprecated { background: #ffe5e5; border-color: #e9dada; }
165
+ .note.title.deprecated { background: #ffe5e5; border-color: #e9dada; }
58
166
  .note.private { background: #ffffc5; border-color: #ececaa; }
59
- .note.title { padding: 1px 5px; font-size: 0.9em; font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; display: inline; }
167
+ .note.title { padding: 3px 6px; font-size: 0.9em; font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; display: inline; }
60
168
  .summary_signature + .note.title { margin-left: 7px; }
61
169
  h1 .note.title { font-size: 0.5em; font-weight: normal; padding: 3px 5px; position: relative; top: -3px; text-transform: capitalize; }
170
+ .note.title { background: #efefef; }
62
171
  .note.title.constructor { color: #fff; background: #6a98d6; border-color: #6689d6; }
63
172
  .note.title.writeonly { color: #fff; background: #45a638; border-color: #2da31d; }
64
173
  .note.title.readonly { color: #fff; background: #6a98d6; border-color: #6689d6; }
@@ -83,48 +192,71 @@ p.inherited {
83
192
  margin-left: 25px;
84
193
  }
85
194
 
86
- #filecontents dl.box, dl.box {
195
+ .box_info dl {
196
+ margin: 0;
87
197
  border: 0;
88
- width: 520px;
198
+ width: 100%;
89
199
  font-size: 1em;
200
+ display: flex;
201
+ display: -webkit-flex;
202
+ display: -ms-flexbox;
90
203
  }
91
- #filecontents dl.box dt, dl.box dt {
92
- float: left;
93
- display: block;
204
+ .box_info dl dt {
205
+ flex-shrink: 0;
206
+ -webkit-flex-shrink: 1;
207
+ -ms-flex-shrink: 1;
94
208
  width: 100px;
95
- margin: 0;
96
209
  text-align: right;
97
210
  font-weight: bold;
98
- background: transparent;
99
211
  border: 1px solid #aaa;
100
212
  border-width: 1px 0px 0px 1px;
101
213
  padding: 6px 0;
102
214
  padding-right: 10px;
103
215
  }
104
- #filecontents dl.box dd, dl.box dd {
105
- float: left;
106
- display: block;
107
- width: 380px;
108
- margin: 0;
216
+ .box_info dl dd {
217
+ flex-grow: 1;
218
+ -webkit-flex-grow: 1;
219
+ -ms-flex: 1;
220
+ max-width: 420px;
109
221
  padding: 6px 0;
110
222
  padding-right: 20px;
111
223
  border: 1px solid #aaa;
112
224
  border-width: 1px 1px 0 0;
225
+ overflow: hidden;
226
+ position: relative;
113
227
  }
114
- #filecontents dl.box .last, dl.box .last {
228
+ .box_info dl:last-child > * {
115
229
  border-bottom: 1px solid #aaa;
116
230
  }
117
- #filecontents dl.box .r1, dl.box .r1 { background: #eee; }
231
+ .box_info dl:nth-child(odd) > * { background: #eee; }
232
+ .box_info dl:nth-child(even) > * { background: #fff; }
233
+ .box_info dl > * { margin: 0; }
118
234
 
119
235
  ul.toplevel { list-style: none; padding-left: 0; font-size: 1.1em; }
120
236
  .index_inline_list { padding-left: 0; font-size: 1.1em; }
121
- .index_inline_list li { list-style: none; display: inline; padding: 7px 12px; line-height: 35px; }
122
237
 
123
- dl.constants { margin-left: 40px; }
238
+ .index_inline_list li {
239
+ list-style: none;
240
+ display: inline-block;
241
+ padding: 0 12px;
242
+ line-height: 30px;
243
+ margin-bottom: 5px;
244
+ }
245
+
246
+ dl.constants { margin-left: 10px; }
124
247
  dl.constants dt { font-weight: bold; font-size: 1.1em; margin-bottom: 5px; }
125
248
  dl.constants dd { width: 75%; white-space: pre; font-family: monospace; margin-bottom: 18px; }
249
+ dl.constants .docstring .note:first-child { margin-top: 5px; }
126
250
 
127
- .summary_desc { margin-left: 32px; display: block; font-family: sans-serif; }
251
+ .summary_desc {
252
+ margin-left: 32px;
253
+ display: block;
254
+ font-family: sans-serif;
255
+ font-size: 1.1em;
256
+ margin-top: 8px;
257
+ line-height: 1.5145em;
258
+ margin-bottom: 0.8em;
259
+ }
128
260
  .summary_desc tt { font-size: 0.9em; }
129
261
  dl.constants .note { padding: 2px 6px; padding-right: 12px; margin-top: 6px; }
130
262
  dl.constants .docstring { margin-left: 32px; font-size: 0.9em; font-weight: normal; }
@@ -132,12 +264,13 @@ dl.constants .tags { padding-left: 32px; font-size: 0.9em; line-height: 0.8em; }
132
264
  dl.constants .discussion *:first-child { margin-top: 0; }
133
265
  dl.constants .discussion *:last-child { margin-bottom: 0; }
134
266
 
135
- .method_details { border-top: 1px dotted #aaa; margin-top: 15px; padding-top: 0; }
136
- .method_details.first { border: 0; }
267
+ .method_details { border-top: 1px dotted #ccc; margin-top: 25px; padding-top: 0; }
268
+ .method_details.first { border: 0; margin-top: 5px; }
269
+ .method_details.first h3.signature { margin-top: 1em; }
137
270
  p.signature, h3.signature {
138
271
  font-size: 1.1em; font-weight: normal; font-family: Monaco, Consolas, Courier, monospace;
139
- padding: 6px 10px; margin-top: 18px;
140
- background: #e5e8ff; border: 1px solid #d8d8e5; -moz-border-radius: 3px; -webkit-border-radius: 3px;
272
+ padding: 6px 10px; margin-top: 1em;
273
+ background: #E8F4FF; border: 1px solid #d8d8e5; border-radius: 5px;
141
274
  }
142
275
  p.signature tt,
143
276
  h3.signature tt { font-family: Monaco, Consolas, Courier, monospace; }
@@ -152,7 +285,8 @@ h3.signature .aliases { display: block; font-weight: normal; font-size: 0.9em; f
152
285
  p.signature .aliases .names,
153
286
  h3.signature .aliases .names { font-family: Monaco, Consolas, Courier, monospace; font-weight: bold; color: #000; font-size: 1.2em; }
154
287
 
155
- .tags .tag_title { font-size: 1em; margin-bottom: 0; font-weight: bold; }
288
+ .tags .tag_title { font-size: 1.05em; margin-bottom: 0; font-weight: bold; }
289
+ .tags .tag_title tt { color: initial; padding: initial; background: initial; }
156
290
  .tags ul { margin-top: 5px; padding-left: 30px; list-style: square; }
157
291
  .tags ul li { margin-bottom: 3px; }
158
292
  .tags ul .name { font-family: monospace; font-weight: bold; }
@@ -160,12 +294,13 @@ h3.signature .aliases .names { font-family: Monaco, Consolas, Courier, monospace
160
294
  .tags { margin-bottom: 12px; }
161
295
 
162
296
  .tags .examples .tag_title { margin-bottom: 10px; font-weight: bold; }
163
- .tags .examples .inline p { padding: 0; margin: 0; margin-left: 15px; font-weight: bold; font-size: 0.9em; }
297
+ .tags .examples .inline p { padding: 0; margin: 0; font-weight: bold; font-size: 1em; }
298
+ .tags .examples .inline p:before { content: "▸"; font-size: 1em; margin-right: 5px; }
164
299
 
165
300
  .tags .overload .overload_item { list-style: none; margin-bottom: 25px; }
166
301
  .tags .overload .overload_item .signature {
167
302
  padding: 2px 8px;
168
- background: #e5e8ff; border: 1px solid #d8d8e5; -moz-border-radius: 3px; -webkit-border-radius: 3px;
303
+ background: #F1F8FF; border: 1px solid #d8d8e5; border-radius: 3px;
169
304
  }
170
305
  .tags .overload .signature { margin-left: -15px; font-family: monospace; display: block; font-size: 1.1em; }
171
306
  .tags .overload .docstring { margin-top: 15px; }
@@ -175,34 +310,35 @@ h3.signature .aliases .names { font-family: Monaco, Consolas, Courier, monospace
175
310
  #method_missing_details .notice.this { position: relative; top: -8px; color: #888; padding: 0; margin: 0; }
176
311
 
177
312
  .showSource { font-size: 0.9em; }
178
- .showSource a:link, .showSource a:visited { text-decoration: none; color: #666; }
313
+ .showSource a, .showSource a:visited { text-decoration: none; color: #666; }
179
314
 
180
- #content a:link, #content a:visited { text-decoration: none; color: #05a; }
315
+ #content a, #content a:visited { text-decoration: none; color: #05a; }
181
316
  #content a:hover { background: #ffffa5; }
182
- div.docstring, p.docstring { margin-right: 6em; }
183
317
 
184
318
  ul.summary {
185
319
  list-style: none;
186
320
  font-family: monospace;
187
321
  font-size: 1em;
188
322
  line-height: 1.5em;
323
+ padding-left: 0px;
189
324
  }
190
- ul.summary a:link, ul.summary a:visited {
325
+ ul.summary a, ul.summary a:visited {
191
326
  text-decoration: none; font-size: 1.1em;
192
327
  }
193
328
  ul.summary li { margin-bottom: 5px; }
194
329
  .summary .summary_signature {
195
- padding: 1px 10px;
196
- background: #eaeaff; border: 1px solid #dfdfe5;
197
- -moz-border-radius: 3px; -webkit-border-radius: 3px;
330
+ padding: 4px 8px;
331
+ background: #f8f8f8;
332
+ border: 1px solid #f0f0f0;
333
+ border-radius: 5px;
198
334
  }
199
- .summary_signature:hover { background: #eeeeff; cursor: pointer; }
335
+ .summary_signature:hover { background: #CFEBFF; border-color: #A4CCDA; cursor: pointer; }
200
336
  ul.summary.compact li { display: inline-block; margin: 0px 5px 0px 0px; line-height: 2.6em;}
201
337
  ul.summary.compact .summary_signature { padding: 5px 7px; padding-right: 4px; }
202
- #content .summary_signature:hover a:link,
338
+ #content .summary_signature:hover a,
203
339
  #content .summary_signature:hover a:visited {
204
340
  background: transparent;
205
- color: #48f;
341
+ color: #049;
206
342
  }
207
343
 
208
344
  p.inherited a { font-family: monospace; font-size: 0.9em; }
@@ -221,37 +357,42 @@ ul.fullTree li:last-child { padding-bottom: 0; }
221
357
  .showAll ul.fullTree { display: block; }
222
358
  .showAll .inheritName { display: none; }
223
359
 
224
- #search { position: absolute; right: 14px; top: 0px; }
225
- #search a:link, #search a:visited {
226
- display: block; float: left; margin-right: 4px;
227
- padding: 8px 10px; text-decoration: none; color: #05a;
360
+ #search { position: absolute; right: 12px; top: 0px; z-index: 9000; }
361
+ #search a {
362
+ display: block; float: left;
363
+ padding: 4px 8px; text-decoration: none; color: #05a; fill: #05a;
228
364
  border: 1px solid #d8d8e5;
229
- -moz-border-radius-bottomleft: 3px; -moz-border-radius-bottomright: 3px;
230
- -webkit-border-bottom-left-radius: 3px; -webkit-border-bottom-right-radius: 3px;
231
- background: #eaf0ff;
232
- -webkit-box-shadow: -1px 1px 3px #ddd;
365
+ border-bottom-left-radius: 3px; border-bottom-right-radius: 3px;
366
+ background: #F1F8FF;
367
+ box-shadow: -1px 1px 3px #ddd;
233
368
  }
234
- #search a:hover { background: #f5faff; color: #06b; }
369
+ #search a:hover { background: #f5faff; color: #06b; fill: #06b; }
235
370
  #search a.active {
236
- background: #568; padding-bottom: 20px; color: #fff; border: 1px solid #457;
237
- -moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px;
238
- -webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px;
371
+ background: #568; padding-bottom: 20px; color: #fff; fill: #fff;
372
+ border: 1px solid #457;
373
+ border-top-left-radius: 5px; border-top-right-radius: 5px;
374
+ }
375
+ #search a.inactive { color: #999; fill: #999; }
376
+ .inheritanceTree, .toggleDefines {
377
+ float: right;
378
+ border-left: 1px solid #aaa;
379
+ position: absolute; top: 0; right: 0;
380
+ height: 100%;
381
+ background: #f6f6f6;
382
+ padding: 5px;
383
+ min-width: 55px;
384
+ text-align: center;
239
385
  }
240
- #search a.inactive { color: #999; }
241
- .frames #search { display: none; }
242
- .inheritanceTree, .toggleDefines { float: right; }
243
386
 
244
- #menu { font-size: 1.3em; color: #bbb; top: -5px; position: relative; }
387
+ #menu { font-size: 1.3em; color: #bbb; }
245
388
  #menu .title, #menu a { font-size: 0.7em; }
246
389
  #menu .title a { font-size: 1em; }
247
390
  #menu .title { color: #555; }
248
- #menu a:link, #menu a:visited { color: #333; text-decoration: none; border-bottom: 1px dotted #bbd; }
391
+ #menu a, #menu a:visited { color: #333; text-decoration: none; border-bottom: 1px dotted #bbd; }
249
392
  #menu a:hover { color: #05a; }
250
- #menu .noframes { display: inline; }
251
- .frames #menu .noframes { display: inline; float: right; }
252
393
 
253
394
  #footer { margin-top: 15px; border-top: 1px solid #ccc; text-align: center; padding: 7px 0; color: #999; }
254
- #footer a:link, #footer a:visited { color: #444; text-decoration: none; border-bottom: 1px dotted #bbd; }
395
+ #footer a, #footer a:visited { color: #444; text-decoration: none; border-bottom: 1px dotted #bbd; }
255
396
  #footer a:hover { color: #05a; }
256
397
 
257
398
  #listing ul.alpha { font-size: 1.1em; }
@@ -263,38 +404,23 @@ ul.fullTree li:last-child { padding-bottom: 0; }
263
404
  li.r1 { background: #f0f0f0; }
264
405
  li.r2 { background: #fafafa; }
265
406
 
266
- #search_frame {
267
- z-index: 9999;
268
- background: #fff;
269
- display: none;
270
- position: absolute;
271
- top: 36px;
272
- right: 18px;
273
- width: 500px;
274
- height: 80%;
275
- overflow-y: scroll;
276
- border: 1px solid #999;
277
- border-collapse: collapse;
278
- -webkit-box-shadow: -7px 5px 25px #aaa;
279
- -moz-box-shadow: -7px 5px 25px #aaa;
280
- -moz-border-radius: 2px;
281
- -webkit-border-radius: 2px;
282
- }
283
-
284
- #content ul.summary li.deprecated .summary_signature a:link,
407
+ #content ul.summary li.deprecated .summary_signature a,
285
408
  #content ul.summary li.deprecated .summary_signature a:visited { text-decoration: line-through; font-style: italic; }
286
409
 
287
410
  #toc {
288
- padding: 20px; padding-right: 30px; border: 1px solid #ddd; float: right; background: #fff; margin-left: 20px; margin-bottom: 20px;
289
- max-width: 300px;
290
- -webkit-box-shadow: -2px 2px 6px #bbb;
291
- -moz-box-shadow: -2px 2px 6px #bbb;
292
- z-index: 5000;
293
411
  position: relative;
412
+ float: right;
294
413
  overflow-x: auto;
414
+ right: -3px;
415
+ margin-left: 20px;
416
+ margin-bottom: 20px;
417
+ padding: 20px; padding-right: 30px;
418
+ max-width: 300px;
419
+ z-index: 5000;
420
+ background: #fefefe;
421
+ border: 1px solid #ddd;
422
+ box-shadow: -2px 2px 6px #bbb;
295
423
  }
296
- #toc.nofloat { float: none; max-width: none; border: none; padding: 0; margin: 20px 0; -webkit-box-shadow: none; -moz-box-shadow: none; }
297
- #toc.nofloat.hidden { padding: 0; background: 0; margin-bottom: 5px; }
298
424
  #toc .title { margin: 0; }
299
425
  #toc ol { padding-left: 1.8em; }
300
426
  #toc li { font-size: 1.1em; line-height: 1.7em; }
@@ -302,8 +428,17 @@ li.r2 { background: #fafafa; }
302
428
  #toc ol > ol { font-size: 0.9em; }
303
429
  #toc ol ol > ol { padding-left: 2.3em; }
304
430
  #toc ol + li { margin-top: 0.3em; }
305
- #toc.hidden { padding: 10px; background: #f6f6f6; -webkit-box-shadow: none; -moz-box-shadow: none; }
431
+ #toc.hidden { padding: 10px; background: #fefefe; box-shadow: none; }
432
+ #toc.hidden:hover { background: #fafafa; }
306
433
  #filecontents h1 + #toc.nofloat { margin-top: 0; }
434
+ @media (max-width: 560px) {
435
+ #toc {
436
+ margin-left: 0;
437
+ margin-top: 16px;
438
+ float: none;
439
+ max-width: none;
440
+ }
441
+ }
307
442
 
308
443
  /* syntax highlighting */
309
444
  .source_code { display: none; padding: 3px 8px; border-left: 8px solid #ddd; margin-top: 5px; }
@@ -311,13 +446,25 @@ li.r2 { background: #fafafa; }
311
446
  #filecontents pre.code, .docstring pre.code { display: block; }
312
447
  .source_code .lines { padding-right: 12px; color: #555; text-align: right; }
313
448
  #filecontents pre.code, .docstring pre.code,
314
- .tags pre.example { padding: 5px 12px; margin-top: 4px; border: 1px solid #eef; background: #f5f5ff; }
315
- pre.code { color: #000; }
449
+ .tags pre.example {
450
+ padding: 9px 14px;
451
+ margin-top: 4px;
452
+ border: 1px solid #e1e1e8;
453
+ background: #f7f7f9;
454
+ border-radius: 4px;
455
+ font-size: 1em;
456
+ overflow-x: auto;
457
+ line-height: 1.2em;
458
+ }
459
+ pre.code { color: #000; tab-size: 2; }
316
460
  pre.code .info.file { color: #555; }
317
461
  pre.code .val { color: #036A07; }
318
462
  pre.code .tstring_content,
319
463
  pre.code .heredoc_beg, pre.code .heredoc_end,
320
- pre.code .qwords_beg, pre.code .qwords_end,
464
+ pre.code .qwords_beg, pre.code .qwords_end, pre.code .qwords_sep,
465
+ pre.code .words_beg, pre.code .words_end, pre.code .words_sep,
466
+ pre.code .qsymbols_beg, pre.code .qsymbols_end, pre.code .qsymbols_sep,
467
+ pre.code .symbols_beg, pre.code .symbols_end, pre.code .symbols_sep,
321
468
  pre.code .tstring, pre.code .dstring { color: #036A07; }
322
469
  pre.code .fid, pre.code .rubyid_new, pre.code .rubyid_to_s,
323
470
  pre.code .rubyid_to_sym, pre.code .rubyid_to_f,
@@ -337,3 +484,9 @@ pre.code .rubyid_backref,
337
484
  pre.code .rubyid_nth_ref { color: #6D79DE; }
338
485
  pre.code .regexp, .dregexp { color: #036A07; }
339
486
  pre.code a { border-bottom: 1px dotted #bbf; }
487
+
488
+ /* Color fix for links */
489
+ #content .summary_desc pre.code .id > .object_link a, /* identifier */
490
+ #content .docstring pre.code .id > .object_link a { color: #0085FF; }
491
+ #content .summary_desc pre.code .const > .object_link a, /* constant */
492
+ #content .docstring pre.code .const > .object_link a { color: #585CF6; }