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

Remove Overflow: scroll, Fix Transition var, Add .link-text transition #28

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

EmanueleSpadaro
Copy link

Hi!
I tried to fix some project issues.
Honestly I don't know why you merged to master a commit where overflow: scroll was applied to '.navbar', it literally broke the navbar layout as you can see in the gif.
overflowfix

Secondly I fixed the transition time in .navbar since it was set as a constant of 600ms, I switched the value with the variable we previously declared at the start of the .css document.

Lastly, I made sure that the .link-text appears only when it doesn't exceed the navbar border while it's expanding on hover by using a combination of CSS properties like visibility, opacity and transition for both of them.

.navbar class had a constant transition value, thus we weren't able to change that simply by modifying the previously declared --transition-speed variable
Fixing .link-text class to make the text appear gradually together to the navbar by the use of opacity, visibility and transition for such properties.

I switched to display: inline, it was pointless to set display: none by default since the text wouldn't appear no matter what in large screens given the fact that the '.navbar when not :hover' wouldn't allow it to be seen with its 5rem width.

I added the 'display: none' property to .link-text while in small screens to avoid the menu layout to be broken by such changes.
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.

1 participant