Skip to content

Commit

Permalink
Made the search bar dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyRivasDev committed Jun 12, 2024
1 parent 3c87cfb commit 57ed27a
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ section {
margin-top: 120px;
}

.heading-section {
text-align: center;
margin-top: 50px;
}

.heading-section h4 {
color: #356de4;
font-size: 34px;
Expand All @@ -205,6 +210,30 @@ section {
text-decoration: underline;
}

#searchInput {
width: 100%;
max-width: 400px;
padding: 10px;
font-size: 16px;
border-radius: 5px;
border: 1px solid #ccc;
margin: 0 auto;
display: block;
}

#searchButton {
padding: 10px 20px;
font-size: 16px;
background-color: #e75e8d;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
margin-top: 10px;
display: block;
margin: 10px auto;
}

/*
---------------------------------------------
Pre-loader Style
Expand Down Expand Up @@ -384,3 +413,34 @@ Most Popular Style
.hidden{
display: none;
}

/*
---------------------------------------------
Media Queries (Responsive Styles)
---------------------------------------------
*/

@media (max-width: 768px) {
#searchInput {
max-width: 300px;
font-size: 14px;
}

#searchButton {
font-size: 14px;
padding: 8px 16px;
}
}

@media (max-width: 480px) {
#searchInput {
max-width: 200px;
font-size: 12px;
padding: 8px;
}

#searchButton {
font-size: 12px;
padding: 6px 12px;
}
}

0 comments on commit 57ed27a

Please sign in to comment.