##// END OF EJS Templates
templatefilters: add "nonempty" template filter...
templatefilters: add "nonempty" template filter It ensures that at least "(none)" is returned in case the argument passed is None or ''. This is primarily useful to render empty changelog messages for hgweb but may be useful for others, too.

File last commit:

r7327:a1758089 default
r8234:27dbe534 default
Show More
style-gitweb.css
123 lines | 3.9 KiB | text/css | CssLexer
Josef "Jeff" Sipek
[hgweb] Move CSS from headers into static files
r1778 body { font-family: sans-serif; font-size: 12px; margin:0px; border:solid #d9d8d1; border-width:1px; margin:10px; }
a { color:#0000cc; }
a:hover, a:visited, a:active { color:#880000; }
div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; }
div.page_header a:visited { color:#0000cc; }
div.page_header a:hover { color:#880000; }
div.page_nav { padding:8px; }
div.page_nav a:visited { color:#0000cc; }
div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px}
Thomas Arendsen Hein
Add #motd# to gitweb pages. Needs to pass self.motd to index template, too.
r3478 div.page_footer { padding:4px 8px; background-color: #d9d8d1; }
Josef "Jeff" Sipek
[hgweb] Move CSS from headers into static files
r1778 div.page_footer_text { float:left; color:#555555; font-style:italic; }
div.page_body { padding:8px; }
div.title, a.title {
display:block; padding:6px 8px;
font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000;
}
a.title:hover { background-color: #d9d8d1; }
div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; }
div.log_body { padding:8px 8px 8px 150px; }
Thomas Arendsen Hein
hgweb templates: Don't word wrap "foo bar ago" (e.g. "3 months\nago")...
r2130 .age { white-space:nowrap; }
Josef "Jeff" Sipek
[hgweb] Move CSS from headers into static files
r1778 span.age { position:relative; float:left; width:142px; font-style:italic; }
div.log_link {
padding:0px 8px;
font-size:10px; font-family:sans-serif; font-style:normal;
position:relative; float:left; width:136px;
}
div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; }
a.list { text-decoration:none; color:#000000; }
a.list:hover { text-decoration:underline; color:#880000; }
table { padding:8px 4px; }
th { padding:2px 5px; font-size:12px; text-align:left; }
tr.light:hover, .parity0:hover { background-color:#edece6; }
tr.dark, .parity1 { background-color:#f6f6f0; }
tr.dark:hover, .parity1:hover { background-color:#edece6; }
td { padding:2px 5px; font-size:12px; vertical-align:top; }
td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; }
Brendan Cully
gitweb: remove some line breaks in archive and rss columns....
r6218 td.indexlinks { white-space: nowrap; }
td.indexlinks a {
padding: 2px 5px; line-height: 10px;
border: 1px solid;
color: #ffffff; background-color: #7777bb;
border-color: #aaaadd #333366 #333366 #aaaadd;
font-weight: bold; text-align: center; text-decoration: none;
font-size: 10px;
}
td.indexlinks a:hover { background-color: #6666aa; }
Josef "Jeff" Sipek
[hgweb] Move CSS from headers into static files
r1778 div.pre { font-family:monospace; font-size:12px; white-space:pre; }
div.diff_info { font-family:monospace; color:#000099; background-color:#edece6; font-style:italic; }
div.index_include { border:solid #d9d8d1; border-width:0px 0px 1px; padding:12px 8px; }
div.search { margin:4px 8px; position:absolute; top:56px; right:12px }
.linenr { color:#999999; text-decoration:none }
Brendan Cully
gitweb: remove some line breaks in archive and rss columns....
r6218 div.rss_logo { float: right; white-space: nowrap; }
div.rss_logo a {
padding:3px 6px; line-height:10px;
Josef "Jeff" Sipek
[hgweb] Move CSS from headers into static files
r1778 border:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e;
color:#ffffff; background-color:#ff6600;
font-weight:bold; font-family:sans-serif; font-size:10px;
text-align:center; text-decoration:none;
}
Brendan Cully
gitweb: remove some line breaks in archive and rss columns....
r6218 div.rss_logo a:hover { background-color:#ee5500; }
TK Soh
gitweb: fix issue 349
r3022 pre { margin: 0; }
Josef "Jeff" Sipek
gitweb: Display branch and tag labels...
r4538 span.logtags span {
padding: 0px 4px;
font-size: 10px;
font-weight: normal;
border: 1px solid;
background-color: #ffaaff;
border-color: #ffccff #ff00ee #ff00ee #ffccff;
}
span.logtags span.tagtag {
background-color: #ffffaa;
border-color: #ffffcc #ffee00 #ffee00 #ffffcc;
}
span.logtags span.branchtag {
background-color: #aaffaa;
border-color: #ccffcc #00cc33 #00cc33 #ccffcc;
}
Florent Guillaume
gitweb: show branches in most of the templates
r6250 span.logtags span.inbranchtag {
background-color: #d5dde6;
border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4;
}
Augie Fackler
hgweb: Fix up non-coal styles to support graph.
r6693
/* Graph */
div#wrapper {
position: relative;
margin: 0;
padding: 0;
Dirkjan Ochtman
graph: improve script hiding tricks
r6729 margin-top: 3px;
Augie Fackler
hgweb: Fix up non-coal styles to support graph.
r6693 }
canvas {
position: absolute;
z-index: 5;
top: -0.9em;
margin: 0;
}
ul#nodebgs {
list-style: none inside none;
padding: 0;
margin: 0;
top: -0.7em;
}
Thomas Arendsen Hein
Kill trailing whitespace in templates
r7327
Augie Fackler
hgweb: Fix up non-coal styles to support graph.
r6693 ul#graphnodes li, ul#nodebgs li {
height: 39px;
}
ul#graphnodes {
position: absolute;
z-index: 10;
top: -0.8em;
list-style: none inside none;
padding: 0;
}
ul#graphnodes li .info {
display: block;
font-size: 100%;
position: relative;
top: -3px;
font-style: italic;
}