ni_nitdoc: removed useless bottom margin with empty footer text
authorAlexandre Terrasa <alexandre@moz-code.org>
Thu, 8 Aug 2013 14:12:07 +0000 (10:12 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Thu, 8 Aug 2013 14:12:07 +0000 (10:12 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

share/nitdoc/styles/main.css
src/ni_nitdoc.nit

index 40cb7bd..af49faa 100644 (file)
@@ -84,7 +84,7 @@ header {
 .content {\r
        position: fixed;\r
        top: 50px;\r
-       bottom: 2em;\r
+       bottom: 0em;\r
        margin-left: 265px;\r
        width: 667px;\r
        overflow-y:     scroll;\r
@@ -96,6 +96,10 @@ header {
        width: 910px;\r
 }\r
 \r
+.content.footed {\r
+       bottom: 2em;\r
+}\r
+\r
 footer {\r
        position: fixed;\r
        bottom: 0;\r
index 3b74788..b6e62e6 100644 (file)
@@ -337,7 +337,9 @@ class NitdocOverview
        end
 
        redef fun content do
-               append("<div class='content fullpage'>")
+               var footed = ""
+               if ctx.opt_custom_footer_text.value != null then footed = "footed"
+               append("<div class='content fullpage {footed}'>")
                var title = "Overview"
                if ctx.opt_custom_title.value != null then
                        title = ctx.opt_custom_title.value.to_s
@@ -412,7 +414,9 @@ class NitdocFullindex
        end
 
        redef fun content do
-               append("<div class='content fullpage'>")
+               var footed = ""
+               if ctx.opt_custom_footer_text.value != null then footed = "footed"
+               append("<div class='content fullpage {footed}'>")
                append("<h1>Full Index</h1>")
                module_column
                classes_column
@@ -510,7 +514,9 @@ class NitdocModule
 
        redef fun content do
                sidebar
-               append("<div class='content'>")
+               var footed = ""
+               if ctx.opt_custom_footer_text.value != null then footed = "footed"
+               append("<div class='content {footed}'>")
                append("<h1>{mmodule.name}</h1>")
                append("<div class='subtitle info'>")
                mmodule.html_signature(self)
@@ -748,7 +754,9 @@ class NitdocClass
                properties_column
                inheritance_column
                append("</div>")
-               append("<div class='content'>")
+               var footed = ""
+               if ctx.opt_custom_footer_text.value != null then footed = "footed"
+               append("<div class='content {footed}'>")
                class_doc
                append("</div>")
        end