mirror of
https://github.com/danog/sass-site.git
synced 2024-11-27 04:24:50 +01:00
526366f2e8
# Conflicts: # source/assets/sass/components/_alerts.scss # source/assets/sass/components/_buttons.scss # source/assets/sass/visual-design/_theme.scss
78 lines
1.1 KiB
SCSS
78 lines
1.1 KiB
SCSS
@use '../visual-design/theme';
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6,
|
|
.signature {
|
|
a.anchor {
|
|
display: block;
|
|
float: left;
|
|
vertical-align: middle;
|
|
margin-top: -3px;
|
|
width: var(--sl-gutter--sesqui);
|
|
background: none;
|
|
border: 0;
|
|
|
|
&::after {
|
|
content: '\1F517';
|
|
font-size: var(--sl-font-size--small);
|
|
font-weight: normal;
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
|
|
&:hover a.anchor::after {
|
|
visibility: visible;
|
|
}
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
a.anchor {
|
|
margin-left: var(--sl-gutter--sesqui-negative);
|
|
}
|
|
|
|
&:target {
|
|
animation-name: highlight-header;
|
|
animation-duration: 5s;
|
|
}
|
|
}
|
|
|
|
@keyframes highlight-header {
|
|
from {
|
|
background-color: theme.$sl-color--dawn-pink;
|
|
}
|
|
|
|
to {
|
|
background-color: unset;
|
|
}
|
|
}
|
|
|
|
.signature {
|
|
a.anchor {
|
|
margin-left: var(--sl-gutter--double-sesqui-negative);
|
|
}
|
|
|
|
.sl-c-callout--function:target & {
|
|
animation-name: highlight-signature;
|
|
animation-duration: 5s;
|
|
}
|
|
}
|
|
|
|
@keyframes highlight-signature {
|
|
from {
|
|
background-color: theme.$sl-color--dawn-pink;
|
|
}
|
|
|
|
to {
|
|
background-color: var(--sl-color-code--bg);
|
|
}
|
|
}
|