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

Commit

Permalink
Merge pull request #1 from kennethreitz/master
Browse files Browse the repository at this point in the history
Responsive Design
  • Loading branch information
mitsuhiko committed Jul 15, 2013
2 parents 0269f3d + 34f8b25 commit 1cc4468
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 73 deletions.
3 changes: 1 addition & 2 deletions flask/layout.html
Expand Up @@ -4,8 +4,7 @@
{% 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" />
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
{% endblock %}
{%- block relbar2 %}{% endblock %}
{% block header %}
Expand Down
184 changes: 183 additions & 1 deletion flask/static/flasky.css_t
Expand Up @@ -169,7 +169,6 @@ div.indexwrapper h1 {
height: {{ theme_index_logo_height }};
}
{% endif %}

div.body h1 { margin-top: 0; padding-top: 0; font-size: 240%; }
div.body h2 { font-size: 180%; }
div.body h3 { font-size: 150%; }
Expand Down Expand Up @@ -393,3 +392,186 @@ a.footnote-reference:hover {
a:hover tt {
background: #EEE;
}


@media screen and (max-width: 870px) {

div.sphinxsidebar {
display: none;
}

div.document {
width: 100%;

}

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;
}

.document {
width: auto;
}

.footer {
width: auto;
}

.bodywrapper {
margin: 0;
}

.footer {
width: auto;
}

.github {
display: none;
}



}



@media screen and (max-width: 875px) {

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;
}

.rtd_doc_footer {
display: none;
}

.document {
width: auto;
}

.footer {
width: auto;
}

.footer {
width: auto;
}

.github {
display: none;
}
}


/* scrollbars */

::-webkit-scrollbar {
width: 6px;
height: 6px;
}

::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
display: block;
height: 10px;
}

::-webkit-scrollbar-button:vertical:increment {
background-color: #fff;
}

::-webkit-scrollbar-track-piece {
background-color: #eee;
-webkit-border-radius: 3px;
}

::-webkit-scrollbar-thumb:vertical {
height: 50px;
background-color: #ccc;
-webkit-border-radius: 3px;
}

::-webkit-scrollbar-thumb:horizontal {
width: 50px;
background-color: #ccc;
-webkit-border-radius: 3px;
}

/* misc. */

.revsys-inline {
display: none!important;
}
70 changes: 0 additions & 70 deletions flask/static/small_flask.css

This file was deleted.

0 comments on commit 1cc4468

Please sign in to comment.