Mercurial > hg
diff mercurial/templates/static/style-paper.css @ 35529:5afe0ca59b07
paper: make actual changeset entries have backgrounds on /graph
This patch removes a separate container for backgrounds only and puts
backgrounds on changeset elements themselves. This makes it so that JS code
doesn't need to create background elements separately anymore.
There's a bit of manipulating positions of elements: every changeset entry has
a "fg" element that gets a higher z-index than <canvas> element. This
prioritizes text information, so that even if it somehow gets close to the
graph drawn on <canvas> (which has z-index of 5), it'll still be on top of it.
This can happen if commit message has a long first line and browser window is
narrow, for example.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 05 Jan 2018 18:46:06 +0800 |
parents | ab9d8d298510 |
children | 8d05938dd063 |
line wrap: on
line diff
--- a/mercurial/templates/static/style-paper.css Thu Jan 04 12:34:40 2018 +0100 +++ b/mercurial/templates/static/style-paper.css Fri Jan 05 18:46:06 2018 +0800 @@ -460,22 +460,19 @@ } ul#graphnodes { - position: absolute; - z-index: 10; - top: -1.0em; - list-style: none inside none; - padding: 0; -} - -ul#nodebgs { list-style: none inside none; padding: 0; margin: 0; - top: -0.7em; } -ul#graphnodes li, ul#nodebgs li { +ul#graphnodes li { height: 39px; + overflow: visible; +} + +ul#graphnodes li .fg { + position: absolute; + z-index: 10; } ul#graphnodes li .info {