Skip to content

Commit 4a34375

Browse files
author
Kenneth Reitz
committed
suck in responsive view
1 parent 5d8691c commit 4a34375

File tree

2 files changed

+153
-6
lines changed

2 files changed

+153
-6
lines changed

docs/_themes/kr/layout.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22
{%- block extrahead %}
33
{{ super() }}
44
{% if theme_touch_icon %}
5-
<link rel="apple-touch-icon" href="{{ pathto('_static/' ~ theme_touch_icon, 1) }}" />
5+
<link rel="apple-touch-icon" href="{{ pathto('_static/' ~ theme_touch_icon, 1) }}" />
66
{% endif %}
7-
<link media="only screen and (max-device-width: 480px)" href="{{
8-
pathto('_static/small_flask.css', 1) }}" type= "text/css" rel="stylesheet" />
7+
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
98
{% endblock %}
109
{%- block relbar2 %}{% endblock %}
1110
{%- block footer %}
1211
<div class="footer">
1312
&copy; Copyright {{ copyright }}.
1413
</div>
15-
<a href="https://github.com/kennethreitz/python-guide">
14+
<a href="https://github.com/kennethreitz/python-guide" class="github">
1615
<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" />
1716
</a>
1817

docs/_themes/kr/static/flasky.css_t

Lines changed: 150 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ div.sphinxsidebarwrapper {
9191
}
9292

9393
div.sphinxsidebarwrapper p.logo {
94-
padding: 0 0 20px 0;
95-
margin: 0;
94+
padding: 0;
95+
margin: -10px 0 0 -20px;
9696
text-align: center;
9797
}
9898

@@ -387,6 +387,148 @@ a:hover tt {
387387
}
388388

389389

390+
@media screen and (max-width: 870px) {
391+
392+
div.sphinxsidebar {
393+
display: none;
394+
}
395+
396+
div.document {
397+
width: 100%;
398+
399+
}
400+
401+
div.documentwrapper {
402+
margin-left: 0;
403+
margin-top: 0;
404+
margin-right: 0;
405+
margin-bottom: 0;
406+
}
407+
408+
div.bodywrapper {
409+
margin-top: 0;
410+
margin-right: 0;
411+
margin-bottom: 0;
412+
margin-left: 0;
413+
}
414+
415+
ul {
416+
margin-left: 0;
417+
}
418+
419+
.document {
420+
width: auto;
421+
}
422+
423+
.footer {
424+
width: auto;
425+
}
426+
427+
.bodywrapper {
428+
margin: 0;
429+
}
430+
431+
.footer {
432+
width: auto;
433+
}
434+
435+
.github {
436+
display: none;
437+
}
438+
439+
440+
441+
}
442+
443+
444+
445+
@media screen and (max-width: 875px) {
446+
447+
body {
448+
margin: 0;
449+
padding: 20px 30px;
450+
}
451+
452+
div.documentwrapper {
453+
float: none;
454+
background: white;
455+
}
456+
457+
div.sphinxsidebar {
458+
display: block;
459+
float: none;
460+
width: 102.5%;
461+
margin: 50px -30px -20px -30px;
462+
padding: 10px 20px;
463+
background: #333;
464+
color: white;
465+
}
466+
467+
div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p,
468+
div.sphinxsidebar h3 a {
469+
color: white;
470+
}
471+
472+
div.sphinxsidebar a {
473+
color: #aaa;
474+
}
475+
476+
div.sphinxsidebar p.logo {
477+
display: none;
478+
}
479+
480+
div.document {
481+
width: 100%;
482+
margin: 0;
483+
}
484+
485+
div.related {
486+
display: block;
487+
margin: 0;
488+
padding: 10px 0 20px 0;
489+
}
490+
491+
div.related ul,
492+
div.related ul li {
493+
margin: 0;
494+
padding: 0;
495+
}
496+
497+
div.footer {
498+
display: none;
499+
}
500+
501+
div.bodywrapper {
502+
margin: 0;
503+
}
504+
505+
div.body {
506+
min-height: 0;
507+
padding: 0;
508+
}
509+
510+
.rtd_doc_footer {
511+
display: none;
512+
}
513+
514+
.document {
515+
width: auto;
516+
}
517+
518+
.footer {
519+
width: auto;
520+
}
521+
522+
.footer {
523+
width: auto;
524+
}
525+
526+
.github {
527+
display: none;
528+
}
529+
}
530+
531+
390532
/* scrollbars */
391533

392534
::-webkit-scrollbar {
@@ -420,3 +562,9 @@ a:hover tt {
420562
background-color: #ccc;
421563
-webkit-border-radius: 3px;
422564
}
565+
566+
/* misc. */
567+
568+
.revsys-inline {
569+
display: none!important;
570+
}

0 commit comments

Comments
 (0)