~edwargix/git.sr.ht

f9d5e527b448f25bcbfa3af312b58325e9fff04d — Martijn Braam 6 years ago 5cc1d1d
contributors.html: Make SVG style less global

the SVG not having a class here means it's very difficult to override
the css for the graph without influencing other SVGs on sr.ht since
injected styles usually can't filter on url.
1 files changed, 2 insertions(+), 1 deletions(-)

M gitsrht/templates/contributors.html
M gitsrht/templates/contributors.html => gitsrht/templates/contributors.html +2 -1
@@ 9,7 9,7 @@

{% block head %}
  <style type="text/css">
    svg { background-color: WhiteSmoke }
    svg.contributors { background-color: WhiteSmoke }
    rect { fill: #116bdd }
    rect:hover { fill: #dc3545 }
  </style>


@@ 40,6 40,7 @@
        baseProfile="full"
        viewBox="0 0 520 100"
        xmlns="http://www.w3.org/2000/svg"
	class="contributors"
      >
        {% for bar in bars %}
          <rect