From edaf205af3429abcc62e1e6708f6f8a0eed252ea Mon Sep 17 00:00:00 2001 From: Kostiantyn Stoliarskyi Date: Wed, 10 May 2023 15:38:29 +0300 Subject: [PATCH] fix many styles --- app/controllers/breadcrumbs.py | 2 +- app/static/css/styles.css | 4 +++ app/templates/book/all.html | 4 +-- app/templates/book/index.html | 27 +++++---------- app/templates/book/right_sidebar.html | 2 +- app/templates/header.html | 4 +-- app/templates/home/index.html | 6 +--- app/templates/sidebar.html | 2 +- app/views/book.py | 48 +++++++++++++-------------- 9 files changed, 43 insertions(+), 56 deletions(-) diff --git a/app/controllers/breadcrumbs.py b/app/controllers/breadcrumbs.py index 3a99392..f225f64 100644 --- a/app/controllers/breadcrumbs.py +++ b/app/controllers/breadcrumbs.py @@ -30,7 +30,7 @@ def create_breadcrumbs( crumples += [ s.BreadCrumb( type=s.BreadCrumbType.MyBookList, - url=url_for("book.my_books"), + url=url_for("book.my_library"), label="My Books", ) ] diff --git a/app/static/css/styles.css b/app/static/css/styles.css index 2ecb595..5fc7c14 100644 --- a/app/static/css/styles.css +++ b/app/static/css/styles.css @@ -1125,6 +1125,10 @@ input:checked + .toggle-bg { top: 11rem; } +.top-20 { + top: 5rem; +} + .-z-10 { z-index: -10; } diff --git a/app/templates/book/all.html b/app/templates/book/all.html index 29d3d7c..443cb70 100644 --- a/app/templates/book/all.html +++ b/app/templates/book/all.html @@ -12,8 +12,7 @@ {% for book in books %}
- -
{{book.owner.username}}/{{book.label}}
+
{{book.owner.username}}/{{book.label}}
{% if book.versions %}

Last updated on {{book.versions[-1].updated_at.strftime('%B %d, %Y')}}

@@ -34,7 +33,6 @@
-
{% endfor %} diff --git a/app/templates/book/index.html b/app/templates/book/index.html index 2b33315..1d849b2 100644 --- a/app/templates/book/index.html +++ b/app/templates/book/index.html @@ -1,23 +1,13 @@ {% extends 'base.html' %} +{% set selected_tab='my_library' %} {% block content %}
- -
- - {% if all_books %} -

Books

- {% else %} -

My books

- {% endif %} -
- {% for book in books %}
- -
{{book.owner.username}}/{{book.label}}
+
{{book.owner.username}}/{{book.label}}
{% if book.versions %}

@@ -39,7 +29,6 @@

- {% endfor %} @@ -49,14 +38,14 @@