[Pkg-javascript-commits] [d3-tip.js] 171/277: added examples for E, S, and W too
bhuvan krishna
bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
bhuvan-guest pushed a commit to branch master
in repository d3-tip.js.
commit 87c20b0ba8ee5494201a0371702ea0713843822e
Author: Dean Malmgren <dean.malmgren at datascopeanalytics.com>
Date: Sat Sep 14 07:30:15 2013 -0500
added examples for E, S, and W too
---
docs/styling-and-modifying-tooltips.md | 33 +++++++++++++++++++++++++++++----
1 file changed, 29 insertions(+), 4 deletions(-)
diff --git a/docs/styling-and-modifying-tooltips.md b/docs/styling-and-modifying-tooltips.md
index 66ba0c3..c68b262 100644
--- a/docs/styling-and-modifying-tooltips.md
+++ b/docs/styling-and-modifying-tooltips.md
@@ -29,15 +29,40 @@ A proxy to d3's [selection.attr](https://github.com/mbostock/d3/wiki/Selections#
width: 100%;
line-height: 1;
color: rgba(0, 0, 0, 0.8);
- content: "\25BC";
position: absolute;
- text-align: center;
}
-/* Style northward tooltips differently */
+/* Nrthward 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: "\25B6";
+ margin: -4px 0 0 -1px;
+ top: 50%;
+ left: 100%;
+}
+
+/* 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: "\25C0";
+ margin: -4px 0 0 0;
+ top: 50%;
+ left: -8px;
}
-```
\ No newline at end of file
+```
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/d3-tip.js.git
More information about the Pkg-javascript-commits
mailing list