FAQ: Added links

This commit is contained in:
Igor Scheller 2020-12-27 17:55:41 +01:00
parent 85044bc833
commit ea199f9485
2 changed files with 26 additions and 2 deletions

View File

@ -262,6 +262,26 @@ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
margin-top: @line-height-computed; margin-top: @line-height-computed;
} }
span.ref-id[id] {
padding-top: 50px;
}
.faq {
.panel-heading h3 {
margin: 0;
small a.ref-link {
display: none;
}
&:hover {
small a.ref-link {
display: inherit;
}
}
}
}
@keyframes pulse { @keyframes pulse {
0% { 0% {
transform: rotate(0deg); transform: rotate(0deg);

View File

@ -28,10 +28,14 @@
{% block row %} {% block row %}
{% for item in items %} {% for item in items %}
<div class="col-md-12" id="faq-{{ item.id }}"> <div class="col-md-12 faq">
<span id="faq-{{ item.id }}" class="ref-id"></span>
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
{{ item.question }} <h3>
{{ item.question }}
<small><a class="ref-link" href="#faq-{{ item.id }}">{{ m.glyphicon('link') }}</a></small>
</h3>
</div> </div>
<div class="panel-body"> <div class="panel-body">