mirror of
https://github.com/danog/sass-site.git
synced 2024-12-15 19:07:29 +01:00
78429ae1b4
Closes #308
67 lines
1.0 KiB
Plaintext
67 lines
1.0 KiB
Plaintext
h1, h2, h3, h4, h5, h6, .signature {
|
|
a.anchor {
|
|
display: block;
|
|
float: left;
|
|
vertical-align: middle;
|
|
margin-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;
|
|
}
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
a.anchor {
|
|
margin-left: -1.5rem;
|
|
}
|
|
|
|
&:target {
|
|
animation-name: highlight-header;
|
|
animation-duration: 5s;
|
|
}
|
|
}
|
|
|
|
@keyframes highlight-header {
|
|
from {
|
|
background-color: $sl-color--dawn-pink;
|
|
}
|
|
|
|
to {
|
|
background-color: unset;
|
|
}
|
|
}
|
|
|
|
.signature {
|
|
a.anchor {
|
|
margin-left: -2.5rem;
|
|
}
|
|
|
|
.sl-c-callout--function:target & {
|
|
animation-name: highlight-signature;
|
|
animation-duration: 5s;
|
|
}
|
|
}
|
|
|
|
@keyframes highlight-signature {
|
|
from {
|
|
background-color: $sl-color--dawn-pink;
|
|
}
|
|
|
|
to {
|
|
background-color: <%= Rouge::Themes::Github.get_style(Rouge::Token::Tokens::Text)[:bg] %>;
|
|
}
|
|
}
|