-
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
c027d39
commit 8e092a5
Showing
24 changed files
with
1,255 additions
and
623 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
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 |
---|---|---|
|
@@ -99,3 +99,8 @@ | |
font-size: 0.8rem; | ||
margin-top: 5px; | ||
} | ||
@media (max-width: 500px) { | ||
.box { | ||
width: 325px; | ||
} | ||
} |
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
127 changes: 74 additions & 53 deletions
127
src/Front_end/homepage/Totalsearch/totalsearch.module.css
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,59 +1,80 @@ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
box-sizing: border-box; | ||
} | ||
|
||
.container { | ||
width: 100%; | ||
max-width: 600px; | ||
height: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
position: relative; /* Ensure relative positioning for absolute children */ | ||
} | ||
|
||
.input { | ||
width: 100%; | ||
padding: 10px; | ||
font-size: 15px; | ||
height: 85%; | ||
border-radius: 5px; | ||
} | ||
|
||
.results { | ||
width: 100%; | ||
display: grid; | ||
gap: 1px; | ||
position: absolute; | ||
z-index: 2; | ||
top: calc( | ||
100% + 10px | ||
); /* Adjust top position to create a gap below the input */ | ||
background-color: #fff; /* Ensure a white background for results */ | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add shadow for a card-like appearance */ | ||
border-radius: 4px; /* Rounded corners for the results box */ | ||
max-height: 300px; /* Limit max height if needed */ | ||
overflow-y: auto; /* Enable scrolling if results exceed max height */ | ||
} | ||
|
||
.resultItem { | ||
padding: 10px; | ||
border: 1px solid #ccc; | ||
background-color: #f9f9f9; | ||
cursor: pointer; /* Add pointer cursor for clickable items */ | ||
} | ||
|
||
.resultItem:hover { | ||
background-color: #ebebeb; /* Lighten background on hover */ | ||
} | ||
|
||
.item { | ||
padding: 10px; | ||
} | ||
|
||
.dmContact { | ||
border-left: 5px solid #1a73e8; /* Blue color for DM Contacts */ | ||
} | ||
|
||
.channel { | ||
border-left: 5px solid #34a853; /* Green color for Channels */ | ||
} | ||
@media (max-width: 850px) { | ||
.container { | ||
width: 100%; | ||
max-width: 600px; | ||
height: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
position: relative; /* Ensure relative positioning for absolute children */ | ||
} | ||
|
||
.input { | ||
width: 100%; | ||
padding: 10px; | ||
font-size: 15px; | ||
height: 85%; | ||
border-radius: 5px; | ||
} | ||
|
||
.results { | ||
width: 100%; | ||
display: grid; | ||
gap: 1px; | ||
position: absolute; | ||
z-index: 2; | ||
top: calc(100% + 10px); /* Adjust top position to create a gap below the input */ | ||
background-color: #fff; /* Ensure a white background for results */ | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add shadow for a card-like appearance */ | ||
border-radius: 4px; /* Rounded corners for the results box */ | ||
max-height: 300px; /* Limit max height if needed */ | ||
overflow-y: auto; /* Enable scrolling if results exceed max height */ | ||
} | ||
|
||
.resultItem { | ||
padding: 10px; | ||
border: 1px solid #ccc; | ||
background-color: #f9f9f9; | ||
cursor: pointer; /* Add pointer cursor for clickable items */ | ||
max-width: 550px; | ||
} | ||
|
||
.resultItem:hover { | ||
background-color: #ebebeb; /* Lighten background on hover */ | ||
} | ||
|
||
.item { | ||
padding: 10px; | ||
} | ||
@media (max-width: 700px) { | ||
.container { | ||
max-width: 450px; | ||
} | ||
|
||
.dmContact { | ||
border-left: 5px solid #1a73e8; /* Blue color for DM Contacts */ | ||
} | ||
@media (max-width: 550px) { | ||
.container { | ||
max-width: 350px; | ||
} | ||
|
||
.channel { | ||
border-left: 5px solid #34a853; /* Green color for Channels */ | ||
} | ||
@media (max-width: 450px) { | ||
.container { | ||
max-width: 250px; | ||
} | ||
} |
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
Oops, something went wrong.