[Pkg-javascript-commits] [d3-tip.js] 116/277: tweak styling docs
bhuvan krishna
bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:22 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 a8aa82859e993167a17b7696134b9efa5f772172
Author: Justin Palmer <justin at github.com>
Date: Sun Apr 21 15:37:47 2013 -0700
tweak styling docs
---
docs/styling-and-modifying-tooltips.md | 66 +++++++++++++++++-----------------
1 file changed, 33 insertions(+), 33 deletions(-)
diff --git a/docs/styling-and-modifying-tooltips.md b/docs/styling-and-modifying-tooltips.md
index b38a93a..66ba0c3 100644
--- a/docs/styling-and-modifying-tooltips.md
+++ b/docs/styling-and-modifying-tooltips.md
@@ -4,40 +4,40 @@
Tooltips make no assumption about how they will be styled. Any style is left up
to the user.
-### Example Styles
-``` css
- .d3-tip {
- line-height: 1;
- font-weight: bold;
- padding: 12px;
- background: rgba(0, 0, 0, 0.8);
- color: #fff;
- border-radius: 2px;
- }
+### tip.style
+A proxy to d3's [selection.style](https://github.com/mbostock/d3/wiki/Selections#wiki-style).
- /* 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);
- content: "\25BC";
- position: absolute;
- text-align: center;
- }
+### tip.attr
+A proxy to d3's [selection.attr](https://github.com/mbostock/d3/wiki/Selections#wiki-attr).
- /* Style northward tooltips differently */
- .d3-tip.n:after {
- margin: -1px 0 0 0;
- top: 100%;
- left: 0;
- }
- ```
+### Example Styles
+``` css
+.d3-tip {
+ line-height: 1;
+ font-weight: bold;
+ padding: 12px;
+ background: rgba(0, 0, 0, 0.8);
+ color: #fff;
+ border-radius: 2px;
+}
- ### tip.style
- A proxy to d3's [selection.style](https://github.com/mbostock/d3/wiki/Selections#wiki-style).
+/* 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);
+ content: "\25BC";
+ position: absolute;
+ text-align: center;
+}
- ### tip.attr
- A proxy to d3's [selection.attr](https://github.com/mbostock/d3/wiki/Selections#wiki-attr).
\ No newline at end of file
+/* Style northward tooltips differently */
+.d3-tip.n:after {
+ margin: -1px 0 0 0;
+ top: 100%;
+ left: 0;
+}
+```
\ 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