Skip to content

Commit

Permalink
Update userChrome.css for firefox v126
Browse files Browse the repository at this point in the history
Fixing search bar slight movement down on press for Firefox v126.x update.
  • Loading branch information
datguypiko authored May 18, 2024
1 parent c11acd2 commit 7448360
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions userChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@ Order of Toolbars
var(--firefoxcss-top-bar-border-bottom-color) !important;
}

/* Some random 0.01px(???) line removed (Firefox v126.0)*/
#nav-bar { border-top: 0px !important; }

/*=====================================================================
======================= H E I G H T F I X E S =======================
=====================================================================*/
Expand Down Expand Up @@ -472,22 +475,26 @@ about:config -> svg.context-properties.content.enabled -> true*/
============================ S E A R C H B A R ======================
=====================================================================*/

/* Some elements border radius */
#urlbar-input-container,
#searchbar,
#urlbar-container,
#urlbar {
border-radius: var(--firefoxcss-border-radius) !important;
}

/* Remove line in search bar below text separating search results */
#urlbar .urlbarView-body-inner {
border-top: 0px !important;
}

/* Dont remember what this is for */
#urlbar:not(.megabar):not([focused="true"]),
#urlbar:not(.megabar):not([focused="true"]):hover {
border-bottom: transparent;
}

/* Aligns text in the middle of search bar */
#urlbar .urlbar-input-box {
text-align: center;
}
Expand All @@ -503,11 +510,12 @@ about:config -> svg.context-properties.content.enabled -> true*/
box-shadow: var(--firefoxcss-url-box-shadow-color) !important;
}

/* Removes separator line at the bottom of search bar separating search buttons and menus */
.urlbarView:not([noresults]) > .search-one-offs:not([hidden]) {
border-top: none !important;
}

/* Megabar */
/* Megabar - Popout search bar on focus */
#urlbar[breakout] {
height: auto !important;
}
Expand All @@ -527,14 +535,18 @@ about:config -> svg.context-properties.content.enabled -> true*/
transition: none !important;
}

#urlbar[breakout][breakout-extend] {
#urlbar[breakout] {
top: calc(
(var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2
) !important;
left: 0 !important;
width: 100% !important;
}

#urlbar[breakout]:not([open]){
bottom: calc((var(--urlbar-container-height) - var(--urlbar-height)) / 2) !important;
}

/* Styling Extra search bar that you can add to firefox */
#search-container #searchbar {
outline: 0 !important;
Expand Down

0 comments on commit 7448360

Please sign in to comment.