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

Commit 2d344d6

Browse files
Cross browser listview border bottom on last item solution
1 parent 49a0cc3 commit 2d344d6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

css/structure/jquery.mobile.listview.css

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,17 @@ ol.ui-listview, ol.ui-listview .ui-li-divider { counter-reset: listnumbering; }
44
.ui-collapsible-content > .ui-listview { margin: -10px -15px; }
55
.ui-content .ui-listview-inset { margin: 1em 0; }
66
.ui-collapsible-content .ui-listview-inset { margin: .5em 0; }
7-
.ui-listview, .ui-li { list-style:none; padding:0; }
8-
.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; }
9-
.ui-li.ui-btn { margin: 0; }
7+
.ui-listview, .ui-li { list-style: none; padding: 0; }
8+
.ui-li, .ui-li.ui-field-contain { display: block; margin: 0; position: relative; overflow: visible; text-align: left; border-width: 1px 0; }
9+
.ui-li.ui-btn, .ui-li.ui-field-contain, .ui-li-static { margin: 0 0 -1px; }
10+
.ui-listview-inset .ui-li.ui-btn, .ui-listview-inset .ui-li.ui-field-contain, .ui-listview-inset .ui-li-static { border-right-width: 1px; border-left-width: 1px; }
11+
.ui-collapsible-themed-content .ui-listview:not(.ui-listview-inset) .ui-listview > .ui-li:last-child { border-bottom-width: 0; }
12+
.ui-collapsible-content > .ui-listview:not(.ui-listview-inset) > .ui-li:first-child { border-top-width: 0; }
1013
.ui-li .ui-btn-text a.ui-link-inherit { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
1114
.ui-li-static { background-image: none; }
1215
.ui-li-divider { padding: .5em 15px; font-size: 14px; font-weight: bold; }
1316
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) ". "; }
1417
ol.ui-listview .ui-li-jsnumbering:before { content: "" !important; } /* to avoid chance of duplication */
15-
.ui-listview-inset .ui-li { border-right-width: 1px; border-left-width: 1px; }
16-
.ui-listview > .ui-li:last-child, .ui-li.ui-field-contain:last-child { border-bottom-width: 1px; }
17-
.ui-collapsible-themed-content .ui-listview:not(.ui-listview-inset) .ui-listview > .ui-li:last-child { border-bottom-width: 0; }
18-
.ui-collapsible-content > .ui-listview:not(.ui-listview-inset) > .ui-li:first-child { border-top-width: 0; }
1918
/* Corner styling */
2019
.ui-listview > .ui-li:first-child,
2120
.ui-listview .ui-btn:first-child > .ui-li > .ui-btn-text > .ui-link-inherit {

0 commit comments

Comments
 (0)