From: Jan Szejko <janek37@gmail.com>
Date: Tue, 9 May 2017 13:35:29 +0000 (+0200)
Subject: wider menu in book/picture viewers
X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/e9263ed76910227deccdce1469b4edda3b833be1?ds=inline

wider menu in book/picture viewers
---

diff --git a/src/catalogue/templates/catalogue/book_text.html b/src/catalogue/templates/catalogue/book_text.html
index 5a6db1138..629cb5bce 100644
--- 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">
-      <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>
diff --git a/src/catalogue/templates/catalogue/viewer_base.html b/src/catalogue/templates/catalogue/viewer_base.html
index 3a8372a72..6e86b5f63 100644
--- 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="/">
-            <img src="{% static 'img/logo-neon.png' %}" width="80"
+            <img src="{% static 'img/logo-neon.png' %}" width="120"
                  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 75be359bf..bfa87b75a 100644
--- 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">
-      <img src="{% thumbnail picture.image_file '80x200' as thumb %}{{ thumb.url }}{% empty %}{{ picture.image_file.url }}{% endthumbnail %}"
-           width="80"
+      <img src="{% thumbnail picture.image_file '120x300' as thumb %}{{ thumb.url }}{% empty %}{{ picture.image_file.url }}{% endthumbnail %}"
+           width="120"
            alt="{{ picture.pretty_title }}"
            title="{{ picture.pretty_title }}">
     </a>
@@ -60,7 +60,7 @@
 
   <li id="sponsors">
     {% for sponsor in sponsors %}
-      {% thumbnail sponsor.logo "80x200" as logo %}
+      {% thumbnail sponsor.logo "120x300" as logo %}
         <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 4c8ab8201..154c69911 100644
--- a/src/wolnelektury/static/scss/book_text/const.scss
+++ b/src/wolnelektury/static/scss/book_text/const.scss
@@ -1,4 +1,4 @@
-$W_MENU: 80px;
+$W_MENU: 120px;
 $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 26fcfedfe..140b56a4a 100644
--- 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 {
-        left: 25px;
-        right: 25px;
+        left: 45px;
+        right: 45px;
     }
 }
 
 
 #menu {
     display: none;
-    width: 80px;
+    width: $W_MENU;
     height: 100%;
 }