[tbb-commits] [torbutton/master] Bug 24702: Remove Mozilla text from banner

gk at torproject.org gk at torproject.org
Tue Jan 9 08:35:47 UTC 2018


commit f3dd9d4caf350bf87550fdec45061f9691f86b48
Author: Arthur Edelstein <arthuredelstein at gmail.com>
Date:   Thu Dec 21 14:45:53 2017 -0800

    Bug 24702: Remove Mozilla text from banner
---
 src/chrome/content/aboutTor/aboutTor.xhtml     |  1 -
 src/chrome/content/aboutTor/donation_banner.js |  2 --
 src/chrome/skin/donation_banner.css            | 17 -----------------
 3 files changed, 20 deletions(-)

diff --git a/src/chrome/content/aboutTor/aboutTor.xhtml b/src/chrome/content/aboutTor/aboutTor.xhtml
index 248df11..0fca4b9 100644
--- a/src/chrome/content/aboutTor/aboutTor.xhtml
+++ b/src/chrome/content/aboutTor/aboutTor.xhtml
@@ -37,7 +37,6 @@ window.addEventListener("pageshow", function() {
     <div id="banner-contents-container">
       <div id="banner-tagline"><span></span></div>
       <div id="banner-slogan"><span></span></div>
-      <div id="banner-mozilla"><span></span></div>
       <a id="banner-donate-button-link"
          href="https://www.torproject.org/donate/donate-pdr-tbb">
         <div id="banner-donate-button">
diff --git a/src/chrome/content/aboutTor/donation_banner.js b/src/chrome/content/aboutTor/donation_banner.js
index 391c28f..85f6af1 100644
--- a/src/chrome/content/aboutTor/donation_banner.js
+++ b/src/chrome/content/aboutTor/donation_banner.js
@@ -46,7 +46,6 @@ let avoidWidows = function (element) {
 let updateTextSizes = function () {
   fitTextInElement(sel("#banner-tagline"));
   fitTextInElement(sel("#banner-slogan"));
-  fitTextInElement(sel("#banner-mozilla"));
   fitTextInElement(sel("#banner-donate-button-inner"));
   avoidWidows(sel("#banner-tagline span"));
 };
@@ -59,7 +58,6 @@ let runDonationBanner = function ({ taglines, slogan, mozilla, donate, shortLoca
   try {
     sel("#banner-tagline span").innerText = taglines[randomInteger(taglines.length)];
     sel("#banner-slogan span").innerText = slogan;
-    sel("#banner-mozilla span").innerText = mozilla;
     let donateButtonText = sel("#banner-donate-button-inner span");
     let rtl = window.getComputedStyle(donateButtonText).direction === "rtl";
     donateButtonText.innerHTML = donate + " " + (rtl ? "◀" : "▶");
diff --git a/src/chrome/skin/donation_banner.css b/src/chrome/skin/donation_banner.css
index c91f0e5..dd9d7be 100644
--- a/src/chrome/skin/donation_banner.css
+++ b/src/chrome/skin/donation_banner.css
@@ -75,23 +75,6 @@
     left: 285px;
     right: 85px;
 }
-#banner-mozilla {
-    align-items: center;
-    bottom: 5px;
-    color: white;
-    display: flex;
-    font-family: sans-serif;
-    left: 85px;
-    position: absolute;
-    right: 285px;
-    text-align: start;
-    top: 120px;
-    white-space: nowrap;
-}
-#banner-mozilla:-moz-dir(rtl) {
-    left: 285px;
-    right: 85px;
-}
 #banner-donate-button {
     background-color: #13a513;
     border: 0px;



More information about the tbb-commits mailing list