From 22ffe127a57bba09f6c373221a75253c6700ed1f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ole=20Volds=C3=A6ter?= <ole.voldsater@uib.no>
Date: Thu, 11 Feb 2021 14:39:15 +0100
Subject: [PATCH] =?UTF-8?q?re=20meta#272=20Tiln=C3=A6rmet=20lik=20skissen?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/components/Header.vue | 46 +++++++++++++++++++++++++++++++++------
 1 file changed, 39 insertions(+), 7 deletions(-)

diff --git a/src/components/Header.vue b/src/components/Header.vue
index a53601ce..d1716c40 100644
--- a/src/components/Header.vue
+++ b/src/components/Header.vue
@@ -3,8 +3,9 @@
   <div>
     <h1 class="article_header" v-for="(lemma, index) in lemmas" :key="index">
       {{lemma.lemma}}{{index+1 < lemmas.length ? ',' : ''}} </h1>
+      {{group_list}}
       <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 v-for="(lemma, index) in inflection_groups_by_lemma" :key="index">
             <h4>{{lemma.lemma}}</h4>
@@ -119,14 +120,45 @@ h1 {
   font-variant-caps: all-small-caps;
 }
 
+details {
+  margin-top: 10px;
+}
+
+details[open] summary:after {
+  content: "â–¼";
+}
+
 details > summary {
-  padding: 2px 6px;
-  width: 15em;
-  border: none;
-  cursor: help;
+  position: relative;
+  max-width: 90px;
   list-style: none;
-  text-decoration: underline;
-  text-decoration-style: dashed;
+  border: solid 2px #BC477B;
+  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 {
-- 
GitLab