Fix header anchor alignment (#635)

This commit is contained in:
Yangshun Tay 2018-05-04 08:29:04 -07:00 committed by Joel Marcey
parent 9c98142fea
commit be54c8f035
3 changed files with 13 additions and 10 deletions

View file

@ -83,15 +83,22 @@ a.anchor {
}
a.hash-link {
float: left;
line-height: 1;
padding-right: 4px;
margin-top: 4px;
margin-left: -20px;
line-height: 1.2;
opacity: 0;
transition: opacity 0.3s;
}
a.hash-link:hover {
opacity: 1 !important;
transition: none;
}
a.hash-link .hash-link-icon {
vertical-align: middle;
}
h1:hover .hash-link,
h2:hover .hash-link,
h3:hover .hash-link,
@ -99,10 +106,6 @@ h4:hover .hash-link {
opacity: 0.5;
transition: none;
}
a.hash-link:hover {
opacity: 1!important;
transition: none;
}
blockquote {
padding: 15px 30px 15px 15px;