-
Notifications
You must be signed in to change notification settings - Fork 59
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
Make the position of the global header bar adjustable #528
Comments
The 2.X version will keep the global header on the side for now, but it is likely that it will be kept that way. |
i'm using 2.x only and it would be great to have header/sidebar like on starcitizen wiki |
The English Star Citizen Wiki is still on the 1.X version, though we are planning to update it soon. |
so maybe implement that as a setting...or share the ugly hack that allows to do that for 2.x? |
Maybe later down the line. |
What is the status of this? I would like the header to be on top too, for both desktop and mobile view. Is it too much work to modify the CSS or JS to move it to top? |
Meanwhile, I made this CSS that moves the header to the top (and positions properly all related popups, dropdown menus, page toolbars, etc... that I could find). It isn't perfect, but should help someone who wants to move the header to top on mobile devices. To use it, just go to the @media screen and (max-width: 1129px) {
/* Move the header to top */
.citizen-header {
bottom: unset !important;
top: 0 !important;
}
/* Fix navigation bar, page settings and user card dropdown positions */
.citizen-header .citizen-menu__card {
bottom: unset !important;
top: 50px !important;
}
/* Uncomment to fix notification menu popup position: can be buggy /*
/*.mw-echo-ui-overlay .mw-echo-ui-notificationBadgeButtonPopupWidget-popup {
top: -961px !important;
}*/
/* Fix header position (hide animation) when scrolling down */
.citizen-scroll--down .citizen-header {
transform: translateY(-100%) !important;
}
/* Fix page actions position gap */
.page-actions {
bottom: var(--space-xs) !important;
}
/* Fix ToC position gap */
.citizen-toc {
bottom: var(--space-xs) !important;
}
/* Make header not cover top of body */
.citizen-body-container {
padding-top: var(--header-size);
}
} Note: the CSS was made for Citizen ver. 2.25.0 (6711196) |
Can i switch the header/sidebar to be on top instead of on the left?
The text was updated successfully, but these errors were encountered: