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

✨ NEW: Add a shadow to topbar, on scroll #255

Merged
merged 4 commits into from
Nov 14, 2020

Conversation

pradyunsg
Copy link
Member

Fixes #153

@choldgraf
Copy link
Member

Nice! I think this is a nice step. Do you think there is a way that we could make the shadow a bit softer? It seems like it "jumps out" at me on the page, though that might just be because I am used to no shadow and I would get used to it quickly. What do you think?

@pradyunsg
Copy link
Member Author

Done!

Before:

Screenshot 2020-11-10 at 4 19 13 AM

After:

Screenshot 2020-11-10 at 4 18 39 AM

@choldgraf
Copy link
Member

This is better! I am happy with this level of boldness :-)

One other quick thought, and maybe this is just me being OCD, but it's kinda bugging me that there is just a tiny bit of space on the left where the shadow doesn't extend, but before we hit the sidebar:

image

Is that something easily fixable? I don't think it's a dealbreaker

@pradyunsg
Copy link
Member Author

Is that something easily fixable? I don't think it's a dealbreaker

It's tricky with the way that the elements are organised. Maybe someone smart can figure it out, but for now I've set the box-shadow to never overflow over the left/right by setting the box's size to be -6px -- that's what's causing this behavior that you're seeing.

I can tell you it bothers me as much as it bothers you, but "perfect is the enemy of good" -- IOW, I didn't want to spend an hour fighting with the browser. :)

@choldgraf
Copy link
Member

Agree 💯, was just mentioning it in case it was an easy fix. I'm +1 on this once the merge conflict is resolved.

@pradyunsg
Copy link
Member Author

If someone else could do the rebase/merge, that'd be great! :)

I don't think I'll be able to get to this at least for a few days.

- Cleans up the CSS margin+padding.
- Adds a div.row to hold the contents.
@choldgraf choldgraf changed the title Add a shadow to topbar, on scroll ✨ NEW: Add a shadow to topbar, on scroll Nov 14, 2020
@choldgraf choldgraf merged commit 1a56dad into executablebooks:master Nov 14, 2020
@choldgraf
Copy link
Member

this looks great @pradyunsg - thanks for adding this, I quite like it! 🎉

@pradyunsg pradyunsg deleted the shadow-on-scroll branch November 14, 2020 18:06
@pradyunsg
Copy link
Member Author

Yay! I’m glad!

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.

Add a shadow to the top bar on scroll
2 participants