Skip to content

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