From 0c3193187667dc97daad3e2bd4eb83304a3bff74 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Wed, 22 Jun 2016 13:28:32 +0100 Subject: [PATCH] Fix background colours on big numbers without links --- app/assets/stylesheets/components/big-number.scss | 13 ++++++++++++- app/templates/views/platform-admin.html | 4 ++-- tests/app/main/views/test_platform_admin.py | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/components/big-number.scss b/app/assets/stylesheets/components/big-number.scss index 3e785dcb6..7f2eef4f8 100644 --- a/app/assets/stylesheets/components/big-number.scss +++ b/app/assets/stylesheets/components/big-number.scss @@ -45,7 +45,8 @@ .big-number { padding: $gutter-half; position: relative; - cursor: pointer; + background: $black; + color: $white; } .big-number-label { @@ -69,7 +70,13 @@ margin-bottom: 5px; &:hover { + color: $light-blue-25; + + .big-number { + color: $light-blue-25; + } + } &:active, @@ -77,6 +84,10 @@ outline: 3px solid $yellow; } + .big-number { + background: transparent; + } + .big-number-label { text-decoration: underline; } diff --git a/app/templates/views/platform-admin.html b/app/templates/views/platform-admin.html index 6eaf23457..a7e8d63e4 100644 --- a/app/templates/views/platform-admin.html +++ b/app/templates/views/platform-admin.html @@ -22,8 +22,8 @@ ]) }} -

Today's statistics

-
+

Today

+
{{ big_number_with_status( global_stats.emails_delivered, diff --git a/tests/app/main/views/test_platform_admin.py b/tests/app/main/views/test_platform_admin.py index 71c05df55..175c5791f 100644 --- a/tests/app/main/views/test_platform_admin.py +++ b/tests/app/main/views/test_platform_admin.py @@ -43,7 +43,7 @@ def test_should_render_platform_admin_page( assert response.status_code == 200 resp_data = response.get_data(as_text=True) assert 'Platform admin' in resp_data - assert 'Today\'s statistics' in resp_data + assert 'Today' in resp_data assert 'Services' in resp_data