Bug 787274. Move urlbar min-width from #urlbar to the text input itself to ensure gadgets like the identity box are allowed to add to the min-width. r=dao a=lsblakk
authorRobert O'Callahan <robert@ocallahan.org>
Fri, 05 Oct 2012 15:28:46 +1300
changeset 107088 ea1910a8ffe4
parent 107087 086db97198a8
child 107089 1f8ee63679ea
push id2223
push userdgottwald@mozilla.com
push dateSat, 06 Oct 2012 16:00:29 +0000
treeherdermozilla-aurora@ea1910a8ffe4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao, lsblakk
bugs787274
milestone17.0a2
Bug 787274. Move urlbar min-width from #urlbar to the text input itself to ensure gadgets like the identity box are allowed to add to the min-width. r=dao a=lsblakk
browser/themes/gnomestripe/browser.css
browser/themes/pinstripe/browser.css
browser/themes/pinstripe/searchbar.css
browser/themes/winstripe/browser.css
--- a/browser/themes/gnomestripe/browser.css
+++ b/browser/themes/gnomestripe/browser.css
@@ -893,28 +893,28 @@ toolbar[iconsize="small"] #feed-button {
 }
 #close-button {
   list-style-image: url("chrome://global/skin/icons/Close.gif");
 }
 
 /* Location bar */
 #urlbar {
   width: 7em;
-  min-width: 7em;
   -moz-appearance: textfield;
   padding: 0;
 }
 
 .urlbar-textbox-container {
   -moz-appearance: none;
   -moz-box-align: stretch;
 }
 
 .urlbar-input-box {
   -moz-margin-start: 0;
+  min-width: 4em;
 }
 
 .urlbar-history-dropmarker {
   -moz-appearance: toolbarbutton-dropdown;
 }
 
 #urlbar-container {
   -moz-box-orient: horizontal;
--- a/browser/themes/pinstripe/browser.css
+++ b/browser/themes/pinstripe/browser.css
@@ -837,17 +837,16 @@ toolbar[mode="icons"] #zoom-in-button {
 }
 
 /* ::::: nav-bar-inner ::::: */
 
 #urlbar,
 .searchbar-textbox {
   font: icon;
   width: 7em;
-  min-width: 7em;
   -moz-appearance: none;
   box-shadow: 0 1px rgba(255, 255, 255, 0.2), inset 0 1px hsla(0,0%,0%,.05);
   margin: 0 4px;
   padding: 0;
   border: 1px solid;
   border-color: #626262 #787878 #8c8c8c;
   background-clip: padding-box;
 }
@@ -1008,16 +1007,17 @@ toolbar[mode="icons"] #zoom-in-button {
 
 #identity-icon-labels {
   -moz-margin-start: 4px;
 }
 
 .urlbar-input-box {
   -moz-margin-start: 0;
   padding: 3px 0 2px;
+  min-width: 4em;
 }
 
 .urlbar-history-dropmarker {
   padding: 0 3px;
   list-style-image: url("chrome://browser/skin/urlbar-history-dropmarker.png");
   -moz-image-region: rect(0px, 11px, 14px, 0px);
 }
 
--- a/browser/themes/pinstripe/searchbar.css
+++ b/browser/themes/pinstripe/searchbar.css
@@ -1,14 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 .searchbar-textbox {
   border-radius: 10000px;
+  min-width: 6em;
 }
 
 .searchbar-engine-button {
   -moz-padding-start: 6px;
   -moz-padding-end: 2px;
   margin: 0;
   -moz-margin-end: 2px;
   -moz-appearance: none;
--- a/browser/themes/winstripe/browser.css
+++ b/browser/themes/winstripe/browser.css
@@ -1170,17 +1170,16 @@ toolbar[mode=full] .toolbarbutton-1 > .t
   padding: 0;
   background-clip: padding-box;
   border: 1px solid ThreeDShadow;
   border-radius: 2px;
 }
 
 #urlbar {
   width: 7em;
-  min-width: 7em;
   -moz-padding-end: 2px;
 }
 
 @media (-moz-windows-default-theme) {
   #urlbar,
   .searchbar-textbox {
     @navbarTextboxCustomBorder@
   }
@@ -1260,16 +1259,17 @@ html|*.urlbar-input:-moz-lwtheme:-moz-pl
 }
 
 .urlbar-textbox-container {
   -moz-box-align: stretch;
 }
 
 .urlbar-input-box {
   -moz-margin-start: 0;
+  min-width: 4em;
 }
 
 #urlbar-icons {
   -moz-box-align: center;
 }
 
 .urlbar-icon {
   padding: 3px 3px;