From ebb00d95c585dd0520e54ec48df80262f02583cf Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 24 Aug 2015 10:53:36 +0200 Subject: [PATCH] better mobile version --- docs/pycco_custom.css | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/docs/pycco_custom.css b/docs/pycco_custom.css index 5c97b86..643a7e3 100644 --- a/docs/pycco_custom.css +++ b/docs/pycco_custom.css @@ -35,26 +35,44 @@ div.code { margin-left: 640px; } + +h1, h2, h3, h4, h5, h6 { + margin-top: 20px; +} +div.docs p { + margin-bottom: 5px; +} +div.code { + padding-top: 5px; + padding-bottom: 3px; +} + @media print { #background { background: none; border: none; } - h1, h2, h3, h4, h5, h6 { - margin-top: 20px; - } div.docs { max-width: 99%; padding-left: 0px; padding-right: 0px; } - div.docs p { - margin-bottom: 5px; + div.code { + margin: 0px; + clear: both; + } +} + +@media screen and (max-width:1000px) { + #background { + background: none; + border: none; + } + div.docs { + max-width: 99%; } div.code { margin: 0px; - padding-top: 2px; - padding-bottom: 5px; clear: both; } } -- 2.30.2