Skip to content

Commit c9c3804

Browse files
committed
Style for header links
1 parent 38eb807 commit c9c3804

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

static/shared/css/documentation.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,45 @@ h1 {
7777
-webkit-backface-visibility: hidden;
7878
font-size: 36px;
7979
margin: 0em 0 0.5em;
80+
position: relative;
81+
}
82+
83+
.header-anchor {
84+
position: absolute;
85+
left: -32px;
86+
top: 0;
87+
opacity: 0;
88+
padding: 0 10px;
89+
height: 100%;
90+
width: 20px;
91+
font: normal normal 16px octicons;
92+
color: #000;
93+
-webkit-font-smoothing: antialiased;
94+
color: #333;
95+
96+
-webkit-transition: opacity 0.3s ease-in-out 0s;
97+
-moz-transition: opacity 0.3s ease-in-out 0s;
98+
-ms-transition: opacity 0.3s ease-in-out 0s;
99+
}
100+
101+
h1 .header-anchor {
102+
line-height: 55px;
103+
}
104+
105+
.content h1:hover .header-anchor, .content h2:hover .header-anchor, .content h3:hover .header-anchor, .content h4:hover .header-anchor, .header-anchor:hover {
106+
opacity: 1;
107+
text-decoration: none;
108+
}
109+
110+
.header-anchor:before {
111+
content:'\f05c';
80112
}
81113

82114
h2 {
83115
font-size: 16px;
84116
color: #333;
85117
margin: 2em auto 1em;
118+
position: relative;
86119
}
87120

88121
.library-list h1 {
@@ -137,6 +170,11 @@ h3 {
137170
font-size: 14px;
138171
color: #333;
139172
margin: 1.5em 0 .5em;
173+
position: relative;
174+
}
175+
176+
h4 {
177+
position: relative;
140178
}
141179

142180
h5 {

0 commit comments

Comments
 (0)