Skip to content

Commit 0134efd

Browse files
committed
[csswg] make self-link styling a bit more subtle.
1 parent 3333218 commit 0134efd

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

default.css

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,26 @@ ul.indexlist li li { margin-left: 1em }
9191
ul.indexlist a { font-weight: bold; }
9292

9393
/* .self-link is a link to the element */
94-
.heading, .issue { position: relative; }
94+
.heading, .issue, .note, .example, li, dt { position: relative; }
9595
a.self-link {
9696
position: absolute;
9797
top: 0;
98-
left: -2em;
99-
width: 1.2em;
98+
left: -2.5em;
99+
width: 2em;
100+
height: 2em;
100101
text-align: center;
101102
border: none;
103+
transition: opacity .2s;
104+
opacity: .5;
105+
}
106+
a.self-link:hover {
107+
opacity: 1;
108+
}
109+
.heading > a.self-link {
110+
font-size: 83%;
102111
}
103112
li > a.self-link {
104-
left: -3em;
113+
left: -3.5em;
105114
}
106115

107116
/* Examples */

0 commit comments

Comments
 (0)