From 4da3f38cf410d4911e72b86684a0cb4b17e1a22f Mon Sep 17 00:00:00 2001 From: luxick Date: Sat, 16 Feb 2019 11:57:15 +0100 Subject: [PATCH] Unify look of editor buttons. --- app.py | 4 ++-- static/custom.css | 4 ++++ templates/{drinks.html => drink_list.html} | 2 +- templates/{players.html => player_list.html} | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) rename templates/{drinks.html => drink_list.html} (95%) rename templates/{players.html => player_list.html} (95%) diff --git a/app.py b/app.py index 006a6a8..0053970 100644 --- a/app.py +++ b/app.py @@ -265,7 +265,7 @@ def player_list(): ("hex_id", "Hex ID"), ], } - return render_template("players.html", model=model) + return render_template("player_list.html", model=model) @app.route("/drinks") @@ -278,7 +278,7 @@ def drink_list(): "columns": [("id", "ID"), ("name", "Drink Name"), ("vol", "Alcohol %")], "controls": [("edit", "Edit")], } - return render_template("drinks.html", model=model) + return render_template("drink_list.html", model=model) @app.route("/drinks//edit", methods=["GET"]) diff --git a/static/custom.css b/static/custom.css index 7fdf27c..4168bb2 100644 --- a/static/custom.css +++ b/static/custom.css @@ -51,6 +51,10 @@ a:hover { font-family: 'DarkSouls', serif; } +.btn-toolbar{ + padding: 5px 0; +} + .vertical-center { min-height: 100%; /* Fallback for browsers do NOT support vh unit */ min-height: 100vh; /* These two lines are counted as one :-) */ diff --git a/templates/drinks.html b/templates/drink_list.html similarity index 95% rename from templates/drinks.html rename to templates/drink_list.html index 1319efc..4cdf318 100644 --- a/templates/drinks.html +++ b/templates/drink_list.html @@ -5,7 +5,7 @@ {% block page %} {% if g.is_editor %} {% endif %} {% if not model.drinks %} diff --git a/templates/players.html b/templates/player_list.html similarity index 95% rename from templates/players.html rename to templates/player_list.html index 2bd3124..e70fbed 100644 --- a/templates/players.html +++ b/templates/player_list.html @@ -5,7 +5,7 @@ {% block page %} {% if g.is_editor %} {% endif %} {% if not model.player_list %}