pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r4120 - trunk/htdocs


From: grumbel at BerliOS
Subject: [Pingus-CVS] r4120 - trunk/htdocs
Date: Mon, 12 Apr 2010 20:21:27 +0200

Author: grumbel
Date: 2010-04-12 20:21:26 +0200 (Mon, 12 Apr 2010)
New Revision: 4120

Modified:
   trunk/htdocs/default.css
   trunk/htdocs/default.xsl
   trunk/htdocs/faq.xml
Log:
More layout improvements


Modified: trunk/htdocs/default.css
===================================================================
--- trunk/htdocs/default.css    2010-04-12 18:00:17 UTC (rev 4119)
+++ trunk/htdocs/default.css    2010-04-12 18:21:26 UTC (rev 4120)
@@ -68,7 +68,7 @@
 { 
   border-bottom-style: solid;
   border-bottom-width: thin;
-  border-bottom-color: lightgrey;
+  border-bottom-color: lightgray;
   padding-left: 0.5em;
 }
 
@@ -81,7 +81,7 @@
   border-style: solid solid none solid;
   border-color: black;
   border-width: thin;
-  padding-left: 1em;
+  padding-left: 3em;
   margin-top: 0;
   margin-bottom: 0;
   position: relative;
@@ -109,7 +109,7 @@
 
 div.nav ul
 { 
-  list-style-type: none
+  list-style-type: none;
   padding: 0;
   margin-bottom: 0;
 }
@@ -127,7 +127,7 @@
   font-weight: bold;
   border-bottom-style: solid;
   border-bottom-width: thin;
-  border-bottom-color: lightgrey;
+  border-bottom-color: lightgray;
   padding-bottom: 0.25em;
 }
 
@@ -205,20 +205,10 @@
   color: red;
 }
 
