]> granicus.if.org Git - apache/commitdiff
if there's no sidebar, there's no need to squeeze the content.
authorAndré Malo <nd@apache.org>
Wed, 9 Apr 2003 14:54:42 +0000 (14:54 +0000)
committerAndré Malo <nd@apache.org>
Wed, 9 Apr 2003 14:54:42 +0000 (14:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99309 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/css/manual.css
docs/manual/style/xsl/manualpage.xsl

index 3085be20cc236e7cebc76e980d198a9e23f2613a..5c71c31e6df6bd7c2834a9bcdfd9378e7628e549 100644 (file)
@@ -730,10 +730,14 @@ div#page-content {
 }
 
 /* unsqueeze on some pages... */
+body.no-sidebar div#page-content,
 body#index-page div#page-content {
-    margin-left: 30px;
     margin-right: 0;
     padding-right: 0;
+}
+
+body#index-page div#page-content {
+    margin-left: 30px;
     padding-bottom: 1em;
 }
 
index 41849ba206dc9d42310cb56698449ddbb24331e1..af7f2ae81121d6de9e5f9a10ab0899a631c85c25 100644 (file)
 </xsl:text> <!-- insert line break -->
 
       <body id="manual-page">
+        <!-- unsqueeze if there's no sidebar -->
+        <xsl:if test="not(count(section) > 1 or seealso)">
+          <xsl:attribute name="class">no-sidebar</xsl:attribute>
+        </xsl:if>
+
         <xsl:call-template name="top"/>          
 
         <div id="page-content">