Merge branch 'main' into redirect-after-shelving-book
This commit is contained in:
commit
336c92d96e
12 changed files with 73 additions and 17 deletions
|
@ -1,3 +1,53 @@
|
|||
.summary-on-open {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
.navbar-menu {
|
||||
text-align: right;
|
||||
padding-right: 1rem;
|
||||
|
||||
.tags {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
#navbar-dropdown {
|
||||
&[open] {
|
||||
.summary-on-open {
|
||||
display: initial;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 3rem;
|
||||
z-index: 31;
|
||||
background-color: $dropdown-content-background-color;
|
||||
padding: 1rem 1.75rem;
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown-menu {
|
||||
padding-top: 0;
|
||||
top: 3rem;
|
||||
}
|
||||
|
||||
.dropdown-content {
|
||||
padding-top: 0;
|
||||
box-shadow: none;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
|
||||
.navbar-item {
|
||||
// see ../components/_details.scss :: Navbar details
|
||||
padding-right: 1.75rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.image {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
|
|
@ -10,8 +10,9 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block about_content %}
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
{# seven day cache #}
|
||||
{% cache 604800 about_page_superlatives %}
|
||||
{% cache 604800 about_page_superlatives LANGUAGE_CODE %}
|
||||
|
||||
{% get_book_superlatives as superlatives %}
|
||||
<section class=" pb-4">
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
</div>
|
||||
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
{% cache 60 * 60 LANGUAGE_CODE %}
|
||||
{# 1 hour cache #}
|
||||
{% cache 3600 landing LANGUAGE_CODE %}
|
||||
{% get_landing_books as books %}
|
||||
<section class="tile is-ancestor">
|
||||
<div class="tile is-vertical is-6">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{% spaceless %}
|
||||
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
{# 6 month cache #}
|
||||
{# 10 second cache #}
|
||||
{% cache 10 titleby LANGUAGE_CODE book.id %}
|
||||
|
||||
{% if book.authors.exists %}
|
||||
|
|
|
@ -13,6 +13,10 @@
|
|||
<span class="ml-2">{{ request.user.display_name }}</span>
|
||||
</span>
|
||||
<span class="icon icon-arrow-down is-hidden-mobile" aria-hidden="true"></span>
|
||||
<span class="summary-on-open">
|
||||
<span class="icon icon-arrow-left is-small" aria-hidden="true"></span>
|
||||
{% trans "Back" %}
|
||||
</span>
|
||||
</summary>
|
||||
|
||||
<div class="dropdown-menu">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue