-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
140 lines (122 loc) · 2.28 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
*,
*::before,
*::after{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
height: 100vh;
background: #066acd;
font-family: 'poppins', sans-serif;
}
.container{
width: 40%;
min-width: 450px;
position: absolute;
transform: translate(-50%, -50%);
top: 50%;
left: 50%;
background: #fff;
border-radius: 10px;
}
#newtask{
position: relative;
padding: 30px 20px;
overflow: hidden;
}
#newtask input{
width: 100%;
height: 45px;
font-size: 15px;
border: 2px solid #d1d3d4;
padding: 12px;
border-radius: 5px;
color: #111111;
font-weight: 500;
position: relative;
transition: 0.3s ease;
}
#newtask input:focus{
outline: none;
border-color: #0d75ec;
}
#newtask button{
position: relative;
float: right;
width: 20%;
height: 45px;
border-radius: 5px;
border: none;
outline: none;
background-color: #0d75ec;
color: #fff;
font-size: 16px;
font-weight: 500;
cursor: not-allowed;
margin-right: -1000px; /*big number to avoid anomaly in bigger screen*/
transition: 0.3s ease;
opacity: 0.6;
}
#newtask button.active{
opacity: 1;
cursor: pointer;
}
/*Animate the button and text area*/
.container:hover #newtask button{
margin-right: 0;
}
.container:hover #newtask input{
width: 75%;
}
/* task addition part */
#tasks{
background-color: #fff;
padding: 30px 20px;
margin-top: 10px;
border-radius: 10px;
width: 100%;
position: relative;
}
.task{
background-color: #c5e1e6;
height: 50px;
margin-bottom: 8px;
padding: 5px 10px;
display: flex;
border-radius: 5px;
align-items: center;
justify-content: space-between;
border: 1px solid #939697;
overflow: hidden;
}
.task span{
font-size: 15px;
font-weight: 400;
}
.task button{
background-color: #0a2ea4;
color: #fff;
height: 100%;
width: 40px;
border-radius: 5px;
border: none;
outline: none;
transition: 0.2s ease;
margin-right: -50px;
}
.task button:hover{
background-color: #fff;
color:#0a2ea4;
cursor: pointer;
}
.container:hover .delete{
margin-right: 0;
}
/* footer */
footer{
text-align: center;
opacity: 10%;
margin-bottom: 15px;
font-size: 12px;
}