Official™ mobile-friendly

This commit is contained in:
Kenneth Reitz
2011-11-04 22:58:43 -04:00
parent b3e2410f44
commit 628325ae90
3 changed files with 19 additions and 43 deletions
+5 -3
View File
@@ -2,18 +2,20 @@
{%- block extrahead %}
{{ super() }}
{% if theme_touch_icon %}
<link rel="apple-touch-icon" href="{{ pathto('_static/' ~ theme_touch_icon, 1) }}" />
<link rel="apple-touch-icon" href="{{ pathto('_static/' ~ theme_touch_icon, 1) }}" />
{% endif %}
<link media="only screen and (max-device-width: 480px)" href="{{
pathto('_static/small_flask.css', 1) }}" type= "text/css" rel="stylesheet" />
<script src="http://localhost:9000/target/target-script-min.js#anonymous"></script>
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
{% endblock %}
{%- block relbar2 %}{% endblock %}
{%- block footer %}
<div class="footer">
&copy; Copyright {{ copyright }}.
</div>
<a href="https://github.com/kennethreitz/requests">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" />
<a href="https://github.com/kennethreitz/requests" class="github">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" class="github"/>
</a>
<script type="text/javascript">
+5 -3
View File
@@ -395,9 +395,9 @@ a:hover tt {
div.document {
width: 100%;
}
div.documentwrapper {
margin-left: 0;
margin-top: 0;
@@ -432,7 +432,9 @@ a:hover tt {
width: auto;
}
.github {
display: none;
}
}
+9 -37
View File
@@ -77,42 +77,14 @@ div.body {
width: auto;
}
.footer {
width: auto;
}
/*
div.sphinxsidebar {
.footer {
width: auto;
}
.github {
display: none;
}
div.documentwrapper {
margin-left: 0;
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
}
div.bodywrapper {
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
}
ul {
margin-left: 0;
}
.footer {
width: auto;
}
.bodywrapper {
margin: 0;
}
.footer {
width: auto;
}
*/
}