From b5533c6f4acca3bfff207d21d832983800a2395c Mon Sep 17 00:00:00 2001 From: Nekobit Date: Mon, 30 May 2022 01:36:06 -0400 Subject: [PATCH] Design improvements take 2 + Scroll to top (#291) * fuck u bootstrap * cleanup * Improve CSS * Vote and reply animations * Fixse * Fix bugs and add scroll to top thing * Update themes and sidebar and stuff and such * Fix mobile arrows * soy blur * Fix dramlr or dramalr or tumblr or whatever its called --- files/__main__.py | 11 +++-------- files/templates/header.html | 8 +++++--- files/templates/home.html | 8 ++++---- files/templates/submission.html | 2 +- 4 files changed, 13 insertions(+), 16 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index 3f0a61e25..da7c2681f 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -99,13 +99,8 @@ def before_request(): if not app.config['SETTINGS']['Bots'] and request.headers.get("Authorization"): abort(503) g.db = db_session() - - if '; wv) ' in ua: g.webview = True - else: g.webview = False - - if 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua or ' firefox/' in ua: g.inferior_browser = True - else: g.inferior_browser = False - + g.webview = '; wv) ' in ua + g.inferior_browser = 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua or ' firefox/' in ua @app.teardown_appcontext def teardown_request(error): @@ -125,4 +120,4 @@ if app.config["SERVER_NAME"] == 'localhost': elif "load_chat" in argv: from files.routes.chat import * else: - from files.routes import * \ No newline at end of file + from files.routes import * diff --git a/files/templates/header.html b/files/templates/header.html index 504ff89a5..48abf5007 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -1,5 +1,5 @@ -