Skip to content

Commit 7b0bf9f

Browse files
committed
style: formatting ToDo layout and UI
1 parent 493c4c9 commit 7b0bf9f

File tree

1 file changed

+115
-2
lines changed

1 file changed

+115
-2
lines changed

style.css

Lines changed: 115 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,123 @@
22
margin: 0;
33
padding: 0;
44
box-sizing: border-box;
5-
/* border: 1px solid red; */
65
}
76
body {
7+
min-height: 100vh;
88
display: grid;
99
place-items: center;
10-
font-family: 'Trebuchet MS', Arial, sans-serif;
10+
font-family: Verdana, Tahoma, sans-serif;
11+
background-image: linear-gradient(#60efff, #357bed);
12+
background-repeat: no-repeat;
13+
background-position: center;
14+
background-size: contain;
15+
}
16+
17+
.container {
18+
width: 400px;
19+
padding: 12px;
20+
border-radius: 6px;
21+
background-color: white;
22+
box-shadow: 0 0 0 2px white;
23+
margin: 128px 0;
24+
}
25+
#todoTitle {
26+
font-size: 32px;
27+
font-weight: bold;
28+
padding: 12px 6px;
29+
}
30+
/* Task Input */
31+
.enterTask {
32+
display: flex;
33+
justify-content: space-between;
34+
align-items: center;
35+
padding: 4px;
36+
margin-bottom: 12px;
37+
}
38+
#taskInput {
39+
width: 85%;
40+
height: 40px;
41+
padding: 16px;
42+
margin: 4px;
43+
border: 1.5px solid gray;
44+
border-radius: 4px;
45+
outline: transparent;
46+
color: rgb(32, 28, 28);
47+
background-color: white;
48+
font-size: 18px;
49+
letter-spacing: .8px;
50+
}
51+
#addSvg {
52+
width: 40px;
53+
height: 40px;
54+
padding: 6px;
55+
margin: 4px;
56+
fill: white;
57+
background-color: #8E49E9;
58+
border: 2px solid transparent;
59+
border-radius: 4px;
60+
cursor: pointer;
61+
}
62+
/* Tasks */
63+
.task-container {
64+
padding: 0 6px;
65+
}
66+
.task {
67+
display: flex;
68+
justify-content: space-between;
69+
align-items: center;
70+
margin-bottom: 12px;
71+
}
72+
.pendingSvg {
73+
width: 20px;
74+
height: 20px;
75+
fill: rgb(0, 0, 0);
76+
cursor: pointer;
77+
}
78+
.taskText {
79+
width: 270px;
80+
word-wrap: break-word;
81+
color: rgb(32, 28, 28);
82+
line-height: 1.4rem;
83+
padding-left: 4px;
84+
}
85+
.editSvg {
86+
width: 30px;
87+
height: 30px;
88+
padding: 5px;
89+
border-radius: 4px;
90+
cursor: pointer;
91+
}
92+
.deleteSvg {
93+
width: 30px;
94+
height: 30px;
95+
padding: 6px;
96+
border-radius: 4px;
97+
fill: white;
98+
background-color: red;
99+
cursor: pointer;
100+
}
101+
/* Clear All Task */
102+
.clearAllTask {
103+
display: flex;
104+
justify-content: space-between;
105+
align-items: center;
106+
padding: 10px 0 0;
107+
margin: 10px 0 0;
108+
border-top: 1px solid black;
109+
}
110+
#clearAllTaskText {
111+
color: rgb(32, 28, 28);
112+
letter-spacing: 0.8px;
113+
}
114+
#clearAllTaskBtn {
115+
width: 100px;
116+
padding: 8px 0;
117+
color: white;
118+
background-color: #8E49E9;
119+
border-radius: 4px;
120+
font-size: 18px;
121+
border: 1px solid white;
122+
outline: transparent;
123+
cursor: pointer;
11124
}

0 commit comments

Comments
 (0)