Skip to content
Snippets Groups Projects
Commit 22ffe127 authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

re meta#272 Tilnærmet lik skissen

parent 564558d1
No related branches found
No related tags found
No related merge requests found
...@@ -3,8 +3,9 @@ ...@@ -3,8 +3,9 @@
<div> <div>
<h1 class="article_header" v-for="(lemma, index) in lemmas" :key="index"> <h1 class="article_header" v-for="(lemma, index) in lemmas" :key="index">
{{lemma.lemma}}{{index+1 < lemmas.length ? ',' : ''}} </h1> {{lemma.lemma}}{{index+1 < lemmas.length ? ',' : ''}} </h1>
{{group_list}}
<details title="Klikk for å se bøyninger" @toggle="toggle()"> <details title="Klikk for å se bøyninger" @toggle="toggle()">
<summary>{{group_list}}</summary> <summary>{{dictionary == 'bob' ? 'Bøyning' : 'Bøying'}}</summary>
<div class="inflection"> <div class="inflection">
<div v-for="(lemma, index) in inflection_groups_by_lemma" :key="index"> <div v-for="(lemma, index) in inflection_groups_by_lemma" :key="index">
<h4>{{lemma.lemma}}</h4> <h4>{{lemma.lemma}}</h4>
...@@ -119,14 +120,45 @@ h1 { ...@@ -119,14 +120,45 @@ h1 {
font-variant-caps: all-small-caps; font-variant-caps: all-small-caps;
} }
details {
margin-top: 10px;
}
details[open] summary:after {
content: "▼";
}
details > summary { details > summary {
padding: 2px 6px; position: relative;
width: 15em; max-width: 90px;
border: none;
cursor: help;
list-style: none; list-style: none;
text-decoration: underline; border: solid 2px #BC477B;
text-decoration-style: dashed; border-radius: 4px;
padding: 3px;
color: #BC477B;
cursor: pointer;
}
details > summary:after {
content: "▶";
font-weight: bold;
position: absolute;
right: 0;
top: 1px;
margin-right: 3px;
}
@keyframes open {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
details[open] summary ~ * {
animation: open 0.3s ease-in-out;
} }
.inflection table { .inflection table {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment