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

Add an additional option for closedPos. #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add an additional option for closedPos. #47

wants to merge 1 commit into from

Conversation

jonathanhaslett
Copy link

closedPos: "absolute",// String: Position of the closed nav.

Works the same as openPos, prevents from needing to use !important in CSS or modify the JS library if you want to set an alternative default position.

Also, to get the positions entirely from CSS, both options can be set to "". I didn't make this the default to ensure backwards compatibility with existing sites.

I've also updated readme.md to include the new option.

I've been working with responsive-nav in a project and need to modify it to make it flexible enough to fit my needs. Hoping to push the changes back into the project for everyone else's benefit.

Signed-off-by: Jonathan Haslett [email protected]

closedPos: "absolute",// String: Position of the closed nav.

Works the same as openPos, prevents from needing to use !important in CSS or modify the JS library if you want to set an alternative default position.

Also, to get the positions entirely from CSS, both options can be set to "". I didn't make this the default to ensure backwards compatibility with existing sites.

I've also updated readme.md to include the new option.

I've been working with responsive-nav in a project and need to modify it to make it flexible enough to fit my needs. Hoping to push the changes back into the project for everyone else's benefit.

Signed-off-by: Jonathan Haslett <[email protected]>
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