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

White Header Menu with black text #39

Closed
ugreg opened this issue Mar 3, 2021 · 3 comments
Closed

White Header Menu with black text #39

ugreg opened this issue Mar 3, 2021 · 3 comments

Comments

@ugreg
Copy link
Contributor

ugreg commented Mar 3, 2021

I see the default header is a blue color.

image

When I set the color in _config.yml to color: "#FFFFFF" my header becomes this hiding most of the text unless I highlight to reveal it has also been set to white.

image

@vsoch
Copy link
Owner

vsoch commented Mar 3, 2021

That style attribute isn't exposed in the _config.yml, but you can easily update it your self! In assets/css/main.css you'll want to change:

.navbar-dark .navbar-brand {
    color: #fff;
}

and

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, .75);
}

and then add color: black (or similar) to:

.gh-source__repository {
    display: inline-block;
    max-width: 100%;
    margin-left: 1.2rem;
    font-weight: 700;
    text-overflow: ellipsis;
    overflow: hidden;
    vertical-align: middle;
}

For all of the above, change "color" to black (or what you want for the text). Generally if there is something on the page that isn't styled correctly, you can right click --> inspect and use the console to select the element of interest and test changing the style. When you find something that works, make a change in the actual file.

@vsoch
Copy link
Owner

vsoch commented Mar 3, 2021

If you find the elements in the web console, it also show you the line numbers (which makes life a bit easier!)

@ugreg
Copy link
Contributor Author

ugreg commented Mar 3, 2021

Worked like a charm, changed the code as you suggested to this

.gh-source__repository {
    display: inline-block;
    max-width: 100%;
    margin-left: 1.2rem;
    font-weight: 700;
    text-overflow: ellipsis;
    overflow: hidden;
    vertical-align: middle;
    color: #000
}

... more code ...

.navbar-dark .navbar-brand {
    color: #000
}

.navbar-dark .navbar-brand:hover,
.navbar-dark .navbar-brand:focus {
    color: #fff
}

I'll follow this same approach for the tags css.

@ugreg ugreg closed this as completed Mar 3, 2021
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

No branches or pull requests

2 participants