feat(ui): text-fit, line-height, and ems against the font size an element ends with
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d163bad406
commit
355201f094
16 changed files with 149 additions and 21 deletions
10
examples/library/ui_text_parts/Fit.lss
Normal file
10
examples/library/ui_text_parts/Fit.lss
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
@import "base.lss";
|
||||
.page { width: 400px }
|
||||
.chip { width: 100px; font-size: 16px; text-fit: shrink 10px }
|
||||
.mid { width: 80px }
|
||||
.lines { width: 60px; font-size: 16px; line-height: 2 }
|
||||
.tall { line-height: 30px }
|
||||
.em { padding: 1em; font-size: 20px }
|
||||
.em2 { padding: 1em }
|
||||
.page .em2 { font-size: 24px }
|
||||
.tie { color: #00ff00 }
|
||||
Loading…
Add table
Add a link
Reference in a new issue