Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Debrigode committed Jan 19, 2024
1 parent 8a19610 commit 773f623
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
4 changes: 4 additions & 0 deletions public/assets/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@
.table-legend-td-brighten {
width: 9px !important;
}

.sticky-top-legend {
top: 5px !important;
}
39 changes: 38 additions & 1 deletion templates/pages/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,44 @@
{% set counter = 0 %}

{% block content %}
<div class="row">
<div class="row row-cards">

<div class="col-2">
<div class="sticky-top sticky-top-legend">
<div class="card">
<div class="card-body">
<h3 class="card-title">
<strong>Legend</strong>
</h3>
<div class="table-responsive">
<table class="table table-borderless table-vcenter table-sm">
<tbody>
{% if knownlinks is defined %}
{% for link in knownlinks %}
<tr>
<td>
<table class="table-legend">
<tr>
{% if configapplication_graph('brighten_negative') %}
<td class="table-legend-td table-legend-td-brighten" style="background-color: #{{ link.color }}">&nbsp;</td>
<td class="table-legend-td table-legend-td-brighten" style="opacity: 0.73; background-color: #{{ link.color }}">&nbsp;</td>
{% else %}
<td class="table-legend-td" style="background-color: #{{ link.color }}">&nbsp;</td>
{% endif %}
</tr>
</table>
</td>
<td class="small">{{ link.descr }}</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="col">
<div class="row row-cards">
<div class="space-y">
Expand Down

0 comments on commit 773f623

Please sign in to comment.