material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[request] LeftNav can be RightNav?

Open tofanelli opened this issue 12 years ago • 6 comments

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! =)

tofanelli avatar Nov 14 '14 17:11 tofanelli

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;
}

0x0ece avatar Nov 17 '14 03:11 0x0ece

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

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

tofanelli avatar Nov 17 '14 23:11 tofanelli

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

0x0ece avatar Nov 17 '14 23:11 0x0ece

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

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

tofanelli avatar Nov 18 '14 00:11 tofanelli

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.

mmrtnz avatar May 01 '15 16:05 mmrtnz

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

cheers =)

tofanelli avatar May 08 '15 21:05 tofanelli