diff --git a/start.py b/start.py index 491421e..382b2d7 100644 --- a/start.py +++ b/start.py @@ -8,7 +8,7 @@ import tfidf import readings import printer from manifestos import manifestos - +from time import sleep # Create the application. APP = flask.Flask(__name__) @@ -55,8 +55,7 @@ def index_(): else: index = readings.load_index() filenames = [manifesto for manifesto, _ in index.items()] - mappings_top = open('tfidf.top50.txt', 'r').readlines() - return flask.render_template('index.html', filenames=filenames, mappings=mappings_top) + return flask.render_template('index.html', filenames=filenames) @APP.route('/cross-readings', methods=['GET', 'POST']) def crossreadings(): diff --git a/static/css/stylesheet.css b/static/css/stylesheet.css index 9d7e0ad..08d1078 100644 --- a/static/css/stylesheet.css +++ b/static/css/stylesheet.css @@ -42,6 +42,7 @@ body{ overflow-x: hidden; z-index: -1; } + body.black, body.black a{ background-color: rgb(5,5,5); @@ -54,6 +55,10 @@ body.black #txt-list{ display: none; } +body.searching{ + opacity: 0.5; +} + h1, h2, h3{ font-size: 16px; font-weight: normal; @@ -77,6 +82,7 @@ sup, small{ } p{ margin:0; + word-wrap: break-word; } code{ font-family: 'mono'; @@ -138,7 +144,7 @@ a.contrast{ #wrapper{ position: absolute; z-index: -1; - width: calc(100% - 400px); + width: calc(100% - 320px); min-width: 600px; margin:0 0 20px 0; font-family: mono, sans-serif; @@ -165,16 +171,36 @@ a.contrast{ color: white; } +/* NAVIGATION BAR (black at the bottom) */ #nav{ - position: absolute; - top:0; - right:0; + position: fixed; + bottom: 0; + right: 0; + font-size: 13px; + background-color: black; + width: calc(100% - 132px); + padding: 10px 66px 35px; + text-align: right; + z-index: 10; +} +#nav a{ + color: white; } #nav .page-button{ display: inline-block; padding-right: 5px; } +#wrapper, +#txt-list{ + padding-bottom: 70px; /* To appear above the black nav bar */ +} +body.black #nav{ + z-index: -1; +} + + +/* HEADER TITLE + SEARCH TOOLS */ #logo a, #search { position: relative; @@ -266,6 +292,7 @@ strong, strong.query, strong.word, .result{ margin-bottom: 0.5em; } +/* Colophon & Cross-Reader pages (black pages) */ .cross{ clear: both; } diff --git a/templates/base.html b/templates/base.html index 999008b..36d0633 100644 --- a/templates/base.html +++ b/templates/base.html @@ -20,18 +20,18 @@ {% endfor %}