Skip to content

Commit eabbcdc

Browse files
committed
fix link tpl -refs #2681
1 parent aa88f20 commit eabbcdc

File tree

2 files changed

+52
-18
lines changed

2 files changed

+52
-18
lines changed

assets/css/scss/_base.scss

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2667,7 +2667,39 @@ hr {
26672667
color: #006633;
26682668
text-align: center;
26692669
}
2670-
2670+
/****** LINKS ******/
2671+
.link-page{
2672+
.list-group-item{
2673+
.link-title{
2674+
display: inline-block;
2675+
width: 100%;
2676+
.toolbar{
2677+
float: right;
2678+
opacity: 0;
2679+
}
2680+
}
2681+
&:hover{
2682+
.link-title{
2683+
.toolbar{
2684+
opacity: 1;
2685+
}
2686+
}
2687+
}
2688+
}
2689+
.link-accordion{
2690+
.card{
2691+
margin-bottom: 0;
2692+
.card-header{
2693+
padding: .5rem;
2694+
.title-card{
2695+
padding-top: 5px;
2696+
display: inline-block;
2697+
padding-left: 10px;
2698+
}
2699+
}
2700+
}
2701+
}
2702+
}
26712703
/****** SKILLS ******/
26722704
.skill-options{
26732705
.legend {
Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,48 @@
11
{% block content %}
22
{% autoescape false %}
3-
<ul>
3+
<div class="link-page">
4+
<ul class="list-group mb-3">
45
{% for item in list_not_category %}
5-
<li>
6-
<h4>
6+
<li class="list-group-item">
7+
<h5 class="link-title mb-1">
78
{{ item.link_validator }}
89
<a href="{{ item.url }}" class="{{ item.visibility == true ? '' : 'text-muted' }}" target="{{ item.target }}">{{ item.title }}</a>
9-
</h4>
10-
<div class="float-right">
11-
<div class="btn-group btn-group-sm">
12-
{{ item.toolbar }}
10+
<div class="toolbar">
11+
<div class="btn-group btn-group-sm">
12+
{{ item.toolbar }}
13+
</div>
1314
</div>
14-
</div>
15+
</h5>
1516
{{ item.description }}
1617
</li>
1718
{% endfor %}
1819
</ul>
1920

2021
{% for item in list_in_category %}
21-
<div class="accordion" id="accordion_category">
22+
<div class="link-accordion accordion" id="accordion_category">
2223
<div class="card">
23-
<h4 class="card-header" id="heading_{{ item.id }}">
24-
<a href="#" class="btn btn-link" data-toggle="collapse" data-target="#collapse_{{ item.id }}" aria-expanded="true" aria-controls="collapse_{{ item.id }}">
24+
<h5 class="card-header" id="heading_{{ item.id }}">
25+
<a class="title-card" href="#" data-toggle="collapse" data-target="#collapse_{{ item.id }}" aria-expanded="true" aria-controls="collapse_{{ item.id }}">
2526
{{ item.title }}
2627
</a>
2728
<div class="float-right">
2829
<div class="btn-group btn-group-sm">
2930
{{ item.tools }}
3031
</div>
3132
</div>
32-
</h4>
33+
</h5>
3334
<div id="collapse_{{ item.id }}" class="collapse show" aria-labelledby="heading_{{ item.id }}" data-parent="#accordion_category">
3435
<div class="card-body">
3536
{{ item.description }}
3637

37-
<ul>
38+
<ul class="list-group">
3839
{% for row in item.children %}
39-
<li>
40-
<h4>
40+
<li class="list-group-item list-group-item-action">
41+
<h5 class="mb-1">
4142
{{ row.link_validator }}
4243
<a href="{{ row.url }}" class="{{ row.visibility == true ? '' : 'text-muted' }}" target="{{ row.target }}">{{ row.title }}</a>
43-
</h4>
44-
<div class="float-right">
44+
</h5>
45+
<div class="toolbar">
4546
<div class="btn-group btn-group-sm">
4647
{{ row.toolbar }}
4748
</div>
@@ -56,5 +57,6 @@
5657
</div>
5758
</div>
5859
{% endfor %}
60+
</div>
5961
{% endautoescape %}
6062
{% endblock %}

0 commit comments

Comments
 (0)