This commit is contained in:
shizuka 2018-11-05 18:43:17 +01:00
parent be0be98c03
commit 8a3c178e80
3 changed files with 42 additions and 10 deletions

View File

@ -3,7 +3,7 @@
{{ if .IsTranslated }} {{ if .IsTranslated }}
{{ i18n "translations" }} {{ i18n "translations" }}
{{ range .Translations }} {{ range .Translations }}
<a href="{{ .RelPermalink }}">{{ .Site.Language.LanguageName }}</a> <a href="{{ .RelPermalink }}"><pre>{{ .Site.Language.LanguageName }}</pre></a>
{{ end }} {{ end }}
{{ end }} {{ end }}
@ -18,4 +18,3 @@
</div> </div>
</div> </div>
</div> </div>
</div>

View File

@ -3,30 +3,29 @@
<div class="sidebar-header"> <div class="sidebar-header">
{{ if eq .Lang "en"}} {{ if eq .Lang "en"}}
<a class="sidebar-brand" href="/en/"> <a class="sidebar-brand" href="/en/">
<img src="/page-resources/wmilogo_red.png"></img> <img src="/page-resources/wmilogo_red.png">
{{ .Site.Title }} {{ .Site.Title }}
</a> </a>
{{else}} {{else}}
<a class="sidebar-brand" href="/"> <a class="sidebar-brand" href="/">
<img src="/page-resources/wmilogo_red.png"></img> <img src="/page-resources/wmilogo_red.png">
{{ .Site.Title }} {{ .Site.Title }}
</a> </a>
{{end}} {{end}}
<form class="sidebar-header sidebar-brand" action="https://szukaj.wmi.amu.edu.pl/search/" method="GET"> <form class="sidebar-header sidebar-brand" action="https://szukaj.wmi.amu.edu.pl/search/" method="GET">
<div class="input-group"> <div class="input-group">
<input type="text" class="form-control" name="q" placeholder="Search"> <input type="text" class="form-control" name="q" placeholder="Search" />
<span class="input-group-btn"> <span class="input-group-btn">
<button type="submit" class="btn btn-default"> <button type="submit" class="btn btn-default">
<span class="glyphicon glyphicon-search"></span> <span class="glyphicon glyphicon-search"></span>
</button> </button>
</span> </span>
</form> </div>
</div> </div>
</div></br>
<div class="sidebar-menu">
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
{{ if .HasChildren }} {{ if .HasChildren }}
<li class="item {{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a> <li class="item {{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a>
@ -56,4 +55,5 @@
</li> </li>
{{ end }} {{ end }}
{{ end }} {{ end }}
</div>
</ul> </ul>

View File

@ -65,6 +65,18 @@ pre {
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.navbar pre {
font-family: "Open Sans","Helvetica","Tahoma","Geneva","Arial",sans-serif;
font-size: 2rem;
background-color: #292929;
border-color: #fff;
color: #fff;
border-width: 0rem;
margin-top: -1.5rem;
padding-top: 2rem;
}
.trans { .trans {
text-align: left; text-align: left;
float: left; float: left;
@ -131,6 +143,7 @@ pre {
position: fixed; position: fixed;
margin: 0rem 0rem; margin: 0rem 0rem;
border-bottom-width: 0rem; border-bottom-width: 0rem;
padding-top: 0.1rem;
} }
a:link { a:link {
@ -163,6 +176,9 @@ a:hover {
background-color: rgb(186, 50, 50);/*#ba3232;*/ background-color: rgb(186, 50, 50);/*#ba3232;*/
} }
.sidebar-menu {
padding-top: 1.3rem;
}
.sidebar-toggle { .sidebar-toggle {
float: left; float: left;
@ -284,7 +300,7 @@ a:hover {
.navbar { .navbar {
display: block; display: block;
background-color: #fff; background-color: #fff;
max-width: 150rem; max-width: 153.5rem;
margin: auto; margin: auto;
vertical-align: middle; vertical-align: middle;
} }
@ -300,6 +316,23 @@ a:hover {
transition: width 2s; transition: width 2s;
transition: height 2s; transition: height 2s;
} }
.navbar pre {
font-family: "Open Sans","Helvetica","Tahoma","Geneva","Arial",sans-serif;
font-size: 2rem;
line-height: 2rem;
background-color: #444;
border-color: #000;
color: #fff;
border-radius: 1rem;
margin-top: -2rem;
padding-top: 3.5rem;
padding-bottom: 1.2rem;
padding-right: 1.5rem;
padding-left: 1.5rem;
}
} }
.bs-callout { .bs-callout {