Skip to content

Commit

Permalink
Fixed #20518 -- Use a stripped background when showing a development …
Browse files Browse the repository at this point in the history
…version of the documentation.
  • Loading branch information
jezdez committed Jun 20, 2013
1 parent 98bef95 commit 720b325
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/templates/docs/doc.html
Expand Up @@ -18,6 +18,22 @@ <h2><a href="{% url 'document-index' lang=lang version=version %}">{% trans "Dja

{% block body %}
{% load docs %}
{% if version == 'dev' %}
<style type="text/css" media="screen">
#content-main {
background-size: 50px 50px;
background-color: #fff;
background-image: -webkit-linear-gradient(-45deg, rgba(0, 0, 0, .02) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, .02) 50%, rgba(0, 0, 0, .02) 75%, transparent 75%, transparent);
background-image: -moz-linear-gradient(-45deg, rgba(0, 0, 0, .02) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, .02) 50%, rgba(0, 0, 0, .02) 75%, transparent 75%, transparent);
background-image: linear-gradient(135deg, rgba(0, 0, 0, .02) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, .02) 50%, rgba(0, 0, 0, .02) 75%, transparent 75%, transparent);
}
</style>
<div class="admonition warning">
<p>{% trans "This document is for Django's in-development version, which can be significantly different from previous releases." %}</p>
<p>{% trans "Use the version selector in the bottom right corner to see older versions." %}</p>
</div>

{% endif %}
{% get_all_doc_versions docurl as versions %}
<ul id="doc-versions">
{% for v in versions %}
Expand Down

0 comments on commit 720b325

Please sign in to comment.