Skip to content

Commit 156a9e2

Browse files
committed
[day 6] Tweak styles for completed too doo
1 parent 8626f95 commit 156a9e2

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

projects/6-to-do-list/css/application.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ a {
4040
cursor: pointer;
4141
padding: 1rem;
4242
background: #F4F4F4;
43+
position: relative;
4344
}
4445

4546
.todo__item + .todo__item {
@@ -48,6 +49,22 @@ a {
4849

4950
.todo__item--complete {
5051
text-decoration: line-through;
52+
font-style: italic;
53+
color: rgba(0,0,0,0.5);
54+
}
55+
56+
.todo__item--complete::before {
57+
content: "";
58+
background-image: url("../img/check.svg");
59+
background-repeat: no-repeat;
60+
background-size: cover;
61+
width: 12px;
62+
height: 12px;
63+
display: inline-block;
64+
vertical-align: middle;
65+
position:relative;
66+
top:-.1em;
67+
left: -0.25em;
5168
}
5269

5370
.todo-input {
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)