mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 13:25:57 -06:00
Move the header link icon to the end
This commit is contained in:
parent
0207e441eb
commit
1b59b258bc
@ -49,19 +49,6 @@
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-header {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.section-header a:hover {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.section-header-link {
|
|
||||||
position: absolute;
|
|
||||||
left: -20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.section-header-link svg {
|
.section-header-link svg {
|
||||||
width: 15px;
|
width: 15px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<h{{ .Level }} id="{{ .Anchor | safeURL }}" class="section-header">
|
<h{{ .Level }} id="{{ .Anchor | safeURL }}" class="section-header">
|
||||||
|
{{ .Text | safeHTML }}
|
||||||
<a href="#{{ .Anchor | safeURL }}">
|
<a href="#{{ .Anchor | safeURL }}">
|
||||||
<span class="section-header-link">
|
<span class="section-header-link">
|
||||||
{{ partial "icon.html" "link" }}
|
{{ partial "icon.html" "link" }}
|
||||||
</span>
|
</span>
|
||||||
{{ .Text | safeHTML }}
|
|
||||||
</a>
|
</a>
|
||||||
</h{{ .Level }}>
|
</h{{ .Level }}>
|
||||||
|
Loading…
Reference in New Issue
Block a user