Permalink
Browse files

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

  • Loading branch information...
jaspermdegroot committed Jun 26, 2012
1 parent 2cfa87c commit 571c08e3b003ac1bbf85bf34b49b104b24dc69b5
Showing with 3 additions and 5 deletions.
  1. +2 −4 css/structure/jquery.mobile.listview.css
  2. +1 −1 js/widgets/listview.js
@@ -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
@@ -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

This comment has been minimized.

Show comment
Hide comment
@jaspermdegroot

jaspermdegroot Jun 26, 2012

Member

This is for 1.2

Member

jaspermdegroot replied Jun 26, 2012

This is for 1.2

@johnbender

This comment has been minimized.

Show comment
Hide comment
@johnbender

johnbender Jun 27, 2012

Contributor

@uGoMobi

This appears to have broken our listview tests:

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

Contributor

johnbender replied Jun 27, 2012

@uGoMobi

This appears to have broken our listview tests:

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

@jaspermdegroot

This comment has been minimized.

Show comment
Hide comment
@jaspermdegroot

jaspermdegroot Jun 27, 2012

Member

Updated the test to the new styling.

Member

jaspermdegroot replied Jun 27, 2012

Updated the test to the new styling.

Please sign in to comment.