Merge pull request #78 from piggynl/patch-1

fix: fix `<em>` styling
This commit is contained in:
Sivan 2022-01-23 22:59:04 +08:00 committed by GitHub
commit 534e6a8560
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View file

@ -769,11 +769,14 @@
.heti--annotation em {
-webkit-text-emphasis: filled circle;
-webkit-text-emphasis-position: under;
text-emphasis: filled circle;
text-emphasis-position: under right;
font-weight: 400;
}
.heti--annotation em:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), .heti--annotation em:not(:lang(zh)) {
-webkit-text-emphasis: none;
text-emphasis: none;
}
.heti--annotation .heti-meta {
@ -883,10 +886,13 @@
.heti .heti-em {
-webkit-text-emphasis: filled circle;
-webkit-text-emphasis-position: under;
text-emphasis: filled circle;
text-emphasis-position: under right;
}
.heti .heti-em:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), .heti .heti-em:not(:lang(zh)) {
-webkit-text-emphasis: none;
text-emphasis: none;
}
.heti .heti-ruby--inline {

View file

@ -13,9 +13,12 @@
#{$root-selector}-em {
-webkit-text-emphasis: filled circle;
-webkit-text-emphasis-position: under;
text-emphasis: filled circle;
text-emphasis-position: under right;
@include non-cjk-block {
-webkit-text-emphasis: none;
text-emphasis: none;
}
}

View file

@ -16,10 +16,13 @@
em {
-webkit-text-emphasis: filled circle;
-webkit-text-emphasis-position: under;
text-emphasis: filled circle;
text-emphasis-position: under right;
font-weight: $font-weight-normal;
@include non-cjk-block {
-webkit-text-emphasis: none;
text-emphasis: none;
}
}