-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e5c72a
commit b349867
Showing
2 changed files
with
44 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
/* my-next-app/src/components/SearchBar.module.css */ | ||
|
||
.searchBar { | ||
display: flex; | ||
align-items: center; | ||
flex: 1; | ||
margin-left: 50px; /* Add space to the left to accommodate the shifted button */ | ||
transition: opacity 0.3s ease; | ||
display: flex; | ||
align-items: center; | ||
flex: 1; | ||
margin-left: 50px; /* Add space to the left to accommodate the shifted button */ | ||
transition: opacity 0.3s ease; | ||
} | ||
|
||
.input { | ||
flex: 1; | ||
padding: 8px 12px; | ||
border: none; | ||
border-radius: 4px; | ||
font-size: 1rem; | ||
outline: none; | ||
background: #fff; | ||
color: #000; | ||
flex: 1; | ||
padding: 8px 12px; | ||
border: none; | ||
border-radius: 4px; | ||
font-size: 1rem; | ||
outline: none; | ||
background: #fff; | ||
color: #000; | ||
} | ||
|
||
.closeButton { | ||
background: transparent; | ||
border: none; | ||
color: #fff; | ||
font-size: 1.2rem; | ||
cursor: pointer; | ||
margin-left: 8px; | ||
background: transparent; | ||
border: none; | ||
color: #fff; | ||
font-size: 1.2rem; | ||
cursor: pointer; | ||
margin-left: 8px; | ||
} | ||
|
||
.submitButton { | ||
background: transparent; | ||
border: none; | ||
cursor: pointer; | ||
margin-left: 8px; | ||
background: transparent; | ||
border: none; | ||
cursor: pointer; | ||
margin-left: 8px; | ||
} | ||
|
||
/* Responsive Styles */ | ||
@media (max-width: 600px) { | ||
.searchBar { | ||
margin-left: 40px; /* Adjust spacing for smaller screens */ | ||
} | ||
.searchBar { | ||
margin-left: 40px; /* Adjust spacing for smaller screens */ | ||
} | ||
|
||
.input { | ||
font-size: 0.9rem; | ||
} | ||
.input { | ||
font-size: 0.9rem; | ||
} | ||
} | ||
|
||
/* Optional: Style for the placeholder text */ | ||
.input::placeholder { | ||
color: #888; /* Sets placeholder text color to a shade of gray */ | ||
} | ||
color: #888; /* Sets placeholder text color to a shade of gray */ | ||
} |