-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
152 lines (134 loc) · 2.76 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
141
142
143
144
145
146
147
148
149
150
151
152
* {
box-sizing: border-box;
}
body {
display: flex;
align-items: center;
justify-content: center;
background-color: #f0f0ff;
font-family: "Arial", sans-serif;
}
button,
button:focus,
button:focus-visible {
outline: 0;
border: none;
}
#container {
display: flex;
flex-direction: column;
align-items: stretch;
width: 500px;
background-color: #fafafa;
padding: 0px;
box-shadow: 0 20px 30px 0 rgba(1, 1, 1, 0.07);
margin: 96px 0;
border-radius: 20px;
}
#taskForm {
--h: 50px;
display: flex;
gap: 20px;
justify-content: center;
width: 100%;
padding: 24px;
}
#taskForm #taskAdd {
cursor: pointer;
transition: all 0.3s ease-in-out;
width: var(--h);
height: var(--h);
background: #3b44fb;
color: #fff;
text-align: center;
font-size: 32px;
font-weight: 300;
border-radius: 12px;
border: 0;
outline: 0;
will-change: transform;
}
#taskForm #taskAdd:hover {
background: #050fe5;
transform: scale(0.95);
}
#taskForm #taskAdd:active {
transform: scale(0.9);
}
#taskForm input#taskInput {
font-family: inherit;
font-size: 16px;
font-weight: 600;
border: 3px solid #eee;
background-color: #fff;
color: #0d0d0d;
width: calc(100% - var(--h));
padding: 0 18px;
line-height: 1;
border-radius: 12px;
transition: .25s;
}
#taskForm input#taskInput::placeholder {
color: #aaa;
}
#taskForm input#taskInput:focus-visible,
#taskForm input#taskInput:focus {
outline: none;
border-color: #dfdfdf;
}
#tasksList {
padding: 0;
list-style-type: none;
margin: 0 28px;
}
#tasksList li {
--h: 58px;
--bdrs: 12px;
transition: all 0.3s ease-in-out;
box-shadow: 0 20px 30px 0 rgba(1, 1, 1, 0.07);
border-radius: var(--bdrs);
color: #0d0d0d;
padding: 20px;
font-weight: 600;
background-color: #fff;
position: relative;
will-change: transform;
margin-bottom: 24px;
height: var(--h);
}
#tasksList li .delete {
cursor: pointer;
transition: all 0.3s ease-in-out;
position: absolute;
top: 0;
right: 0;
width: var(--h);
height: var(--h);
opacity: 0;
display: flex;
justify-content: center;
align-items: center;
background-color: #fa4b4b;
border-radius: var(--bdrs);
color: #fff;
}
#tasksList li:hover {
transition: all 0.3s ease-in-out;
transform: scale(1.05);
box-shadow: 0 20px 30px 0 rgba(1, 1, 1, 0.2);
}
#tasksList li:hover .delete {
opacity: 1;
}
#tasksList li .delete:hover {
opacity: 0.75;
}
#tasksList li .edit {
transition: 0.3s;
border: 3px solid transparent;
padding: 7px 10px;
border-radius: 10px;
}
#tasksList li .edit[contenteditable="true"] {
border-color: #3b44fb;
}