Add remaining text-decoration utilities (#6004)
* Add `text-decoration-style` utilities * Add remaining `text-decoration` utilities * Add test for default underline offset * Remove text-underline-position, don't rename underline utilities, remove DEFAULT values for decoration thickness and underline offset * Add auto/from-font values, update tests Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
This commit is contained in:
parent
70853bafe2
commit
d22604af04
6 changed files with 83 additions and 2 deletions
|
|
@ -662,6 +662,12 @@
|
|||
.decoration-clone {
|
||||
box-decoration-break: clone;
|
||||
}
|
||||
.box-decoration-slice {
|
||||
box-decoration-break: slice;
|
||||
}
|
||||
.box-decoration-clone {
|
||||
box-decoration-break: clone;
|
||||
}
|
||||
.bg-cover {
|
||||
background-size: cover;
|
||||
}
|
||||
|
|
@ -799,6 +805,21 @@
|
|||
.decoration-red-600 {
|
||||
text-decoration-color: #dc2626;
|
||||
}
|
||||
.decoration-solid {
|
||||
text-decoration-style: solid;
|
||||
}
|
||||
.decoration-1 {
|
||||
text-decoration-thickness: 1px;
|
||||
}
|
||||
.decoration-2 {
|
||||
text-decoration-thickness: 2px;
|
||||
}
|
||||
.underline-offset-1 {
|
||||
text-underline-offset: 1px;
|
||||
}
|
||||
.underline-offset-2 {
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
.antialiased {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue