diff --git a/frontends/etiquette_flask/backend/decorators.py b/frontends/etiquette_flask/backend/decorators.py index 4257ec6..afcd497 100644 --- a/frontends/etiquette_flask/backend/decorators.py +++ b/frontends/etiquette_flask/backend/decorators.py @@ -20,7 +20,6 @@ def catch_etiquette_exception(function): status = 404 else: status = 400 - response = exc.jsonify() - response = flasktools.json_response(response, status=status) + response = flasktools.json_response(exc.jsonify(), status=status) flask.abort(response) return wrapped diff --git a/frontends/etiquette_flask/etiquette_flask_dev.py b/frontends/etiquette_flask/etiquette_flask_dev.py index 2782db4..38d6121 100644 --- a/frontends/etiquette_flask/etiquette_flask_dev.py +++ b/frontends/etiquette_flask/etiquette_flask_dev.py @@ -47,6 +47,7 @@ def etiquette_flask_launch( ) if localhost_only: + log.info('Setting localhost_only=True') site.localhost_only = True try: diff --git a/frontends/etiquette_flask/static/css/common.css b/frontends/etiquette_flask/static/css/common.css index 2441e1b..ddaed20 100644 --- a/frontends/etiquette_flask/static/css/common.css +++ b/frontends/etiquette_flask/static/css/common.css @@ -4,7 +4,8 @@ not specific to one project. */ /* -These properties are used by javascript functions. +These properties are used by javascript functions in common.js. +See common.is_narrow_mode, is_wide_mode. getComputedStyle(document.documentElement).getPropertyValue("--narrow").trim() === "1" */ @media screen and (min-width: 800px) @@ -22,11 +23,6 @@ getComputedStyle(document.documentElement).getPropertyValue("--narrow").trim() = } } -.hidden -{ - display: none !important; -} - html { height: 100vh; @@ -83,6 +79,11 @@ pre white-space: pre-line; } +.hidden +{ + display: none !important; +} + .bold { font-weight: bold; diff --git a/frontends/etiquette_flask/templates/root.html b/frontends/etiquette_flask/templates/root.html index 679c828..647959f 100644 --- a/frontends/etiquette_flask/templates/root.html +++ b/frontends/etiquette_flask/templates/root.html @@ -44,9 +44,6 @@ body > .nice_link height: 40px; background-color: var(--color_transparency); } -.nice_link -{ -} .nice_link:hover { background-color: var(--color_secondary);