diff --git a/browser/components/preferences/fonts.xul b/browser/components/preferences/fonts.xul index 331f081d871..89d0d3663cb 100644 --- a/browser/components/preferences/fonts.xul +++ b/browser/components/preferences/fonts.xul @@ -152,7 +152,7 @@ accesskey="&sizeProportional.accesskey;" control="sizeVar"/> - + diff --git a/toolkit/themes/pinstripe/global/button.css b/toolkit/themes/pinstripe/global/button.css index 4f652849439..d70430af04d 100644 --- a/toolkit/themes/pinstripe/global/button.css +++ b/toolkit/themes/pinstripe/global/button.css @@ -47,9 +47,9 @@ button { -moz-appearance: button; - /* The margin used here come from the Aqua Human Interface Guidelines, - there should be 12 pixels between two buttons. */ - margin: 6px; + /* The horizontal margin used here come from the Aqua Human Interface + Guidelines, there should be 12 pixels between two buttons. */ + margin: 5px 6px 3px; min-width: 79px; color: ButtonText; } diff --git a/toolkit/themes/pinstripe/global/checkbox.css b/toolkit/themes/pinstripe/global/checkbox.css index cc7022a2377..9efc50f8d36 100644 --- a/toolkit/themes/pinstripe/global/checkbox.css +++ b/toolkit/themes/pinstripe/global/checkbox.css @@ -46,12 +46,7 @@ checkbox { -moz-appearance: checkbox-container; -moz-box-align: center; - margin: 2px 2px 4px; -} - -.checkbox-label-box { - margin-left: 0px; - padding: 0px; + margin: 4px 2px; } .checkbox-icon { @@ -59,8 +54,7 @@ checkbox { } .checkbox-label { - margin: 0 !important; - padding-bottom: 1px; + margin: 1px 0 !important; } /* ..... disabled state ..... */ @@ -73,7 +67,7 @@ checkbox[disabled="true"] { .checkbox-check { -moz-appearance: checkbox; - margin: 0 1px; + margin: 1px 1px 0; /* vertical-align tells native theming where to snap to. However, this doesn't * always work reliably because of bug 503833. */ vertical-align: top; diff --git a/toolkit/themes/pinstripe/global/dialog.css b/toolkit/themes/pinstripe/global/dialog.css index 5f363464a8b..1b1e9cc4f76 100644 --- a/toolkit/themes/pinstripe/global/dialog.css +++ b/toolkit/themes/pinstripe/global/dialog.css @@ -70,7 +70,7 @@ dialog { -moz-box-align: start; height: 24px; width: 24px; - margin: 4px; + margin: 3px 4px; } .dialog-button[dlgtype="help"][disabled] { diff --git a/toolkit/themes/pinstripe/global/filefield.css b/toolkit/themes/pinstripe/global/filefield.css index 29de6a29dea..4e1c4df6399 100644 --- a/toolkit/themes/pinstripe/global/filefield.css +++ b/toolkit/themes/pinstripe/global/filefield.css @@ -45,18 +45,24 @@ } filefield { - margin: 2px 4px 2px 27px; + margin: 4px; + -moz-margin-start: 27px; -moz-appearance: textfield; } .fileFieldContentBox { - background-color: -moz-Dialog; + margin: -3px; + background-color: rgba(230, 230, 230, 0.6); color: -moz-DialogText; - padding: 0px 0px 0px 3px; + padding-top: 2px; + padding-bottom: 2px; + -moz-padding-start: 5px; + -moz-padding-end: 3px; } .fileFieldLabel { -moz-appearance: none; background-color: transparent; border: none; + margin: 0 4px; } diff --git a/toolkit/themes/pinstripe/global/global.css b/toolkit/themes/pinstripe/global/global.css index c71cd20e1c7..4fad863d007 100644 --- a/toolkit/themes/pinstripe/global/global.css +++ b/toolkit/themes/pinstripe/global/global.css @@ -202,10 +202,6 @@ separator.groove[orient="vertical"] { margin-left: 0.4em; margin-right: 0.4em; } - -.small-margin { - margin: 1px 2px; -} .plain { -moz-appearance: none; @@ -220,10 +216,7 @@ label { } label { - margin-top: 1px; - margin-bottom: 2px; - -moz-margin-start: 6px; - -moz-margin-end: 5px; + margin: 2px 6px; } label[disabled="true"] { diff --git a/toolkit/themes/pinstripe/global/menulist.css b/toolkit/themes/pinstripe/global/menulist.css index 6e020867b16..6b61ecbe9f9 100644 --- a/toolkit/themes/pinstripe/global/menulist.css +++ b/toolkit/themes/pinstripe/global/menulist.css @@ -48,7 +48,7 @@ menulist { -moz-appearance: menulist; - margin: 2px 4px 1px; + margin: 5px 2px 3px; min-height: 20px !important; color: -moz-DialogText; } @@ -94,7 +94,7 @@ menulist[disabled="true"] > .menulist-dropmarker { menulist[editable="true"] { -moz-appearance: menulist-textfield; - margin: 2px 4px; + margin: 4px 2px; } html|*.menulist-editable-input { diff --git a/toolkit/themes/pinstripe/global/radio.css b/toolkit/themes/pinstripe/global/radio.css index 16038fed40f..68d06e6b0ad 100644 --- a/toolkit/themes/pinstripe/global/radio.css +++ b/toolkit/themes/pinstripe/global/radio.css @@ -50,7 +50,7 @@ radiogroup { radio { -moz-appearance: radio-container; -moz-box-align: center; - margin: 2px 2px 4px; + margin: 4px 2px; -moz-user-focus: ignore; } @@ -64,8 +64,7 @@ radio { } .radio-label { - margin: 0 !important; - padding-bottom: 1px; + margin: 1px 0 !important; } /* ..... disabled state ..... */ @@ -78,7 +77,7 @@ radio[disabled="true"] { .radio-check, .radio-check-box1 { -moz-appearance: radio; - margin: -1px 1px 1px; + margin: 0 1px 1px; /* vertical-align tells native theming where to snap to. However, this doesn't * always work reliably because of bug 503833. */ vertical-align: bottom; diff --git a/toolkit/themes/pinstripe/global/tabbox.css b/toolkit/themes/pinstripe/global/tabbox.css index a3a9c6b7221..7d24198a2f7 100644 --- a/toolkit/themes/pinstripe/global/tabbox.css +++ b/toolkit/themes/pinstripe/global/tabbox.css @@ -49,7 +49,7 @@ tab:last-of-type { } .tab-middle { - padding: 2px 6px; + padding: 1px 6px 2px; } .tabs-left, diff --git a/toolkit/themes/pinstripe/global/textbox.css b/toolkit/themes/pinstripe/global/textbox.css index 856a367056c..667ca991a60 100644 --- a/toolkit/themes/pinstripe/global/textbox.css +++ b/toolkit/themes/pinstripe/global/textbox.css @@ -50,7 +50,7 @@ textbox { -moz-appearance: textfield; cursor: text; - margin: 4px 4px; + margin: 4px; border: 3px solid; -moz-border-top-colors: transparent #888888 #000000; -moz-border-right-colors: transparent #FFFFFF #000000; diff --git a/toolkit/themes/pinstripe/global/viewbuttons.css b/toolkit/themes/pinstripe/global/viewbuttons.css index c270415fc78..74a2838e306 100644 --- a/toolkit/themes/pinstripe/global/viewbuttons.css +++ b/toolkit/themes/pinstripe/global/viewbuttons.css @@ -58,7 +58,7 @@ font: menu; text-shadow: rgba(255, 255, 255, 0.4) 0 1px; margin: 0; - padding: 1px 4px 0; + padding: 0 4px; border: none; border-left: 1px solid rgba(0, 0, 0, 0.8); background: -moz-linear-gradient(top, bottom, from(#FFF), to(#ADADAD)) repeat-x; diff --git a/toolkit/themes/pinstripe/reftests/baseline.xul b/toolkit/themes/pinstripe/reftests/baseline.xul new file mode 100644 index 00000000000..0c0a1c66df5 --- /dev/null +++ b/toolkit/themes/pinstripe/reftests/baseline.xul @@ -0,0 +1,165 @@ + + + + + + + + hbox:first-child { + background: red; + color: white; + text-shadow: 5px 0 white, -5px 0 white; +} +stack > .foreground { + filter: url(#yellow2transparent); +} +stack > hbox:last-child > * { + color: yellow; +} +]]> + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/toolkit/themes/pinstripe/reftests/checkboxsize-ref.xul b/toolkit/themes/pinstripe/reftests/checkboxsize-ref.xul index 44f37b77918..08d1e9a670f 100644 --- a/toolkit/themes/pinstripe/reftests/checkboxsize-ref.xul +++ b/toolkit/themes/pinstripe/reftests/checkboxsize-ref.xul @@ -5,6 +5,7 @@ vbox { height: 50px; } box { -moz-appearance: checkbox; margin-left: 2px; + margin-top: 1px; } " type="text/css"?> diff --git a/toolkit/themes/pinstripe/reftests/nostretch-ref.xul b/toolkit/themes/pinstripe/reftests/nostretch-ref.xul new file mode 100644 index 00000000000..fad57f3a8f3 --- /dev/null +++ b/toolkit/themes/pinstripe/reftests/nostretch-ref.xul @@ -0,0 +1,97 @@ + + + + + + :nth-child(2) { + display: none; /* <----- This is the only difference from nostretch.xul */ +} +]]> + + + + + + + + + + + + + + diff --git a/toolkit/themes/pinstripe/reftests/nostretch.xul b/toolkit/themes/pinstripe/reftests/nostretch.xul new file mode 100644 index 00000000000..5104eb855a0 --- /dev/null +++ b/toolkit/themes/pinstripe/reftests/nostretch.xul @@ -0,0 +1,110 @@ + + + + + + + :nth-child(2) { + visibility: hidden; +} +]]> + + + + + + + + + + + + + + diff --git a/toolkit/themes/pinstripe/reftests/radiosize-ref.xul b/toolkit/themes/pinstripe/reftests/radiosize-ref.xul index 0f71ad56c8a..632f39e41f4 100644 --- a/toolkit/themes/pinstripe/reftests/radiosize-ref.xul +++ b/toolkit/themes/pinstripe/reftests/radiosize-ref.xul @@ -5,6 +5,7 @@ vbox { height: 50px; } box { -moz-appearance: radio; margin-left: 2px; + margin-top: 1px; } " type="text/css"?> diff --git a/toolkit/themes/pinstripe/reftests/reftest.list b/toolkit/themes/pinstripe/reftests/reftest.list index 90072fda993..b8851a0fee5 100644 --- a/toolkit/themes/pinstripe/reftests/reftest.list +++ b/toolkit/themes/pinstripe/reftests/reftest.list @@ -1,3 +1,5 @@ skip-if(MOZ_WIDGET_TOOLKIT!="cocoa") == 482681.xul 482681-ref.xul skip-if(MOZ_WIDGET_TOOLKIT!="cocoa") == radiosize.xul radiosize-ref.xul skip-if(MOZ_WIDGET_TOOLKIT!="cocoa") == checkboxsize.xul checkboxsize-ref.xul +skip-if(MOZ_WIDGET_TOOLKIT!="cocoa") == baseline.xul about:blank +skip-if(MOZ_WIDGET_TOOLKIT!="cocoa") == nostretch.xul nostretch-ref.xul