##// END OF EJS Templates
hgweb (coal/paper): make file, diff and annotate easier to render...
hgweb (coal/paper): make file, diff and annotate easier to render This patch removes tables altogether for file and diff, and removes one column from annotate, making firefox's incremental renderer much faster for large files.

File last commit:

r7394:03b60f2f default
r7394:03b60f2f default
Show More
style-paper.css
223 lines | 3.8 KiB | text/css | CssLexer
Matt Mackall
hgweb: add paper style derived from coal
r6661 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;
}
rubik
coal/paper: fixed box via an expression for IE < 7
r6864 #.main {
width: 98%;
}
Matt Mackall
hgweb: add paper style derived from coal
r6661 .overflow {
width: 100%;
overflow: auto;
}
.menu {
width: 90px;
margin: 0;
font-size: 80%;
text-align: left;
Dirkjan Ochtman
paper: don't keep the menu affixed to the top...
r7313 position: absolute;
Matt Mackall
hgweb: add paper style derived from coal
r6661 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;
}
Benoit Allard
coal/paper: show a search tip when hovering over search box...
r7299 form.search span {
display: none;
position: absolute;
top: 40px;
right: 0px;
width: 190px;
padding: 5px;
background: #ffc;
font-size: 70%;
border: 1px solid yellow;
-moz-border-radius: 5px; /* this works only in camino/firefox */
-webkit-border-radius: 5px; /* this is just for Safari */
}
form.search:hover span { display: block; }
Matt Mackall
hgweb: add paper style derived from coal
r6661 a { text-decoration:none; }
.age { white-space:nowrap; }
.date { white-space:nowrap; }
.indexlinks { white-space:nowrap; }
Matt Mackall
hgweb: improve color discrimination for paper and coal
r7340 .parity0 { background-color: #f0f0f0; }
Matt Mackall
hgweb: add paper style derived from coal
r6661 .parity1 { background-color: white; }
.plusline { color: green; }
Matt Mackall
hgweb: improve color discrimination for paper and coal
r7340 .minusline { color: #dc143c; } /* crimson */
Matt Mackall
hgweb: add paper style derived from coal
r6661 .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; }
Dirkjan Ochtman
coal/paper: link repo name to hgweb root
r7314 h2 a { color: #000; }
Matt Mackall
hgweb: add paper style derived from coal
r6661 h3 {
margin-top: -.7em;
font-size: 100%;
}
/* log and tags tables */
.bigtable {
border-bottom: 1px solid #999;
border-collapse: collapse;
font-size: 90%;
Thomas Arendsen Hein
Kill trailing whitespace in templates
r7327 width: 100%;
Matt Mackall
hgweb: add paper style derived from coal
r6661 font-weight: normal;
text-align: left;
}
.bigtable td {
padding: 1px 4px 1px 4px;
vertical-align: top;
}
Thomas Arendsen Hein
Kill trailing whitespace in templates
r7327 .bigtable th {
Matt Mackall
hgweb: add paper style derived from coal
r6661 padding: 1px 4px 1px 4px;
Thomas Arendsen Hein
Kill trailing whitespace in templates
r7327 border-bottom: 1px solid #999;
Matt Mackall
hgweb: add paper style derived from coal
r6661 font-size: smaller;
}
.bigtable tr { border: none; }
.bigtable .age { width: 6em; }
Dirkjan Ochtman
coal/paper: widen author column in log table
r7181 .bigtable .author { width: 12em; }
Matt Mackall
hgweb: add paper style derived from coal
r6661 .bigtable .description { }
.bigtable .node { width: 5em; font-family: monospace;}
.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; }
Brendan Cully
hgweb (coal/paper): make file, diff and annotate easier to render...
r7394 .bigtable td.source { font-size: inherit; }
.source, .sourcefirst, .sourcelast {
font-family: monospace;
white-space: pre;
font-size: 90%;
}
.sourcefirst { border-bottom: 1px solid #999; font-weight: bold; font-size: smaller; }
.sourcelast { border-top: 1px solid #999; }
.source a { color: #999; font-size: smaller; font-family: monospace;}
.bottomline { border-bottom: 1px solid #999; }
Matt Mackall
hgweb: add paper style derived from coal
r6661
.fileline { font-family: monospace; }
.fileline img { border: 0; }
/* Changeset entry */
Thomas Arendsen Hein
Kill trailing whitespace in templates
r7327 #changesetEntry {
Matt Mackall
hgweb: add paper style derived from coal
r6661 border-collapse: collapse;
font-size: 90%;
width: 100%;
margin-bottom: 1em;
}
Thomas Arendsen Hein
Kill trailing whitespace in templates
r7327 #changesetEntry th {
Matt Mackall
hgweb: add paper style derived from coal
r6661 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;
}
Matt Mackall
make graph view work with paper style
r6692
Augie Fackler
hgweb: Fix up non-coal styles to support graph.
r6693 /* Graph */
Matt Mackall
make graph view work with paper style
r6692 div#wrapper {
position: relative;
border-top: 1px solid black;
border-bottom: 1px solid black;
margin: 0;
padding: 0;
}
canvas {
position: absolute;
z-index: 5;
top: -0.7em;
margin: 0;
}
Augie Fackler
hgweb: Fix up non-coal styles to support graph.
r6693 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;
}
Matt Mackall
make graph view work with paper style
r6692 ul#graphnodes {
position: absolute;
z-index: 10;
top: -1.0em;
list-style: none inside none;
padding: 0;
}
ul#graphnodes li .info {
display: block;
font-size: 70%;
position: relative;
top: -3px;
}