fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ba37818
)
wider menu in book/picture viewers
author
Jan Szejko
<janek37@gmail.com>
Tue, 9 May 2017 13:35:29 +0000
(15:35 +0200)
committer
Jan Szejko
<janek37@gmail.com>
Tue, 9 May 2017 13:35:29 +0000
(15:35 +0200)
src/catalogue/templates/catalogue/book_text.html
patch
|
blob
|
history
src/catalogue/templates/catalogue/viewer_base.html
patch
|
blob
|
history
src/picture/templates/picture/picture_viewer.html
patch
|
blob
|
history
src/wolnelektury/static/scss/book_text/const.scss
patch
|
blob
|
history
src/wolnelektury/static/scss/book_text/menu.scss
patch
|
blob
|
history
diff --git
a/src/catalogue/templates/catalogue/book_text.html
b/src/catalogue/templates/catalogue/book_text.html
index
5a6db11
..
629cb5b
100644
(file)
--- a/
src/catalogue/templates/catalogue/book_text.html
+++ b/
src/catalogue/templates/catalogue/book_text.html
@@
-11,8
+11,8
@@
{% block menu %}
<li>
<a href="{{ book.get_absolute_url }}" id="menu-book" data-box="book-short">
{% block menu %}
<li>
<a href="{{ book.get_absolute_url }}" id="menu-book" data-box="book-short">
- <img src="{% if book.cover_thumb %}{% thumbnail book.cover_thumb '
80x111
' as thumb %}{{ thumb.url }}{% empty %}{{ book.cover_thumb.url }}{% endthumbnail %}{% endif %}"
- width="
80" height="111
"
+ <img src="{% if book.cover_thumb %}{% thumbnail book.cover_thumb '
240x332
' as thumb %}{{ thumb.url }}{% empty %}{{ book.cover_thumb.url }}{% endthumbnail %}{% endif %}"
+ width="
120" height="166
"
alt="{{ book.pretty_title }}"
title="{{ book.pretty_title }}">
</a>
alt="{{ book.pretty_title }}"
title="{{ book.pretty_title }}">
</a>
diff --git
a/src/catalogue/templates/catalogue/viewer_base.html
b/src/catalogue/templates/catalogue/viewer_base.html
index
3a8372a
..
6e86b5f
100644
(file)
--- a/
src/catalogue/templates/catalogue/viewer_base.html
+++ b/
src/catalogue/templates/catalogue/viewer_base.html
@@
-23,7
+23,7
@@
<li><a href="#" id="menu-toggle-off"></a></li>
<li>
<a href="/">
<li><a href="#" id="menu-toggle-off"></a></li>
<li>
<a href="/">
- <img src="{% static 'img/logo-neon.png' %}" width="
8
0"
+ <img src="{% static 'img/logo-neon.png' %}" width="
12
0"
alt="Wolne Lektury"
title="Wolne Lektury">
</a>
alt="Wolne Lektury"
title="Wolne Lektury">
</a>
diff --git
a/src/picture/templates/picture/picture_viewer.html
b/src/picture/templates/picture/picture_viewer.html
index
75be359
..
bfa87b7
100644
(file)
--- a/
src/picture/templates/picture/picture_viewer.html
+++ b/
src/picture/templates/picture/picture_viewer.html
@@
-42,8
+42,8
@@
<li>
<a href="{{ picture.get_absolute_url }}" id="menu-book" data-box="book-short">
<li>
<a href="{{ picture.get_absolute_url }}" id="menu-book" data-box="book-short">
- <img src="{% thumbnail picture.image_file '
80x2
00' as thumb %}{{ thumb.url }}{% empty %}{{ picture.image_file.url }}{% endthumbnail %}"
- width="
8
0"
+ <img src="{% thumbnail picture.image_file '
120x3
00' as thumb %}{{ thumb.url }}{% empty %}{{ picture.image_file.url }}{% endthumbnail %}"
+ width="
12
0"
alt="{{ picture.pretty_title }}"
title="{{ picture.pretty_title }}">
</a>
alt="{{ picture.pretty_title }}"
title="{{ picture.pretty_title }}">
</a>
@@
-60,7
+60,7
@@
<li id="sponsors">
{% for sponsor in sponsors %}
<li id="sponsors">
{% for sponsor in sponsors %}
- {% thumbnail sponsor.logo "
80x2
00" as logo %}
+ {% thumbnail sponsor.logo "
120x3
00" as logo %}
<a href="{{ sponsor.url }}" target="_blank"><img src="{{ logo.url }}" alt="{{ sponsor.name }}" /></a>
{% endthumbnail %}
{% endfor %}
<a href="{{ sponsor.url }}" target="_blank"><img src="{{ logo.url }}" alt="{{ sponsor.name }}" /></a>
{% endthumbnail %}
{% endfor %}
diff --git
a/src/wolnelektury/static/scss/book_text/const.scss
b/src/wolnelektury/static/scss/book_text/const.scss
index
4c8ab82
..
154c699
100644
(file)
--- a/
src/wolnelektury/static/scss/book_text/const.scss
+++ b/
src/wolnelektury/static/scss/book_text/const.scss
@@
-1,4
+1,4
@@
-$W_MENU:
8
0px;
+$W_MENU:
12
0px;
$S_MENU: 600px;
$W_BOOK_TEXT_MIN: 160px;
$S_MENU: 600px;
$W_BOOK_TEXT_MIN: 160px;
diff --git
a/src/wolnelektury/static/scss/book_text/menu.scss
b/src/wolnelektury/static/scss/book_text/menu.scss
index
26fcfed
..
140b56a
100644
(file)
--- a/
src/wolnelektury/static/scss/book_text/menu.scss
+++ b/
src/wolnelektury/static/scss/book_text/menu.scss
@@
-48,15
+48,15
@@
@extend %menu-toggle;
height: 24px;
&:before {
@extend %menu-toggle;
height: 24px;
&:before {
- left:
2
5px;
- right:
2
5px;
+ left:
4
5px;
+ right:
4
5px;
}
}
#menu {
display: none;
}
}
#menu {
display: none;
- width:
80px
;
+ width:
$W_MENU
;
height: 100%;
}
height: 100%;
}