-table.question {
-  font-family: Sans-Serif;
-  background: #607f9b;
-  border-style: solid;
-  border-width: thin;
-  border-color: black;
-  color: white;
-  padding-left: 1em;
+div.answer {
+  margin-bottom: 1.5em;
 }
 
-P.answer {
-  color: black;
-}
-
 TT.irc {
   color: rgb(0,0,150);
 }

Modified: trunk/htdocs/default.xsl
===================================================================
--- trunk/htdocs/default.xsl    2010-04-12 18:00:17 UTC (rev 4119)
+++ trunk/htdocs/default.xsl    2010-04-12 18:21:26 UTC (rev 4120)
@@ -104,10 +104,6 @@
           <div class="footer">
             Copyright &#169; 1998-2010 <a 
href="http://pingus.seul.org/~grumbel/";>Ingo Ruhnke</a>, &lt;<a 
href="mailto:address@hidden";>address@hidden</a>&gt;
           </div>
-          <p style="text-align: center;">
-            <a href="http://validator.w3.org/check/referer";>html4</a>/
-            <a href="http://jigsaw.w3.org/css-validator/";>css2</a>
-          </p>
         </div>
       </body>
     </html>
@@ -227,29 +223,17 @@
             <xsl:apply-templates/></a></li>
       </xsl:for-each>
     </ul>
-    <hr/>
+
     <xsl:apply-templates/>
   </xsl:template>
 
   <xsl:template match="faq">
-    <p></p>
-    <table width="100%"  class="question">
-      <colgroup width="60%" />
-      <tr><td valign="top">
-          <div id="faq{generate-id(question)}">
-            <xsl:apply-templates select="question/node()"/>
-          </div>
-        </td>
-        
-        
-        <td align="right" valign="top">
-          <small>Last update:<xsl:value-of select="@date"/></small>
-          [<small><a href="#faqtoc">Up</a></small>]
-        </td>
-      </tr>
-    </table>
-
-    <p class="answer"><xsl:apply-templates select="answer/node()"/> </p>
+    <div style="float: right;">
+      <small><xsl:value-of select="@date"/></small>
+      [<small><a href="#faqtoc">Up</a></small>]
+    </div>
+    <h3 id="faq{generate-id(question)}"><xsl:apply-templates 
select="question/node()"/></h3> 
+    <div class="answer"><xsl:apply-templates select="answer/node()"/></div>
   </xsl:template>
 
   <xsl:template match="news">

Modified: trunk/htdocs/faq.xml
===================================================================
--- trunk/htdocs/faq.xml        2010-04-12 18:00:17 UTC (rev 4119)
+++ trunk/htdocs/faq.xml        2010-04-12 18:21:26 UTC (rev 4120)
@@ -12,6 +12,7 @@
   </section>
 
   <div id="faqtoc"/>
+
   <section title="FAQs - Frequently Asked Questions (and Answers)">
     <faq-list>
       <faq date="14 Jan 2007">
@@ -112,42 +113,42 @@
         </question>
 
         <answer>
-          There are multiple ways to tune the running speed of
-          Pingus. <br /> Firstly, reducing the screen colour
-          depth (to 16bit, for example) on a slower computer might
-          give you a boost of around 50% percent, depending on your
-          hardware. X11 doesn't allow switching color depth at run
-          time, and the exact instructions for doing this are outside
-          of the scope of this FAQ. Consult your distribution
-          documentation for more information.<br /><br />
+          <p>There are multiple ways to tune the running speed of
+            Pingus. <br /> Firstly, reducing the screen colour
+            depth (to 16bit, for example) on a slower computer might
+            give you a boost of around 50% percent, depending on your
+            hardware. X11 doesn't allow switching color depth at run
+            time, and the exact instructions for doing this are outside
+            of the scope of this FAQ. Consult your distribution
+            documentation for more information.</p>
 
-          Secondly, a gain in speed can be achieved by
-          reducing the display resolution of Pingus. For example, if
-          you want to run Pingus at 640x480 you can do this with the
-          following command:<br />
+          <p>Secondly, a gain in speed can be achieved by
+            reducing the display resolution of Pingus. For example, if
+            you want to run Pingus at 640x480 you can do this with the
+            following command:</p>
 
-          <tt>pingus -g 640x480</tt><br/><br />
+          <p><code>pingus -g 640x480</code></p>
 
-          Thirdly, you can run Pingus in a <em>fast-mode</em>.  This
-          mode disables all costly particle effects and the
-          background.  Thus, Pingus will look less pretty, but will
-          probably be a good amount faster. Fast-mode can be turned on
-          with:<br />
+          <p>Thirdly, you can run Pingus in a <em>fast-mode</em>.  This
+            mode disables all costly particle effects and the
+            background.  Thus, Pingus will look less pretty, but will
+            probably be a good amount faster. Fast-mode can be turned on
+            with:</p>
 
-          <tt>pingus --fast-mode</tt><br/> Remember, the
-          <em>fast-mode</em> has lots of room for improvement. If it
-          doesn't help you make Pingus run fast enough, not all is
-          lost. <br /><br />
+          <p><code>pingus --fast-mode</code></p>
+          
+          <p>Remember, the <em>fast-mode</em> has lots of room for
+            improvement. If it doesn't help you make Pingus run fast
+            enough, not all is lost.</p>
+          
+          <p>If that is not enough, you might also want to play
+            with the <tt>min-frame-skip</tt> and <tt>max-frame-skip</tt>
+            options.  Both should result in a more uniform frame-rate.
+            This can make the game jerky, but playability can be
+            improved nonetheless.</p>
 
-          If that is not enough, you might also want to play
-          with the <tt>min-frame-skip</tt> and <tt>max-frame-skip</tt>
-          options.  Both should result in a more uniform frame-rate.
-          This can make the game jerky, but playability can be
-          improved nonetheless.<br /><br />
-
-          Finally, the 'F11' key can help you a great deal in
-          your optimisation process by showing the frame-rate counter.
-          <br /><br />
+          <p>Finally, the 'F11' key can help you a great deal in
+            your optimisation process by showing the frame-rate counter.</p>
         </answer>
       </faq>
       <faq date="13 Dec 2009">





reply via email to

[Prev in Thread] Current Thread [Next in Thread]