# HG changeset patch # User Paul Boddie # Date 1275416148 -7200 # Node ID d211c584e3f2a1106464c2e8c5ef73e0b4838589 A theme for hgweb and hgwebdir which resembles the Mercurial Web site and related Wiki theme. diff -r 000000000000 -r d211c584e3f2 themes/mercurialweb/footer.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/themes/mercurialweb/footer.tmpl Tue Jun 01 20:15:48 2010 +0200 @@ -0,0 +1,11 @@ +{motd} + + + + + diff -r 000000000000 -r d211c584e3f2 themes/mercurialweb/header.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/themes/mercurialweb/header.tmpl Tue Jun 01 20:15:48 2010 +0200 @@ -0,0 +1,6 @@ + + + + + + diff -r 000000000000 -r d211c584e3f2 themes/mercurialweb/index.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/themes/mercurialweb/index.tmpl Tue Jun 01 20:15:48 2010 +0200 @@ -0,0 +1,27 @@ +{header} +Repository Index + + + + + + +
+ + + + + + + + + + {entries%indexentry} +
NameDescriptionContactLast change 
+ +
+ +{footer} diff -r 000000000000 -r d211c584e3f2 themes/mercurialweb/indexentry.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/themes/mercurialweb/indexentry.tmpl Tue Jun 01 20:15:48 2010 +0200 @@ -0,0 +1,7 @@ + + {name|escape} + {description} + {contact|obfuscate} + {lastchange|age} ago + RSS Atom {archives%archiveentry} + diff -r 000000000000 -r d211c584e3f2 themes/mercurialweb/map --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/themes/mercurialweb/map Tue Jun 01 20:15:48 2010 +0200 @@ -0,0 +1,11 @@ +default = 'summary' +mimetype = 'text/html; charset={encoding}' + +header = header.tmpl +footer = footer.tmpl +index = index.tmpl +indexentry = indexentry.tmpl +summary = summary.tmpl + +urlparameter = '{separator}{name}={value|urlescape}' +archiveentry = '{type|escape} ' diff -r 000000000000 -r d211c584e3f2 themes/mercurialweb/static/style-mercurialweb.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/themes/mercurialweb/static/style-mercurialweb.css Tue Jun 01 20:15:48 2010 +0200 @@ -0,0 +1,244 @@ +/* mercurialweb-styles.css - stylesheets resembling the MercurialWikiTheme styles + +Copyright (c) 2010 Paul Boddie +Copyright (c) 2001, 2002, 2003 by Juergen Hermann +*/ + +/* content styles */ + +body { + padding: 0; + margin: 0; + border: 0; + + /* Styling similar to the main site. */ + + font-family: Helvetica, Verdana, Arial, sans-serif; + color: #111; + margin: 0 5em; +} + +a, img { + border: 0; +} + +/* Styling of headings from the main site. */ + +h1 { font-size: 2em; } +h2 { font-size: 1.6em; } +h3 { font-size: 1.3em; } + +a:link, a:visited { color: #00b5f1; text-decoration: none; } +a:link:hover, a:link:active, a:link:focus, +a:visited:hover, a:visited:active, a:visited:focus { text-decoration: underline; } + +input, select { + + /* Styling similar to the main site. */ + + font-family: Helvetica, Arial, sans-serif; + font-size: 0.8571em; +} + +/* Navigational and editing controls. */ + +.controls { + float: right; + text-align: right; +} + +#navibar { + display: inline-block; + margin: 17px 0 2px 0; + padding: 0; + vertical-align: bottom; +} + +#navibar li { + display: inline; + margin: 0; + padding: 0; +} + +#navibar a, #navibar li.current span { + + /* Need a block to redefine the height. */ + + display: inline-block; + height: 42px; + line-height: 42px; + + color: #fff; + margin: 0; + padding: 0 16px; + background: #999; + text-decoration: none; +} + +#navibar a:hover, #navibar a:focus, #navibar li.current a, #navibar li.current span { + background: #00b5f1; + text-decoration: none; +} + +/* Other elements. */ + +#logo { + float: left; + margin: 0; + padding: 0; + + /* For text only logo */ + + font-size: larger; + font-weight: bold; +} + +#logo img { + vertical-align: bottom; +} + +#logo a { + color: black; + text-decoration: none; +} + +#searchform { + display: inline-block; + + /* Margin and padding correspond to the navibar settings. */ + + margin: 17px 0 2px 0; + padding: 0 16px; + background: #999; + + /* Height settings correspond to navibar list entries. */ + + height: 42px; + line-height: 42px; +} + +#searchform input { + vertical-align: middle; +} + +#searchform label, .actionsmenu label { + font-size: smaller; + color: #fff; +} + +#pageline, .pageline { + + /* Prevent mixing of header and content elements. */ + + clear: both; + margin: 0; + padding: 0; + border-bottom: 1px solid #ccc; +} + +#message { + clear: both; + margin: 0; + padding: 5px 10px; + + /* Styling similar to the advanced search. */ + + border-bottom: 1px solid #ADB9CC; + background-color: #E7E7E7; +} + +#message p { + margin: 5px 0; + padding: 0; +} + +#message div.buttons { + font-weight: normal; +} + +.dialog form { + margin: 0 15px; +} + +.dialog td { + border: none; + padding: 5px; +} + +.dialog td.label { + text-align: right; + font-weight: bold; + width: 25%; +} + +*[dir="rtl"] .dialog td.label { + text-align: left; +} + +.dialog td.content input { + width: 100%; +} + +#page { + + /* Prevent mixing of header and content elements. */ + + clear: both; + background-color: white; + margin: 0; + padding: 0.25em; +} + +#credits { + float: right; + + /* Styling similar to the main site. */ + + font-family: Verdana, Helvetica, Arial, sans-serif; + font-size: .6428em; + padding: 10px 25px; +} + +#credits li { + display: inline; + padding: 0 2px; + margin: 0 4px; +} + +#credits img { + vertical-align: middle; +} + +#credits a { + text-decoration: none; +} + +.diff { + width:99%; +} + +.diff-header { + font-weight: bold; +} + +.diff-title { + background-color: #C0C0C0; +} + +.diff-added { + background-color: #E0FFE0; + vertical-align: sub; +} + +.diff-removed { + background-color: #FFFFE0; + vertical-align: sub; +} + +.diff-added span { + background-color: #80FF80; +} + +.diff-removed span { + background-color: #FFFF80; +} diff -r 000000000000 -r d211c584e3f2 themes/mercurialweb/summary.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/themes/mercurialweb/summary.tmpl Tue Jun 01 20:15:48 2010 +0200 @@ -0,0 +1,17 @@ +{header} +Summary: {repo} + + + + + + +{footer}