Skip to content

Commit

Permalink
Improve contrast of buttons in post/release pages
Browse files Browse the repository at this point in the history
Use the .btn-primary CSS class for buttons instead of .btn-secondary,
which makes them have blue background with white text. This greatly
improves contrast.
  • Loading branch information
aperezdc committed May 29, 2024
1 parent b055ed8 commit 726bd84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _includes/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ <h1 itemprop="headline">{{ title }}</h1>
<time itemprop="dateCreated">{{ page.date | date: "%e %B %Y" }}</time>
{% endif %}
{% if download %}
<a class="btn btn-l btn-secondary mt-3" href="{{ download }}">Download</a>
<a class="btn btn-l btn-primary mt-3" href="{{ download }}">Download</a>
{% elsif package and version %}
<a class="btn btn-l btn-secondary mt-3" href="{{ site.release_dir | append:'/' | append: package | append: '-' | append: version | append: '.tar.xz' }}">Download</a>
<a class="btn btn-l btn-primary mt-3" href="{{ site.release_dir | append:'/' | append: package | append: '-' | append: version | append: '.tar.xz' }}">Download</a>
{%- if hasDocumentation and not hideDocumentation %}
<a class="btn btn-l btn-secondary mt-3" href="{{ site.api_ref_dir }}/{{ version }}/">Documentation</a>
<a class="btn btn-l btn-primary mt-3" href="{{ site.api_ref_dir }}/{{ version }}/">Documentation</a>
{%- endif %}
{% endif %}
</header>
Expand Down

0 comments on commit 726bd84

Please sign in to comment.