Skip to content
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

The search bar lowers down for no clear reason #357

Closed
norogoth opened this issue Jul 1, 2021 · 2 comments · Fixed by #358
Closed

The search bar lowers down for no clear reason #357

norogoth opened this issue Jul 1, 2021 · 2 comments · Fixed by #358

Comments

@norogoth
Copy link
Contributor

norogoth commented Jul 1, 2021

I am a full-stack web developer looking for open-source projects to contribute to. I was looking into making a minor CSS edit to improve the responsibility of the header.

The Issue
When I resize the window by shortening it to 747 or lower in length, the search bar will drop down.
2021-07-01_14-33

2021-07-01_14-33_1

Attempting to look for solution
I noticed that the search element has the following HTML

<input type="search" class="form-control" name="search" id="search" size="30" value="" placeholder="Search">

I searched for the class "form-control" in ranetto.css for options but could not find that class. Am I looking in the wrong place to help with this issue?

@ryanlelek
Copy link
Owner

Hello 👋
You're in the right place.

The ".form-control" styles are probably coming from another, non-Raneto, CSS file.
It's probably from Bootstrap.
Because Raneto's CSS loads after Bootstraps, you can override it.
"form-control" does not exist yet, so you'll need to add it and you'll be off and running.

.form-control {
  /* Custom CSS Here */
}

However, because form-control is shared with many different elements, try to be specific on the id if you just want to affect the search bar and only the search bar.
There might be rules already for #search in Raneto's CSS

So things would look more like

#search {
  /* Custom CSS Here */
}

Hope that helps!

@norogoth
Copy link
Contributor Author

norogoth commented Jul 2, 2021

I have a solution but I cannot seem to get this bar centered when it collapses to a single column.

2021-07-02_11-17
I am using
css @media only screen and (max-width: 470px) { #search-and-login { align-items:baseline; } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants