-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
126 lines (108 loc) · 2.18 KB
/
Copy pathstyle.css
File metadata and controls
126 lines (108 loc) · 2.18 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
123
124
125
126
/*BODY & BACKGROUND*/
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: #f0f0f0;
background-image: radial-gradient(black 2px, transparent 2px);
background-size: 20px 20px;
height: 100vh;
overflow: hidden; /* keeps page from scrolling */
}
.todo-container {
position: absolute;
top: 60px;
left: 50px; /* start 50px from the left */
width: 400px;
padding: 20px;
background: white;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
display: flex;
flex-direction: column;
cursor: grab;
user-select: none;
}
.todo-container:active {
cursor: grabbing;
}
/* HEADER & FORM*/
h1 {
text-align: center;
margin-bottom: 20px;
}
form {
display: flex;
gap: 8px;
}
input[type="text"] {
flex-grow: 1;
padding: 10px;
font-size: 16px;
border-radius: 4px;
border: 1px solid #ccc;
}
button {
padding: 10px 16px;
font-size: 16px;
cursor: pointer;
border-radius: 4px;
border: 1px solid #888;
background: #eee;
}
/* SCROLLABLE TASK LIST*/
.task-wrapper {
flex-grow: 1; /* fills available space */
overflow-y: auto; /* scroll when tasks overflow */
margin-top: 20px;
}
ul#task-list {
list-style: none;
padding-left: 0;
margin: 0;
}
li {
background: #f5f5f5;
margin-bottom: 10px;
padding: 10px 12px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: space-between;
}
li label {
flex-grow: 1;
margin-left: 10px;
user-select: none;
}
li input[type="checkbox"] {
transform: scale(1.3);
cursor: pointer;
}
.remove-btn {
margin-left: 10px;
padding: 6px 12px;
font-size: 14px;
cursor: pointer;
border-radius: 6px;
border: 1px solid #888;
background: #eee;
}
li input[type="checkbox"]:checked + label {
text-decoration: line-through;
color: #888;
}
/* FOOTER*/
footer {
text-align: center;
font-size: 14px;
color: #777;
margin-top: 10px;
}
/*OPTIONAL: SCROLLBAR STYLING*/
.task-wrapper::-webkit-scrollbar {
width: 6px;
}
.task-wrapper::-webkit-scrollbar-thumb {
background-color: rgba(0,0,0,0.2);
border-radius: 3px;
}