Fixes lists floating through search box #457
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some of the CSS that's used to render the Algolia autocomplete box doesn't exactly play very nicely with what's in the docs. This modifies the list CSS slightly to correct this issue. I've observed this in Firefox/Chrome/Safari, haven't checked Edge/IE but I suspect it may be in at least Edge as well.
The fix applied here is removing the
relative
positioning forli
elements in the doc. This is to allow the+
symbol to be absolutely positioned in front. With that change this also adjusts thebefore
selector to create and position aninline-block
entry that is not absolutely positioned. This puts it back in line, but to reposition it to how it was before the additional left & right margins were added.Just for reference this is how it should look:
And this is how it looks when you happen to be over a list:
Note that this also happens with anchors:
This addresses the lists only for now, if this isn't merged in before I'll go back and take a look at the anchors too.