add more hover-pop info to app header

This commit is contained in:
Stewart Allen 2020-06-08 11:54:57 -04:00
commit add57f7d95
4 changed files with 59 additions and 3 deletions

View file

@ -204,6 +204,49 @@ th, tr, td {
#app-mode, #app-acct {
width: 125px;
}
#app-mode:hover #mode-info {
display: flex;
}
#mode-info {
display: none;
position: absolute;
white-space: nowrap;
font-size: smaller;
font-family: sans-serif;
margin-top: 5px;
padding: 5px;
left: -6px;
top: 100%;
color: var(--fg-gray);
border-radius: 3px;
border: 1px solid #ddd;
background-color: white;
}
#mode-info > div {
padding: 2px 0 2px 0;
}
#mode-info label {
font-weight: bold;
padding-right: 5px;
}
#app-name:hover #app-info {
display: flex;
}
#app-info {
display: none;
position: absolute;
white-space: nowrap;
font-size: smaller;
font-family: sans-serif;
margin-top: 5px;
padding: 5px;
top: 100%;
color: var(--fg-gray);
border-radius: 3px;
border: 1px solid #ddd;
background-color: white;
}
#app-acct {
justify-content: flex-end;

View file

@ -26,9 +26,18 @@
<div id="container"></div>
<div id="tracker"></div>
<div id="top" class="row">
<div id="app-mode"></div>
<div id="app-mode">
<div id="app-mode-name"></div>
<div id="mode-info" class="col">
<div><label>Device:</label><div id="mode-device">123</div></div>
<div><label>Profile:</label><div id="mode-profile">456</div></div>
</div>
</div>
<div class="grow"></div>
<div id="app-name">Kiri:Moto</div>
<div id="app-name" class="col a-center">
<div>Kiri:Moto</div>
<div id="app-info">version</div>
</div>
<div class="grow"></div>
<div id="app-acct">
<i class="fas fa-user-cog"></i>