Update POS row mixins

This commit is contained in:
ines 2017-11-05 18:16:16 +01:00
parent fa2687fded
commit e7d0641125
1 changed files with 9 additions and 2 deletions

View File

@ -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