Skip to content
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.

Commit

Permalink
Added small device file
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed May 27, 2010
1 parent 91eee53 commit f87d00e
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 1 deletion.
9 changes: 8 additions & 1 deletion flask/layout.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{%- extends "basic/layout.html" %}
{%- block relbar1 %}{% endblock %}
{%- block extrahead %}
{{ super() }}
{% if theme_touch_icon %}
<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" />
{% endblock %}
{%- block relbar2 %}{% endblock %}
{%- block footer %}
<div class="footer">
Expand Down
4 changes: 4 additions & 0 deletions flask/static/flasky.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ div.footer {
div.footer a {
color: #888;
}

div.related {
display: none;
}

div.sphinxsidebar {
font-size: 14px;
Expand Down
62 changes: 62 additions & 0 deletions flask/static/small_flask.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
body {
margin: 0;
padding: 20px 30px;
}

div.documentwrapper {
float: none;
background: white;
}

div.sphinxsidebar {
display: block;
float: none;
width: 102.5%;
margin: 50px -30px -20px -30px;
padding: 10px 20px;
background: #333;
color: white;
}

div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p,
div.sphinxsidebar h3 a {
color: white;
}

div.sphinxsidebar a {
color: #aaa;
}

div.sphinxsidebar p.logo {
display: none;
}

div.document {
width: 100%;
margin: 0;
}

div.related {
display: block;
margin: 0;
padding: 10px 0 20px 0;
}

div.related ul,
div.related ul li {
margin: 0;
padding: 0;
}

div.footer {
display: none;
}

div.bodywrapper {
margin: 0;
}

div.body {
min-height: 0;
padding: 0;
}
3 changes: 3 additions & 0 deletions flask/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
inherit = basic
stylesheet = flasky.css
pygments_style = flask_theme_support.FlaskyStyle

[options]
touch_icon =

0 comments on commit f87d00e

Please sign in to comment.