Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 571c08e

Browse files
Fixes #4347 - New styling for read-only lists.
1 parent 2cfa87c commit 571c08e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

css/structure/jquery.mobile.listview.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
.ui-listview, .ui-li { list-style:none; padding:0; }
55
.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; }
66
.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; }
119
.ui-li-divider { counter-reset: listnumbering; }
1210
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) ". "; }
1311
ol.ui-listview .ui-li-jsnumbering:before { content: "" !important; } /* to avoid chance of duplication */

js/widgets/listview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
244244
}
245245

246246
} else {
247-
itemClass += " ui-li-static ui-body-" + itemTheme;
247+
itemClass += " ui-li-static ui-btn-up-" + itemTheme;
248248
}
249249
}
250250

0 commit comments

Comments
 (0)