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

Fixed width #4

Open
viki53 opened this issue May 25, 2015 · 2 comments
Open

Fixed width #4

viki53 opened this issue May 25, 2015 · 2 comments

Comments

@viki53
Copy link

viki53 commented May 25, 2015

Hi, on large screens the menu can get larger than needed.

I edited the beginning of my CSS files as follow to get the proper width and enlarge the icons that were tiny:

@media screen and (min-width: 1100px){
    #expanddiv {
        background-color: #1d2d44;
    }
    #app-navigation + #app-content #controls{
        left: 24.3% !important;
        width: 74.2% !important;
    }
    #content {margin-top: 0px;}
    #content-wrapper {
        padding-left: 5.63em !important;
        width: 100% !important;
    }
    #navigation{
        background-color: #1d2d44;
        visibility: visible;
        display: block !important;
        position: fixed !important;
        top: 45px;
        bottom: 0px;
        width: 5.63em !important;
        max-height: 100% !important;
        margin-top: 0 !important;
        -moz-user-select: none;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        -webkit-box-shadow: 0px 0px 0px transparent;
        box-shadow: 0px 0px 0px transparent;
        border-radius: 0px;
    }
    #navigation li{
        display: block;
        margin: 1em 0;
    }
    #navigation a{
        display: block;
        width: auto;
        height: 100%;
        padding: 0 .25em;
        margin: 0;
    }
    #navigation .app-loading .icon-loading-dark{
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left:0;
        width: auto;
        height: auto;
        background-position: center;
        background-color: rgba(0,0,0,.3);
    }
    #navigation #apps {
            margin-top: 0;
            margin-left: 0;
    }
    #navigation #apps ul{
        text-align: center;
    }
    #navigation .app-icon{
        height: 1.5em;
        width: 1.5em;
    }
    #navigation a span{
        display: block;
        width: auto;
        font-size: 11px;
    }

/* A few lines later… */

    #app-settings{
        width: 18.5%;
        width: calc((100% - 5.63em) * .195);
    }

/* Rest of the file goes here */

I'm also wondering if hiding the label by default (showing it on hover on the side — like a tooltip) wouldn't be better. As I have a lot of apps installed, that would gain some space…

@viki53 viki53 changed the title Fix width Fixed width May 25, 2015
@SansPseudoFix
Copy link
Owner

I'm also wondering if hiding the label by default (showing it on hover on the side — like a tooltip) wouldn't be better. As I have a lot of apps installed, that would gain some space…

I agree! I tried to do that this afternoon, here's the result (WIP):

oc_dev_icons_only
oc_dev_icons_only_tooltip

You already can try it with this branch.

I'll also try to enlarge icons for big screen resolution.

Stay tuned :)

@viki53
Copy link
Author

viki53 commented May 26, 2015

Yep, that's what I had in mind. I'll see if I can test it and maybe improve it (with some animation, etc.)

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

2 participants