Newer
Older
<article v-show="article.lemmas.length">
<section v-if="article.body.pronunciation.length">
<DefElement v-for="(element, index) in article.body.pronunciation" :key="index" :body='element' @article-click="article_link_click" />
</section>
<section v-if="article.body.etymology">
<DefElement v-for="(element, index) in article.body.etymology" :key="index" :body='element' @article-click="article_link_click" />
</section>
<section>
<Definition v-for="definition in article.body.definitions" :level="1" :key="definition.id" :body='definition' @article-click="article_link_click" />
</section>
</article>
import Definition from './Definition.vue'

Ole Voldsæter
committed
},
methods: {
article_link_click: function(item) {
this.$emit('article-click', item)
}
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
li {
padding-bottom: 4px;
}
li.level1.definition {
list-style: upper-alpha;
}
li.level3.definition {
list-style: lower-alpha;
}
li.sub_article > ul {
padding-left: 0px;
}
li.definition.level1, li.definition.level2 {
::marker {
font-weight: bold;
}
ol > li:only-child.level1, li:only-child.level2, li:only-child.level3 {
list-style: none;
}
li:only-child.level1 > ol {
padding-left: 0px;
}
padding-left: 20px;
}
ul li {
list-style:none;
}
ul li.definition {
list-style: disc;