Newer
Older
<h1 class="article_header" v-for="(lemma, index) in lemmas" :key="index">
{{lemma.lemma}}{{index+1 < lemmas.length ? ',' : ''}} </h1>
<details title="Klikk for å se bøyninger">
<summary>{{group_list}}</summary>
<div class="inflection">
<div v-for="(lemma, index) in lemmas" :key="index">
<h4>{{lemma.lemma}}</h4>
<component v-for="(std, index) in lemma.paradigm_info"
:key="index"
:is="std.inflection_group.replace('/', '_')"
:standardisations="[std]"></component>
</div>
</div>
</details>
</div>
import ADJ from './inflection/Adjective.vue'
import ADJ_adv from './inflection/AdjectiveAdv.vue'
import ADJ_masc_fem from './inflection/AdjectiveMF.vue'
import ADJ_masc_fem_fem from './inflection/AdjectiveMF_F.vue'
export default {
name: 'Header',
props: {
lemmas: Array
},
computed: {
group_list: function() {
ADJ,
ADJ_adv,
ADJ_masc_fem,
ADJ_masc_fem_fem
<style scoped>
.word-classification {
text-decoration: underline dashed;
}
h1.article_header {
details > summary {
padding: 2px 6px;
width: 15em;
border: none;
cursor: help;
list-style: none;
text-decoration: underline;
text-decoration-style: dashed;
}
details > summary::-webkit-details-marker {
display: none;
}
details > div {
border-radius: 0 0 10px 10px;
background-color: #eee;
padding: 2px 6px;
margin: 0;
box-shadow: 3px 3px 4px black;
}