# HG changeset patch # User Matt Mackall # Date 1213225258 18000 # Node ID d1a312daa5744614a4750cb7aacdbece4f6d8e3a # Parent 5fb42da426cd8cb1e737171fdb3c1e028299e172 hgweb: add paper style derived from coal diff -r 5fb42da426cd -r d1a312daa574 templates/paper/header.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/paper/header.tmpl Wed Jun 11 18:00:58 2008 -0500 @@ -0,0 +1,7 @@ + + + + + + + diff -r 5fb42da426cd -r d1a312daa574 templates/paper/map --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/paper/map Wed Jun 11 18:00:58 2008 -0500 @@ -0,0 +1,69 @@ +default = 'shortlog' + +mimetype = 'text/html; charset={encoding}' +header = header.tmpl +footer = ../coal/footer.tmpl +search = ../coal/search.tmpl + +changelog = ../coal/shortlog.tmpl +shortlog = ../coal/shortlog.tmpl +shortlogentry = ../coal/shortlogentry.tmpl + +naventry = '{label|escape} ' +navshortentry = '{label|escape} ' +filenaventry = '{label|escape} ' +filedifflink = '{file|escape} ' +filenodelink = '{file|escape} ' +fileellipses = '...' +changelogentry = ../coal/shortlogentry.tmpl +searchentry = ../coal/shortlogentry.tmpl +changeset = ../coal/changeset.tmpl +manifest = ../coal/manifest.tmpl + +direntry = ' {basename|escape}/drwxr-xr-x' +fileentry = ' {basename|escape}{size}{permissions|permissions}' + +filerevision = ../coal/filerevision.tmpl +fileannotate = ../coal/fileannotate.tmpl +filediff = ../coal/filediff.tmpl +filelog = ../coal/filelog.tmpl +fileline = '{linenumber}{line|escape}' +filelogentry = ../coal/filelogentry.tmpl + +annotateline = '{author|user}@{rev}{linenumber}{line|escape}' + +diffblock = '{lines}
' +difflineplus = '{linenumber}{line|escape}' +difflineminus = '{linenumber}{line|escape}' +difflineat = '{linenumber}{line|escape}' +diffline = '{linenumber}{line|escape}' + +changelogparent = 'parent {rev}:{node|short}' + +changesetparent = '{node|short} ' + +filerevparent = '{rename%filerename}{node|short} ' +filerevchild = '{node|short} ' + +filerename = '{file|escape}@' +filelogrename = 'base:{file|escape}@{node|short}' +fileannotateparent = 'parent:{rename%filerename}{node|short}' +changesetchild = '{node|short}' +changelogchild = 'child{node|short}' +fileannotatechild = 'child:{node|short}' +tags = tags.tmpl +tagentry = '{tag|escape}{node|short}' +changelogtag = 'tag:{tag|escape}' +changelogtag = '{name|escape} ' +changesettag = '{tag|escape} ' +filediffparent = 'parent {rev}:{node|short}' +filelogparent = 'parent {rev}:{node|short}' +filediffchild = 'child {rev}:{node|short}' +filelogchild = 'child {rev}:{node|short}' +indexentry = '{name|escape}{description}{contact|obfuscate}{lastchange|age} agoRSS Atom {archives%archiveentry}' +index = ../coal/index.tmpl +archiveentry = '
  • {type|escape}
  • ' +notfound = ../coal/notfound.tmpl +error = ../coal/error.tmpl +urlparameter = '{separator}{name}={value|urlescape}' +hiddenformentry = '' diff -r 5fb42da426cd -r d1a312daa574 templates/static/style-paper.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/static/style-paper.css Wed Jun 11 18:00:58 2008 -0500 @@ -0,0 +1,152 @@ +body { + margin: 0; + padding: 0; + background: white; + font-family: sans-serif; +} + +.container { + padding-left: 115px; +} + +.main { + position: relative; + background: white; + padding: 2em 2em 2em 0; +} + +.overflow { + width: 100%; + overflow: auto; +} + +.menu { + width: 90px; + margin: 0; + font-size: 80%; + text-align: left; + position: fixed; + top: 20px; + left: 20px; + right: auto; +} + +.menu ul { + list-style: none; + padding: 0; + margin: 10px 0 0 0; + border-left: 2px solid #999; +} + +.menu li { + margin-bottom: 3px; + padding: 2px 4px; + background: white; + color: black; + font-weight: normal; +} + +.menu li.active { + font-weight: bold; +} + +.menu a { color: black; display: block; } + +.search { + position: absolute; + top: .7em; + right: 2em; +} + +a { text-decoration:none; } +.age { white-space:nowrap; } +.date { white-space:nowrap; } +.indexlinks { white-space:nowrap; } +.parity0 { background-color: #f5f5f5; } +.parity1 { background-color: white; } +.plusline { color: green; } +.minusline { color: red; } +.atline { color: purple; } + +.navigate { + text-align: right; + font-size: 60%; + margin: 1em 0 1em 0; +} + +.tag { + color: #999; + font-size: 70%; + font-weight: normal; + margin-left: .5em; + vertical-align: baseline; +} + +/* Common */ +pre { margin: 0; } + +h2 { font-size: 120%; border-bottom: 1px solid #999; } +h3 { + margin-top: -.7em; + font-size: 100%; +} + +/* log and tags tables */ +.bigtable { + border-bottom: 1px solid #999; + border-collapse: collapse; + font-size: 90%; + width: 100%; + font-weight: normal; + text-align: left; +} + +.bigtable td { + padding: 1px 4px 1px 4px; + vertical-align: top; +} + +.bigtable th { + padding: 1px 4px 1px 4px; + border-bottom: 1px solid #999; + font-size: smaller; +} +.bigtable tr { border: none; } +.bigtable .age { width: 6em; } +.bigtable .author { width: 10em; } +.bigtable .description { } +.bigtable .node { width: 5em; font-family: monospace;} +.bigtable .lineno { width: 2em; text-align: right;} +.bigtable .lineno a { color: #999; font-size: smaller; font-family: monospace;} +.bigtable td.source { font-family: monospace; white-space: pre; } +.bigtable .permissions { width: 8em; text-align: left;} +.bigtable .size { width: 5em; text-align: right; } +.bigtable .annotate { text-align: right; } +.bigtable td.annotate { font-size: smaller; } + +.fileline { font-family: monospace; } +.fileline img { border: 0; } + +/* Changeset entry */ +#changesetEntry { + border-collapse: collapse; + font-size: 90%; + width: 100%; + margin-bottom: 1em; +} + +#changesetEntry th { + padding: 1px 4px 1px 4px; + width: 4em; + text-align: right; + font-weight: normal; + color: #999; + margin-right: .5em; + vertical-align: top; +} + +div.description { + border-left: 2px solid #999; + margin: 1em 0 1em 0; + padding: .3em; +}