-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.css
143 lines (128 loc) · 2.56 KB
/
template.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
:root{
--dark:#374151;
--darker:#1f2937;
--darkest:#111827;
--gray:#6B7280;
--light:#EEE;
--pink:#EC4899;
--purple:#8B5CF6;
}
*{
box-sizing: border-box;
margin: 0;
font-family: 'fira sans',sans-serif;
}
body{
display: flex;
flex-direction: column;
min-height: 100vh;
background: var(--dark);
color:#FFF;
}
header{
padding: 2rem 1rem;
max-width:800%;
width:100%;
margin: 0;
}
header h1{
font-size: 2.5rem;
font-weight: 300;
color:var(--gray);
margin-bottom: 1rem;
}
#new-task-form{
display: flex;
}
input , button{
appearance:none;
border:none;
outline: none;
background:none;
}
#new-task-input{
flex: 1 1 0% ;
background-color: var(--darker) ;
padding: 1rem;
border-radius: 1rem;
margin-right: 1rem;
color: var(--light);
font-size: 1.25rem;
}
#new-task-input::placeholder{
color:var(--pink);
}
#new-task-submit{
font-size: 1.25rem;
font-weight: 700;
background-image: linear-gradient(to right, var(--pink),var(--purple));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
cursor:pointer;
transition:0.4s;
}
#new-task-submit:hover{
opacity:0.8;
}
#new-task-submit:active{
opacity:0.6;
}
main{
flex: 1 1 0%;
max-width: 800px;
width:100%;
margin:0 auto;
}
.task-list{
padding: 1rem;
}
.task-list h2{
font-size:1.5rem;
font-weight:300;
color:var (--gray);
margin-bottom:1rem;
}
#tasks .task{
display: flex;
justify-content: space-between;
background-color: var(--darkest);
padding:1rem;
border-radius:1rem;
margin-bottom:1rem;
}
#tasks .task .content .text{
color: var(--light);
font-size:1.125rem;
width: 100%;
display: block;
transition:0.4s;
}
#tasks .task .content .text:not(:read-only){
color:var(--pink);
}
#tasks .task .actions{
display: flex;
margin: 0 -0.5rem;
}
.task .actions button{
cursor: pointer;
margin: 0 0.5rem;
font-size: 1.125rem;
font-weight: 700;
text-transform: uppercase;
transition:0.4s;
}
.task .actions button:hover{
opacity:0.8;
}
.task .actions button:active{
opacity:0.6;
}
.task .actions .edit{
background-image: linear-gradient(to right, var(--pink),var(--purple));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.task .actions .delete{
color:red;
}