Commit e9e74cbf authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt Committed by Robert

fix contributions hidden by navbar when referenced by permalink hash. refs #521

parent 8b27b857
{% if not contribution.attached_to or not contribution.contribution.file %}
<li>
<li id="{% ref contribution %}" class="anchor">
{% if contribution.contribution.file %}
{% include 'contributions/_contribution_type_file.html' %}
{% elif contribution.contribution.group %}
......
<div class="media media-file" id="{% ref contribution %}">
<div class="media media-file">
{% include 'contributions/_contribution_avatar.html' %}
<div class="media-content">
<div class="media-body">
......
<div class="media media-comment" id="{% ref contribution %}" {% block media_style %}{% endblock %}>
<div class="media media-comment" {% block media_style %}{% endblock %}>
{% include 'contributions/_contribution_avatar.html' %}
<div class="media-content">
{% block media_content %}
......
......@@ -5,6 +5,12 @@
> li {
display: block;
margin-bottom: (@padding-large-vertical * 1.5);
&.anchor {
margin-bottom: 0;
padding-top: calc(@nav-height + @padding-large-vertical * 1.5);
margin-top: -@nav-height;
}
}
}
......
......@@ -7,3 +7,8 @@
margin-left: 1rem;
}
}
.anchor {
margin-top: -@nav-height;
padding-top: @nav-height;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment