Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
86d55c1c
Commit
86d55c1c
authored
Feb 24, 2013
by
Nigel Metheringham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak maximum length of drop down menu
parent
185790e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletions
+19
-1
docsite/_static/ansible-local.css
+4
-0
docsite/_themes/bootstrap/layout.html
+15
-1
No files found.
docsite/_static/ansible-local.css
0 → 100644
View file @
86d55c1c
/* Local CSS tweaks for ansible */
.dropdown-menu
{
overflow-y
:
auto
;
}
docsite/_themes/bootstrap/layout.html
View file @
86d55c1c
{% extends "basic/layout.html" %}
{% set script_files = script_files + ['_static/bootstrap-dropdown.js', '_static/bootstrap-scrollspy.js'] %}
{% set css_files = ['_static/bootstrap.css', '_static/bootstrap-sphinx.css'] + css_files %}
{% set css_files = ['_static/bootstrap.css', '_static/bootstrap-sphinx.css'
, '_static/ansible-local.css'
] + css_files %}
{# Sidebar: Rework into our Boostrap nav section. #}
{% macro navBar() %}
...
...
@@ -98,6 +98,20 @@ s.parentNode.insertBefore(ga, s);
})();
</script>
<script
type=
"text/javascript"
>
// Set the maximum height of drop down menus to just less than the height
// of the viewport.
var
set_max_menu_height
=
function
()
{
// set menu max height to 75 less than viewport height
$
(
'.dropdown-menu'
).
css
(
'max-height'
,
$
(
window
).
height
()
-
75
);
}
// Set this when we set the page up and on each resize.
$
(
window
).
resize
(
set_max_menu_height
);
$
(
window
).
ready
(
set_max_menu_height
);
</script>
{% endblock %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment