Skip to content

Commit

Permalink
Move CSS for flags PNG to layout html to enable path django conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
coldfire84 committed Jan 19, 2020
1 parent 2b22a6e commit 82aa8e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 0 additions & 7 deletions docs/_static/css/flags.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
* Generated with CSS Flag Sprite generator (https://www.flag-sprites.com/)
*/

.flag {
display: inline-block;
width: 32px;
height: 32px;
background: url('../images/flags_oauth.png') no-repeat;
}

.flag.flag-au {
background-position: -32px 0;
}
Expand Down
8 changes: 8 additions & 0 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
{% block extrahead %}
<link href="{{ pathto("_static/css/rtd_dark_centre.css", True) }}" rel="stylesheet" type="text/css">
<link href="{{ pathto("_static/css/flags.css", True) }}" rel="stylesheet" type="text/css">
<style>
.flag {
display: inline-block;
width: 32px;
height: 32px;
background: url("{{ pathto("_static/images/flags_oauth.png", True) }}") no-repeat;
}
</style>
{% endblock %}

{% block extrabody %}
Expand Down

0 comments on commit 82aa8e2

Please sign in to comment.