diff --git a/app/assets/stylesheets/app.scss b/app/assets/stylesheets/app.scss index 570d997e0..2d45890f4 100644 --- a/app/assets/stylesheets/app.scss +++ b/app/assets/stylesheets/app.scss @@ -249,3 +249,7 @@ details .arrow { .block-label input[disabled] { opacity: 0.5; } + +#content.override-elements-content { + padding-bottom: 0; +} diff --git a/app/assets/stylesheets/components/pill.scss b/app/assets/stylesheets/components/pill.scss index 224a56d98..be3619984 100644 --- a/app/assets/stylesheets/components/pill.scss +++ b/app/assets/stylesheets/components/pill.scss @@ -2,24 +2,19 @@ display: flex; - a, - span { - display: block; + li { width: 25%; - box-sizing: border-box; - float: left; - padding: 10px; flex-grow: 1; text-align: left; + } - &:first-child { - margin-left: 0; - } - - &:last-child { - margin-right: 0; - } - + a, + &-selected-item { + display: block; + float: left; + box-sizing: border-box; + width: 100%; + padding: 10px; } a { @@ -50,12 +45,18 @@ } } - span { + &-selected-item { border: 2px solid $black; outline: 1px solid rgba($white, 0.1); position: relative; z-index: 1000; color: $text-colour; + + &:focus { + z-index: 10; + outline: 3px solid $yellow; + } + } } diff --git a/app/assets/stylesheets/views/dashboard.scss b/app/assets/stylesheets/views/dashboard.scss index 16fd35d07..0eee9993d 100644 --- a/app/assets/stylesheets/views/dashboard.scss +++ b/app/assets/stylesheets/views/dashboard.scss @@ -32,6 +32,7 @@ margin-bottom: $gutter-half; height: $gutter-half; color: $text-colour; + text-align: left; span { box-sizing: border-box; diff --git a/app/templates/components/pill.html b/app/templates/components/pill.html index c77810e5c..efd895069 100644 --- a/app/templates/components/pill.html +++ b/app/templates/components/pill.html @@ -1,26 +1,27 @@ {% from 'components/big-number.html' import big_number %} {% macro pill( - title, items=[], current_value=None, big_number_args={'smaller': True} ) %} - + {% endmacro %} diff --git a/app/templates/components/table.html b/app/templates/components/table.html index fef690fd0..b21fc3dc9 100644 --- a/app/templates/components/table.html +++ b/app/templates/components/table.html @@ -61,19 +61,19 @@ {% set border = '' if border else 'table-field-noborder' %} - {{ caller() }} +
{{ caller() }}
{%- endmacro %} {% macro row_heading() -%} - {{ caller() }} + {{ caller() }} {%- endmacro %} {% macro index_field(text) -%} - Row {{ text }} + Row {{ text }} {%- endmacro %} diff --git a/app/templates/partials/jobs/count.html b/app/templates/partials/jobs/count.html index 78003a22e..eb2990161 100644 --- a/app/templates/partials/jobs/count.html +++ b/app/templates/partials/jobs/count.html @@ -1,5 +1,5 @@ {% from "components/pill.html" import pill %}
- {{ pill('Status', counts, request.args.get('status', '')) }} + {{ pill(counts, request.args.get('status', '')) }}
diff --git a/app/templates/partials/jobs/notifications.html b/app/templates/partials/jobs/notifications.html index 9ef4ef6ad..6004a9471 100644 --- a/app/templates/partials/jobs/notifications.html +++ b/app/templates/partials/jobs/notifications.html @@ -1,7 +1,7 @@ {% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading, notification_status_field %} {% from "components/page-footer.html" import page_footer %} -
+
{% if job.job_status == 'scheduled' %}

diff --git a/app/templates/views/activity/counts.html b/app/templates/views/activity/counts.html index b396bb064..b73738966 100644 --- a/app/templates/views/activity/counts.html +++ b/app/templates/views/activity/counts.html @@ -2,7 +2,6 @@

{{ pill( - 'Status', status_filters, status ) }} diff --git a/app/templates/views/activity/notifications.html b/app/templates/views/activity/notifications.html index 93a136436..42c6cf169 100644 --- a/app/templates/views/activity/notifications.html +++ b/app/templates/views/activity/notifications.html @@ -2,7 +2,7 @@ {% from "components/previous-next-navigation.html" import previous_next_navigation %} {% from "components/table.html" import list_table, field, text_field, link_field, right_aligned_field_heading, hidden_field_heading, row_heading, notification_status_field %} -
+
{% if notifications %}
diff --git a/app/templates/views/dashboard/monthly.html b/app/templates/views/dashboard/monthly.html index 3198d3314..975fe08f4 100644 --- a/app/templates/views/dashboard/monthly.html +++ b/app/templates/views/dashboard/monthly.html @@ -18,14 +18,13 @@
{{ pill( - 'financial year', items=years, current_value=selected_year, big_number_args={'smallest': True}, ) }}
{% if months %} -
+
{% call(month, row_index) list_table( months, caption="Total spend", diff --git a/app/templates/views/dashboard/template-statistics.html b/app/templates/views/dashboard/template-statistics.html index ef2a8ec20..c94ec4e6b 100644 --- a/app/templates/views/dashboard/template-statistics.html +++ b/app/templates/views/dashboard/template-statistics.html @@ -24,8 +24,8 @@ {% endcall %} - {% call field() %} - {% if template_statistics|length > 1 %} + {% if template_statistics|length > 1 %} + {% call field(align='right') %} {{ big_number( @@ -34,14 +34,16 @@ ) }} - {% else %} + {% endcall %} + {% else %} + {% call field() %} {{ big_number( item.count, smallest=True ) }} - {% endif %} - {% endcall %} + {% endcall %} + {% endif %} {% endcall %}
diff --git a/app/templates/views/signedout.html b/app/templates/views/signedout.html index 1f652175e..c367cfe9f 100644 --- a/app/templates/views/signedout.html +++ b/app/templates/views/signedout.html @@ -10,8 +10,8 @@ {% block maincolumn_content %} -
-
+
+