diff options
| author | real-zephex <[email protected]> | 2024-05-11 01:33:00 +0530 |
|---|---|---|
| committer | real-zephex <[email protected]> | 2024-05-11 01:33:00 +0530 |
| commit | 4c4f8214637ac8d19e16f71d20542982a5eedad7 (patch) | |
| tree | d59021d92da577b2c38bc591571fe13a35a3b779 /src/app/anime/styles/search.module.css | |
| parent | Merge pull request #24 from zephex-alt/master (diff) | |
| download | dramalama-4c4f8214637ac8d19e16f71d20542982a5eedad7.tar.xz dramalama-4c4f8214637ac8d19e16f71d20542982a5eedad7.zip | |
UI changes, Logic change and complete re-write for anime page
Diffstat (limited to 'src/app/anime/styles/search.module.css')
| -rw-r--r-- | src/app/anime/styles/search.module.css | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/src/app/anime/styles/search.module.css b/src/app/anime/styles/search.module.css new file mode 100644 index 0000000..7c7957f --- /dev/null +++ b/src/app/anime/styles/search.module.css @@ -0,0 +1,77 @@ +.SearchBarContainer { + padding: 1rem 0 0.8rem 0; + width: 40%; +} + +.SearchInputContainer { + display: flex; + align-items: center; + background-color: #121212; + padding: 0.5rem; + border-radius: 0.5rem; +} + +.SearchInputContainer input { + background-color: transparent; + border: none; + outline: none; + color: white; + margin-left: 0.5rem; + font-size: 18px; + font-family: "Atkinson Hyperlegible", serif; + width: 100%; +} + +/* Search Results */ + +.SearchResultsContainer { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); + grid-gap: 0.7rem; +} + +.AnimeEntry { + display: flex; + align-items: center; + justify-content: space-between; + background-color: #252525be; + padding: 0.5rem; + border-radius: 0.5rem; +} + +.AnimeEntry p { + font-size: 18px; +} + +.AnimeEntry img { + border-radius: 0.5rem; +} + +.SearchResultsContainer::-webkit-scrollbar { + height: 0.2rem; +} + +.SearchResultsContainer::-webkit-scrollbar-track { + background-color: var(--softer-purple); +} + +.SearchResultsContainer::-webkit-scrollbar-thumb { + background-color: var(--light-green); + border-radius: 1rem; +} + +@media screen and (max-width: 768px) { + .SearchBarContainer { + width: 100%; + } + + .SearchResultsContainer { + display: flex; + align-items: center; + overflow: auto; + } + + .AnimeEntry p { + width: 50vw; + } +}
\ No newline at end of file |