From e7d0641125f7e1a0fa7b33205efa4791ea614fe1 Mon Sep 17 00:00:00 2001 From: ines Date: Sun, 5 Nov 2017 18:16:16 +0100 Subject: [PATCH] Update POS row mixins --- website/_includes/_mixins.jade | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/website/_includes/_mixins.jade b/website/_includes/_mixins.jade index 352f59e19..8c192184a 100644 --- a/website/_includes/_mixins.jade +++ b/website/_includes/_mixins.jade @@ -534,14 +534,21 @@ mixin fn(id, bib_id, tooltip) mixin pos-row(tag, pos, morph, desc) +row - +cell #[code=tag] + +cell #[code(class=(tag.length > 10) ? "u-break u-break--all" : null)=tag] +cell #[code=pos] +cell - each m in morph.split(" ") + - var morphs = morph.includes("|") ? morph.split("|") : morph.split(" ") + for m in morphs if m | #[code=m] +cell.u-text-small=desc +mixin univ-pos-row(tag, desc, example) + +row + +cell #[code=tag] + +cell.u-text-small=desc + +cell.u-text-small + em=example mixin dep-row(label, desc) +row