Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Core: Width auto for inline button elements in toolbars
Browse files Browse the repository at this point in the history
Fixes gh-7232
Closes gh-7446
  • Loading branch information
jaspermdegroot committed Jun 5, 2014
1 parent 39786a2 commit 05f409d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions css/structure/jquery.mobile.core.css
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ div.ui-mobile-viewport {
-ms-user-select: none;
user-select: none;
}
.ui-btn-icon-notext {
.ui-btn-icon-notext,
.ui-header button.ui-btn.ui-btn-icon-notext,
.ui-footer button.ui-btn.ui-btn-icon-notext {
padding: 0;
width: 1.75em;
height: 1.75em;
Expand Down Expand Up @@ -383,7 +385,9 @@ button.ui-btn,
-moz-appearance: none;
width: 100%;
}
button.ui-btn-inline {
button.ui-btn-inline,
.ui-header button.ui-btn,
.ui-footer button.ui-btn {
width: auto;
}
/* Firefox adds a 1px border in a button element. We negate this to make sure they have the same height as other buttons in controlgroups. */
Expand Down
4 changes: 3 additions & 1 deletion css/structure/jquery.mobile.grid.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ li.ui-block-e {
[class*="ui-block-"] > .ui-checkbox,
[class*="ui-block-"] > .ui-radio,
[class*="ui-block-"] > button.ui-btn-inline,
[class*="ui-block-"] > button.ui-btn-icon-notext {
[class*="ui-block-"] > button.ui-btn-icon-notext,
.ui-header [class*="ui-block-"] > button.ui-btn,
.ui-footer [class*="ui-block-"] > button.ui-btn {
margin-right: .3125em;
margin-left: .3125em;
}
Expand Down

0 comments on commit 05f409d

Please sign in to comment.