Issue with CSS code snippets from the Wiki #3670
-
UpdateChanged the file to this:
Now I can't drag the Window because there's not enough space to grab it. Any ideas how to fix that Old ProblemAny way to fix this thing that suddenly happened with my browser? This is my UserChrome.css file:
Not sure exactly what happened, but my browser started showing up like this. I'm using code snippets for the Wiki and they were working fine for more than a year, only for it to start showing like this. The intended effect is to have the Minimize, Restore, and Close buttons in the space left by one of the code snippets without all the empty space. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
You can insert flexible space that is grab-able in the "Customize Toolbar" option. |
Beta Was this translation helpful? Give feedback.
-
the following userChrome.css config fixed auto hide tabs & moving minimize, maximize & close buttons to the right of the hamburger menu: /* Hide main tabs toolbar */
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items {
opacity: 0;
pointer-events: none;
}
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
visibility: collapse !important;
}
/* Sidebar min and max width removal */
#sidebar-box {
max-width: none !important;
min-width: 0px !important;
}
/* Hide splitter, when using Tree Style Tab. */
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] + #sidebar-splitter {
display: none !important;
}
/* Hide sidebar header, when using Tree Style Tab. */
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
visibility: collapse;
}
/* Shrink sidebar until hovered, when using Tree Style Tab. */
:root {
--thin-tab-width: 30px;
--wide-tab-width: 200px;
}
#sidebar-box:not([sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]) {
min-width: var(--wide-tab-width) !important;
max-width: none !important;
}
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] {
position: relative !important;
transition: all 100ms !important;
min-width: var(--thin-tab-width) !important;
max-width: var(--thin-tab-width) !important;
}
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]:hover {
transition: all 200ms !important;
transition-delay: 0.2s !important;
min-width: var(--wide-tab-width) !important;
max-width: var(--wide-tab-width) !important;
margin-right: calc((var(--wide-tab-width) - var(--thin-tab-width)) * -1) !important;
z-index: 999 !important;
}
/* Adding empty space for buttons */
#nav-bar {
margin-top: -45px;
margin-right: 150px;
}
/* 15px for dragging whole window by mouse*/
#titlebar {
appearance: none !important;
height: 0px;
}
/* Fix for main menu calling by Alt button */
#titlebar > #toolbar-menubar {
margin-top: 0px;
}
/* Move minimize/restore/close buttons to empty space */
#TabsToolbar > .titlebar-buttonbox-container {
display: block;
position: absolute;
top: 7px !important;
bottom: 0px !important;
right: 1px;
} |
Beta Was this translation helpful? Give feedback.
-
Fixed it to my liking with the following code
Looks like this, with minimal space to grab the window |
Beta Was this translation helpful? Give feedback.
Fixed it to my liking with the following code