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

Dockbar #2

Open
benb3342 opened this issue Jun 20, 2013 · 4 comments
Open

Dockbar #2

benb3342 opened this issue Jun 20, 2013 · 4 comments

Comments

@benb3342
Copy link

Hi,

When logged in the task bar appears over the navigation bar like so:

example

Is there a way to swap this?

Thanks for any help or advice

Ben

@pilarargudo
Copy link
Member

Hi Ben,

You can pin the Dockbar pressing red marker (a funcionality of Liferay), or adding the same CSS properties than .navbar-fixed-top for .dockbar in custom.css
.navbar-fixed-top { position: fixed; right: 0; left: 0; z-index: 1030; margin-bottom: 0;}

@bgdaniels
Copy link

First, let me say this is really appreciated. Your code is very well done. However, I am having the above issue where the dockbar is below the navbar. Pining the dockbar just covers up the navbar. I really don't understand what pillarargudo is saying. I've tried this fix several different ways but can't get it to work.

Could someone clarify how to get the navbar below the dockbar when signed in.

thanks

@pilarargudo
Copy link
Member

Hi bgdaniels,

when you pinning the dockbar the CSS properties are the same for .navbar-fixed-top and .lfr-dockbar-pinned .dockbar , this property is top:0;

And you can notice now is applicated from default Liferay dockbar.css stylesheet

html > .lfr-dockbar-pinned {
padding-top: 3.45em;
}

So you should add in your custom.css

.navbar-fixed-top {
    padding-top: 2.6em;
}

and navbar will be below the dockbar.
navbar-dockbar

I hope it is useful for you!

@bgdaniels
Copy link

thank you! That made it much clearer for me.

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

3 participants