Skip to content

Commit

Permalink
move td alignment to overrides css
Browse files Browse the repository at this point in the history
  • Loading branch information
rshewitt committed Dec 11, 2024
1 parent fa86db5 commit 725dce8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pages/metrics/metrics.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ <h4>{{block.meta.title}}</h4>
{%- assign pageURL = 4 -%}
{%- endif -%}
{%- if block.data[0][forloop.index0] == "pageTitle" -%}
<td align="left">
<td>
<a href="{{row[pageURL]}}" target="_blank">{{column | toLocaleString | replace: " - Catalog", ""}}</a>
</td>
{%- else -%}
<td align="right">{{column | toLocaleString}}</td>
<td>{{column | toLocaleString}}</td>
{%- endif -%}
{%- endif -%}

Expand Down
4 changes: 2 additions & 2 deletions pages/metrics/metrics_per-org.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ <h4>{{block.meta.title}}</h4>
{%- assign pageURL = 4 -%}
{%- endif -%}
{%- if block.data[0][forloop.index0] == "pageTitle" -%}
<td align="left">
<td>
<a href="{{row[pageURL]}}" target="_blank">{{column | toLocaleString | replace: " - Catalog", ""}}</a>
</td>
{%- else -%}
<td align="right">{{column | toLocaleString}}</td>
<td>{{column | toLocaleString}}</td>
{%- endif -%}
{%- endif -%}
{%- endif -%}
Expand Down
4 changes: 4 additions & 0 deletions styles/partials/overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ button {
background-color: #fff;
}

.usa-table td {
text-align: left
}

.usa-table.full-width tr {
td:first-child {
width: 90%;
Expand Down

0 comments on commit 725dce8

Please sign in to comment.