Bug 1217884 - Remove double spacing between devtools toolbar and devtools inputs;r=pbrosset
authorBrian Grinstead <bgrinstead@mozilla.com>
Mon, 26 Oct 2015 08:37:38 -0700
changeset 304744 03eec3bcf2933e13f3f147b72b3e722c36a42e52
parent 304743 f48ed065fe3ba3bbcd0add4d43209dd7b56442b1
child 304745 0e616440737c12028953b5095ee7222d7e4d79a4
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspbrosset
bugs1217884
milestone44.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 1217884 - Remove double spacing between devtools toolbar and devtools inputs;r=pbrosset
devtools/client/themes/toolbars.inc.css
--- a/devtools/client/themes/toolbars.inc.css
+++ b/devtools/client/themes/toolbars.inc.css
@@ -375,16 +375,33 @@
 
 /* The spacing is accomplished with a padding on the searchbox */
 .devtools-searchbox > .devtools-textinput,
 .devtools-searchbox > .devtools-searchinput {
   margin-left: 0;
   margin-right: 0;
 }
 
+/* Don't add 'double spacing' for inputs that are at beginning / end
+   of a toolbar (since the toolbar has it's own spacing). */
+.devtools-toolbar > .devtools-textinput:first-child,
+.devtools-toolbar > .devtools-searchinput:first-child {
+  -moz-margin-start: 0;
+}
+.devtools-toolbar > .devtools-textinput:last-child,
+.devtools-toolbar > .devtools-searchinput:last-child {
+  -moz-margin-end: 0;
+}
+.devtools-toolbar > .devtools-searchbox:first-child {
+  -moz-padding-start: 0;
+}
+.devtools-toolbar > .devtools-searchbox:last-child {
+  -moz-padding-end: 0;
+}
+
 .devtools-rule-searchbox {
   -moz-box-flex: 1;
   padding-right: 23px;
   width: 100%;
   font: inherit;
 }
 
 .devtools-rule-searchbox[filled] {