Skip to content

Commit

Permalink
web: enhance em styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Dierk Koenig committed Dec 13, 2024
1 parent 11e26c6 commit 86da484
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/css/kolibri-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,15 @@ figure {

em { /* emphasis looks like highlighted with text marker */
position: relative;
padding-inline: 0.2em 0.3em;
&::before {
content: "";
position: absolute;
inset: 0; /* -3px leads to strange line-break issues */
inset: 0 0 -.2em 0; /* inline -3px leads to strange line-break issues */
border-radius: 5% 5% 20% 20%;
background-color: var(--kolibri-color-select);
z-index: -10;
rotate: -2deg;
rotate: -3deg;
opacity: 60%;
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ <h2>Styling</h2>
<dt>CSS Best Practices</dt>
<dd>The Kolibri contains a lot of modern CSS features and examples of best practices including:
@import, @layer, @container, style isolation, css-in-js, custom properties,
"CSS-API", design system, color palette, font handling, animations,
"CSS-API", design system, layout, color palette, font handling, animations, consistency, validation,
and accessibility features like disabled animations and "tab into content".
</dd>

Expand Down

0 comments on commit 86da484

Please sign in to comment.