Skip to content
This repository was archived by the owner on Nov 21, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 11 additions & 37 deletions navbar/merge-tabbar-navbar-linux.css
Original file line number Diff line number Diff line change
@@ -1,68 +1,42 @@
/*
* Place the navigation bar in the front of the tab bar (Linux)
* Remove toolbar spacers before usage. The left toolbar area will fit 3 buttons by default.
*
* Contributor(s): Madis0
*/

/* Variable values depending on layout. Use these to customize style. */

/* Compact density */
:root[uidensity=compact] {
--tabs-margin-left: 5.5em; /* Keep margin for button background */
--space-before-tabs: 34.5em; /* Left margin for nav bar */
--space-after-tabs: 2em; /* Right margin for caption button, menu */
}

/* Touch density */
:root[uidensity=touch] {
--tabs-margin-left: 7.5em; /* Keep margin for button background */
--space-before-tabs: 34em; /* Left margin for nav bar */
--space-after-tabs: 2.3em; /* Right margin for caption button, menu */
}

/* Normal density */
:root {
--tabs-margin-left: 6.4em; /* Keep margin for button background */
--space-before-tabs: 34em; /* Left margin for nav bar */
--space-after-tabs: 2em; /* Right margin for caption button, menu */
}

/* Static values only depending on touch density */
:root[uidensity=compact] {
--nav-margin-top: -1.9em;
--menu-margin-top: 0.05em;
--nav-margin-top: -2em;
--menu-margin-top: 0.1em;
}

:root[uidensity=touch] {
--nav-margin-top: -2.3em;
--menu-margin-top: 0.1em;
--nav-margin-top: -2.6em;
--menu-margin-top: 0.35em;
}

:root {
--nav-margin-top: -2.1em;
--menu-margin-top: 0.15em;
--nav-margin-top: -2.2em;
--menu-margin-top: 0.35em;
}

/* Adjust tab bar to get space first */
#TabsToolbar {
margin-left: var(--tabs-margin-left) !important;
padding-left: var(--space-before-tabs) !important;
margin-right: var(--space-after-tabs) !important;
margin-bottom: -0.1em; !important; /* Remove bottom border */
padding-left: 37em !important; /* Add specific padding to left */
margin-bottom: -0.1em !important;
}

/* Move nav bar to top left */
#nav-bar {
margin-top: var(--nav-margin-top) !important; /* Move nav bar up */
margin-right: 60vw !important; /* Cut it off with defined width */
margin-bottom: -0.1em !important; /* Remove bottom border */
background-color: transparent !important; /* Make it use tab bar colors */
margin-right: 72.5em !important; /* Cut it off with defined width */
}

/* Move menu button to top right */
#PanelUI-button {
position: fixed; /* Fixed position for menu */
top: var(--menu-margin-top); /* Add some margin to top */
right: 0em; /* Move it to right side (adjust for caption buttons) */
right: 2em; /* Move it to right side (adjust for caption buttons) */
border-left: none !important; /* Remove menu border */
}