-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
87 lines (78 loc) · 1.48 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap');
*{
padding: 0;
margin: 0;
font-family: 'Open Sans', sans-serif;
}
body{
display: flex;
height: 100vh;
justify-content: center;
align-items: center;
background-color: rgba(117, 73, 244,.9);
counter-reset: li;
}
.container{
background-color: white;
box-shadow: 10px 10px rgba(0,0,0,.2);
padding: 2rem 4.2rem;
border-radius: .5rem;
}
.heading h1{
font-size: 2rem;
text-align: center;
text-transform: uppercase;
font-weight: 400;
margin-bottom: 1.5rem;
}
.input input{
padding: .8rem;
padding-left: .5rem;
line-height: .5;
font-size: 1.4rem;
border: none;
border-bottom: 2px solid black;
outline: none;
}
.tasks_container{
margin: 3rem 0;
}
.tasks_container ul{
list-style: none;
}
.tasks_container ul li{
font-size: 1.2rem;
background-color: rgba(0,0,0,.1);
padding: 1rem;
margin: .8rem 0;
border-radius: .3rem;
width: 17.3rem;
text-overflow: ellipsis;
overflow: hidden;
}
li::before{
counter-increment: li;
content: counter(li)". ";
}
.tasks_container ul li:not(.fade-out):hover{
text-decoration: line-through;
cursor: pointer;
}
li.fade-out::before{
content: '';
}
li.first::before{
content: '';
}
.fade-out{
color: white;
font-weight: 600;
text-decoration: none;
text-align: center;
background-color: red !important;
opacity: .8;
transition: background-color 300ms ease-in-out;
}
.first{
text-align: center;
}