From 759612288a764f59ad982d0ea5ba017ab15d2e23 Mon Sep 17 00:00:00 2001 From: HarmandI Date: Mon, 28 Feb 2022 08:26:08 +0100 Subject: [PATCH] Css To-do-list --- .../to-do-list/to-do-list.component.html | 113 +++++++++--------- .../to-do-list/to-do-list.component.scss | 80 +++++++++---- .../page-to-do-list.component.html | 12 +- .../page-to-do-list.component.scss | 6 + 4 files changed, 132 insertions(+), 79 deletions(-) diff --git a/src/app/components/to-do-list/to-do-list.component.html b/src/app/components/to-do-list/to-do-list.component.html index db60889..02f7e08 100644 --- a/src/app/components/to-do-list/to-do-list.component.html +++ b/src/app/components/to-do-list/to-do-list.component.html @@ -1,67 +1,70 @@ - +
+ - - - - -
-
+ +
-
- {{ tache.texte }} -
- - -
-
×
-
- -
-
-
+
+ +
{{ toDoRest() }} tâche(s) restante(s)
-
{{ toDoRest() }} tâches restantes
-
- -
+ +
--> diff --git a/src/app/components/to-do-list/to-do-list.component.scss b/src/app/components/to-do-list/to-do-list.component.scss index 9ff8f30..7bfbde7 100644 --- a/src/app/components/to-do-list/to-do-list.component.scss +++ b/src/app/components/to-do-list/to-do-list.component.scss @@ -1,30 +1,60 @@ +.container { + border: 3px #4e9e7b solid; + padding: 5%; + min-width: 300px; + max-width: 30%; + margin: 5%; + border-radius: 5%; + margin-bottom: 20% !important; +} + .todo-title { - width: 25%; + width: 75%; padding: 10px 18px; - font-size: xx-large; - margin-bottom: 16px; + font-size: large !important; + font-weight: bold !important; + color: #4e9e7b !important; + border-top-color: #4e9e7b !important; + border-left-color: #4e9e7b !important; + border-radius: 5% !important; + margin-top: 0%; + margin-bottom: 5%; + margin-right: 3% !important; + color: black; + box-shadow: 5px 5px 5px gray; &:focus { outline: 0; + background-color: lightgray; } } .todo-input { - width: 20%; + width: 75%; padding: 10px 18px; font-size: 18px; margin-bottom: 16px; + color: white !important; + background-color: #4e9e7b !important; + border-radius: 5%; + margin-left: 4%; &:focus { outline: 0; + background-color: lightgray; } } - .element { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; animation-duration: 0.3s; + color: black; + background-color: #4e9e7b; +} + +::placeholder { + color: white; } .deleteTache { @@ -36,56 +66,66 @@ } } -.element-gauche { // later +.element-gauche { display: flex; align-items: center; } -.nomTache{ +.nomTache { padding: 10px; - border: 1px solid white; margin-left: 12px; } .modifier-element { font-size: 24px; - color: #2c3e50; + color: white; margin-left: 12px; width: 100%; padding: 10px; border: 1px solid rgb(204, 204, 204); //override defaults - font-family: 'Avenir', Helvetica, Arial, sans-serif; + font-family: "Avenir", Helvetica, Arial, sans-serif; &:focus { outline: none; - background-color:aquamarine; + background-color: grey; } } +.selection { + margin-left: 0%; + text-align: left; + font-size: medium; + font-weight: bold; + color: #4e9e7b; +} + .completed { text-decoration: line-through; - color: grey; + color: white !important; +} +.casesRestantes { + color: #4cc690; } - -button { +/* button { font-size: 14px; background-color: white; appearance: none; &:hover { - background: lightgreen; + background: grey; } &:focus { outline: none; } -} +} */ -.active { - background: lightgreen; -} -.completed { +/* .active { + background: grey; +} */ +/* .completed { text-decoration: line-through; color: grey; } + */ diff --git a/src/app/pages/page-to-do-list/page-to-do-list.component.html b/src/app/pages/page-to-do-list/page-to-do-list.component.html index 90d7931..69b5838 100644 --- a/src/app/pages/page-to-do-list/page-to-do-list.component.html +++ b/src/app/pages/page-to-do-list/page-to-do-list.component.html @@ -8,15 +8,19 @@
-
- +
+
+
+ +
+
diff --git a/src/app/pages/page-to-do-list/page-to-do-list.component.scss b/src/app/pages/page-to-do-list/page-to-do-list.component.scss index e69de29..9742dd5 100644 --- a/src/app/pages/page-to-do-list/page-to-do-list.component.scss +++ b/src/app/pages/page-to-do-list/page-to-do-list.component.scss @@ -0,0 +1,6 @@ +.btn { + margin-top: 1%; + margin-bottom: 1%; + color: black; + box-shadow: 5px 5px 5px gray; +}