- From: SVG Working Group repository <cam+svgwgrepo@mcc.id.au>
- Date: Thu, 22 May 2014 04:01:57 -0700
- To: public-svg-wg@w3.org
details: https://svgwg.org/hg/svg2/rev/4aede694086b
branches:
changeset: 671:4aede694086b
user: Dirk Schulze <dschulze@adobe.com>
date: Thu May 22 13:01:09 2014 +0200
description:
Add style sheets information for heading self links.
diffstat:
master/style/default_svg.css | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diffs (36 lines):
diff --git a/master/style/default_svg.css b/master/style/default_svg.css
--- a/master/style/default_svg.css
+++ b/master/style/default_svg.css
@@ -451,8 +451,31 @@ table.graph > tbody > tr > td { padding-
.math var, .math sub, .math sup {
font-family: serif;
}
.separated {
word-spacing: 1em;
}
.definitions > dt > dfn { font-style: normal; }
+
+/* .self-link is a link to the element */
+.heading, li, dt { position: relative; }
+a.self-link {
+ position: absolute;
+ top: 0;
+ left: -2.5em;
+ width: 2em;
+ height: 2em;
+ text-align: center;
+ border: none;
+ transition: opacity .2s;
+ opacity: .5;
+ text-decoration: none;
+}
+a.self-link:hover {
+ opacity: 1;
+}
+.heading > a.self-link {
+ font-size: 83%;
+}
+
+.heading > a.self-link::before { content: "ยง"; }
\ No newline at end of file
Received on Thursday, 22 May 2014 11:02:21 UTC