Permalink
Browse files

Collapsible set: ui-first-child/ui-last-child for corner styling

  • Loading branch information...
1 parent 717a4f7 commit 26be630354b2673b026f911593ee4fe7a9b8758e @jaspermdegroot jaspermdegroot committed Nov 9, 2012
Showing with 9 additions and 9 deletions.
  1. +9 −9 css/structure/jquery.mobile.collapsible.css
@@ -27,7 +27,6 @@
.ui-collapsible-inset .ui-collapsible-content { margin: 0; border-right-width: 1px; border-left-width: 1px; }
.ui-collapsible-content-collapsed { display: none; }
-/* Corner styling */
.ui-collapsible-set > .ui-collapsible.ui-corner-all {
-webkit-border-radius: 0;
border-radius: 0;
@@ -37,19 +36,20 @@
-webkit-border-radius: inherit;
border-radius: inherit;
}
+.ui-collapsible-set .ui-collapsible.ui-first-child {
+ -webkit-border-top-right-radius: inherit;
+ border-top-right-radius: inherit;
+ -webkit-border-top-left-radius: inherit;
+ border-top-left-radius: inherit;
+}
.ui-collapsible-content,
-.ui-collapsible-set .ui-collapsible:last-child {
+.ui-collapsible-set .ui-collapsible.ui-last-child {
-webkit-border-bottom-right-radius: inherit;
border-bottom-right-radius: inherit;
-webkit-border-bottom-left-radius: inherit;
border-bottom-left-radius: inherit;
}
-.ui-collapsible-set .ui-collapsible:first-child {
- -webkit-border-top-right-radius: inherit;
- border-top-right-radius: inherit;
- -webkit-border-top-left-radius: inherit;
- border-top-left-radius: inherit;
-}
+
.ui-collapsible-themed-content:not(.ui-collapsible-collapsed) > .ui-collapsible-heading {
-webkit-border-bottom-right-radius: 0;
border-bottom-right-radius: 0;
@@ -59,4 +59,4 @@
.ui-collapsible-set { margin: .5em 0; }
.ui-collapsible-set .ui-collapsible { margin: -1px 0 0; }
-.ui-collapsible-set .ui-collapsible:first-child { margin-top: 0; }
+.ui-collapsible-set .ui-collapsible.ui-first-child { margin-top: 0; }

0 comments on commit 26be630

Please sign in to comment.