diff --git a/frontend/templates/base.html b/frontend/templates/base.html index 8eddfbfb..88ccdc23 100644 --- a/frontend/templates/base.html +++ b/frontend/templates/base.html @@ -13,6 +13,9 @@ + + + @@ -46,26 +49,18 @@ -
-
-
- - {% block search_box %} - {% if not suppress_search_box %} - - {% endif %} - {% endblock %} +
+ {% block news %} {% endblock %} - {% block topsection %}{% endblock %} - {% block content %}{% endblock %} -
+{% block topsection %}{% endblock %} +{% block content %}{% endblock %} + {% block footer %} {% endblock %} +
+ {% block counter %} {% if show_google_analytics %} {% endif %} {% endblock %} - - diff --git a/static/scss/bookview.scss b/static/scss/bookview.scss index 5641040e..83daf19d 100644 --- a/static/scss/bookview.scss +++ b/static/scss/bookview.scss @@ -61,7 +61,6 @@ ". bookComments ."; margin-left: auto; margin-right: auto; - max-width: 1000px; } .bookDescription { diff --git a/static/scss/header.scss b/static/scss/header.scss new file mode 100644 index 00000000..56524c24 --- /dev/null +++ b/static/scss/header.scss @@ -0,0 +1,75 @@ +#page-wrapper { + display: flex; + flex-direction: column; + width:100%; +} + +#header { + width:100%; + display: flex; + align-items: flex-start; + padding: 10px; +} + +#header-logo { + align-self: flex-start +} + +#header-search-bar { + margin-top:auto; + margin-bottom:auto; + padding-left: 10px; + flex: 1 1 auto; + +} + +#header-search-bar form { + width:100%; + max-width: 800px; + margin-right:auto; + margin-left:auto; + display: flex; + align-items: flex-start; +} + +#header-search-bar form i { + align-self: flex-start; + font-size: 1.5em; + margin-top:auto; + margin-bottom:auto; +} + +#header-search-bar form input { + align-self: flex-start; + margin-top:auto; + margin-bottom:auto; +} + +#header-login { + flex: 0 0 auto; + margin-top:auto; + margin-bottom:auto; +} + +#header-menu { + flex: 0 0 auto; + margin-top:auto; + margin-bottom:auto; +} + +#header-menu i { + font-size: 3em; + margin-top:auto; + margin-bottom:auto; +} + + + +.wrapper { + max-width: 1000px; + padding-top: 24px; +} + +#footer { + width:100%; +}