Commit 1aadcb44 by Sujeeth AV

Input.css

parent 6a9f84e2
...@@ -47,7 +47,9 @@ li { ...@@ -47,7 +47,9 @@ li {
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
box-shadow: 0 1px rgb(217, 217, 217); box-shadow: 0 1px rgb(217, 217, 217);
} }
ul li:last-child {
box-shadow: none;
}
.todo { .todo {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
...@@ -59,14 +61,15 @@ li { ...@@ -59,14 +61,15 @@ li {
align-items: center; align-items: center;
gap: 12px; gap: 12px;
flex: 1; flex: 1;
min-width: 0; /* Added to prevent overflow */ min-width: 0;
} }
/* Added to prevent checkbox shrinking */
.check input[type="checkbox"] { .check input[type="checkbox"] {
flex-shrink: 0; flex-shrink: 0;
} }
.check input {
border: 2px solid #888;
}
.task { .task {
flex: 1; flex: 1;
cursor: text; cursor: text;
...@@ -76,6 +79,8 @@ li { ...@@ -76,6 +79,8 @@ li {
word-break: break-word; word-break: break-word;
margin-left: 1rem; margin-left: 1rem;
transition: all 0.3s ease; transition: all 0.3s ease;
font-size: 1.5rem;
color: #434343;
} }
.task[contenteditable="true"] { .task[contenteditable="true"] {
...@@ -83,16 +88,9 @@ li { ...@@ -83,16 +88,9 @@ li {
border-bottom: 1px dashed #aaa; border-bottom: 1px dashed #aaa;
padding: 4px; padding: 4px;
display: inline-block; display: inline-block;
min-width: 0; /* Changed from 100% to prevent expansion */ min-width: 0;
width: auto; /* Changed from 0 to allow natural width */ width: auto;
flex-grow: 1; /* Added to take available space */ flex-grow: 1;
}
.task[contenteditable="true"]:focus {
user-select: text;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
} }
input[type="checkbox"] { input[type="checkbox"] {
...@@ -101,7 +99,6 @@ input[type="checkbox"] { ...@@ -101,7 +99,6 @@ input[type="checkbox"] {
appearance: none; appearance: none;
width: 20px; width: 20px;
height: 20px; height: 20px;
border: 1px solid #ddd;
border-radius: 4px; border-radius: 4px;
outline: none; outline: none;
cursor: pointer; cursor: pointer;
...@@ -121,10 +118,10 @@ input[type="checkbox"]:checked { ...@@ -121,10 +118,10 @@ input[type="checkbox"]:checked {
input[type="checkbox"]:checked::after { input[type="checkbox"]:checked::after {
content: ""; content: "";
position: absolute; position: absolute;
left: 6px; left: 3px;
top: 2px; top: 2px;
width: 6px; width: 4px;
height: 12px; height: 8px;
border: solid #333; border: solid #333;
border-width: 0 2px 2px 0; border-width: 0 2px 2px 0;
transform: rotate(45deg); transform: rotate(45deg);
...@@ -140,13 +137,13 @@ input[type="checkbox"]:checked::after { ...@@ -140,13 +137,13 @@ input[type="checkbox"]:checked::after {
transition: color 0.2s ease; transition: color 0.2s ease;
} }
.delete:hover {
color: #ff4444;
}
.delete svg { .delete svg {
height: 20px; height: 33px;
width: 20px; width: 28px;
color: rgba(204, 204, 204, 255);
}
.delete svg:hover {
color: #ff4444;
} }
.merge { .merge {
...@@ -157,11 +154,11 @@ input[type="checkbox"]:checked::after { ...@@ -157,11 +154,11 @@ input[type="checkbox"]:checked::after {
.input { .input {
flex: 1; flex: 1;
padding: 10px 12px;
border: 1px solid #ddd; border: 1px solid #ddd;
border-radius: 6px; border-radius: 6px;
font-size: 1rem; font-size: 1.2rem;
transition: border 0.2s ease; transition: border 0.2s ease;
color: #a0a0a0;
} }
.input:focus { .input:focus {
...@@ -181,7 +178,7 @@ input[type="checkbox"]:checked::after { ...@@ -181,7 +178,7 @@ input[type="checkbox"]:checked::after {
} }
.todo.completed .task { .todo.completed .task {
text-decoration: line-through; text-decoration: line-through;
color: #888; color: #434343;
opacity: 0.8; opacity: 0.8;
} }
.error-fallback { .error-fallback {
...@@ -195,7 +192,7 @@ input[type="checkbox"]:checked::after { ...@@ -195,7 +192,7 @@ input[type="checkbox"]:checked::after {
padding: 15px; padding: 15px;
} }
.task { .task {
padding: 4px 0 10px; padding: 3px 0 10px;
} }
.merge { .merge {
flex-direction: column; flex-direction: column;
...@@ -208,8 +205,8 @@ input[type="checkbox"]:checked::after { ...@@ -208,8 +205,8 @@ input[type="checkbox"]:checked::after {
} }
input[type="checkbox"] { input[type="checkbox"] {
width: 20px; width: 10px;
height: 20px; height: 0px;
} }
} }
...@@ -224,7 +221,12 @@ button { ...@@ -224,7 +221,12 @@ button {
text-align: center; text-align: center;
padding: 2px; padding: 2px;
} }
.task {
font-size: 1.2rem;
}
input[type="checkbox"]:checked::after {
top: 1px;
}
ul { ul {
word-break: break-word; word-break: break-word;
max-width: 340px; max-width: 340px;
...@@ -247,10 +249,16 @@ span[contenteditable] { ...@@ -247,10 +249,16 @@ span[contenteditable] {
@media (min-width: 768px) { @media (min-width: 768px) {
.check input { .check input {
height: 1.5rem; height: 1rem;
width: 1.5rem; width: 1rem;
} }
.todo { .todo {
padding: 0 1.3rem 0; padding: 0 1.3rem 0;
} }
input[type="checkbox"]:checked::after {
left: 3px;
top: 1px;
width: 4px;
height: 8px;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment