Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] support automatic vega tooltips
- Loading branch information
Showing
5 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
.vg-tooltip { | ||
visibility: hidden; | ||
padding: 6px; | ||
border-radius: 3px; | ||
position: fixed; | ||
z-index: 2000; | ||
font-family: sans-serif; | ||
font-size: 11px; | ||
|
||
/* The default look of the tooltip is the same as .light-theme | ||
but it can be overwritten by .dark-theme */ | ||
background-color: rgba(255, 255, 255, 0.9); | ||
border: 1px solid #d9d9d9; | ||
color: black; | ||
} | ||
.vg-tooltip td.key, .vg-tooltip td.value { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
.vg-tooltip td.key { | ||
color: #808080; | ||
max-width: 150px; | ||
text-align: right; | ||
padding-right: 1px; | ||
} | ||
.vg-tooltip td.value { | ||
max-width: 200px; | ||
text-align: left; | ||
} | ||
|
||
/* Dark and light color themes */ | ||
.vg-tooltip.dark-theme { | ||
background-color: rgba(64, 64, 64, 0.9); | ||
border: none; | ||
color: white; | ||
} | ||
.vg-tooltip.dark-theme td.key { | ||
color: #bfbfbf; | ||
} | ||
.vg-tooltip.light-theme { | ||
background-color: rgba(255, 255, 255, 0.9); | ||
border: 1px solid #d9d9d9; | ||
color: black; | ||
} | ||
.vg-tooltip.light-theme td.key { | ||
color: #808080; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters