Skip to content

Commit

Permalink
Merge pull request #159 from karl-kraus/bk/fix/app-highlighting
Browse files Browse the repository at this point in the history
fix: fix fkl-app highlighting
  • Loading branch information
babslgam authored Dec 4, 2024
2 parents d9d3c82 + bf4a1b9 commit 1cc0899
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions scss/micro-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ input:checked+.i-slider:before {
background-color: rgba($wpn-fackel,0.2);
}

.apps.annot_fackel > .l {
background-color: rgba($wpn-fackel,0.2);
}

#textcolumn span.annot_comment::after {
content: url("../images/icon-signet-comment-intext.svg");
position: absolute;
Expand Down
10 changes: 5 additions & 5 deletions xslt/editions.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,6 @@
</xsl:template>
<xsl:template match="tei:fw"/>
<xsl:template match="tei:mod[@change='#pencilOnProof_KK'][not(@rendition='#pencilOnProof_rightAlignSmall')]"/>
<xsl:template match="tei:app">
<span class="hidden"><xsl:apply-templates/></span>
</xsl:template>
<xsl:template match="tei:lg">
<span class="d-block lg {replace(@rendition,'#','')}"><xsl:apply-templates/></span>
</xsl:template>
Expand All @@ -203,12 +200,15 @@
<xsl:apply-templates mode="raw"/>
</ref>
</xsl:template>
<xsl:template match="tei:app[not(@prev)][not(@next)]">
<xsl:template match="tei:app">
<wpn-entity bubble="false" class="apps fackel entity" id="{@xml:id}">
<xsl:if test="@prev">
<xsl:attribute name="data-prev" select="replace(@prev,'#','')"/>
</xsl:if>
<xsl:apply-templates/>
</wpn-entity>
</xsl:template>
<xsl:template match="tei:app[not(@prev)][not(@next)]" mode="raw">
<xsl:template match="tei:app" mode="raw">
<ref target="{@xml:id}">
<xsl:apply-templates mode="raw"/>
</ref>
Expand Down

0 comments on commit 1cc0899

Please sign in to comment.