aboutsummaryrefslogtreecommitdiffstats
path: root/html/git-deps-tips.css
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2015-01-07 15:58:19 +0000
committerAdam Spiers <git@adamspiers.org>2015-01-08 01:27:45 +0000
commita8e8f3a618ac01a7fbf2993702847f6379fb5778 (patch)
treeaa782362fc99dcda0bc801465eb2935e469aee29 /html/git-deps-tips.css
parente980d332e152fce145527e0f1c27d2d560eb0332 (diff)
downloadgit-deps-a8e8f3a618ac01a7fbf2993702847f6379fb5778.tar.gz
add a basic commit tip
Diffstat (limited to 'html/git-deps-tips.css')
-rw-r--r--html/git-deps-tips.css55
1 files changed, 55 insertions, 0 deletions
diff --git a/html/git-deps-tips.css b/html/git-deps-tips.css
new file mode 100644
index 0000000..fc9a4ec
--- /dev/null
+++ b/html/git-deps-tips.css
@@ -0,0 +1,55 @@
+.d3-tip {
+ line-height: 1;
+ font-weight: bold;
+ padding: 12px;
+ background: rgba(0, 0, 0, 0.8);
+ color: #fff;
+ border-radius: 2px;
+ pointer-events: none;
+}
+
+/* Creates a small triangle extender for the tooltip */
+.d3-tip:after {
+ box-sizing: border-box;
+ display: inline;
+ font-size: 10px;
+ width: 100%;
+ line-height: 1;
+ color: rgba(0, 0, 0, 0.8);
+ position: absolute;
+ pointer-events: none;
+}
+
+/* Northward tooltips */
+.d3-tip.n:after {
+ content: "\25BC";
+ margin: -1px 0 0 0;
+ top: 100%;
+ left: 0;
+ text-align: center;
+}
+
+/* Eastward tooltips */
+.d3-tip.e:after {
+ content: "\25C0";
+ margin: -4px 0 0 0;
+ top: 50%;
+ left: -8px;
+}
+
+/* Southward tooltips */
+.d3-tip.s:after {
+ content: "\25B2";
+ margin: 0 0 1px 0;
+ top: -8px;
+ left: 0;
+ text-align: center;
+}
+
+/* Westward tooltips */
+.d3-tip.w:after {
+ content: "\25B6";
+ margin: -4px 0 0 -1px;
+ top: 50%;
+ left: 100%;
+}