From c4cc66c9401cd220c49db0adaa874cc505fb0328 Mon Sep 17 00:00:00 2001 From: Cristina Cochior Date: Tue, 26 Nov 2019 13:22:14 +0100 Subject: [PATCH] work on the layout template --- static/css/main.css | 39 ++++++++++++++++++++++++++++++++------- templates/layout.html | 12 ++++++++---- 2 files changed, 40 insertions(+), 11 deletions(-) diff --git a/static/css/main.css b/static/css/main.css index ba3771d..a4754d2 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -10,7 +10,7 @@ body{ .main-column-left { - padding: 5em; + padding: 2em 1em; float: left; width: 50%; background: red; @@ -19,6 +19,7 @@ body{ } .main-column-right { + padding: 2em 1em; float: right; width: 50%; background: purple; @@ -32,31 +33,55 @@ body{ clear: both; } -ul { +div.nav-bottom ul, div.nav-top ul { list-style-type: none; + margin: 0; + padding: 0; +} + +li a.nav-button { + display: block; text-decoration: none; + padding: 0.25em; + font-family: sans-serif; + float: left; + width: 33.33%; } .nav-top { height: 1.5em; background: white; width: 100%; - display: inline-block; position: fixed; - border: 0.1em black solid; } .nav-bottom{ height: 1.5em; background: white; width: 100%; - display: inline-block; bottom: 0; position: fixed; - border: 0.1em black solid; z-index: 10000; } -.nav-buttons { +a.librarian-names, a.file-names { + text-decoration: none; + padding: 0.3em; + color: black; +} + +a.librarian-names:hover, a.file-names:hover { + color: white; +} + + +.file-names-container { + /* IE 9 */ + -ms-transform: rotate(-90deg) translate(-78%, 0%); + /* Safari */ + -webkit-transform: rotate(-90deg) translate(-78%, 0%); + /* Standard syntax */ + transform: rotate(-90deg) translate(-80%, 0%); + transform-origin: top left; } diff --git a/templates/layout.html b/templates/layout.html index 2a3cc66..9d3cd00 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -19,17 +19,21 @@
{% for librarian in librarians %} - {{ librarian }}
+ {{ librarian }} {% endfor %} +
+
{% for file in filetoname_dict %} - {{file["debris"]}}
+ {{file["debris"]}}
{% endfor %} +
+
-

aizjdsoiajdijazoidjiazjdijzad + aizjdsoiajdijazoidjiazjdijzad juzahdizahidhazihdzahdio - aoizjdiajdiajidzjaizj

+ aoizjdiajdiajidzjaizj {% block content %} {% endblock content %}