fix: use px values for pretty text underline

This commit is contained in:
atomiks
2018-02-28 06:17:18 +10:00
parent 10b866ba17
commit 9d192d00d6

View File

@ -14,13 +14,13 @@ Natively implemented as `text-decoration-skip-ink: auto` but it has less control
```css ```css
.pretty-text-underline { .pretty-text-underline {
display: inline; display: inline;
font-size: 1.25rem; font-size: 18px;
text-shadow: 1px 1px 0 #f5f6f9, text-shadow: 1px 1px 0 #f5f6f9,
-1px 1px 0 #f5f6f9, -1px 1px 0 #f5f6f9,
-1px -1px 0 #f5f6f9, -1px -1px 0 #f5f6f9,
1px -1px 0 #f5f6f9; 1px -1px 0 #f5f6f9;
background-image: linear-gradient(90deg, currentColor 100%, transparent 100%); background-image: linear-gradient(90deg, currentColor 100%, transparent 100%);
background-position: 0 1.04em; background-position: 0 18px;
background-repeat: repeat-x; background-repeat: repeat-x;
background-size: 1px 1px; background-size: 1px 1px;
} }
@ -49,7 +49,7 @@ Natively implemented as `text-decoration-skip-ink: auto` but it has less control
-1px -1px 0 #f5f6f9, -1px -1px 0 #f5f6f9,
1px -1px 0 #f5f6f9; 1px -1px 0 #f5f6f9;
background-image: linear-gradient(90deg, currentColor 100%, transparent 100%); background-image: linear-gradient(90deg, currentColor 100%, transparent 100%);
background-position: 0 1.04em; background-position: 0 18px;
background-repeat: repeat-x; background-repeat: repeat-x;
background-size: 1px 1px; background-size: 1px 1px;
} }