X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Fstatic%2Fcss%2Fsite.css;h=8fb3d808cf455621608dea304723236fda2be0f6;hb=592b68ef2f19231a4cb97a3c1d1148cf0317b43b;hp=8922c7f522bafbf3b9043c92787a2091a72e46c6;hpb=4cb0a92e3b0dc6b6d779c35c5405735ae55d550b;p=catagits%2FGitalist.git diff --git a/root/static/css/site.css b/root/static/css/site.css index 8922c7f..8fb3d80 100644 --- a/root/static/css/site.css +++ b/root/static/css/site.css @@ -1,36 +1,45 @@ -/* XXX Colours. Lots of colours. */ -#body { +body { margin: 1em; } -#commit-nav { - padding-bottom: 4px; - border-bottom: solid 1px #ccc; - font-style: italic; -} - thead, tfoot { - color: #ddd; + /* FTR all table columns should be sortable hence the colour to indicate clickableness. */ + color: navy; font-size: small; - font-weight: bold; + font-weight: bold !important; +} +thead th { + border-bottom: solid 1px #777; +} +tfoot td { + border-top: solid 1px #777; } -/* /commit page */ -.commit-message { +.listing tbody tr:nth-child(even) { + background-color: #f7f7f7; +} +.listing tbody tr:hover { + background-color: #fefeaa; +} + +span.chroma-hash { font-family: monospace; + font-size: 1em; + font-style: normal; } -div.commit-message { - background-color: #ddd; - padding: 5px; +div.chroma-hash { + float: right; } -.commit-info dt { - font-weight: bold; + +.time-since { + font-style: italic; } -.commit-info dd { - font-family: monospace; +.author, .head { + font-weight: bold; + font-family: "Trebuchet MS", "Lucida Grande", serif; } -.filename { +.file-name, .file-mode { font-family: monospace; } .action-list { @@ -43,6 +52,83 @@ div.commit-message { font-weight: bold; } + +/* header */ +#page-header { + height: 25px; + padding: 8px; + font-size: 1.5em; + font-weight: bold; + background-color: #d9d8d1; +} + +img.logo { + float: right; + border-width: 0px; + margin-top: 4px; +} + +/* footer */ +#page-footer { + height: 20px; + padding: 8px; + margin-top: 10px; + font-style: italic; + background-color: #d9d8d1; + border-top: solid 1px #777; +} + +/* actions include */ +.actions { + padding-bottom: 4px 0; + font-style: italic; + border-top: solid 1px #777; + border-bottom: solid 1px #777; + margin-bottom: 10px; + padding: 5px 0; +} + +/* pager include */ +.pager { + text-align: center; +} + +/* search include */ +#page-search { + text-align: right; + float: right; + font-size: 0.7em; + padding-right: 20px; +} + +/* shortlog include */ +table.shortlog tbody tr { + padding: 1px 0px; +} +table.shortlog tbody td { + padding: 0 1px; +} + +/* /commit page */ +.commit-message { + font-family: monospace; + font-size: 1.2em; +} +div.commit-message { + margin-bottom: 10px; +} +pre.commit-message { + border-top: solid 2px red; + border-bottom: solid 2px green; + padding: 5px; +} +.commit-info dt { + font-weight: bold; +} +.commit-info dd { + font-family: monospace; +} + /* /heads */ .heads .head { font-weight: bold; @@ -51,7 +137,28 @@ div.commit-message { text-decoration: underline; } table.heads { - width: 50%; + width: 75%; +} + +/* /blame */ +#blame pre, #blame tt { + margin: 0; + font-size: 0.9em; +} +#blame .commit-info { +} +#blame .lineno { + text-align: right; + padding: 0 8px; +} +#blame a { + text-decoration: none; +} +#blame tr.alt { + background-color: #f7f7f7; +} +#blame tbody tr:hover { + background-color: #fefeaa; } /* /blob */ @@ -63,3 +170,107 @@ pre.blob { padding-left: 15px; margin: 10px 15px; } + +/* /blobdiff etc */ + +.diff-head, .diff-index { + font-family: monospace; +} +.diff-head { + border-top: solid 1px red; +} +.diff-index { + border-bottom: solid 1px green; +} + +/* /commitdiff */ +.diff-patch { + font-size: 0.8em; +} + +/* /log */ +#log .entry { + border: solid 1px grey; + margin: 5px 0; + padding: 5px; +} +#log .meta { + border-top: dotted 1px #ddd; + color: #311; +} +#log table.summary { + width: 33%; + font-size: 0.9em; +} +#log .message { + font-family: monospace; + font-size: 1.15em; + /* XXX Need to enforce find the CSS switch to force the chroma-hash below the message box */ +} +#log .age { + float: right; + font-size: 0.85em; + font-style: italic; +} + +/* /summary */ +#stats { + float: right; +} + +/* /tree */ +table.tree { + width: 65%; +} + +/* Formerly of gitweb.css */ + +span.refs span { + padding: 0px 4px; + font-size: 80%; + /* XXX needs more families */ + font-family: Verdana; + letter-spacing: -1px; + border: 1px solid; + background-color: #ffaaff; + border-color: #ffccff #ff00ee #ff00ee #ffccff; +} + +span.refs span.ref { + background-color: #aaaaff; + border-color: #ccccff #0033cc #0033cc #ccccff; +} + +span.refs span.tag { + background-color: #ffffaa; + border-color: #ffffcc #ffee00 #ffee00 #ffffcc; +} + +span.refs span.head { + background-color: #aaffaa; + border-color: #ccffcc #00cc33 #00cc33 #ccffcc; +} +span.refs a { + text-decoration: none; +} + +a.rss_logo { + float: right; + padding: 3px 0px; + width: 35px; + line-height: 10px; + border: 1px solid; + border-color: #fcc7a5 #7d3302 #3e1a01 #ff954e; + color: #ffffff; + background-color: #ff6600; + font-weight: bold; + font-family: sans-serif; + font-size: 70%; + font-style: normal; + text-align: center; + text-decoration: none; +} + +a.rss_logo:hover { + background-color: #ee5500; +}