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

feat(philology): display notes as tooltips

parent 0608cb23
Branches
No related tags found
1 merge request!8Resolve "corr 5: tooltip"
...@@ -157,12 +157,21 @@ hr.metamark-line.doubleLine { ...@@ -157,12 +157,21 @@ hr.metamark-line.doubleLine {
flex-direction: row; flex-direction: row;
} }
.unit-container > *:first-child { /*.unit-container > *:first-child {
width: 10%; width: 10%;
} }*/
.unit-container > * { .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 }--------------------------------*/ /*----------------------------------{ UNIT }--------------------------------*/
...@@ -283,6 +292,32 @@ hr.metamark-line.doubleLine { ...@@ -283,6 +292,32 @@ hr.metamark-line.doubleLine {
color: var(--sub-blue); 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 }--------------------------------*/ /*----------------------------------{ ITEMS: WORDS }--------------------------------*/
.item.w:hover { .item.w:hover {
......
...@@ -50,6 +50,9 @@ ...@@ -50,6 +50,9 @@
</a> </a>
</div>--> </div>-->
<xsl:apply-templates /> <xsl:apply-templates />
<xsl:if test="not(child::notes)">
<div class="notes section-tab"/>
</xsl:if>
</div> </div>
</div> </div>
</xsl:template> </xsl:template>
...@@ -172,6 +175,20 @@ ...@@ -172,6 +175,20 @@
</span> </span>
</xsl:template> </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 --> <!-- TABLE ITEMS -->
<xsl:template match="node()" mode="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.
Please register or to comment