diff --git a/static/css/style.css b/static/css/style.css index 6ec4552..fb26fc6 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -299,8 +299,10 @@ p a{ padding-top: 7rem; padding-bottom: 7rem; width: 40rem; - position: absolute; - top: 47%; - left: 50%; - transform: translate(-50%, -50%); + background: transparent; + border: none; + +} +#card-form textarea:focus { + outline: none; } diff --git a/templates/card.html b/templates/card.html index 7967d19..5ee055b 100644 --- a/templates/card.html +++ b/templates/card.html @@ -6,18 +6,36 @@

{{ deckTitle }}

-
+

START

- + +
{% if isAuth %} + + @@ -26,16 +44,6 @@

START

- - {% from 'macros.html' import logout %} {{ logout() }} @@ -124,6 +132,8 @@

START

document.querySelector("#delete-card-button").style.display="none" document.querySelector("#card-form").style.display="initial" + document.querySelector("#question-box").style.display="none" + document.querySelector("#card-form").action="/" + username + "/" + deckTitle + "/" + cardIndex + "/add" }) } @@ -139,6 +149,8 @@

START

document.querySelector("#card-form textarea").textContent = cardList[cardIndex] document.querySelector("#card-form input").value = cardList[cardIndex] + document.querySelector("#question-box").style.display="none" + document.querySelector("#card-form").action="/" + username + "/" + deckTitle + "/" + cardIndex + "/edit" }) } @@ -161,6 +173,7 @@

START

document.querySelector("#card-form").style.display="none" document.querySelector("#card-form textarea").textContent = "" document.querySelector("#card-form input").value = "" + document.querySelector("#question-box").style.display="flex" }) }