Skip to content

Commit 59c2745

Browse files
committed
developer - better mark clickable items
1 parent 83756f7 commit 59c2745

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

_sass/developer.scss

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,16 @@ th, td {
1212
border: 1px solid black;
1313
padding: 8px;
1414
text-align: left;
15-
}
16-
15+
}
1716
.hidden {
1817
display: none;
19-
}
18+
}
19+
.clickable {
20+
cursor: pointer;
21+
padding: 0.2em;
22+
}
23+
.clickable:hover {
24+
color: #D3163C;
25+
background-color: #CCCCCC;
26+
padding: 0.2em;
27+
}

developer.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
<p>The architecture of the ipfixprobe can be described by the following diagram:</p>
1212
<img src="/images/ipfixprobe_architecture.jpg" style = "width: 100%;">
1313
<p>Process plugin can export data. Export format of each plugin is described in this section</p>
14-
<div class="text editable" style="display: flex;flex-direction: column;justify-content: center;align-items: center;">
14+
<div class="text editable" style="display: flex;flex-direction: column;justify-content: center;align-items: left;">
1515
{% for export_table in sorted_developers %}
1616
<hr>
17-
<p class="post-details"></p>
18-
<h1 id = "{{export_table.title}}" >{{export_table.title}}</h1>
17+
<h1 class="clickable" id = "{{export_table.title}}">{{export_table.title}}</h1>
1918
{% assign textId = export_table.title | append: "_text" %}
2019
<p id = "{{textId}}" class = "hidden">{{export_table.description}}</p>
2120
{% assign tableId = export_table.title | append: "_table" %}
@@ -47,7 +46,7 @@ <h1 id = "{{export_table.title}}" >{{export_table.title}}</h1>
4746

4847
<script>
4948
document.addEventListener("DOMContentLoaded", function () {
50-
document.querySelectorAll("h1").forEach(function (toggleButton) {
49+
document.querySelectorAll(".clickable").forEach(function (toggleButton) {
5150
const description = document.getElementById(toggleButton.id + "_text");
5251
const table = document.getElementById(toggleButton.id + "_table");
5352

0 commit comments

Comments
 (0)