-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
125 lines (110 loc) · 2.07 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
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: #dfe6e9;
color: #333333;
font-family: "Sen", sans-serif;
}
#app {
max-width: 450px;
width: 90%;
background: #fff;
margin: 5% auto;
border-radius: 0.5rem;
display: flex;
flex-direction: column;
padding: 1.5rem;
}
#todo-title {
font-size: 1.5rem;
margin-bottom: 0.2rem;
}
#todo-subtitle {
font-size: 0.85rem;
position: relative;
width: 100%;
padding-bottom: 1.4rem;
margin-bottom: 1.4rem;
color: #7a7a7a;
}
#todo-subtitle::after {
content: "";
width: 2.6rem;
height: 5px;
position: absolute;
bottom: 0;
left: 0;
background: #2cafc9;
}
#todo-input {
outline: none;
border: 1px solid #eaeaea;
height: 2.2rem;
padding: 0 0.7rem;
color: #333333;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.2);
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
margin-bottom: 1rem;
border-radius: 2px;
}
#todo-input:focus,
#todo-input:hover {
border: 1px solid #2cafc9;
}
#todo-input::placeholder {
color: #bfbfbf;
}
#todo-submit {
border: none;
background: #2cafc9;
color: #fff;
width: 100%;
height: 2.2rem;
border-radius: 2px;
outline: none;
cursor: pointer;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.2px;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
margin-bottom: 2rem;
}
#todo-submit:hover {
background: #2098b0;
}
#todo-output {
list-style-type: none;
display: flex;
flex-direction: column;
row-gap: 0.6rem;
}
#todo-output li {
font-size: 0.8rem;
padding: 0.7rem 1rem;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
position: relative;
border-left: 3px solid #dfe6e9;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
cursor: pointer;
}
#todo-output li::after {
content: "\203A";
font-size: 1.2rem;
position: absolute;
top: 50%;
right: 0.7rem;
color: #babebf;
transform: translateY(-50%);
}
#todo-output li:hover {
border-left: 3px solid #2098b0;
}
#todo-output li:hover::after {
color: #2098b0;
}