Skip to content

Commit

Permalink
Made responsive for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapandey78 committed Jul 10, 2024
1 parent 96fff9b commit 5f8fef7
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/Todo/Todo.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ body {
min-height: 100vh;
padding-top: 3%;
background-image: url(https://www.pixelstalk.net/wp-content/uploads/2016/10/Anime-Landscape-Backgrounds.jpg);
background-size: cover;
background-position: center;
color: white;
transition: 0.3s linear;
overflow: hidden;
Expand Down Expand Up @@ -184,9 +186,11 @@ li span {
background-color: #8d1407;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
.header {
font-size: 2rem;
font-size: 1.5rem;
min-height: 20vh;
}

section h1 {
Expand All @@ -198,19 +202,36 @@ li span {
}

form {
flex-direction: column;
font-size: 1.2rem;
padding: 0.4rem;
}

form input {
font-size: 1.2rem;
padding: 5px;
border-radius: 10px;
margin-bottom: 10px;
}

form button {
font-size: 1.2rem;
padding: 10px;
border-radius: 10px;
width: 100%;
}

.todo-item {
font-size: 1.2rem;
padding: 0.5rem 0.8rem;
grid-template-columns: 1fr 0.1fr 0.1fr;
min-width: 100%;
}

.check-btn,
.delete-btn {
font-size: 1.5rem;
width: 1.2rem;
height: 1.2rem;
}
}

0 comments on commit 5f8fef7

Please sign in to comment.