Created
June 11, 2023 21:15
-
-
Save CodeLeom/6bd25a116a067823490fcc64be3e1d05 to your computer and use it in GitHub Desktop.
Css styling for the algolia instant search demo
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
em { | |
background: cyan; | |
font-style: normal; | |
} | |
body { font-family: sans-serif; padding: 1em; } | |
.header { | |
display: flex; | |
align-items: center; | |
min-height: 50px; | |
padding: 0.5rem 1rem; | |
background-image: linear-gradient(to right, #8e43e7, #00aeff); | |
color: #fff; | |
margin-bottom: 1rem; | |
} | |
.header a { | |
color: #fff; | |
text-decoration: none; | |
} | |
.header-title { | |
font-size: 1.2rem; | |
font-weight: normal; | |
} | |
.header-title::after { | |
content: ' ▸ '; | |
padding: 0 0.5rem; | |
} | |
.header-subtitle { | |
font-size: 1.2rem; | |
} | |
.container { | |
max-width: 1200px; | |
margin: 0 auto; | |
padding: 1rem; | |
} | |
.search-panel { | |
display: flex; | |
} | |
.search-panel__filters { | |
flex: 1; | |
} | |
.search-panel__results { | |
flex: 3; | |
} | |
.searchbox { | |
margin-bottom: 2rem; | |
} | |
.pagination { | |
margin: 2rem auto; | |
text-align: center; | |
} | |
.ais-SearchBox { margin: 1em 0; } | |
.ais-Pagination { margin-top: 1em } | |
.left-panel { float: left; width: 250px; } | |
.right-panel { margin-left: 260px; } | |
.ais-InstantSearch { max-width: 960px; overflow: hidden; margin: 0 auto } | |
.ais-Hits-item { margin-bottom: 1em; width: calc(50% - 1rem) } | |
.ais-Hits-item img { margin-right: 1em } | |
.hit-name { margin-bottom: .5em } | |
.hit-description { color: #888; font-size: 14px; margin-bottom: .5em } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment