Skip to content
This repository
Browse code

Fixes #4347 - New styling for read-only lists.

  • Loading branch information...
commit 571c08e3b003ac1bbf85bf34b49b104b24dc69b5 1 parent 2cfa87c
Jasper de Groot authored
6  css/structure/jquery.mobile.listview.css
@@ -4,10 +4,8 @@
4 4
 .ui-listview, .ui-li { list-style:none; padding:0; }
5 5
 .ui-li, .ui-li.ui-field-contain { display: block; margin:0; position: relative; overflow: visible; text-align: left; border-width: 0; border-top-width: 1px; }
6 6
 .ui-li .ui-btn-text a.ui-link-inherit { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
7  
-.ui-li-divider, .ui-li-static { padding: .5em 15px; font-size: 14px; font-weight: bold; }
8  
-/* Fixes #4254 to prevent inherit font-size from .ui-li-divider, .ui-li-static */
9  
-.ui-li-divider .ui-btn-text, .ui-li-static .ui-btn-text { font-size: 16px; }
10  
-.ui-li-divider .ui-mini .ui-btn-text, .ui-li-static .ui-mini .ui-btn-text { font-size: inherit; }
  7
+.ui-li-static { background-image: none; }
  8
+.ui-li-divider { padding: .5em 15px; font-size: 14px; font-weight: bold; }
11 9
 .ui-li-divider { counter-reset: listnumbering; }
12 10
 ol.ui-listview .ui-link-inherit:before, ol.ui-listview .ui-li-static:before, .ui-li-dec { font-size: .8em; display: inline-block; padding-right: .3em; font-weight: normal;counter-increment: listnumbering; content: counter(listnumbering) ". "; }
13 11
 ol.ui-listview .ui-li-jsnumbering:before { content: "" !important; } /* to avoid chance of duplication */
2  js/widgets/listview.js
@@ -244,7 +244,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
244 244
 					}
245 245
 
246 246
 				} else {
247  
-					itemClass += " ui-li-static ui-body-" + itemTheme;
  247
+					itemClass += " ui-li-static ui-btn-up-" + itemTheme;
248 248
 				}
249 249
 			}
250 250
 

3 notes on commit 571c08e

Jasper de Groot
Owner

This is for 1.2

Jasper de Groot
Owner

Updated the test to the new styling.

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