Skip to content

Commit

Permalink
Format sponsor logos so they work regardless of light/dark mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpage committed Jul 22, 2024
1 parent 792130a commit ef6023f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions media/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1779,6 +1779,12 @@ img.organisation-logo {
max-height: 65px;
max-width: 150px;
}
th.organisation-logo {
height: 65px;
width: 150px;
background-color: white !important;
text-align: center;
}

/** Release Notes */
#release-notes .navheader,
Expand Down
2 changes: 1 addition & 1 deletion templates/sponsors/contributing.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h2>{{ sponsor.sponsortype.typename }}</h2>
<tbody>
{% endifchanged%}
<tr>
<th scope="row">
<th scope="row" class="organisation-logo">
<a href="{{ sponsor.url }}" target="_blank" rel="noopener">
<img class="organisation-logo" src="/media/img/about/sponsors/{{ sponsor.logoname }}" alt="{{ sponsor.name }}" />
</a>
Expand Down
4 changes: 2 additions & 2 deletions templates/sponsors/financial.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h3>PostgreSQL Community Association Sponsors</h3>
</thead>
<tbody>
<tr>
<th scope="row">
<th scope="row" class="organisation-logo">
<a href="https://aws.amazon.com" target="_blank" rel="noopener">
<img class="organisation-logo" src="/media/img/about/sponsors/logo_aws.svg" alt="AWS" />
</a>
Expand All @@ -80,7 +80,7 @@ <h3>PostgreSQL Community Association Sponsors</h3>
<td>Benefactor</td>
</tr>
<tr>
<th scope="row">
<th scope="row" class="organisation-logo">
<a href="https://xata.io" target="_blank" rel="noopener">
<img class="organisation-logo" src="/media/img/about/sponsors/logo_xata.svg" alt="Xata" />
</a>
Expand Down

0 comments on commit ef6023f

Please sign in to comment.