{% block menu %}
<li><a href="{{ book.get_absolute_url }}" id="menu-book" data-box="book-short">
- <img src="{% thumbnail book.cover '80x111' as thumb %}{{ thumb.url }}{% empty %}{{ book.cover.url }}{% endthumbnail %}"
+ <img src="{% thumbnail book.cover_thumb '80x111' as thumb %}{{ thumb.url }}{% empty %}{{ book.cover_thumb.url }}{% endthumbnail %}"
width="80" height="111"
alt="{{ book.pretty_title }}"
title="{{ book.pretty_title }}">
{% load i18n %}
{% if books %}
-<div class="simple-toggler-scope">
-<p class="mono">
- <a href="#" class="simple-toggler">{% trans "Literature" %} ↓</a>
+<p>
+ <a href="#">{% trans "Literature" %}:</a>
</p>
-<div class="simple-hidden-box simple-hidden-initially">{{books|safe}}</div>
-</div>
+<div>{{books|safe}}</div>
{% endif %}
{% if pictures %}
-<div class="simple-toggler-scope">
-<p class="mono">
- <a href="#" class="simple-toggler">{% trans "Gallery" %} ↓</a>
+<p>
+ <a href="#">{% trans "Gallery" %}:</a>
</p>
-<div class="simple-hidden-box simple-hidden-initially">{{pictures|safe}}</div>
-</div>
+<div>{{pictures|safe}}</div>
{% endif %}
dataType: "json",
}).done(function(data) {
$.each(data, function(index, value) {
- $('#menu-' + index).html(value);
+ var $menuitem = $('#menu-' + index);
+ $menuitem.html(value);
+ var $minisearch = $("<input class='mini-search' style='margin-bottom: 1em' />");
+ $minisearch.keyup(function() {
+ var s = $(this).val().toLowerCase();
+ if (s) {
+ $("li", $menuitem).each(function() {
+ if ($("a", this).text().toLowerCase().indexOf(s) != -1)
+ $(this).show();
+ else $(this).hide();
+ });
+ }
+ else {
+ $("li", $menuitem).css("display", "");
+ }
+ });
+ $menuitem.prepend($minisearch);
});
menu_loaded = true;
});
if (p == $current)
return;
if (p.hasClass('hidden-box-trigger')
- || p.hasClass('simple-toggler'))
+ || p.hasClass('simple-toggler')
+ || p.hasClass('mini-search'))
return;
p = p.parent();
}
* Everything besides the menu.
*/
#big-pane {
- display: flex;
- flex-direction: row;
justify-content: left;
position: relative;
@include min-screen($W_BOOK_TEXT_MAX) {
}
.with-other-text {
+ #big-pane {
+ display: flex;
+ flex-direction: row;
+ }
#main-text, #other-text {
@include right-without-themes;
background-color: $header_bg;
color: #bbb;
+ text-align:center;
+
@media screen and (min-width: 62.5em) {
position: relative;
@include size(height, 94px);
#logo {
display: block;
@include size(height, 94px);
- @include size(width, 94px);
@media screen and (min-width: 24em) {
+ @include size(width, 173px);
float: left;
}
-
- img {
- display: block;
- }
}
#tagline {