Test page, loads CSS and JS of June 7 2012 including changes:
New | Buttons and FormSame page, loads original CSS and JS of June 7 2012, for comparison:
Currently | Buttons and Form#C1css Removed left and right margin from all buttons and set it back for: inline-buttons, buttons in grid blocks, auto generated buttons (ui-btn-left, ui-btn-right, ui-input-clear). To create consistency between buttons in and outside forms. [button.css]docs Added style note about wrapping a button in div with a ui-grid class, but without a ui-block class to give a single (full width) button the same margin left and right as buttons in a grid. [content-grids.html]#C2css Set font-size 16px for all (fullsize) buttons for consistency. For some buttons the font-size was set to 16px (checkbox/radio, buttons in ui-bar, etc.), but for others not (regular buttons, selectmenu). Consistent with mini buttons where the font-size is set for all buttons. [button.css]#C3css Added vertical-align middle for inline buttons to create consistency between browsers, since the default vertical alignment differs. [button.css]#C4css Changed display inline-block rule to only be applied to buttons that are direct children of the header/footer. [button.css]#C5css Added selectors to apply the adjusted padding (at the side where the icon is) to mini inline/controlgroup buttons. Changed rule so the 3px padding left/right used for header/footer buttons with icon top or bottom doesn't apply to mini inline/controlgroup buttons. [button.css]#C6js Added function to have the button widget add class ui-submit to buttons/inputs type submit/reset and the corresponding label. [button.js]css Added rules for the ui-submit class to display submit/reset buttons in ui-field-contain inline. [button.css]#C7css Set width to 78% for form elements wrapped in ui-field-contain to create full width forms (@media min-width 450px). [button.css][controlgroup.css][select.css][textinput.css]css Set width to 100% for controlgroups with hidden legend and selectmenu with hidden label (@media min-width 450px). [controlgroup.css][select.css]css Added box-sizing border-box for input type text and textarea, also for ui-input-search and submit buttons (because of 1px border). To create full width forms. [textinput.css][button.css]js Added function to remove whitespaces (space, tab, linebreak) between label and form element to add up to 100% width without browser default inline-block spacing causing the form to wrap. [fieldContain.js]#C8css Enabled use of ui-hide-label on field-contain with checkbox/radio and other controlgroups: now legend is hidden instead of label (i.e. the button itself). Added selector to hide the label for flip toggle. [core.css]#C9css Adjusted margin top/bottom of controlgroups and form elements so it is consistent for all buttons and form elements. When used on top of each other "collapsing margin" will apply. Removed margin when element is wrapped in ui-field-contain since this container already has padding. [controlgroup.css][checkboxradio.css][textinput.css]#C10css Removed percentage margin left/right and width for ui-input-text in header/footer. In the docs (Toolbars > Footer) is explained that a div with class ui-bar can be used to have padding (to do: give this more attention in the docs). [textinput.css]#C11css Corrected the rule that adjusts border-width for ui-field-contain (ui-br separator). The rule was written based on the separator being the top border, but it is the bottom border. [fieldcontain.css]#C12css Float left instead of display inline-block for all buttons in horizontal controlgroup (used to be only checkbox/radio buttons). [controlgroup.css]js Always wrap the buttons in div ui-controlgroup-controls (used to be done only when there is a legend) so we can use this div for "clearfix" and prevent issues with float. [controlgroup.js]#C13css Added padding for controlgroup buttons with iconpos notext and added rules so they can be used in controlgroup together with buttons that have text. [controlgroup.css]#C14css Added display block for vertical controlgroup ui-select to prevent unwanted margin on FF. [controlgroup.css]#C15css Removed explicit margin 0 rule so the select button has same margin as regular buttons. [select.css]#C16js Prevent adding class ui-btn-icon-right when there is no icon. [select.js]#C17js Removed default mini and inline "false" to make mini and inline in header/footer possible. [select.js]#C18css Removed border radius from button that is still visible behind Opera's native rectangle select. This way the (focus) box-shadow doesn't look odd. [select.css]js Changed the function in the selectmenu widget to make it add the ui-select-nativeonly helper class to the button instead of the select element so it can be used to adjust the styling of the button. [select.js]Fixes #4098
#C19css Added/adjusted count bubble positioning and padding rules for select menu, listview buttons, and divider. [select.css][listview.css]css Removed padding right from ui-btn-text in list items since it also has 100% width. Padding should be on ui-btn-inner/ui-link-inherit only. [listview.css]#C20css Adjusted padding right for list item with icon (has-arrow) to make it consistent with buttons with icon right and prevent that content and icon almost collapse. Adjusted padding right for list items with split buttons. Adjusted the negative margin top of split buttons to half the size of the button so the vertical aligment is exactly in the middle. [listview.css]#C21css Corrected max width/height for image icons left in listview buttons to 16px. Matches what is mentioned in the docs and the amount of padding left set for this type of list items. [listview.css]#C22css Negate box-sizing border-box for slider input. [slider.css]#C23css Removed display inline-block from span inside ui-select ui-btn-text to get overflow ellipses. [button.css][select.css]#C24css Changed min-width into width since this works as well and Opera Mini doesn't understand min-width here. Changed line-height into height since this is a more consistent solution for all browsers. [controlgroup.css]#C25css Prevent horizontal scrollbar in IE7 with the 100% width text input and textarea wrapped in ui-field-contain. [controlgroup.css]Link to JSBin template that loads CSS and JS that include all changes, for custom tests: JSBin template
CSS and JS including all changes: CSS and JS
PDF files with a schematic representation of the buttons and the adjustments made to padding and absolute positioning.
Fullsize buttons and Mini buttons
Or download the Excel file which is easier to read... Fullsize & Mini buttons XLS