Skip to content

Commit

Permalink
configurable tooltip in tree controls, WIP #167
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-brancotte committed May 6, 2021
1 parent 360c0b0 commit 3ab74db
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
14 changes: 14 additions & 0 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,20 @@ a:before {
.tree-controls .tree-control-element a:hover {
color: #5c9ad1;
}
.tree-control-element input[type="checkbox"]{
display:none;
}
.tree-control-element input[type="checkbox"]:checked+span:before{
content: "\f205";
}
.tree-control-element input[type="checkbox"]+span:before{
content: "\f204";
font-family: 'Font Awesome 5 Free';
}
.tree-control-element label{
cursor: pointer;
margin-bottom:0;
}
body {
overflow-x: hidden;
}
Expand Down
22 changes: 22 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,28 @@ <h1 id="pageTitle">EDAM ontology</h1>
onclick="toggleFullscreen();" ><i class="fas fa-compress" aria-hidden="true"></i><span class="on-controls-hover" >Exit Full Screen</span>
</button>
</div>
<div class="tree-controls-group">
<div>
<div class="tree-control-element text-left">
<i class="fas fa-cogs"></i><span class="on-controls-hover p-0"><b> Settings</b><br/></span>
<label class="on-controls-hover p-0">
<input type="checkbox" name="show-tooltip-only-full-screen" checked="checked"/>
<span></span>
<span title="Always show tooltips otherwise">Show tooltips only in full screen</span><br/>
</label>
<label class="on-controls-hover p-0">
<input type="checkbox" name="show-detail" checked="checked"/>
<span></span>
Show details in tooltip<br/>
</label>
<label class="on-controls-hover p-0">
<input type="checkbox" name="show-community-usage"/>
<span></span>
Show community usage in tooltip<br/>
</label>
</div>
</div>
</div>
</div>
<div class="tree-controls tree-controls-right-bottom">
<div class="tree-control-element meta-info">
Expand Down

0 comments on commit 3ab74db

Please sign in to comment.