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

[request] LeftNav can be RightNav? #62

Closed
tofanelli opened this issue Nov 14, 2014 · 6 comments
Closed

[request] LeftNav can be RightNav? #62

tofanelli opened this issue Nov 14, 2014 · 6 comments
Labels
customization: css Design CSS customizability new feature New feature or request

Comments

@tofanelli
Copy link

hello mate!

nice framework you have! =) ... excellent job!

Quick question... i have a website on demand to finish, and your LeftNav component will be superb on that, but, in a certain time I will need it as a right one.... is it possible to do this?

thanks very much! =)

@0x0ece
Copy link
Contributor

0x0ece commented Nov 17, 2014

If you need a quick hack, add this to your CSS (basically substitute every left with right, and restore left to auto):

.mui-left-nav .mui-left-nav-menu {
    left: auto;
    right: 0px;
    -webkit-transition: right 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
    -moz-transition: right 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
    -o-transition: right 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
    transition: right 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
}

.mui-left-nav.mui-closed .mui-overlay {
    left: auto;
    right: -100%;
    -webkit-transition: right 0ms cubic-bezier(0.23, 1, 0.32, 1) 400ms, background-color 400ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
    -moz-transition: right 0ms cubic-bezier(0.23, 1, 0.32, 1) 400ms, background-color 400ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
    -o-transition: right 0ms cubic-bezier(0.23, 1, 0.32, 1) 400ms, background-color 400ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
    transition: right 0ms cubic-bezier(0.23, 1, 0.32, 1) 400ms, background-color 400ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
}

.mui-left-nav.mui-closed .mui-left-nav-menu {
    left: auto;
    right: -266px;
}

@tofanelli
Copy link
Author

sweet!!! thanks very very much!!! =)

quick question... any plans to add a RightNav in future?

@0x0ece
Copy link
Contributor

0x0ece commented Nov 17, 2014

I'm not one of the developers, but I assume so (I just played around a bit). You can always submit your pull request :)

@tofanelli
Copy link
Author

ops... sorry.... i thought you was....

i'm trying to learn how github works yet.... sorry and thanks very very much =)

@mmrtnz mmrtnz closed this as completed in eab8925 May 1, 2015
@mmrtnz
Copy link
Contributor

mmrtnz commented May 1, 2015

Hi @tofanelli! We've added a new prop called openRight which will solve your issue without needing to modify any CSS. This will be part of the v0.8.0 release which will no longer have component CSS classes.

@tofanelli
Copy link
Author

hey @mmrtnz .... glad to hear this news.... i will update here and see the news =)

cheers =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customization: css Design CSS customizability new feature New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants