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
authorRobert O'Callahan <robert@ocallahan.org>
Fri, 05 Oct 2012 15:28:46 +1300
changeset 109302 a4c95cde82e9
parent 109301 ac4d3cec62a1
child 109303 6c0312e3fe59
push id23619
push useremorley@mozilla.com
push dateFri, 05 Oct 2012 10:54:02 +0000
treeherdermozilla-central@3b458f4e0f42 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs787274
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
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
@@ -1108,17 +1108,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;
 }
@@ -1279,16 +1278,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;