Skip to content

Commit

Permalink
Fixed url bar in Firefox ESR not having shadows
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonnev committed Dec 6, 2024
1 parent c3c6798 commit 6231582
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions Private Mode Style/userChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -1262,12 +1262,12 @@ textarea::selection {
#urlbar[focused]:not([open]) {
border: 1px solid rgba(0,0,0,0.4) !important;
background: linear-gradient(to right, #8266C4, #A267A9) !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 0 0 2px var(--accentcolor-percentage) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 0 0 2px var(--accentcolor-percentage) !important;
}
#searchbar:focus-within {
border: 1px solid rgba(0,0,0,0.4) !important;
background: #A267A9 !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 0 0 2px var(--accentcolor-percentage) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 0 0 2px var(--accentcolor-percentage) !important;
}
#urlbar[focused][open],
#urlbar[open]:not([focused]) {
Expand All @@ -1281,12 +1281,12 @@ textarea::selection {
#urlbar:not([focused]){
border: 1px solid rgba(0,0,0,0.4) !important;
background: linear-gradient(to right, #8266C4, #A267A9) !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 1px 0 0 rgba(255,255,255,0.05) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 1px 0 0 rgba(255,255,255,0.05) !important;
}
#searchbar:not(:focus-within) {
border: 1px solid rgba(0,0,0,0.4) !important;
background: #A267A9 !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 1px 0 0 rgba(255,255,255,0.05) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 1px 0 0 rgba(255,255,255,0.05) !important;
}
.urlbarView-url,
.urlbarView-title:not(:empty) ~ .urlbarView-action {
Expand Down
16 changes: 8 additions & 8 deletions Titlebar Enabled/userChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ toolbar .toolbarbutton-1:not(#PanelUI-menu-button) > .toolbarbutton-badge-stack:
border: 1px solid var(--accentcolor-main) !important;
border-radius: 3px !important;
background: #ffffff !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px var(--accentcolor-percentage), 0 0 0 2px var(--accentcolor-percentage) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 0 0 2px var(--accentcolor-percentage) !important;
filter: saturate(150%) !important;
}
#urlbar[focused][open],
Expand All @@ -532,7 +532,7 @@ toolbar .toolbarbutton-1:not(#PanelUI-menu-button) > .toolbarbutton-badge-stack:
border: 1px solid #C8C8C8 !important;
border-radius: 3px !important;
background: #ffffff !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 1px 0 0 rgba(255,255,255,1) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 1px 0 0 rgba(255,255,255,1) !important;
}
#urlbar-background {
border: none !important;
Expand Down Expand Up @@ -1579,7 +1579,7 @@ toolbarbutton.bookmark-item:not(.subviewbutton) {
border: 1px solid #222222 !important;
border-radius: 3px !important;
background: #3A3A3A !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 0 0 2px var(--accentcolor-percentage) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 0 0 2px var(--accentcolor-percentage) !important;
}
#urlbar[focused][open],
#urlbar[open]:not([focused]) {
Expand All @@ -1596,7 +1596,7 @@ toolbarbutton.bookmark-item:not(.subviewbutton) {
border: 1px solid #222222 !important;
border-radius: 3px !important;
background: #3A3A3A !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 1px 0 0 rgba(255,255,255,0.05) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 1px 0 0 rgba(255,255,255,0.05) !important;
}
#urlbar-background {
border: none !important;
Expand Down Expand Up @@ -1869,14 +1869,14 @@ private browsing
border: 1px solid rgba(0,0,0,0.4) !important;
border-radius: 3px !important;
background: linear-gradient(to right, #8266C4, #A267A9) !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 0 0 2px var(--accentcolor-percentage) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 0 0 2px var(--accentcolor-percentage) !important;
filter: none !important;
}
#main-window[privatebrowsingmode="temporary"] #searchbar:focus-within {
border: 1px solid rgba(0,0,0,0.4) !important;
border-radius: 3px !important;
background: #A267A9 !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 0 0 2px var(--accentcolor-percentage) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 0 0 2px var(--accentcolor-percentage) !important;
filter: none !important;
}
#main-window[privatebrowsingmode="temporary"] #urlbar[focused][open],
Expand All @@ -1893,13 +1893,13 @@ private browsing
border: 1px solid rgba(0,0,0,0.4) !important;
border-radius: 3px !important;
background: linear-gradient(to right, #8266C4, #A267A9) !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 1px 0 0 rgba(255,255,255,0.05) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 1px 0 0 rgba(255,255,255,0.05) !important;
}
#main-window[privatebrowsingmode="temporary"] #searchbar:not(:focus-within) {
border: 1px solid rgba(0,0,0,0.4) !important;
border-radius: 3px !important;
background: #A267A9 !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 1px 0 0 rgba(255,255,255,0.05) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 1px 0 0 rgba(255,255,255,0.05) !important;
}
#main-window[privatebrowsingmode="temporary"] #PopupSearchAutoComplete .autocomplete-richlistitem[selected],
#main-window[privatebrowsingmode="temporary"] .searchbar-engine-one-off-item[selected] {
Expand Down
16 changes: 8 additions & 8 deletions base.css
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ toolbar .toolbarbutton-1:not(#PanelUI-menu-button) > .toolbarbutton-badge-stack:
border: 1px solid var(--accentcolor-main) !important;
border-radius: 3px !important;
background: #ffffff !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px var(--accentcolor-percentage), 0 0 0 2px var(--accentcolor-percentage) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 0 0 2px var(--accentcolor-percentage) !important;
filter: saturate(150%) !important;
}
#urlbar[focused][open],
Expand All @@ -525,7 +525,7 @@ toolbar .toolbarbutton-1:not(#PanelUI-menu-button) > .toolbarbutton-badge-stack:
border: 1px solid #C8C8C8 !important;
border-radius: 3px !important;
background: #ffffff !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 1px 0 0 rgba(255,255,255,1) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 1px 0 0 rgba(255,255,255,1) !important;
}
#urlbar-background {
border: none !important;
Expand Down Expand Up @@ -1574,7 +1574,7 @@ toolbarbutton.bookmark-item:not(.subviewbutton) {
border: 1px solid #222222 !important;
border-radius: 3px !important;
background: #3A3A3A !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 0 0 2px var(--accentcolor-percentage) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 0 0 2px var(--accentcolor-percentage) !important;
}
#urlbar[focused][open],
#urlbar[open]:not([focused]) {
Expand All @@ -1591,7 +1591,7 @@ toolbarbutton.bookmark-item:not(.subviewbutton) {
border: 1px solid #222222 !important;
border-radius: 3px !important;
background: #3A3A3A !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 1px 0 0 rgba(255,255,255,0.05) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 1px 0 0 rgba(255,255,255,0.05) !important;
}
#urlbar-background {
border: none !important;
Expand Down Expand Up @@ -1873,14 +1873,14 @@ private browsing
border: 1px solid rgba(0,0,0,0.4) !important;
border-radius: 3px !important;
background: linear-gradient(to right, #8266C4, #A267A9) !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 0 0 2px var(--accentcolor-percentage) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 0 0 2px var(--accentcolor-percentage) !important;
filter: none !important;
}
#main-window[privatebrowsingmode="temporary"] #searchbar:focus-within {
border: 1px solid rgba(0,0,0,0.4) !important;
border-radius: 3px !important;
background: #A267A9 !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 0 0 2px var(--accentcolor-percentage) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 0 0 2px var(--accentcolor-percentage) !important;
filter: none !important;
}
#main-window[privatebrowsingmode="temporary"] #urlbar[focused][open],
Expand All @@ -1897,13 +1897,13 @@ private browsing
border: 1px solid rgba(0,0,0,0.4) !important;
border-radius: 3px !important;
background: linear-gradient(to right, #8266C4, #A267A9) !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 1px 0 0 rgba(255,255,255,0.05) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 1px 0 0 rgba(255,255,255,0.05) !important;
}
#main-window[privatebrowsingmode="temporary"] #searchbar:not(:focus-within) {
border: 1px solid rgba(0,0,0,0.4) !important;
border-radius: 3px !important;
background: #A267A9 !important;
box-shadow: inset 0px 0.1px 0.5px 0.2px rgba(0,0,0,0.18), 0 1px 0 0 rgba(255,255,255,0.05) !important;
box-shadow: inset 0 0 1px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(0,0,0,0.05), 0 1px 0 0 rgba(255,255,255,0.05) !important;
}
#main-window[privatebrowsingmode="temporary"] #PopupSearchAutoComplete .autocomplete-richlistitem[selected],
#main-window[privatebrowsingmode="temporary"] .searchbar-engine-one-off-item[selected] {
Expand Down

0 comments on commit 6231582

Please sign in to comment.