han-css
Version:
The CSS typography framework optimised for Hanzi
46 lines (35 loc) • 834 B
text/stylus
/* Global
* -------- */
if $han-line-height != $HAN-LINE-HEIGHT
{$han-root}
line-height: $han-line-height
// * Styles for alternative voice and variables when
// * Kaiti (cursive) isn't supported.
// *
i,
var
.no-kaiti &
// box
padding-bottom: 0.05em
// style
border-bottom: 3px double lightgrey
// * Zhuyin ruby size
// *
if $han-zhuyin-size != $HAN-ZHUYIN-SIZE
ruby.zhuyin,
ruby.mps
han-scale( $han-zhuyin-size/.5, 'left center' )
[zhuyin] h-zhuyin > *
han-scale( $han-zhuyin-size )
/* Section-wise arrangement
* -------------------------- */
'section/well-knit'
'section/counter'
/* Line composition
* ------------------ */
'inline/em'
'inline/basic-bd'
'inline/hws'
'inline/hanging'
'inline/jiya'
'inline/subst'