Make text underlines uniform across browsers, scale them with the text
This commit is contained in:
@ -8,8 +8,8 @@
|
|||||||
mask-size: cover;
|
mask-size: cover;
|
||||||
margin-left: 0.25rem;
|
margin-left: 0.25rem;
|
||||||
background-color: var(--primary-color);
|
background-color: var(--primary-color);
|
||||||
width: 0.75rem;
|
width: 0.75em;
|
||||||
height: 0.75rem;
|
height: 0.75em;
|
||||||
content: "";
|
content: "";
|
||||||
|
|
||||||
:root[dir="rtl"] & {
|
:root[dir="rtl"] & {
|
||||||
|
@ -30,9 +30,10 @@ small {
|
|||||||
}
|
}
|
||||||
|
|
||||||
abbr[title] {
|
abbr[title] {
|
||||||
-webkit-text-decoration: underline dotted;
|
|
||||||
cursor: help;
|
cursor: help;
|
||||||
text-decoration: underline dotted;
|
text-decoration: underline;
|
||||||
|
text-decoration-style: dotted;
|
||||||
|
text-decoration-thickness: max(1px, 0.0625em);
|
||||||
}
|
}
|
||||||
|
|
||||||
figcaption {
|
figcaption {
|
||||||
@ -84,10 +85,10 @@ kbd {
|
|||||||
a {
|
a {
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
text-decoration-thickness: max(1px, 0.0625em);
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
-webkit-text-decoration: underline wavy;
|
text-decoration-style: wavy;
|
||||||
text-decoration: underline wavy;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user