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

Fix links on darkmode navbar #99

Merged
merged 5 commits into from
Mar 15, 2023
Merged

Conversation

kandasamyc
Copy link
Contributor

@kandasamyc kandasamyc commented Mar 4, 2023

Closes #47

@tybug tybug self-requested a review March 7, 2023 01:12
Copy link
Contributor

@tybug tybug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleaned up some things, otherwise the solution of making the navbar transparent seems conceptually sound to me. Manual adjustment of site-navbar is unfortunate but acceptable in this case.

Comment on lines 23 to 25
#site-navbar {
background-color: black !important;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this !important isn't necessary. Each use of !important should be carefully considered as it can lead to difficult to debug bugs.

@@ -182,8 +182,7 @@

{% comment %} TODO rewrite star generation so this isn't necessary {% endcomment %}
{% if request.session.color_scheme == "dark" %}
<!-- make sure we're above bootstrap's navbar -->
<canvas id="navbar-canvas" style="z-index: 1100"></canvas>
<canvas id="navbar-canvas" style="z-index: 1000"></canvas>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pretty sure no z-index is necessary here at all now that the navbar is transparent.

@tybug tybug merged commit c40e890 into planetterp:master Mar 15, 2023
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 this pull request may close these issues.

Links and search in navbar don't work when using dark mode
2 participants