Add heading id links

This commit is contained in:
Mahdi Dibaiee
2015-07-31 10:21:07 +04:30
parent f3d5929613
commit f577d6c9c5
4 changed files with 48 additions and 0 deletions

View File

@ -98,6 +98,37 @@ strong {
font-size: 1.3rem;
}
.post-content [id] {
position: relative;
&:hover .heading-link {
opacity: 1;
}
}
.post-content .heading-link {
display: block;
position: absolute;
width: 15px;
height: 15px;
left: -30px;
top: 10px;
padding-right: 30px;
background: url(/img/link.svg) no-repeat;
background-size: contain;
opacity: 0;
transition: opacity 0.3s ease;
&:hover {
border: none;
}
}
article .image-caption {
display: block;
text-align: center;