Fixed rendering of userguide; api category menu and input box
This commit is contained in:
parent
53873600c1
commit
0a7e8b349d
@ -42,7 +42,7 @@ legend { font-weight: bold; font-size:1.2em; }
|
|||||||
label { font-weight: bold; }
|
label { font-weight: bold; }
|
||||||
textarea, input[type='text'], input[type='password'], select { border: 1px solid #ccc; background: #fff; }
|
textarea, input[type='text'], input[type='password'], select { border: 1px solid #ccc; background: #fff; }
|
||||||
textarea:hover, input[type='text']:hover, input[type='password']:hover, select:hover { border-color: #aaa; }
|
textarea:hover, input[type='text']:hover, input[type='password']:hover, select:hover { border-color: #aaa; }
|
||||||
textarea:focus, input[type='text']:focus, input[type='password']:focus, select:focus { border-color: #888; outline: 2px solid #ffffaa; }
|
textarea:focus, input[type='text']:focus, input[type='password']:focus, select:focus { border-color: #888; outline: 2px solid #888; }
|
||||||
input, select { cursor: pointer; }
|
input, select { cursor: pointer; }
|
||||||
input[type='text'],input[type='password'] { cursor: text; }
|
input[type='text'],input[type='password'] { cursor: text; }
|
||||||
|
|
||||||
|
@ -32,6 +32,41 @@ $(document).ready(function()
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Collapsing menus
|
||||||
|
$('#kodoc-topics li:has(li)').each(function()
|
||||||
|
{
|
||||||
|
var $this = $(this);
|
||||||
|
var toggle = $('<span class="toggle"></span>');
|
||||||
|
var menu = $this.find('>ul,>ol');
|
||||||
|
|
||||||
|
toggle.click(function()
|
||||||
|
{
|
||||||
|
if (menu.is(':visible'))
|
||||||
|
{
|
||||||
|
menu.stop(true, true).slideUp('fast');
|
||||||
|
toggle.html('+');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
menu.stop(true, true).slideDown('fast');
|
||||||
|
toggle.html('–');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$this.find('>span').click(function()
|
||||||
|
{
|
||||||
|
// Menu without a link
|
||||||
|
toggle.click();
|
||||||
|
});
|
||||||
|
|
||||||
|
if ( ! $this.is(':has(a.current)'))
|
||||||
|
{
|
||||||
|
menu.hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
toggle.html(menu.is(':visible') ? '–' : '+').prependTo($this);
|
||||||
|
});
|
||||||
|
|
||||||
// Show source links
|
// Show source links
|
||||||
|
|
||||||
$('#kodoc-main .method-source').each(function()
|
$('#kodoc-main .method-source').each(function()
|
||||||
|
Reference in New Issue
Block a user