foxgirl-linux/deprecated_patches/megabar.patch

130 lines
4 KiB
Diff
Raw Normal View History

2020-06-05 17:53:19 +02:00
diff --git a/browser/components/urlbar/UrlbarInput.jsm b/browser/components/urlbar/UrlbarInput.jsm
2021-04-19 11:25:30 +02:00
index 73d15df..99cc41b 100644
2020-06-05 17:53:19 +02:00
--- a/browser/components/urlbar/UrlbarInput.jsm
+++ b/browser/components/urlbar/UrlbarInput.jsm
2021-04-19 11:25:30 +02:00
@@ -1692,13 +1692,13 @@ class UrlbarInput {
2020-06-05 17:53:19 +02:00
// Enable the animation only after the first extend call to ensure it
// doesn't run when opening a new window.
- if (!this.hasAttribute("breakout-extend-animate")) {
- this.window.promiseDocumentFlushed(() => {
- this.window.requestAnimationFrame(() => {
- this.setAttribute("breakout-extend-animate", "true");
- });
- });
- }
+ // if (!this.hasAttribute("breakout-extend-animate")) {
+ // this.window.promiseDocumentFlushed(() => {
+ // this.window.requestAnimationFrame(() => {
+ // this.setAttribute("breakout-extend-animate", "true");
+ // });
+ // });
+ // }
}
endLayoutExtend() {
2020-06-08 23:13:03 +02:00
diff --git a/browser/themes/shared/urlbar-searchbar.inc.css b/browser/themes/shared/urlbar-searchbar.inc.css
2021-04-19 11:25:30 +02:00
index e9fde8b..6c4c444 100644
2020-06-08 23:13:03 +02:00
--- a/browser/themes/shared/urlbar-searchbar.inc.css
+++ b/browser/themes/shared/urlbar-searchbar.inc.css
2021-04-19 11:25:30 +02:00
@@ -5,7 +5,7 @@
%endif
2020-06-08 23:13:03 +02:00
%define fieldHoverBorderColor hsla(240,5%,5%,.35)
-%define urlbarMarginInline 5px
+%define urlbarMarginInline 0px
2021-04-19 11:25:30 +02:00
%define urlbarSearchButtonWidth calc(16px + 2 * var(--urlbar-icon-padding))
2020-06-08 23:13:03 +02:00
:root {
2021-04-19 11:25:30 +02:00
@@ -273,9 +273,9 @@
2020-06-08 23:13:03 +02:00
}
#urlbar[breakout][breakout-extend] {
- top: -@urlbarBreakoutExtend@;
- left: calc(-@urlbarMarginInline@ - @urlbarBreakoutExtend@);
- width: calc(100% + 2 * @urlbarMarginInline@ + 2 * @urlbarBreakoutExtend@);
+ top: calc((var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2);
+ left: 0;
+ width: 100%;
}
2021-04-19 11:25:30 +02:00
@supports -moz-bool-pref("browser.proton.urlbar.enabled") {
@@ -288,7 +288,7 @@
@supports not -moz-bool-pref("browser.proton.urlbar.enabled") {
2020-06-08 23:13:03 +02:00
#urlbar[breakout][breakout-extend] > #urlbar-background {
- box-shadow: 0 3px 8px 0 rgba(0,0,0,.15)
+ box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
#urlbar[breakout][breakout-extend][open] > #urlbar-background {
2021-04-19 11:25:30 +02:00
@@ -297,9 +297,9 @@
} /*** END !proton ***/
2020-06-08 23:13:03 +02:00
#urlbar[breakout][breakout-extend] > #urlbar-input-container {
- height: calc(var(--urlbar-toolbar-height) + 2 * @urlbarBreakoutExtend@);
- padding-block: calc(@urlbarBreakoutExtend@ + (var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2);
- padding-inline: calc(@urlbarMarginInline@ + @urlbarBreakoutExtend@);
+ height: var(--urlbar-height);
+ padding-block: 0;
+ padding-inline: 0;
}
2021-04-19 11:25:30 +02:00
@supports -moz-bool-pref("browser.proton.urlbar.enabled") {
@@ -325,7 +325,7 @@
2020-06-08 23:13:03 +02:00
}
#urlbar[breakout][breakout-extend] > #urlbar-background {
- animation-name: urlbar-grow;
+ animation-name: none;
animation-duration: 0s;
animation-timing-function: var(--animation-easing-function);
}
2020-07-01 19:48:01 +02:00
diff --git a/browser/themes/shared/urlbarView.inc.css b/browser/themes/shared/urlbarView.inc.css
2021-04-19 11:25:30 +02:00
index c6ce546..da00fac 100644
2020-07-01 19:48:01 +02:00
--- a/browser/themes/shared/urlbarView.inc.css
+++ b/browser/themes/shared/urlbarView.inc.css
2021-04-19 11:25:30 +02:00
@@ -74,8 +74,8 @@
2020-07-01 19:48:01 +02:00
display: block;
text-shadow: none;
2020-09-30 14:04:18 +02:00
overflow: clip;
2021-04-19 11:25:30 +02:00
- margin-inline: calc(5px + var(--urlbar-container-padding));
- width: calc(100% - 2 * (5px + var(--urlbar-container-padding)));
2020-07-01 19:48:01 +02:00
+ margin-inline: 0;
+ width: 100%;
/* Match urlbar-background's border. */
border-inline: 1px solid transparent;
2021-04-19 11:25:30 +02:00
}
@@ -115,7 +115,7 @@
flex-wrap: nowrap;
2020-07-01 19:48:01 +02:00
fill: currentColor;
fill-opacity: .6;
- padding-block: 3px;
+ padding-block: 0;
}
2021-04-19 11:25:30 +02:00
:root[uidensity=compact] .urlbarView-row {
@@ -280,6 +280,7 @@
2021-02-24 11:42:38 +01:00
object-fit: contain;
flex-shrink: 0;
2020-07-01 19:48:01 +02:00
-moz-context-properties: fill, fill-opacity;
+ margin-inline-start: 20px;
}
2021-04-19 11:25:30 +02:00
@supports not -moz-bool-pref("browser.proton.urlbar.enabled") {
@@ -324,10 +325,10 @@
2020-07-01 19:48:01 +02:00
.urlbarView-type-icon {
position: absolute;
2021-02-24 11:42:38 +01:00
- width: 12px;
2020-07-01 19:48:01 +02:00
- height: 12px;
- margin-bottom: -4px;
- margin-inline-start: 8px;
2021-02-24 11:42:38 +01:00
+ width: 16px;
2020-07-01 19:48:01 +02:00
+ height: 16px;
+ margin-bottom: 0;
+ margin-inline-start: 0;
2021-04-19 11:25:30 +02:00
align-self: end;
2020-07-01 19:48:01 +02:00
background-repeat: no-repeat;
background-size: contain;