-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
122 lines (105 loc) · 1.93 KB
/
style.css
File metadata and controls
122 lines (105 loc) · 1.93 KB
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
background-color: #f5f5f5;
color: #333;
display: flex;
justify-content: center;
padding: 40px 16px;
}
.container {
width: 100%;
max-width: 500px;
}
h1 {
text-align: center;
margin-bottom: 24px;
font-size: 28px;
}
/* 입력 폼 */
#todo-form {
display: flex;
gap: 8px;
margin-bottom: 24px;
}
#todo-input {
flex: 1;
padding: 10px 14px;
font-size: 16px;
border: 2px solid #ddd;
border-radius: 8px;
outline: none;
transition: border-color 0.2s;
}
#todo-input:focus {
border-color: #4a90d9;
}
#todo-form button {
padding: 10px 20px;
font-size: 16px;
background-color: #4a90d9;
color: #fff;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.2s;
}
#todo-form button:hover {
background-color: #357abd;
}
/* 할 일 목록 */
#todo-list {
list-style: none;
}
.todo-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background-color: #fff;
border-radius: 8px;
margin-bottom: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.todo-item .title {
flex: 1;
font-size: 16px;
}
.todo-item.completed .title {
text-decoration: line-through;
color: #999;
}
.todo-item .btn-toggle {
padding: 6px 12px;
font-size: 14px;
border: 1px solid #ddd;
border-radius: 6px;
background-color: #fff;
cursor: pointer;
transition: background-color 0.2s;
}
.todo-item .btn-toggle:hover {
background-color: #f0f0f0;
}
.todo-item.completed .btn-toggle {
background-color: #e8f5e9;
border-color: #a5d6a7;
color: #2e7d32;
}
.todo-item .btn-delete {
padding: 6px 12px;
font-size: 14px;
border: 1px solid #ffcdd2;
border-radius: 6px;
background-color: #fff;
color: #c62828;
cursor: pointer;
transition: background-color 0.2s;
}
.todo-item .btn-delete:hover {
background-color: #ffebee;
}