From 51d83fcc8957fe4ea4aa64d822577551b1cdc678 Mon Sep 17 00:00:00 2001 From: toddparker Date: Wed, 21 Dec 2011 22:40:41 -0500 Subject: [PATCH] Tweaked fieldset border rules so field contains work with this element. Fixes #2448 --- css/structure/jquery.mobile.core.css | 2 +- css/structure/jquery.mobile.forms.fieldcontain.css | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/css/structure/jquery.mobile.core.css b/css/structure/jquery.mobile.core.css index dc39cedf..f465c479 100644 --- a/css/structure/jquery.mobile.core.css +++ b/css/structure/jquery.mobile.core.css @@ -1,7 +1,7 @@ /* some unsets - more probably needed */ .ui-mobile, .ui-mobile body { height: 100%; } .ui-mobile fieldset, .ui-page { padding: 0; margin: 0; } -.ui-mobile a img, .ui-mobile fieldset { border: 0; } +.ui-mobile a img, .ui-mobile fieldset { border-width: 0; } /* responsive page widths */ .ui-mobile-viewport { margin: 0; overflow-x: visible; -webkit-text-size-adjust: none; -ms-text-size-adjust:none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } diff --git a/css/structure/jquery.mobile.forms.fieldcontain.css b/css/structure/jquery.mobile.forms.fieldcontain.css index cd73ff79..1cdedb90 100644 --- a/css/structure/jquery.mobile.forms.fieldcontain.css +++ b/css/structure/jquery.mobile.forms.fieldcontain.css @@ -1,5 +1,5 @@ -.ui-field-contain { padding: 1.5em 0; margin: 0; border-bottom-width: 1px; overflow: visible; } +.ui-field-contain, fieldset.ui-field-contain { padding: 1.5em 0; margin: 0; border-width: 0 0 1px 0; overflow: visible; } .ui-field-contain:first-child { border-top-width: 0; } @media all and (min-width: 450px){ - .ui-field-contain { border-width: 0; padding: 0; margin: 1em 0; } + .ui-field-contain, .ui-mobile fieldset.ui-field-contain { border-width: 0; padding: 0; margin: 1em 0; } } \ No newline at end of file