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

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 -->
box-shadow: 1px 1px 4px rgba(0.5, 0.5, 0.5, 0.2);
li {
padding-bottom: 4px;
}
li.level1.definition {
list-style: upper-alpha;
}
li.level2.definition {
list-style: decimal;
}
li.level3.definition {
/* Norsk ordbok skal ha "lower.alpha" her */
list-style: disc;
}
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 {
/* level3 a.k.a. underdefinisjoner skal vises med bullet selv om de står alene */
list-style: none;
}
li:only-child.level1 > ol {
padding-left: 0px;
}
}
ul li.definition {
list-style: disc;