Mercurial > hg
comparison mercurial/templates/static/style-paper.css @ 31784:02eb52e9d413
hgweb: rely on a specific class to change cursor type in followlines UI
The previous CSS rule would also apply in pages where followlines UI was not
available (e.g. "changeset" view at /rev/<node>/). We insert a
"followlines-select" class in JavaScript on actually selectable lines and
restrict the CSS selector to use it.
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Mon, 03 Apr 2017 09:58:36 +0200 |
parents | 04ec317b8128 |
children | 7160bdd56b84 |
comparison
equal
deleted
inserted
replaced
31783:70377de005a0 | 31784:02eb52e9d413 |
---|---|
278 | 278 |
279 .sourcelines > span:target, tr:target td { | 279 .sourcelines > span:target, tr:target td { |
280 background-color: #bfdfff; | 280 background-color: #bfdfff; |
281 } | 281 } |
282 | 282 |
283 div.overflow pre.sourcelines > span:hover { | 283 div.overflow pre.sourcelines > span.followlines-select:hover { |
284 cursor: cell; | 284 cursor: cell; |
285 } | 285 } |
286 | 286 |
287 pre.sourcelines > span.followlines-selected { | 287 pre.sourcelines > span.followlines-selected { |
288 background-color: #99C7E9; | 288 background-color: #99C7E9; |