Skip to content

Commit 706661f

Browse files
committed
[csswg] Tweak self-link styling.
1 parent aa71d3c commit 706661f

1 file changed

Lines changed: 8 additions & 19 deletions

File tree

default.css

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -90,28 +90,17 @@ ul.indexlist li { margin-left: 0; list-style: none }
9090
ul.indexlist li li { margin-left: 1em }
9191
ul.indexlist a { font-weight: bold; }
9292

93-
/* The self-link that headings may have. */
94-
a.section-link {
95-
background: #ddd;
96-
border: none;
97-
color: #444;
98-
display: none;
99-
font-size: 16px;
100-
height: 1.4em;
101-
margin: -0.2em .5em;
93+
/* .self-link is a link to the element */
94+
.heading, .issue { position: relative; }
95+
a.self-link {
96+
position: absolute;
97+
top: 0;
98+
left: -2em;
99+
width: 1.2em;
102100
text-align: center;
103-
vertical-align: text-bottom;
104-
width: 1.4em;
105-
}
106-
h2:hover a.section-link,
107-
h3:hover a.section-link,
108-
h4:hover a.section-link,
109-
h5:hover a.section-link,
110-
h6:hover a.section-link {
111-
display: inline-block;
101+
border: none;
112102
}
113103

114-
115104
/* Examples */
116105

117106
.example {

0 commit comments

Comments
 (0)