From 8e64fd316b04686273055de286b698061b17e905 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Fri, 19 Jul 2013 15:55:37 -0700 Subject: Adding CSS needed for function/method differences --- .../_themes/eldocs/static/asset/css/common.css | 24 +++++++++++++++------- .../_themes/eldocs/static/asset/js/method-toc.js | 4 ++-- 2 files changed, 19 insertions(+), 9 deletions(-) (limited to 'user_guide_src/source/_themes/eldocs') 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.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('

Methods / Functions

') -- cgit v1.2.3-24-g4f1b