in css plugin icon on left and middle
authorMateusz Półrola <mateusz.polrola@comarch.pl>
Fri, 10 Sep 2010 13:34:02 +0000 (15:34 +0200)
committerMateusz Półrola <mateusz.polrola@comarch.pl>
Fri, 10 Sep 2010 13:34:02 +0000 (15:34 +0200)
data/css/images/key-background.png
data/css/style.css
data/xsl/xsl.xsl

index 4f32dd2..79b5921 100644 (file)
Binary files a/data/css/images/key-background.png and b/data/css/images/key-background.png differ
index 5f03e05..d67bd43 100644 (file)
@@ -2,13 +2,15 @@ body, html, body *, html * {
        margin                  : 0px;
        padding                 : 0px;
        color                   : #eee;
-       font-size               : 10pt;
+       font-size               : 14pt;
        font-family             : Tahoma, Helvetica, Arial, Arial, sans-serif;
 } 
 body {
        background-color        : black;
 }
 
+
+
 div.tab {
        display                 : block;
        margin                  : 4px;
@@ -47,6 +49,14 @@ div.info {
        background-image        : url("images/header-background.png");
        background-repeat       : repeat-y;
        background-position     : -3 0;
+       vertical-align          : middle;
+}
+
+img.icon {
+       vertical-align          : middle;
+       float                   : left;
+       height                  : 16px;
+       padding                 : 5px;
 }
 
 
@@ -56,6 +66,7 @@ div.key {
 
        background-image        : url("images/key-background.png");
        background-repeat       : no-repeat;
+       background-size         : 100% auto;
        background-position     : center;
 
        border-radius           : 10px 10px 40px 40px;
index ab99f61..d79990a 100644 (file)
 <xsl:template match="info">
        <div class="info">
                <xsl:variable name="path" select="@path"/>
-       
+               <img class="icon" src="{$path}"/>
                <xsl:if test="@bookmark = 'true'">
                        <img src="$STAR$" width="16" height="16"/>   
                </xsl:if>
                <xsl:value-of select="."/> 
-               <br/>
-               <img src="{$path}" height="16"/>        
        </div>
 </xsl:template>