Skip to content

Commit 250190f

Browse files
authored
Update style.css
1 parent fb77ccd commit 250190f

1 file changed

Lines changed: 75 additions & 10 deletions

File tree

  • task11-delete-list-items-dynamically
Lines changed: 75 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,35 @@
1+
* {
2+
box-sizing: border-box;
3+
}
4+
15
body {
2-
padding: 100px;
6+
padding: 100px 20px;
37
text-align: center;
4-
background: linear-gradient(to right, #2624ac, #64db46);
8+
background-color: blueviolet;
59
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
610
}
711

812
.container {
913
background-color: white;
1014
padding: 30px;
11-
width: 30%;
15+
width: 90%;
16+
max-width: 500px;
1217
margin: auto;
1318
border: none;
14-
border-radius: 50px;
19+
border-radius: 25px;
20+
}
21+
22+
h1 {
23+
font-size: 22px;
24+
margin-bottom: 20px;
1525
}
1626

1727
.input-section {
1828
display: flex;
1929
align-items: center;
2030
justify-content: center;
2131
gap: 10px;
32+
flex-wrap: wrap;
2233
}
2334

2435
input {
@@ -27,6 +38,7 @@ input {
2738
border: 3px solid grey;
2839
border-radius: 10px;
2940
width: 60%;
41+
min-width: 200px;
3042
}
3143

3244
button {
@@ -39,22 +51,75 @@ button {
3951
border-radius: 10px;
4052
}
4153

54+
ul {
55+
padding: 0;
56+
margin-top: 20px;
57+
display: flex;
58+
flex-direction: column;
59+
align-items: center;
60+
}
61+
4262
li {
4363
padding: 8px 12px;
44-
border: none;
4564
border-radius: 10px;
46-
background-color: burlywood;
65+
background-color: rgb(241, 223, 200);
4766
list-style: none;
4867
margin-bottom: 10px;
49-
width: 85%;
50-
text-align: left;
68+
width: 100%;
69+
max-width: 90%;
5170
display: flex;
5271
justify-content: space-between;
5372
align-items: center;
73+
box-sizing: border-box;
5474
}
5575

5676
li button {
5777
background-color: cornflowerblue;
58-
padding: 8px 10px;
78+
color: white;
79+
font-weight: bold;
5980
border: none;
60-
}
81+
border-radius: 6px;
82+
padding: 6px 12px;
83+
cursor: pointer;
84+
font-size: 14px;
85+
}
86+
87+
@media (max-width: 340px) {
88+
.container {
89+
width: 90%;
90+
padding: 20px;
91+
border-radius: 30px;
92+
}
93+
94+
.input-section {
95+
flex-direction: column;
96+
gap: 10px;
97+
width: 100%;
98+
}
99+
100+
input {
101+
width: 100%;
102+
font-size: 14px;
103+
box-sizing: border-box;
104+
}
105+
106+
button {
107+
width: 100%;
108+
font-size: 14px;
109+
box-sizing: border-box;
110+
}
111+
112+
li {
113+
width: 100%;
114+
font-size: 14px;
115+
flex-direction: column;
116+
align-items: flex-start;
117+
gap: 6px;
118+
}
119+
120+
li button {
121+
align-self: flex-end;
122+
font-size: 13px;
123+
padding: 6px 10px;
124+
}
125+
}

0 commit comments

Comments
 (0)