Add anchors to link to on same page
This commit is contained in:
@@ -71,6 +71,18 @@ b, strong {
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
|
||||
&.anchor {
|
||||
display: block;
|
||||
height: 0;
|
||||
padding-top: $header-height-mobile;
|
||||
margin-top: -$header-height-mobile;
|
||||
|
||||
@include mq($from: tablet) {
|
||||
padding-top: $header-height-desktop;
|
||||
margin-top: -$header-height-desktop;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
|
||||
@@ -15,3 +15,7 @@ $content-width-max: 1280px;
|
||||
|
||||
// Default padding
|
||||
$padding-default: 16px;
|
||||
|
||||
// Header height
|
||||
$header-height-mobile: 100px;
|
||||
$header-height-desktop: 160px;
|
||||
+1
@@ -1 +1,2 @@
|
||||
<a class="anchor" id="c{data.uid}"></a>
|
||||
<f:render section="Main" optional="true"/>
|
||||
|
||||
Reference in New Issue
Block a user