mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 03:13:42 -05:00
Put default spark-bar-bar css in table.scss file
This commit is contained in:
@@ -446,3 +446,7 @@ a.table-show-more-link {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.spark-bar-bar {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -183,17 +183,13 @@
|
||||
id=None
|
||||
) %}
|
||||
{% call field(align='right') %}
|
||||
<style nonce="{{ csp_nonce() }}">
|
||||
{% if id %}
|
||||
{% if id %}
|
||||
<style nonce="{{ csp_nonce() }}">
|
||||
#{{id}} .spark-bar-bar {
|
||||
width: {{ count / max_count * 100 }}%;
|
||||
}
|
||||
{% else %}
|
||||
.spark-bar-bar {
|
||||
width: 100%;
|
||||
}
|
||||
{% endif %}
|
||||
</style>
|
||||
</style>
|
||||
{% endif %}
|
||||
<span {% if id %}id="{{ id }}"{% endif %} class="spark-bar">
|
||||
<span class="spark-bar-bar">
|
||||
{{ '{:,.0f}'.format(count) }}
|
||||
|
||||
Reference in New Issue
Block a user