There was an error while loading. Please reload this page.
1 parent 8626f95 commit 156a9e2Copy full SHA for 156a9e2
projects/6-to-do-list/css/application.css
@@ -40,6 +40,7 @@ a {
40
cursor: pointer;
41
padding: 1rem;
42
background: #F4F4F4;
43
+ position: relative;
44
}
45
46
.todo__item + .todo__item {
@@ -48,6 +49,22 @@ a {
48
49
50
.todo__item--complete {
51
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;
68
69
70
.todo-input {
projects/6-to-do-list/img/check.svg
0 commit comments