[xml/sgml-pkgs] Bug#765535: New Debian theme web page and cell phone

Stéphane Blondon stephane.blondon at gmail.com
Sat Oct 18 20:58:48 UTC 2014


Hi,

2014-10-17 15:09 GMT+02:00 Osamu Aoki <osamu at debian.org>:
> On Fri, Oct 17, 2014 at 12:00:01PM +0200, Stéphane Blondon wrote:
>> If I understand well, you would like the borders are removed on little
>> screen (like phone) so there would have more space for the text.
>> Is it right?
>
> Exactly.
> [...]
>> It's can be achieved by adding CSS. I can provide a patch to fix it.

I modified maint-guide.css as provided in the last version of the
reposity maint-guide.
It adds media queries to remove border for small screen (less than
5inches width).
(It simplifies an instruction too.)

An unified diff and the modified complete file are provided to this messsage.


Tested with Iceweasel 31.1.0 on Debian and with Firefox and Chrome on Android.

-- 
Stéphane
-------------- next part --------------
--- maint-guide.css.orig	2014-10-18 22:43:45.757090661 +0200
+++ maint-guide.css	2014-10-18 22:44:58.842212840 +0200
@@ -10,11 +10,15 @@
     line-height: 1.2em;
 }
 
-body > div.book, body > div.article, body > div.set, body > div.preface, body > div.chapter, body > div.section, body > div.appendix, body > div.part {
-    margin-top: 0;
-    padding: 2em 6em 6em;
+ at media (max-width: 5in), (max-device-width: 5in){
+    body {
+        border: 0px;
+        padding: 0px;
+    }
 }
+
 body > div.book, body > div.article, body > div.set, body > div.preface, body > div.chapter, body > div.section, body > div.appendix, body > div.part {
+    margin-top: 0;
     padding: 2em;
 }
 
@@ -34,6 +38,11 @@
         max-width: 70em;
     }
 }
+ at media (max-width: 5in), (max-device-width: 5in){
+    body > div.book, body > div.article, body > div.set, body > div.preface, body > div.chapter, body > div.section, body > div.appendix, body > div.part, body > div.index {
+        max-width: 100%;
+    }
+}
 
 hr {
     border-top: 1px dotted #808080;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: maint-guide.css
Type: text/css
Size: 3012 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20141018/91132840/attachment.css>


More information about the debian-xml-sgml-pkgs mailing list