summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2013-07-20 00:55:37 +0200
committerDerek Jones <derek.jones@ellislab.com>2013-07-20 00:55:37 +0200
commit8e64fd316b04686273055de286b698061b17e905 (patch)
tree35b64950244b14113261b279e897c3e1117b0f69
parent1132b9c41f57f01eb624d4b04684ba077971371e (diff)
Adding CSS needed for function/method differences
-rw-r--r--user_guide_src/source/_themes/eldocs/static/asset/css/common.css24
-rw-r--r--user_guide_src/source/_themes/eldocs/static/asset/js/method-toc.js4
2 files changed, 19 insertions, 9 deletions
diff --git a/user_guide_src/source/_themes/eldocs/static/asset/css/common.css b/user_guide_src/source/_themes/eldocs/static/asset/css/common.css
index d1e9fe2d9..d5b0e21bc 100644
--- a/user_guide_src/source/_themes/eldocs/static/asset/css/common.css
+++ b/user_guide_src/source/_themes/eldocs/static/asset/css/common.css
@@ -112,20 +112,30 @@ table{
.class .property{ color: #094776; }
.method big,
- .method .optional{ color: #094776; padding: 0 4px 0 6px; }
+ .method .optional
+ .function big,
+ .function .optional{ color: #094776; padding: 0 4px 0 6px; }
.class em,
- .method em{ color: #008080; }
+ .method em,
+ .function em{ color: #008080; }
- .method dt{ margin: 20px 0; }
+ .method dt,
+ .function dt{ margin: 20px 0; }
- .method table{ margin-bottom: 0; margin-left: 20px; }
+ .method table,
+ .function table{ margin-bottom: 0; margin-left: 20px; }
.method th,
- .method td{ padding: 10px; }
+ .method td,
+ .function th,
+ .function td{ padding: 10px; }
- .method td > ul{ margin: 0; margin-left: 20px; }
- .method td.field-body > p { margin: 0; margin-left: 20px; }
+ .method td > ul,
+ .function td > ul{ margin: 0; margin-left: 20px; }
+
+ .method td.field-body > p,
+ .function td.field-body > p { margin: 0; margin-left: 20px; }
a:link,
a:visited{ color: #1A5B8D; }
diff --git a/user_guide_src/source/_themes/eldocs/static/asset/js/method-toc.js b/user_guide_src/source/_themes/eldocs/static/asset/js/method-toc.js
index 5d5a19509..b6ac96469 100644
--- a/user_guide_src/source/_themes/eldocs/static/asset/js/method-toc.js
+++ b/user_guide_src/source/_themes/eldocs/static/asset/js/method-toc.js
@@ -16,7 +16,7 @@ $(function (){
var l = $(e).children('.headerlink');
var a = $('<a>');
- a.attr('href',l.attr('href')).attr('title', 'Link to this definition');
+ a.attr('href',l.attr('href')).attr('title', 'jump to ' + n = '()');
a.append(p).append(n);
@@ -34,7 +34,7 @@ $(function (){
customIndex.empty();
customIndex.append(ul0);
- var l = createList('dl.method > dt');
+ var l = createList('dl.method > dt, dl.function > dt');
if (l) {
var ul = c.clone()
.append('<h3>Methods / Functions</h3>')