From 2a92d27ea86aa31bf5ef4de1b380372ebd2d6987 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Thu, 8 Aug 2013 10:12:07 -0400 Subject: [PATCH] ni_nitdoc: removed useless bottom margin with empty footer text Signed-off-by: Alexandre Terrasa --- share/nitdoc/styles/main.css | 6 +++++- src/ni_nitdoc.nit | 16 ++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/share/nitdoc/styles/main.css b/share/nitdoc/styles/main.css index 40cb7bd..af49faa 100644 --- a/share/nitdoc/styles/main.css +++ b/share/nitdoc/styles/main.css @@ -84,7 +84,7 @@ header { .content { position: fixed; top: 50px; - bottom: 2em; + bottom: 0em; margin-left: 265px; width: 667px; overflow-y: scroll; @@ -96,6 +96,10 @@ header { width: 910px; } +.content.footed { + bottom: 2em; +} + footer { position: fixed; bottom: 0; diff --git a/src/ni_nitdoc.nit b/src/ni_nitdoc.nit index 3b74788..b6e62e6 100644 --- a/src/ni_nitdoc.nit +++ b/src/ni_nitdoc.nit @@ -337,7 +337,9 @@ class NitdocOverview end redef fun content do - append("
") + var footed = "" + if ctx.opt_custom_footer_text.value != null then footed = "footed" + append("
") 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("
") + var footed = "" + if ctx.opt_custom_footer_text.value != null then footed = "footed" + append("
") append("

Full Index

") module_column classes_column @@ -510,7 +514,9 @@ class NitdocModule redef fun content do sidebar - append("
") + var footed = "" + if ctx.opt_custom_footer_text.value != null then footed = "footed" + append("
") append("

{mmodule.name}

") append("
") mmodule.html_signature(self) @@ -748,7 +754,9 @@ class NitdocClass properties_column inheritance_column append("
") - append("
") + var footed = "" + if ctx.opt_custom_footer_text.value != null then footed = "footed" + append("
") class_doc append("
") end -- 1.7.9.5