Skip to content
This repository
Browse code

Button: only set margin left/right for buttons that are immediate chi…

…ldren. To avoid those margins override margins of buttons that are part of other widgets.
  • Loading branch information...
commit c71642b07c5a49da62e8717081c014b6a6db0718 1 parent 811393e
Jasper de Groot authored July 23, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  css/structure/jquery.mobile.button.css
2  css/structure/jquery.mobile.button.css
... ...
@@ -1,7 +1,7 @@
1 1
 .ui-btn { display: block; text-align: center; cursor:pointer; position: relative; margin: .5em 0; padding: 0; }
2 2
 .ui-mini { margin-top: .25em; margin-bottom: .25em; }
3 3
 .ui-btn-left, .ui-btn-right, .ui-input-clear, .ui-btn-inline,
4  
-.ui-grid-a .ui-btn, .ui-grid-b .ui-btn, .ui-grid-c .ui-btn, .ui-grid-d .ui-btn, .ui-grid-e .ui-btn, .ui-grid-solo .ui-btn { margin-right: 5px; margin-left: 5px; }
  4
+.ui-block-a > .ui-btn, .ui-block-b > .ui-btn, .ui-block-c > .ui-btn, .ui-block-d > .ui-btn, .ui-block-e > .ui-btn { margin-right: 5px; margin-left: 5px; }
5 5
 .ui-btn-inner { font-size: 16px; padding: .6em 20px; min-width: .75em; display: block; position: relative; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; zoom: 1; }
6 6
 .ui-btn input, .ui-btn button { z-index: 2; }
7 7
 .ui-btn-left, .ui-btn-right, .ui-btn-inline { display: inline-block; vertical-align: middle; }

0 notes on commit c71642b

Please sign in to comment.
Something went wrong with that request. Please try again.