Skip to content
Snippets Groups Projects
Commit f79fd996 authored by Max-Ferdinand Zeterberg's avatar Max-Ferdinand Zeterberg
Browse files

Merge branch '17-corr-5-tooltip' into 'master'

Resolve "corr 5: tooltip"

Closes #17

See merge request !8
parents 0608cb23 83030ba8
No related branches found
No related tags found
1 merge request!8Resolve "corr 5: tooltip"
......@@ -157,12 +157,21 @@ hr.metamark-line.doubleLine {
flex-direction: row;
}
.unit-container > *:first-child {
/*.unit-container > *:first-child {
width: 10%;
}
}*/
.unit-container > * {
width: 45%;
width: 40%;
}
.section-tab + .section-tab {
border-left: solid 1px var(--sub-blue-light);
padding-left: 5px;
}
.section-tab.notes {
width: 20%;
}
/*----------------------------------{ UNIT }--------------------------------*/
......@@ -283,6 +292,32 @@ hr.metamark-line.doubleLine {
color: var(--sub-blue);
}
/*----- Kommentare als tooltip -----*/
.note {
position: relative;
display: inline-block;
border-bottom: 1px dotted black;
}
.note .notetext {
visibility: hidden;
width: 120px;
background-color: black;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 0;
/* Position the note */
position: absolute;
z-index: 1;
}
.note:hover .notetext {
visibility: visible;
}
/*----------------------------------{ ITEMS: WORDS }--------------------------------*/
.item.w:hover {
......
......@@ -50,6 +50,9 @@
</a>
</div>-->
<xsl:apply-templates />
<xsl:if test="not(child::notes)">
<div class="notes section-tab"/>
</xsl:if>
</div>
</div>
</xsl:template>
......@@ -172,6 +175,20 @@
</span>
</xsl:template>
<xsl:template match="philology//notes">
<div class="notes section-tab">
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="philology//note">
<span class="note">📌
<span class="notetext">
<xsl:apply-templates/>
</span>
</span>
</xsl:template>
<!-- TABLE ITEMS -->
<xsl:template match="node()" mode="table-items">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment