Skip to content

Commit

Permalink
Remove heading and deemphasis note style
Browse files Browse the repository at this point in the history
  • Loading branch information
iadawn committed Aug 9, 2023
1 parent b5eb9b5 commit 7f7125e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 6 additions & 3 deletions css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,16 @@ dt div {
}

.note {
background: var(--off-white);
padding: 0.7em 1em;
border: 1px solid var(--cloudy);
padding: 0em 1em;
margin-bottom: 1em;
}
.note-title {
font-weight: bold;
margin: 0;
}

.note p {
margin-top: 0;
}

/* import inline styles from https://www.w3.org/WAI/drafts/WCAG-understanding-redesign-hack.html */
Expand Down
7 changes: 7 additions & 0 deletions xslt/generate-understanding.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,13 @@
<xsl:text>: </xsl:text>
</xsl:template>

<xsl:template match="html:p[@class = 'note'] | html:div[@class = 'note']">
<div class="note">
<p class="note-title marker">Note</p>
<xsl:copy><xsl:apply-templates select="@*[not(name() = 'class')]|node()"/></xsl:copy>
</div>
</xsl:template>

<xsl:template match="html:p" mode="sc-info">
<xsl:param name="sc-info"/>
<p>
Expand Down

0 comments on commit 7f7125e

Please sign in to comment.