Skip to content
This repository
Browse code

Merge pull request #4982 from MauriceG/patch-9

Popup: adds header/content/footer border support
  • Loading branch information...
commit e87386d5383be65675e2abdfe9856db21879f988 2 parents cdb1b49 + 3b15719
Jasper de Groot authored

Showing 1 changed file with 41 additions and 0 deletions. Show diff stats Hide diff stats

  1. 41  css/structure/jquery.mobile.popup.css
41  css/structure/jquery.mobile.popup.css
@@ -123,5 +123,46 @@
123 123
 	margin: 0;
124 124
 	z-index: 1101;
125 125
 }
  126
+
126 127
 .ui-popup > .ui-btn-left { left: -9px; }
127 128
 .ui-popup > .ui-btn-right { right: -9px; }
  129
+
  130
+.ui-popup.ui-corner-all > .ui-header,
  131
+.ui-popup.ui-corner-all ~ .ui-content,
  132
+.ui-popup.ui-corner-all > .ui-content:first-child {
  133
+	-webkit-border-top-left-radius:  inherit;
  134
+	border-top-left-radius:          inherit;
  135
+	-webkit-border-top-right-radius: inherit;
  136
+	border-top-right-radius:         inherit;
  137
+}
  138
+
  139
+.ui-popup.ui-corner-all > .ui-content,
  140
+.ui-popup.ui-corner-all > .ui-footer,
  141
+.ui-popup.ui-corner-all > .ui-header:nth-child(n):last-child {
  142
+	-webkit-border-bottom-left-radius:  inherit;
  143
+	border-bottom-left-radius:          inherit;
  144
+	-webkit-border-bottom-right-radius: inherit;
  145
+	border-bottom-right-radius:         inherit;
  146
+}
  147
+
  148
+.ui-popup.ui-corner-all > .ui-content:nth-child(2),
  149
+.ui-popup.ui-corner-all > .ui-header:nth-child(2) {
  150
+	-webkit-border-top-left-radius:  0;
  151
+	border-top-left-radius:          0;
  152
+	-webkit-border-top-right-radius: 0;
  153
+	border-top-right-radius:         0;
  154
+}
  155
+
  156
+.ui-popup.ui-corner-all > .ui-content:nth-last-child(1n+2),
  157
+.ui-popup.ui-corner-all > .ui-footer:nth-last-child(1n+2) {
  158
+	-webkit-border-bottom-left-radius:  0;
  159
+	border-bottom-left-radius:          0;
  160
+	-webkit-border-bottom-right-radius: 0;
  161
+	border-bottom-right-radius:         0;
  162
+}
  163
+
  164
+.ui-popup.ui-corner-all > .ui-header:only-child,
  165
+.ui-popup.ui-corner-all > .ui-footer:only-child {
  166
+	-webkit-border-radius: inherit;
  167
+	border-radius:         inherit;
  168
+}

0 notes on commit e87386d

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