Fix background colours on big numbers without links

This commit is contained in:
Chris Hill-Scott
2016-06-22 13:28:32 +01:00
parent a385c2ff76
commit 0c31931876
3 changed files with 15 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -22,8 +22,8 @@
]) }}
<h2 class='heading-medium'>Today's statistics</h2>
<div class="grid-row">
<h2 class='heading-medium'>Today</h2>
<div class="grid-row bottom-gutter">
<div class="column-half">
{{ big_number_with_status(
global_stats.emails_delivered,

View File

@@ -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