From 19afd20d2e80a3c4243a28dff02c8d89a83e8be0 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Sat, 20 Jul 2013 21:24:11 -0400 Subject: [PATCH] ni_nitdoc: modified CSS for better readability Signed-off-by: Alexandre Terrasa --- share/nitdoc/styles/main.css | 27 +++++++++++++++++++++++---- src/ni_nitdoc.nit | 12 ++++++------ 2 files changed, 29 insertions(+), 10 deletions(-) diff --git a/share/nitdoc/styles/main.css b/share/nitdoc/styles/main.css index 023e728..746ad35 100644 --- a/share/nitdoc/styles/main.css +++ b/share/nitdoc/styles/main.css @@ -294,14 +294,23 @@ nav ul li span, color: #6C6C6C; } +.content a { + color: #0D8921; +} + .content a:hover { color: #333; } -.content a { +.info a { + color: #333; +} + +.info a:hover { color: #0D8921; } + article .info .code { float: right; } @@ -410,9 +419,9 @@ nav h3 a.fold { } /* Icons */ -.vtype.public { background-image: url('../resources/icons/vtype_public.png')} -.vtype.protected { background-image: url('../resources/icons/vtype_protected.png')} -.vtype.private { background-image: url('../resources/icons/vtype_private.png')} +.type.public { background-image: url('../resources/icons/vtype_public.png')} +.type.protected { background-image: url('../resources/icons/vtype_protected.png')} +.type.private { background-image: url('../resources/icons/vtype_private.png')} .init.public { background-image: url('../resources/icons/const_public.png')} .init.protected { background-image: url('../resources/icons/const_protected.png')} .init.private { background-image: url('../resources/icons/const_private.png')} @@ -845,3 +854,13 @@ fieldset { #preSave{ display: none; } + +a.newComment { + padding: 5px; + color: #0D8921; + display: block; + margin: 1em 0px; +} +a.newComment: hover { + color: #333; +} diff --git a/src/ni_nitdoc.nit b/src/ni_nitdoc.nit index b61d547..fded40a 100644 --- a/src/ni_nitdoc.nit +++ b/src/ni_nitdoc.nit @@ -894,9 +894,9 @@ class NitdocClass var nowner = mbuilder.mmodule2nmodule[owner] append("

Methods refined in {owner.link(mbuilder)}

") if nowner.short_comment.is_empty then - append("

{owner.name}

") + append("

{owner.link(mbuilder)}

") else - append("

{owner.name}: {nowner.short_comment}

") + append("

{owner.link(mbuilder)}: {nowner.short_comment}

") end end if concern2meths.has_key(owner) then @@ -909,9 +909,9 @@ class NitdocClass var nmodule = mbuilder.mmodule2nmodule[mmodule] if mmodule != mclass.intro_mmodule and mmodule != mclass.public_owner then if nmodule.short_comment.is_empty then - append("

{mmodule.name}

") + append("

{mmodule.link(mbuilder)}

") else - append("

{mmodule.name}: {nmodule.short_comment}

") + append("

{mmodule.link(mbuilder)}: {nmodule.short_comment}

") end end var mmethods = concern2meths[mmodule] @@ -1288,7 +1288,7 @@ redef class MMethodDef end res.append("CancelCommit
")
 		# definitions block
-		res.append("

") + res.append("

") page.nitdoc.mainmodule.linearize_mpropdefs(mprop.mpropdefs) var previous_defs = new Array[MMethodDef] var next_defs = new Array[MMethodDef] @@ -1375,7 +1375,7 @@ redef class MVirtualTypeDef end res.append("CancelCommit

")
 		# definitions block
-		res.append("

") + res.append("

") page.nitdoc.mainmodule.linearize_mpropdefs(mprop.mpropdefs) var previous_defs = new Array[MVirtualTypeDef] var next_defs = new Array[MVirtualTypeDef] -- 1.7.9.5