From a2e576f530bbeb96dfe57ae20d0f87cf385da938 Mon Sep 17 00:00:00 2001 From: Pankhuri-Baranwal <115352009+Pankhuri-Baranwal@users.noreply.github.com> Date: Sat, 29 Oct 2022 20:04:30 +0530 Subject: [PATCH] Create todo.css --- todo.css | 128 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 todo.css diff --git a/todo.css b/todo.css new file mode 100644 index 0000000..81b2949 --- /dev/null +++ b/todo.css @@ -0,0 +1,128 @@ +:root { + --main-color: #263238; + --del-color: #ff0000; +} +* { + margin: 0; + padding: 0; + box-sizing: border-box; + font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; +} +body { + min-height: 100vh; + width: 100%; + display: flex; + justify-content: center; + align-items: center; +} +.container { + max-width: 400px; + width: 100%; + height: calc(100vh - 40px); + padding: 20px; + display: flex; + flex-direction: column; + row-gap: 10px; + border: 1px solid #ccc; +} +.heading h1 { + font-size: 29px; +} +.input { + display: flex; + margin-bottom: 10px; +} +.input .todotaker { + padding: 0.7em; + border: 1px solid #ccc; + border-right-color: var(--main-color); + font-size: 17px; + width: 100%; +} +.todotaker:focus { + outline: none; + border: 1px solid var(--main-color); +} +button { + background: none; + border: none; + cursor: pointer; + transition: 0.2s linear all; +} +.input .todobtn { + background-color: var(--main-color); + border: 1px solid var(--main-color); + width: 60px; +} +.todobtn:active svg { + transform: scale(1.3); +} +.list { + flex-grow: 1; + display: flex; + flex-direction: column; + row-gap: 10px; + overflow-y: auto; + overflow-x: hidden; +} +.listelement { + flex-shrink: 0; + width: 100%; + height: 45px; + display: flex; + align-items: center; + justify-content: space-between; + background-color: #0000000a; +} +.listelement p { + padding: 0 15px; + font-size: 16px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} +.listdone { + background-color: var(--del-color); + height: 100%; + width: 0; + flex-shrink: 0; +} +.listelement:hover .listdone { + width: 45px; +} +.listdone:active svg { + transform: scale(0.85); +} +.clearall .all { + background-color: var(--main-color); + border: 1px solid var(--main-color); + padding: 10px 20px; + float: right; + color: #fff; + font-size: 16px; +} +.all:hover { + opacity: 0.9; +} +.all:active { + transform: scale(0.8); +} +.list::-webkit-scrollbar { + display: none; +} +.emptytodo { + width: 100%; + height: 100%; + display: flex; + justify-content: center; + align-items: center; +} +@media (max-width: 400px) { + body { + align-items: unset; + } + .container { + max-width: none; + border: none; + } +}