From ca49d540872e9b03114b5637b3e068300cb7b75d Mon Sep 17 00:00:00 2001 From: gboeker Date: Fri, 1 Mar 2024 22:10:13 -0500 Subject: [PATCH] add card automatically turn into new card --- static/css/style.css | 48 +++++++++++++++++++++++++++----------------- templates/decks.html | 38 +++++++++++++++++------------------ 2 files changed, 48 insertions(+), 38 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index e6563d8..c590a97 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -109,7 +109,7 @@ h3 { } -.add-deck-form { +/* #add-deck-form { position: fixed; top: 50%; top: 50%; @@ -126,40 +126,52 @@ h3 { border-radius: .5rem; background: #7F5F59; text-align: center; -} +} */ -.add-deck-form input[type=submit] { +/* #add-deck-form input[type=submit] { color: #63514F; background: #D9D9D9; text-align: center; font-size: 55px; border-radius: .5rem; padding: 40px; -} +} */ -.add-deck-form input[type=text] { - color: #63514F; - background: #D9D9D9; +#add-deck-form input[type=text] { + color: #fafafa; + background-color: transparent; text-align: center; font-size: 55px; - border-radius: .5rem; + border: none; + outline: none; + } -.add-deck-form label { +/* #add-deck-form label { color: #D9D9D9; text-align: center; font-size: 55px; border-radius: .5rem; -} +} */ -.add-deck-form p { - position: absolute; - top: .1rem; - left: 1rem; - color: #D9D9D9; - font-size: 55px; - margin: 0; -} +#add-deck-form p { + /* position: absolute; */ + /* top: .1rem; */ + /* left: 1rem; */ + color: #fafafa; + /* margin: 0; */ +} + +/* .add-deck-input { + display: flex; + justify-content: space-between; + flex-direction: column; + align-items: center; + margin: auto; + width: 90%; + aspect-ratio: 9 / 5; + +} */ .vertical-align { display: flex; diff --git a/templates/decks.html b/templates/decks.html index 572db3a..ce578b7 100644 --- a/templates/decks.html +++ b/templates/decks.html @@ -8,17 +8,17 @@ {% for deck in mainDecks %} - + {% endfor %} {% for deck in personalDecks %} - > - + {% endfor %} @@ -29,7 +29,7 @@

{{ deck.title }}

searchBar.addEventListener("input", function() { const searchTerm = searchBar.value.toLowerCase(); deckLinks.forEach(function(link) { - const deckTitle = link.querySelector("h3").textContent.toLowerCase(); + const deckTitle = link.querySelector(".deck-title").textContent.toLowerCase(); if (deckTitle.includes(searchTerm)) { link.style.display = "block"; } else { @@ -40,29 +40,27 @@

{{ deck.title }}

{% if isAuth %} - -