forked from caquinho123poq/To-Do-List-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTo-Do List.css
More file actions
116 lines (99 loc) · 3.5 KB
/
To-Do List.css
File metadata and controls
116 lines (99 loc) · 3.5 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
body {
font-family :'Times New Roman', Times, serif;
height: 100vh; /* Sets the height to the 100% viewport height */
margin: 0;
background-image: url("https://images.pexels.com/photos/2736499/pexels-photo-2736499.jpeg?cs=srgb&dl=pexels-content-pixie-1405717-2736499.jpg&fm=jpg");
background-repeat: no-repeat;
background-size: cover; /* Ensures that image covers the entire viewport. */
background-position: center; /* Centers the background image. */
}
h2 {
color: saddlebrown;
padding-top: 20px; /* Adds 20px of space inside the top of the h2 element, */
margin-top: 10px; /* Adds 10px of space outside the top of the h2 element. */
padding-left: 3px; /*Adds 3px of space inside the left of the h2 element. */
text-shadow: 10px 4px 5px #d2b48c;
}
img {
padding: 5px; /* Adds padding around the image. */
width: 20px; /* Sets the width of the image. */
}
.container {
position: absolute; /* keep original positioning */
left: 10px; /* same as original */
top: 40px; /* same as original */
padding: 20px 30px; /* slightly more padding for better look */
width: 80%;
max-width: 570px;
/* glass effect */
background: rgba(255, 255, 255, 0.2); /* semi-transparent */
backdrop-filter: blur(10px); /* frosted glass blur */
-webkit-backdrop-filter: blur(1px); /* Safari support */
border-radius: 15px; /* rounder corners */
border: 1px solid rgba(255, 255, 255, 0.3); /* subtle glass border */
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* soft shadow for depth */
margin-bottom: 20px; /* keep original */
margin-left: 10px; /* keep original */
}
.input-container {
display: flex;
margin-bottom: 20px; /* Adds 20px of space outside the bottom of the input container. */
margin-right: 5px; /* Adds 5px of space outside the right of the input */
padding-right: 5px; /* Adds 5px of space inside the right of the input container. */
}
.input-container input {
flex : 1;
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px 0 0 5px; /* Rounds all the left corners , i.e left top & bottom. */
outline: none; /* Removes the default outline on focus. */
}
.input-container button {
padding: 10px 20px; /* Adds padding inside the button. */
border: none;
background-color: #ff6b6b;
color: white;
border-radius: 0 5px 5px 0; /* Rounds all the right corner , i.e right top & bottom. */
}
.input-container button:hover {
background-color: #ff4c4c /* Changes the background color on hover. */
}
#task-list {
list-style: none; /* Removes the default list styling. */
padding: 0;
margin: 0;
}
.task-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 15px;
margin-bottom: 10px;
border-radius: 12px;
background-color: #d5c9b9; /* new background color */
box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* keeps subtle shadow */
transition: all 0.3s ease;
}
.task-item.completed {
text-decoration :line-through; /* Strikes through the text. */
color: #aaa;
}
.delete-btn {
background: #8b4512;
color: #fff;
border: none;
padding: 5px 10px; /* Adds padding between and inside the button. */
border-radius: 4px; /* Rounds the corner. */
cursor: pointer; /* Changes the cursor to the pointer when hovered. */
}
input:focus {
border-color: #ff6b6b;
box-shadow: 0 0 5px rgba(255,107,107,0.5);
}
button:hover {
transform: scale(1.05);
transition: 0.2s;
}
input {
background-color: #f5f0e6;
}