Add version switcher, global configuration and fix some styling issues

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-10-06 13:53:58 +02:00
committed by John Molakvoæ (skjnldsv)
parent c2862bda44
commit 0ae4501e0b
8 changed files with 85 additions and 39 deletions

View File

@@ -144,10 +144,16 @@
<div class="content row">
<main class="main">
<div class="row page-content-header">
<div class="col-md-6">
<div class="col-md-8">
<h1><a href="{{ pathto(master_doc) }}">{{ project|e }}</a></h1>
<div class="doc-version-switch">
Nextcloud versions:
{%- for v in doc_versions %}
<a href="https://docs.nextcloud.com/server/{{ v }}/{{current_doc}}/{{pagename}}.html" {% if version == v %} class="current-doc"{% endif %}>{{v}}</a>
{%- endfor %}
</div>
</div>
<div class="col-md-5 col-md-offset-1">
<div class="col-md-4">
{% if theme_show_search %}
<form class="headersearch" style="margin: 16px 0;" action="{{ pathto('search') }}" method="get">
<input type="text" value="" name="q" id="q" class="form-control" />

View File

@@ -6,7 +6,7 @@
<li class="prev">
<a href="{{ prev.link|e }}" title="{{ _('Previous Chapter: ') + prev.title|striptags }}">
{%- if theme_bootstrap_version == "3" -%}<span class="glyphicon glyphicon-chevron-left visible-sm"></span>{%- endif -%}
<span class="hidden-sm">{{ "&laquo;"|safe }} {{ prev.title|striptags|truncate(length=16, killwords=True) }}</span>
<span class="hidden-sm">{{ "&laquo;"|safe }} {{ prev.title|striptags }}</span>
</a>
</li>
{%- endif %}
@@ -14,7 +14,7 @@
<li class="next">
<a href="{{ next.link|e }}" title="{{ _('Next Chapter: ') + next.title|striptags }}">
{%- if theme_bootstrap_version == "3" -%}<span class="glyphicon glyphicon-chevron-right visible-sm"></span>{%- endif -%}
<span class="hidden-sm">{{ next.title|striptags|truncate(length=16, killwords=True) }} {{ "&raquo;"|safe }}</span>
<span class="hidden-sm">{{ next.title|striptags }} {{ "&raquo;"|safe }}</span>
</a>
</li>
{%- endif %}

View File

@@ -975,7 +975,7 @@ img.desaturate {
background-size: cover;
-o-background-size: cover;
/* border: 0px; */
/* min-height: 450px; background-position: 35% 40%; */
/* min-height: 450px; background-position: 35% 40%; */
position: relative;
margin-left: 0px !important;
margin-right: 0px !important;
@@ -1020,7 +1020,7 @@ img.desaturate {
@media (max-width: 767px) {
.ft-everywhere-img {
/* height: auto; */
/* height: auto; */
width: 20%;
right: 5%;
}
@@ -1060,9 +1060,9 @@ img.desaturate {
top: 30%;
left: 45%;
margin-top: 10px;
/* width: 0px; */
/* height: 0px; */
/* padding: 50%; */
/* width: 0px; */
/* height: 0px; */
/* padding: 50%; */
}
.youtube i {
@@ -1109,7 +1109,6 @@ a.headerlink {
}
#menu-support > ul > .current {
border: 1px solid #999 !important;
border-right: 0 !important;
border-bottom-left-radius: 5px;
border-top-left-radius: 5px;
@@ -1129,11 +1128,6 @@ a.headerlink {
#menu-support.menu ul ul ul {
list-style-type: square;
}
/* having a separator between each elements of the top list and
between above the top of the third level list */
#menu-support.menu ul ul ul {
border-top: 1px solid #EFEFEF;
}
.terminal-image {
box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.3);
@@ -1203,3 +1197,15 @@ li > dl > dt {
background: #ddd;
border-radius: 50%;
}
/* Version switcher */
.doc-version-switch a {
padding: 3px;
margin-left:10px;
display: inline-block;
}
.doc-version-switch .current-doc {
font-weight: 900;
}