-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS is not quite so responsive anymore #85
Comments
Maybe including the CSS for Algolia Search #73 changed something? https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.css The following lines look suspicious because they change some behavior based on the the width – it looks as if only algolia classes are affected but what do I know (someone with some actual CSS experience should chip in...) @media all and (min-width: 768px) {
.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column {
display: block;
}
}
@media all and (max-width: 768px) {
.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column {
display: inline-block;
width: auto;
text-align: left;
float: left;
padding: 0;
color: #02060C;
font-size: 0.9em;
font-weight: bold;
text-align: left;
padding: 0;
opacity: 0.5;
}
.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column:before {
display: none;
}
.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column:after {
content: "|";
}
.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--content {
display: inline-block;
width: auto;
text-align: left;
float: left;
padding: 0;
}
.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--content:before {
display: none;
}
} |
We also have a local.css but I don't think that anything in there is responsible. |
TODO: remove CSS selectively and check who the culprit is ("divide et impera")
|
... and Google sent me an email telling me that our website is not responsive anymore and we should fix that. |
The current |
With all the on-the-fly CSS hacking and JS inserting, the layout has suffered, in particular it does not scale nicely anymore on mobile devices or when you narrow the browser window. For instance,
If you compare to the original http://hyde.getpoole.com/ , which scales effortlessly, you see what I mean (and miss).
The text was updated successfully, but these errors were encountered: