Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 571c08e3b003ac1bbf85bf34b49b104b24dc69b5 1 parent 2cfa87c
@jaspermdegroot jaspermdegroot authored
View
6 css/structure/jquery.mobile.listview.css
@@ -4,10 +4,8 @@
.ui-listview, .ui-li { list-style:none; padding:0; }
.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; }
.ui-li .ui-btn-text a.ui-link-inherit { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
-.ui-li-divider, .ui-li-static { padding: .5em 15px; font-size: 14px; font-weight: bold; }
-/* Fixes #4254 to prevent inherit font-size from .ui-li-divider, .ui-li-static */
-.ui-li-divider .ui-btn-text, .ui-li-static .ui-btn-text { font-size: 16px; }
-.ui-li-divider .ui-mini .ui-btn-text, .ui-li-static .ui-mini .ui-btn-text { font-size: inherit; }
+.ui-li-static { background-image: none; }
+.ui-li-divider { padding: .5em 15px; font-size: 14px; font-weight: bold; }
.ui-li-divider { counter-reset: listnumbering; }
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) ". "; }
ol.ui-listview .ui-li-jsnumbering:before { content: "" !important; } /* to avoid chance of duplication */
View
2  js/widgets/listview.js
@@ -244,7 +244,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
}
} else {
- itemClass += " ui-li-static ui-body-" + itemTheme;
+ itemClass += " ui-li-static ui-btn-up-" + itemTheme;
}
}

3 comments on commit 571c08e

@jaspermdegroot
Collaborator

This is for 1.2

@johnbender

@uGoMobi

This appears to have broken our listview tests:

http://swarm.jquery.org:8080/job/jQuery%20Mobile%20Phantom%20Master/231/

@jaspermdegroot
Collaborator

Updated the test to the new styling.

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