mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Remove uses of inline-styles
This commit is contained in:
@@ -183,8 +183,19 @@
|
||||
id=None
|
||||
) %}
|
||||
{% call field(align='right') %}
|
||||
<style nonce="{{ csp_nonce() }}">
|
||||
{% if id %}
|
||||
#{{id}} .spark-bar-bar {
|
||||
width: {{ count / max_count * 100 }}%;
|
||||
}
|
||||
{% else %}
|
||||
.spark-bar-bar {
|
||||
width: 100%;
|
||||
}
|
||||
{% endif %}
|
||||
</style>
|
||||
<span {% if id %}id="{{ id }}"{% endif %} class="spark-bar">
|
||||
<span class="spark-bar-bar" style="width: {{ count / max_count * 100 }}%">
|
||||
<span class="spark-bar-bar">
|
||||
{{ '{:,.0f}'.format(count) }}
|
||||
</span>
|
||||
</span>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="govuk-header__logo">
|
||||
<a href="{{ params.homepageUrl | default('/') }}" class="govuk-header__link govuk-header__link--homepage">
|
||||
<span class="govuk-header__logotype">
|
||||
<image src="{{ params.assetsPath | default('/assets/images') }}/email-template/us-flag.png" xlink:href="" class="govuk-header__logotype-crown-fallback-image" width="36" height="32"></image>
|
||||
<image src="{{ params.assetsPath | default('/assets/images') }}/email-template/us-flag.png" alt="United States Flag" xlink:href="" class="govuk-header__logotype-crown-fallback-image" width="36" height="32"></image>
|
||||
</svg>
|
||||
<span class="govuk-header__logotype-text">
|
||||
U.S.
|
||||
|
||||
Reference in New Issue
Block a user