diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2019-10-16 19:02:32 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-10-16 19:06:00 -0400 |
| commit | 37f9bfa62dcdab64fdae2c5f850d1025f7db0201 (patch) | |
| tree | f120b6f86b6a5527c9359106897b17a6ffea1001 /coverage/htmlfiles/style.scss | |
| parent | 58745222dc174c0a93e3ae95797b71a2f1b38425 (diff) | |
| download | python-coveragepy-git-37f9bfa62dcdab64fdae2c5f850d1025f7db0201.tar.gz | |
Annotations should appear when hovering the text line, but not other parts of #source.p
Diffstat (limited to 'coverage/htmlfiles/style.scss')
| -rw-r--r-- | coverage/htmlfiles/style.scss | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/coverage/htmlfiles/style.scss b/coverage/htmlfiles/style.scss index c0d88ebb..619c428c 100644 --- a/coverage/htmlfiles/style.scss +++ b/coverage/htmlfiles/style.scss @@ -297,7 +297,12 @@ $context-panel-color: #aaeeff; &:hover { background: $pln-hover-color; + + & ~ .r .annotate.long { + display: block; + } } + // Syntax coloring .com { color: green; @@ -368,15 +373,6 @@ $context-panel-color: #aaeeff; } } - .annotate.long { - @extend %in-text-popup; - width: 30em; - right: 2.5em; - } - - &:hover .annotate.long { - display: block; - } } .r { @@ -390,6 +386,16 @@ $context-panel-color: #aaeeff; font-family: georgia; color: #666; padding-right: .5em; + + &.short:hover ~ .long { + display: block; + } + + &.long { + @extend %in-text-popup; + width: 30em; + right: 2.5em; + } } input { |
