Mercurial > hg
diff mercurial/templates/static/style-paper.css @ 19431:b8ecc3830c89
hgweb: introduce separate classes for stripey background
Introduce stripes2 and stripes4 classes to support different structure.
They will be useful to implement stripes with pure CSS everywhere instead
of current server-side implementation.
author | Alexander Plavin <me@aplavin.ru> |
---|---|
date | Fri, 12 Jul 2013 23:47:56 +0400 |
parents | 5ec5097b4c0f |
children | e92d4b8530cb |
line wrap: on
line diff
--- a/mercurial/templates/static/style-paper.css Fri Jul 12 15:58:13 2013 +0400 +++ b/mercurial/templates/static/style-paper.css Fri Jul 12 23:47:56 2013 +0400 @@ -94,8 +94,12 @@ .age { white-space:nowrap; } .date { white-space:nowrap; } .indexlinks { white-space:nowrap; } -.parity0 { background-color: #f0f0f0; } -.parity1 { background-color: white; } +.parity0, +.stripes4 > :nth-child(4n+1), +.stripes2 > :nth-child(2n+1) { background-color: #f0f0f0; } +.parity1, +.stripes4 > :nth-child(4n+3), +.stripes2 > :nth-child(2n+2) { background-color: white; } .plusline { color: green; } .minusline { color: #dc143c; } /* crimson */ .atline { color: purple; } @@ -244,9 +248,6 @@ content: counter(lineno); } -.sourcelines > span:nth-child(4n+1) { background-color: #f0f0f0; } -.sourcelines > span:nth-child(4n+3) { background-color: white; } - .sourcelines > span:target { background-color: #ffff99; }