From 01dc1e39bb65c0d75dc65f41daffed68b1781888 Mon Sep 17 00:00:00 2001 From: Simon Reinhardt Date: Fri, 27 Jun 2014 12:44:14 +0200 Subject: [PATCH] Fieldcontain: Reset width for notext buttons Buttons with .ui-btn-icon-notext normally have a fixed width of 1.75em. However when putting them as inline buttons inside a .ui-field-contain, from a certain page width on they get a width:auto, making them use the available width on the page instead of staying at a fixed width. This overrides the width:auto with the 1.75em again in that situation. Fixes gh-7526 Closes gh-7525 (cherry picked from commit 2dd9cf46ea819c209a0f3d7a01fc45d7a815d68f) --- css/structure/jquery.mobile.forms.fieldcontain.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/css/structure/jquery.mobile.forms.fieldcontain.css b/css/structure/jquery.mobile.forms.fieldcontain.css index f181afe08cb..2f161fc59d6 100644 --- a/css/structure/jquery.mobile.forms.fieldcontain.css +++ b/css/structure/jquery.mobile.forms.fieldcontain.css @@ -62,4 +62,7 @@ width: auto; margin-right: .625em; } + .ui-field-contain > label ~ .ui-btn-inline.ui-btn-icon-notext { + width: 1.75em; + } }