Skip to content

Commit a733348

Browse files
committed
style: responsive css code
1 parent 7b0bf9f commit a733348

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

style.css

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,30 @@ body {
110110
#clearAllTaskText {
111111
color: rgb(32, 28, 28);
112112
letter-spacing: 0.8px;
113+
padding: 2px 4px;
113114
}
114115
#clearAllTaskBtn {
115116
width: 100px;
116-
padding: 8px 0;
117+
padding: 8px;
117118
color: white;
118119
background-color: #8E49E9;
119120
border-radius: 4px;
121+
white-space: nowrap;
120122
font-size: 18px;
121123
border: 1px solid white;
122124
outline: transparent;
123125
cursor: pointer;
124126
}
127+
/* Responsive Design */
128+
@media screen and (max-width: 450px) {
129+
.container {
130+
width: 90vw;
131+
padding: 8px;
132+
}
133+
.taskText {
134+
width: 70vw;
135+
}
136+
#clearAllTaskBtn {
137+
width: 30vw;
138+
}
139+
}

0 commit comments

Comments
 (0)