mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-02 07:52:15 +02:00
remove captions and make complex tables with multiple headers
This commit is contained in:
parent
c759b3a458
commit
70fd8907bb
2 changed files with 23 additions and 8 deletions
|
@ -140,11 +140,6 @@ h1, h2, h3 {
|
|||
font-weight: font-weight('bold');
|
||||
}
|
||||
|
||||
table > caption > a {
|
||||
font-weight: font-weight('bold');
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.change-list {
|
||||
.usa-table--striped tbody tr:nth-child(odd) td,
|
||||
.usa-table--striped tbody tr:nth-child(odd) th,
|
||||
|
@ -170,3 +165,15 @@ table > caption > a {
|
|||
.min-width-81 {
|
||||
min-width: 81px;
|
||||
}
|
||||
|
||||
.primary-th {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
font-size: 0.75rem;
|
||||
letter-spacing: 0.5px;
|
||||
text-transform: none;
|
||||
font-weight: font-weight('bold');
|
||||
text-align: left;
|
||||
background: var(--primary);
|
||||
color: var(--header-link-color);
|
||||
}
|
|
@ -4,12 +4,20 @@
|
|||
{% for app in app_list %}
|
||||
<div class="app-{{ app.app_label }} module{% if app.app_url in request.path|urlencode %} current-app{% endif %}">
|
||||
<table>
|
||||
<caption>
|
||||
<a href="{{ app.app_url }}" class="section" title="{% blocktranslate with name=app.name %}Models in the {{ name }} application{% endblocktranslate %}">{{ app.name }}</a>
|
||||
</caption>
|
||||
|
||||
{# .gov override #}
|
||||
<thead>
|
||||
<tr>
|
||||
{% if show_changelinks %}
|
||||
<th colspan="3" class="primary-th">
|
||||
{{ app.name }}
|
||||
</th>
|
||||
{% else %}
|
||||
<th colspan="2" class="primary-th">
|
||||
{{ app.name }}
|
||||
</th>
|
||||
{% endif %}
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col">Model</th>
|
||||
<th><span class="display-inline-block min-width-25">Add</span></th>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue