From 29e4f2dcc9f918883a2672e400b08cae695bb4dd Mon Sep 17 00:00:00 2001 From: gboeker Date: Mon, 4 Mar 2024 20:57:37 -0500 Subject: [PATCH] add delete deck icon and position top left --- static/css/style.css | 17 ++++++++--------- templates/base.html | 1 + templates/decks.html | 16 ++++++++++------ 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 8da90ff..9b4c5de 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -54,16 +54,12 @@ p a{ font-size: 55px; } + + .delete-deck { - position: relative; - font-size: 40px; - top: 50; - left: 0; - color: #5e4d47; - background-color: transparent; - border: none; - cursor: pointer; - font-weight: bold; + position: absolute; + top: -7%; + left: -7%; } .add-deck h3 { @@ -125,6 +121,9 @@ p a{ .personal-deck { background: #e1948d; + display: flex; + align-items: center; + position: relative; } .add-deck { diff --git a/templates/base.html b/templates/base.html index 965bf2c..1fdacdc 100644 --- a/templates/base.html +++ b/templates/base.html @@ -6,6 +6,7 @@ rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}" /> + diff --git a/templates/decks.html b/templates/decks.html index a431254..eb2ae5b 100644 --- a/templates/decks.html +++ b/templates/decks.html @@ -13,16 +13,20 @@

{{ deck.title }}

{% endfor %} - + {% for deck in personalDecks %}
-
- - - -
+ +
+ + + + +

{{ deck.title }}

+ +
{% endfor %}