From 351d054b58e700fbe9c04306ae7e118b712149e9 Mon Sep 17 00:00:00 2001 From: Gal Fajon Date: Mon, 24 May 2021 23:37:56 +0200 Subject: [PATCH] Added button to clear all tasks. --- css/taskOverlay.css | 29 ++++++++++++++++++++++++++++- index.html | 6 ++++++ js/browserUI.js | 16 +++++++++++++++- js/searchbar/customBangs.js | 14 ++++++++++++++ js/taskOverlay/taskOverlay.js | 9 +++++++++ localization/languages/ar.json | 1 + localization/languages/bg.json | 1 + localization/languages/bn.json | 1 + localization/languages/cs.json | 1 + localization/languages/de.json | 1 + localization/languages/en-US.json | 1 + localization/languages/es.json | 1 + localization/languages/fa.json | 1 + localization/languages/fr.json | 1 + localization/languages/hu.json | 1 + localization/languages/it.json | 1 + localization/languages/ja.json | 1 + localization/languages/ko.json | 1 + localization/languages/lt.json | 1 + localization/languages/pl.json | 1 + localization/languages/pt-BR.json | 1 + localization/languages/pt-PT.json | 1 + localization/languages/ru.json | 1 + localization/languages/tr.json | 1 + localization/languages/uk.json | 1 + localization/languages/uz.json | 1 + localization/languages/vi.json | 1 + localization/languages/zh-CN.json | 1 + localization/languages/zh-TW.json | 1 + 29 files changed, 96 insertions(+), 2 deletions(-) diff --git a/css/taskOverlay.css b/css/taskOverlay.css index a1a2dd40c..9e17b43f6 100644 --- a/css/taskOverlay.css +++ b/css/taskOverlay.css @@ -166,7 +166,8 @@ body:not(.touch) opacity: 0.8; } #add-task { - width: 80%; + display:inline-block; + width: 40%; margin-left: 10%; padding: 1.25em; text-align: center; @@ -261,3 +262,29 @@ body.dark-mode #task-overlay { .dark-mode #switch-task-button { color: dodgerblue; } + +#destroy-all-tasks { + display:inline-block; + width: 40%; + margin-left: 0%; + padding: 1.25em; + text-align: center; + color: inherit; + background-color: rgb(245, 245, 245); + cursor: pointer; +} +.dark-mode #destroy-all-tasks { + background-color: rgb(33, 37, 43); + color: lightgrey; +} +#destroy-all-tasks:hover { + background-color: rgb(235, 235, 235); +} +.dark-mode #destroy-all-tasks:hover { + background-color: rgb(44, 49, 56); +} +#destroy-all-tasks .i { + opacity: 0.75; + vertical-align: middle; + margin-right: 0.25em; +} \ No newline at end of file diff --git a/index.html b/index.html index c1d1961b2..2aaf39372 100644 --- a/index.html +++ b/index.html @@ -222,10 +222,16 @@ id="task-overlay-navbar" >
+
+ +