Skip to content

Commit 1462db3

Browse files
committed
Add .section-link styling.
1 parent 7cf227c commit 1462db3

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

default.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,28 @@ 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 .5em;
102+
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;
112+
}
113+
114+
93115
/* Examples */
94116

95117
.example {

0 commit comments

Comments
 (0)