Skip to content

Commit

Permalink
Merge pull request #25 from soup-bowl/soup-bowl/8-menu-button-clipping
Browse files Browse the repository at this point in the history
Fix buttons and tabs toolbar going off-screen
  • Loading branch information
soup-bowl authored Jan 26, 2024
2 parents 32f80ad + 64720e1 commit 206cd08
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 13 deletions.
45 changes: 32 additions & 13 deletions IE6/chrome/toolbars.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,43 @@

/* Hacks overrides*/
#navigator-toolbox {
padding-top: calc(23px + var(--uc-titlebar-padding,0px)) !important;
padding-top: calc(23px + var(--uc-titlebar-padding, 0px)) !important;
}

#toolbar-menubar {
height: 23px !important;
height: 23px !important;
}

/* ! Hacks overrides*/


#nav-bar {
margin-top: 1px !important;
padding: 1px !important;
background: linear-gradient(0deg, rgba(177,189,201,1) 0%, rgba(221,227,235,1) 100%) !important;
background: linear-gradient(0deg, rgba(177, 189, 201, 1) 0%, rgba(221, 227, 235, 1) 100%) !important;
padding-top: 2px !important;
border-top: 1px solid #eef0f3 !important;
border-bottom: 1px solid #86929e !important;
}

/* ! Menu padding - remove these lines if you wish to remove the menu button. */
#main-window[uidensity="compact"] #nav-bar {
padding-right: 14px !important;
}

#main-window[uidensity="normal"] #nav-bar,
#main-window:not([uidensity]) #nav-bar {
padding-right: 18px !important;
}

#main-window[uidensity="touch"] #nav-bar {
padding-right: 20px !important;
}
/* ! Menu padding */

toolbar:not(#TabsToolbar):not(#toolbar-menubar):not(#nav-bar) {
-moz-appearance: none !important;
margin-bottom: -4px !important;
background: linear-gradient(0deg, rgba(221,227,235,1) 0%, rgba(177,189,201,1) 100%) !important;
background: linear-gradient(0deg, rgba(221, 227, 235, 1) 0%, rgba(177, 189, 201, 1) 100%) !important;
padding: 1px !important;
border-top: 1px solid #eef0f3 !important;
border-bottom: 1px solid #86929e !important;
Expand All @@ -36,15 +51,15 @@ toolbar:not(#TabsToolbar):not(#toolbar-menubar):not(#nav-bar) {

#toolbar-menubar {
-moz-appearance: none !important;
background-color: rgba(221,227,235,1) !important;
background-color: rgba(221, 227, 235, 1) !important;
padding: 0px !important;
padding-left: 2px !important;
}

#main-window[tabsintitlebar="true"] #toolbar-menubar {
border: none !important;
background-image: linear-gradient(to right, #000060,#A1C4E9) !important;
}
background-image: linear-gradient(to right, #000060, #A1C4E9) !important;
}

#main-window[tabsintitlebar="true"] #toolbar-menubar .menubar-text {
color: #fff !important;
Expand All @@ -57,22 +72,26 @@ toolbar:not(#TabsToolbar):not(#toolbar-menubar):not(#nav-bar) {

#TabsToolbar {
-moz-appearance: none !important;
background: linear-gradient(180deg, rgba(98,109,112,1) 0%, rgba(142,157,161,1) 25%);
background: linear-gradient(180deg, rgba(98, 109, 112, 1) 0%, rgba(142, 157, 161, 1) 25%);
padding: 0px !important;
padding-left: 2px !important;
min-height: 27px !important;
}

#TabsToolbar .toolbar-items,
#TabsToolbar-customization-target {
width: 100%;
}

#tabbrowser-tabs {
width: 100vw !important;
/* Suggested by philberthfz to cope with Firefox densities.
https://github.com/soup-bowl/Modoki-Firefox/issues/5#issuecomment-1364602687 */
max-height: 27px !important;
max-height: 27px !important;
}

:root:not([lwtheme-image]) .browserContainer > findbar:-moz-lwtheme {
background-color: rgba(221,227,235,1) !important;
:root:not([lwtheme-image]) .browserContainer>findbar:-moz-lwtheme {
background-color: rgba(221, 227, 235, 1) !important;
background-image: none !important;
}

Expand All @@ -87,4 +106,4 @@ toolbar:not(#TabsToolbar):not(#toolbar-menubar):not(#nav-bar) {
#PersonalToolbar .bookmark-item:hover,
#PersonalToolbar .toolbarbutton-1:hover {
border: 1px outset rgb(221, 227, 235);
}
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ If done correctly, you Firefox will now be skinned with Modern Modoki. **Please
#PanelUI-button { display: none !important; }
```

And comment out **lines 24 to 37** of **toolbars.css**.

## 🌟 Credits

* Inspired by **[Modern Modoki theme][mm]**, itself inspired by **Netscape Navigator**.
Expand Down

0 comments on commit 206cd08

Please sign in to comment.