(Arne Babenhauserheide)
2014-02-09: polish of the new style. polish of the new style.
diff --git a/staticsite.py b/staticsite.py --- a/staticsite.py +++ b/staticsite.py @@ -37,6 +37,7 @@ templates = { <html><head> <meta charset="utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!--duplicate for older browsers--> + <link href='http://fonts.googleapis.com/css?family=OFL+Sorts+Mill+Goudy+TT:regular,italic' rel='stylesheet' type='text/css' /> <link rel="stylesheet" href="{relpath}style.css" type="text/css" media="screen" /> <link rel="stylesheet" href="{relpath}print.css" type="text/css" media="print" /> <title>{title}</title> @@ -68,6 +69,7 @@ templates = { <html><head> <meta charset="utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!--duplicate for older browsers--> + <link href='http://fonts.googleapis.com/css?family=OFL+Sorts+Mill+Goudy+TT:regular,italic' rel='stylesheet' type='text/css' /> <link rel="stylesheet" href="{relpath}style.css" type="text/css" media="screen" /> <link rel="stylesheet" href="{relpath}print.css" type="text/css" media="print" /> <title>{forkname}</title> @@ -379,7 +381,9 @@ body .wrap .top header a:hover{ color:#e50053; } body .wrap .top nav{ - font:normal 18px/50px 'OFL Sorts Mill Goudy','OFL Sorts Mill Goudy TT',serif;text-align:right;text-transform:lowercase;padding-right:2px;width:398px;float:left; + /* reduced font size and/or line height compared to steve losh (18px/50px), + because we can have a long lis tof forks and use <sup> elements for the bugs.*/ + font:normal 18px/35px 'OFL Sorts Mill Goudy','OFL Sorts Mill Goudy TT',serif;text-align:right;text-transform:lowercase;padding-right:2px;width:398px;float:left; } body .wrap .top nav .sep{ padding:0 4px;color:#666; @@ -706,11 +710,11 @@ def writeoverview(ui, repo, target, name # start with the nav nav = "" # now the links to the log and the files. - nav += "<a href='commits'>" + _("changelog") + "</a> | <a href='src/" + repo["tip"].hex() + "/'>" + _("files") + "</a>" + nav += "<a href='commits'>" + _("changelog") + "</a> - <a href='src/" + repo["tip"].hex() + "/'>" + _("files") + "</a>" # and the bugs openbugs, resolvedbugs = getbugs(ui, repo) if openbugs or resolvedbugs: - nav += " | <a href=\"bugs\">" + _("bugs") + "</a>" + nav += " - <a href=\"bugs\">" + _("bugs") + "</a>" if openbugs: nav += " <span class=\"bugnumbers\">(<span class=\"openbugnumber\"><a href=\"bugs#open\">" + str(len(openbugs)) + "!</a></span> " else: @@ -721,7 +725,7 @@ def writeoverview(ui, repo, target, name ui.debug("[staticsite] writenav: header: forks\n") forks = getforkinfo(ui, target) if forks: - nav += " | " + _("forks: ") + nav += " - " + _("forks: ") for forkname, forkuri in forks.items(): ui.debug("[staticsite] writenav: fork: " + forkname + ": " + forkuri + "\n") ui.debug("[staticsite] writenav: forks: getforkdir\n")