Hi

This saves about 270kb (29%) in a dir of about 3k entries, while looking the 
same.

- Lauri
>From e5ebaccb6ba8b117e606c70e5cf7ec5ce5f8df0d Mon Sep 17 00:00:00 2001
From: Lauri Kasanen <[email protected]>
Date: Sun, 16 Dec 2012 15:11:58 +0200
Subject: [PATCH 7/7] dirlisting/guineo: Compact the theme

This saves about 270kb (29%) in a dir of about 3k entries, while looking the 
same.

Signed-off-by: Lauri Kasanen <[email protected]>
---
 plugins/dirlisting/conf/themes/guineo/entry.theme  |   33 ++++++++------------
 plugins/dirlisting/conf/themes/guineo/header.theme |   11 +++++--
 2 files changed, 21 insertions(+), 23 deletions(-)

diff --git a/plugins/dirlisting/conf/themes/guineo/entry.theme 
b/plugins/dirlisting/conf/themes/guineo/entry.theme
index 06e872b..af00e25 100644
--- a/plugins/dirlisting/conf/themes/guineo/entry.theme
+++ b/plugins/dirlisting/conf/themes/guineo/entry.theme
@@ -1,21 +1,14 @@
-<TR bgcolor="#ffffff">
-       <TD>
-               <P class="row">
-               &nbsp;
-               <A title='%_target_title_%' href='%_target_url_%'>
-                       %_target_name_%
-               </A>
-               </P>
-       </TD>
-       <TD>
-               <p class="row">
-                       %_target_time_%
-               </p>
-       </TD>
-       <TD>
-               <p class="row">
-                       %_target_size_%
-               </p>
-               %_theme_path_%
-       </TD>
+<TR>
+<TD class="row">
+       <A title='%_target_title_%' href='%_target_url_%'>
+               %_target_name_%
+       </A>
+</TD>
+<TD class="row">
+       %_target_time_%
+</TD>
+<TD class="row">
+       %_target_size_%
+       %_theme_path_%
+</TD>
 </TR>
diff --git a/plugins/dirlisting/conf/themes/guineo/header.theme 
b/plugins/dirlisting/conf/themes/guineo/header.theme
index bc61656..6a11a45 100644
--- a/plugins/dirlisting/conf/themes/guineo/header.theme
+++ b/plugins/dirlisting/conf/themes/guineo/header.theme
@@ -1,14 +1,19 @@
 <HTML>
        <HEAD>
-                <META http-equiv="content-type" content="text/html; 
charset=UTF-8">
+               <META http-equiv="content-type" content="text/html; 
charset=UTF-8">
                <STYLE type="text/css">
                H1.header {
                            text-align: center;
                            color: #4a77a0;
                            font-size: 12pt;
                            font-weight: bold;
-                           }
-               .row {color: #6c95bc; font-size: 10pt; }
+               }
+               .row {
+                       color: #6c95bc;
+                       font-size: 10pt;
+                       background-color: #ffffff;
+                       padding-left: 0.4em;
+               }
                .title {color: #617691; font-size: 10pt; font-weight: bold;}
 
                a:link { 
-- 
1.7.2.1

_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to