Repository navigation
@chassis-ui/css v0.11.0
Minor Changes
-
624776a: Chassis CSS is built with
@chassis-ui/tokens0.10.1, which gives the text rolesjumboandheroa line height token of their own.:rootdeclares--cx-line-height-jumboand--cx-line-height-hero(1.25em), from the new Sass variables$line-height-jumboand$line-height-heroand the"jumbo"and"hero"keys of$context-line-heights..font-jumboand.font-heroread them, with the line height they had. Their sizes stay in their classes.- A project with its own token source builds it with
@chassis-ui/tokens0.10.1.scss/tokens/reads$cx-typography-line-height-context-jumboand-hero, which 0.10.0 does not have. - Tokens 0.10.1 changes fonts of the
chassisbrand:.blockquoteand.font-blockquoteare Regular Italic (400) instead of Light Italic (300), the code family ends withui-monospace, monospace, and the icon family is quoted,"Chassis-Icons".
Patch Changes
-
aa469ef: The icon of
.icon-linkis sized through--cx-icon-size(1em,$icon-link-icon-size) instead of awidthandheightof1em, so an SVG icon and an icon font glyph take the same room and keep the gap to the text. Until now the1emresolved against the font size of the icon: an SVG icon was drawn at--cx-icon-size(24 px with the default tokens), and a font glyph at the same size overflowed its1embox and touched the link text.- An SVG icon in an icon link is drawn at
1emof the link text, as the docs describe: 16 px instead of 24 px in a 16 px link. Add a size class such as.icon-lgto the icon, or set$icon-link-icon-size, for a larger icon. - A size class on a font icon in an icon link sizes its box too. Before, the box stayed
1emof the link text and the glyph overflowed it.
- An SVG icon in an icon link is drawn at