style: Move font-family outside of mako

This commit is contained in:
CYBAI 2017-11-25 02:44:26 +08:00
parent 7ac376eed6
commit a470ebd501
14 changed files with 595 additions and 569 deletions

View file

@ -120,7 +120,7 @@
return Err(input.new_custom_error(StyleParseErrorKind::UnspecifiedError))
}
let family = FontFamily::parse(input)?;
let family = FontFamily::parse_specified(input)?;
Ok(expanded! {
% for name in "style weight stretch variant_caps".split():
font_${name}: unwrap_or_initial!(font_${name}, ${name}),