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 horizontal arrow positioning #13

Open
alexmansfield opened this issue Apr 15, 2016 · 0 comments
Open

Fix horizontal arrow positioning #13

alexmansfield opened this issue Apr 15, 2016 · 0 comments

Comments

@alexmansfield
Copy link
Contributor

alexmansfield commented Apr 15, 2016

Change arrow placement to use left: 50%; margin-left: -5px; so that the arrow will be centered regardless of the width of the :after element. Like this:

    .toggle-submenu:after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        margin-top: -3px;
        margin-left: -5px;
        height: 0;
        width: 0;
    }
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

No branches or pull requests

1 participant