Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-qtype_stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-qtype_stack
Commits
e109199e
Commit
e109199e
authored
5 years ago
by
Malthe
Browse files
Options
Downloads
Patches
Plain Diff
Add scrollability to navigation bar
parent
1cb3b340
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
overrides/main.html
+54
-5
54 additions, 5 deletions
overrides/main.html
with
54 additions
and
5 deletions
overrides/main.html
+
54
−
5
View file @
e109199e
...
...
@@ -6,14 +6,63 @@
<div
class=
"col-md-12"
role=
"main"
>
{% include "content.html" %}
</div>
{% endblock %}
{% block next_prev %}
{% endblock %}
{%block site_nav%}
<!--Actual navigation bar-->
<div
class=
"navbar fixed-top navbar-expand-lg navbar-{% if config.theme.nav_style == "
light
"
%}
light
{%
else
%}
dark
{%
endif
%}
bg-
{{
config.theme.nav_style
}}"
style=
"position:fixed;top:55px;"
>
<div
class=
"container"
>
<!-- Adds logo to navigation bar. -->
{% block site_name %}
<a
class=
"navbar-brand"
href=
"/../"
><img
style=
"vertical-align:baseline"
src=
"/img/logo_large.png"
alt=
"STACK logo"
height=
"20"
><b>
STACK
</b></a><b>
<a
class=
"navbar-brand"
>
>
</a>
</b>
<a
class=
"navbar-brand"
href=
"/"
><b>
Documentation
</b></a>
{% endblock %}
{% block next_prev %}
{%- if nav|length>1 or (page and (page.next_page or page.previous_page)) or config.repo_url %}
<!-- Expander button -->
<button
type=
"button"
class=
"navbar-toggler"
data-toggle=
"collapse"
data-target=
"#navbar-collapse"
>
<span
class=
"navbar-toggler-icon"
></span>
</button>
{%- endif %}
{%- if nav|length>1 %}
<!-- Main navigation -->
<div
class=
"navbar-collapse collapse"
>
<ul
class=
"nav navbar-nav"
>
{%- for nav_item in nav %}
{%- if nav_item.children %}
<li
class=
"dropdown{% if nav_item.active %} active{% endif %}"
>
<a
href=
"#"
class=
"nav-link dropdown-toggle"
data-toggle=
"dropdown"
>
{{ nav_item.title }}
<b
class=
"caret"
></b></a>
<ul
class=
"dropdown-menu"
>
{%- for nav_item in nav_item.children %}
{% include "nav-sub.html" %}
{%- endfor %}
</ul>
</li>
{%- else %}
<li
class=
"navitem{% if nav_item.active %} active{% endif %}"
>
<a
href=
"{{ nav_item.url|url }}"
class=
"nav-link"
>
{{ nav_item.title }}
</a>
</li>
{%- endif %}
{%- endfor %}
</ul></div>
{%- endif %}
<ul
class=
"nav navbar-nav ml-auto"
>
{%- block search_button %}
{%- if 'search' in config['plugins'] %}
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link"
data-toggle=
"modal"
data-target=
"#mkdocs_search_modal"
>
<i
class=
"fa fa-search"
></i>
Search
</a>
</li>
{%- endif %}
{%- endblock %}
</div></div>
{%endblock%}
<!-- Specifies styles for columns and rows. -->
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment