From d9abecb6688d49b08b9d01b4e22af83acb61ca5e Mon Sep 17 00:00:00 2001 From: jordan <jordanishanda@yahoo.com> Date: Mon, 23 Dec 2019 01:44:08 +0700 Subject: [PATCH] Refactor styling --- functional_test/test_layout_and_styling.py | 4 ++-- lists/templates/base.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/functional_test/test_layout_and_styling.py b/functional_test/test_layout_and_styling.py index 97664ba2..115494a8 100644 --- a/functional_test/test_layout_and_styling.py +++ b/functional_test/test_layout_and_styling.py @@ -10,14 +10,14 @@ class LayoutAndStylingTest(FunctionalTest): # She notices the input box is nicely centered inputbox = self.browser.find_element_by_id("id_new_item") self.assertAlmostEqual( - inputbox.location["x"] + inputbox.size["width"] / 2, 754.0, delta=5 + inputbox.location["x"] + inputbox.size["width"] / 2, 512.5, delta=5 ) # She starts a new list and sees the input is nicely # centered there too inputbox.send_keys("testing\n") inputbox = self.browser.find_element_by_id("id_new_item") self.assertAlmostEqual( - inputbox.location["x"] + inputbox.size["width"] / 2, 754.0, delta=5 + inputbox.location["x"] + inputbox.size["width"] / 2, 512.5, delta=5 ) diff --git a/lists/templates/base.html b/lists/templates/base.html index a388aabe..a256fa92 100644 --- a/lists/templates/base.html +++ b/lists/templates/base.html @@ -42,7 +42,7 @@ <div class="row"> - <div class="col-md-12 col-md-offset-3"> + <div class="col-md-6 col-md-offset-3 jumbotron"> <div class="text-center"> <h1>{% block header_text %}{% endblock %}</h1> <form method="POST" action="{% block form_action %}{% endblock %}"> -- GitLab