mirror of
https://github.com/danog/sass-site.git
synced 2024-12-12 17:37:36 +01:00
7cc3b1b375
* Make link headers look and work more like GitHub's * Automatically generate links for all headers * Flash headers when they're selected * update readme
43 lines
635 B
SCSS
43 lines
635 B
SCSS
h1, h2, h3, h4, h5, h6 {
|
|
a.anchor {
|
|
display: block;
|
|
float: left;
|
|
vertical-align: middle;
|
|
margin: {
|
|
left: -1.5rem;
|
|
top: -3px;
|
|
}
|
|
width: 1.5rem;
|
|
background: none;
|
|
border: 0;
|
|
|
|
&::after {
|
|
visibility: hidden;
|
|
font: {
|
|
size: 1rem;
|
|
weight: normal;
|
|
}
|
|
content: "\1F517";
|
|
}
|
|
}
|
|
|
|
&:hover a.anchor::after {
|
|
visibility: visible;
|
|
}
|
|
|
|
&:target {
|
|
animation-name: highlight-header;
|
|
animation-duration: 5s;
|
|
}
|
|
}
|
|
|
|
@keyframes highlight-header {
|
|
from {
|
|
background-color: $sl-color--dawn-pink;
|
|
}
|
|
|
|
to {
|
|
background-color: unset;
|
|
}
|
|
}
|