miroslavrich / minimalist

Automatically exported from code.google.com/p/minimalist
0 stars 0 forks source link

Auto-hide sidebar #265

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I wanted to auto-hide the sidebar navigation in Gmail so I could actually see 
my email when the window was 1/2 the screen. Here's what I did for Gmail: 

/* There is likely a better way to reference the Gmail toolbar. I see this in 
other CSS codes: .Bu:not(:first-child) */
.nH.oy8Mbf.nn.aeN 
{
    -webkit-transition: margin-left 0.5s ease;
    margin-left: -150px;
}

.nH.oy8Mbf.nn.aeN:hover
{
    margin-left: 0px;                  
}

And for Google Reader, this is quite beautiful: 

/* Nav for me was 236px */
#nav
{
    -webkit-transition: margin-left 0.5s ease;
    margin-left: -180px; /* leaves 56px */
}

#nav:hover
{
    margin-left: 0px;                  
}

#chrome
{
    -webkit-transition: margin-left 0.5s ease;
    margin-left: 236px;
}

#chrome:hover
{
    margin-left: 56px;                  
}

Original issue reported on code.google.com by hamiltont on 23 Jan 2013 at 8:06

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the code! I'll take these under consideration for the update that is 
coming in the next couple days.

Original comment by anst...@gmail.com on 23 Jan 2013 at 8:36

GoogleCodeExporter commented 8 years ago
FYI: The update overwrote these and I had to manually restore them. Perhaps 
there should be a way to detect user modifications to the default modules and 
prompt for what to do

Original comment by hamiltont on 7 Feb 2013 at 7:29

GoogleCodeExporter commented 8 years ago
Yes, that is true. If you are going to make custom options, or modifications to 
options, I recommend doing it in a new module. I will be adding a way to copy 
options into other/new modules. See Issue 79

I will also be making the core module update behavior much more clear with 
warning about the wipe risk

Original comment by anst...@gmail.com on 7 Feb 2013 at 9:36