Skip to content

Commit a5496b2

Browse files
committed
Remove underlines from badge elements.
Includes cherry-pick of 9c1fdac from #143
1 parent d7c124c commit a5496b2

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

alabaster/about.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h1 class="logo"><a href="{{ pathto(master_doc) }}">{{ project }}</a></h1>
3131
{% set path = theme_travis_button %}
3232
{% endif %}
3333
<p>
34-
<a href="https://travis-ci.org/{{ path }}">
34+
<a class="badge" href="https://travis-ci.org/{{ path }}">
3535
<img
3636
alt="https://secure.travis-ci.org/{{ path }}.svg?branch={{ theme_badge_branch }}"
3737
src="https://secure.travis-ci.org/{{ path }}.svg?branch={{ theme_badge_branch }}"
@@ -47,7 +47,7 @@ <h1 class="logo"><a href="{{ pathto(master_doc) }}">{{ project }}</a></h1>
4747
{% set path = theme_codecov_button %}
4848
{% endif %}
4949
<p>
50-
<a href="https://codecov.io/github/{{ path }}">
50+
<a class="badge" href="https://codecov.io/github/{{ path }}">
5151
<img
5252
alt="https://codecov.io/github/{{ path }}/coverage.svg?branch={{ theme_badge_branch }}"
5353
src="https://codecov.io/github/{{ path }}/coverage.svg?branch={{ theme_badge_branch }}"

alabaster/static/alabaster.css_t

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,14 @@ div.sphinxsidebar hr {
221221
width: 50%;
222222
}
223223

224+
div.sphinxsidebar .badge {
225+
border-bottom: none;
226+
}
227+
228+
div.sphinxsidebar .badge:hover {
229+
border-bottom: none;
230+
}
231+
224232
/* -- body styles ----------------------------------------------------------- */
225233

226234
a {

docs/changelog.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
Changelog
33
=========
44

5+
- :bug:`-` On some browsers/platforms, 'badge'-style sidebar elements were
6+
displaying dotted underlines. This was unintentional and explicit styling has
7+
been added to remove them. Credit to Steven Loria.
58
- :bug:`128` Remove Gittip/Gratipay output from the ``donation.html`` sidebar
69
component, since the actual service has been insolvent since 2017. The
710
configuration options remain in place for the time being (to avoid breaking

0 commit comments

Comments
 (0)