Bug 605778 - Small CSS fixes for the new theme [r=mfinkle]
authorVivien Nicolas <21@vingtetun.org>
Wed, 20 Oct 2010 17:18:58 +0200
changeset 66880 d3f6179d7b5f6466ad2689fdea9f903f36ff8025
parent 66879 04fef46224534340edc9a803f7e0a23bc7dec18b
child 66881 c14547ae0ff34778bc555e7dfad9cba319251dad
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs605778
Bug 605778 - Small CSS fixes for the new theme [r=mfinkle]
mobile/chrome/content/browser-ui.js
mobile/chrome/content/browser.js
mobile/themes/core/platform.css
--- a/mobile/chrome/content/browser-ui.js
+++ b/mobile/chrome/content/browser-ui.js
@@ -2624,17 +2624,16 @@ var SharingUI = {
       callback: function callback(aURL, aTitle) {
         let url = "http://www.facebook.com/share.php?u=" + encodeURIComponent(aURL);
         Browser.addTab(url, true, Browser.selectedTab);
       }
     }
   ]
 };
 
-
 var BadgeHandlers = {
   _handlers: [
     {
       _lastUpdate: 0,
       _lastCount: 0,
       url: "https://mail.google.com/mail",
       updateBadge: function(aBadge) {
         // Use the cache if possible
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -1248,25 +1248,31 @@ const BrowserSearch = {
       list.appendChild(button);
     });
 
     popup.hidden = false;
     popup.top = BrowserUI.toolbarH - popup.offset;
     popup.anchorTo(document.getElementById("tool-search"));
 
     document.getElementById("urlbar-icons").setAttribute("open", "true");
+    window.addEventListener("resize", this, true);
     BrowserUI.pushPopup(this, [popup, this._button]);
   },
 
   hide: function bs_hide() {
     this._popup.hidden = true;
     document.getElementById("urlbar-icons").removeAttribute("open");
+    window.removeEventListener("resize", this, true);
     BrowserUI.popPopup();
   },
 
+  handleEvent: function handleEvent(aEvent) {
+    this._popup.anchorTo(document.getElementById("tool-search"));
+  },
+
   observe: function bs_observe(aSubject, aTopic, aData) {
     if (aTopic != "browser-search-engine-modified")
       return;
 
     switch (aData) {
       case "engine-added":
       case "engine-removed":
         // force a rebuild of the prefs list, if needed
--- a/mobile/themes/core/platform.css
+++ b/mobile/themes/core/platform.css
@@ -178,16 +178,20 @@ button[disabled="true"] {
   color: #aaa !important;
   border: 1px solid #cacdd5 !important;
 }
 
 button:focus > .button-box {
   border: 1px solid transparent;
 }
 
+button:not([disabled]):hover:active {
+  background-image: url("chrome://browser/skin/images/toggle-off.png");
+}
+
 /* Override GTK2 system setting */
 .button-icon {
   display: -moz-initial !important;
 }
 
 /* dark buttons ------------------------------------------------------------ */
 button.button-dark {
   color: #fff !important;
@@ -573,36 +577,41 @@ colorpicker > vbox {
   -moz-image-region: auto;
 }
 
 /* menulist ---------------------------------------------------------------- */
 .menulist-label {
   font-family: "Nokia Sans", Tahoma, sans-serif !important;
   font-weight: normal;
   font-size: 24px !important;
+  background-color: none !important;
 }
 
 menulist {
   -moz-appearance: none !important;
   min-width: 56px !important; /* button size */
   min-height: 56px !important; /* button size */
-  color: #000;
+  color: #000 !important;
   border-radius: 8px;
   margin: 8px;
   padding: 10px;
   background-image: url("chrome://browser/skin/images/button-bg.png");
   background-size: auto 100%;
   border: 1px solid #cacdd5;
 }
 
 menulist[disabled="true"] {
   color: #aaa !important;
   border: 1px solid #cacdd5 !important;
 }
 
+menulist:not([disabled="true"]):hover:active {
+  background-image: url("chrome://browser/skin/images/toggle-off.png");
+}
+
 menulist.button-dark {
   color: #fff !important;
   background: transparent !important;
   -moz-border-image: url("chrome://browser/skin/images/buttondark-default-64.png") 8 repeat repeat;
 }
 
 menulist.button-dark:not([disabled="true"]):hover:active {
   -moz-border-image: url("chrome://browser/skin/images/buttondark-active-64.png") 8 repeat repeat;