/usr/share/doc/libjs-jquery-mobile-docs/demos/docs/lists/lists-themes.html is in libjs-jquery-mobile-docs 1.2.0+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Theming Lists</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile-1.2.0.css" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script src="../../js/jquery.js"></script>
<script src="../../docs/_assets/js/jqm-docs.js"></script>
<script src="../../js/jquery.mobile-1.2.0.js"></script>
</head>
<body>
<div data-role="page" class="type-interior">
<div data-role="header" data-theme="f">
<h1>Theming lists</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse">Home</a>
<a href="../nav.html" data-icon="search" data-iconpos="notext" data-rel="dialog" data-transition="fade">Search</a>
</div><!-- /header -->
<div data-role="content" class="ui-body">
<div class="content-primary">
<p>All the standard theme swatches can be applied to lists. A list inherits its theme swatch from its parent page/content container. So the theme swatch defaults to "c" (silver in the default theme), if nothing else is set on the surrounding page/content containers. List dividers and split buttons are styled with bar swatch "b" by default (blue in the default theme). The default button swatch for count bubbles is "c" (silver in the default theme).</p>
<p>Below is a list which inherits the default "c" content swatch and uses the default swatches for the list divider and the count bubbles.</p>
<code>
<ul data-role="listview" data-inset="true">
</code>
<ul data-role="listview" data-inset="true" data-icon="star">
<li data-role="list-divider">Divider</li>
<li><a href="index.html">Inbox <span class="ui-li-count">12</span></a></li>
<li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
<li><a href="index.html">Sent <span class="ui-li-count">328</span></a></li>
</ul>
<h2>Theming list items</h2>
<p>The list item color scheme can be changed to any button color theme swatch by adding the <code> data-theme</code> attribute to the list, and setting the letter theme swatch. Here is the same list as above with the swatch "a" applied. </p>
<code>
<ul data-role="listview" data-inset="true" data-theme="a">
</code>
<ul data-role="listview" data-inset="true" data-theme="a">
<li data-role="list-divider">Divider</li>
<li><a href="index.html">Inbox <span class="ui-li-count">12</span></a></li>
<li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
<li><a href="index.html">Sent <span class="ui-li-count">328</span></a></li>
</ul>
<p> data-theme attributes also work at the LI-level, for styling a single item.</p>
<ul data-role="listview" data-inset="true" data-theme="d">
<li data-role="list-divider">Divider</li>
<li><a href="index.html">Inbox <span class="ui-li-count">12</span></a></li>
<li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
<li><a href="index.html">Sent <span class="ui-li-count">328</span></a></li>
<li data-theme="a"><a href="index.html">Trash <span class="ui-li-count">34</span></a></li>
</ul>
<h2>Theming dividers</h2>
<p>The theme for <strong>list dividers</strong> can be set by adding the <code>data-divider-theme</code> to the list and specifying a swatch letter. Here is an example of the same list as above with swatch "e" set on the dividers.</p>
<code>
<ul data-role="listview" data-inset="true" data-theme="d" data-divider-theme="e">
</code>
<ul data-role="listview" data-inset="true" data-theme="d" data-divider-theme="e">
<li data-role="list-divider">Divider</li>
<li><a href="index.html">Inbox <span class="ui-li-count">12</span></a></li>
<li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
<li><a href="index.html">Sent <span class="ui-li-count">328</span></a></li>
</ul>
<h2>Theming count bubbles</h2>
<p>The theme for <strong>count bubbles</strong> can be set by adding the <code>data-count-theme</code> to the list and specifying a swatch letter. Here is an example with swatch "b" set on the count bubbles.</p>
<code>
<ul data-role="listview" data-inset="true" data-theme="d" data-divider-theme="e" data-count-theme="b">
</code>
<ul data-role="listview" data-inset="true" data-theme="d" data-divider-theme="e" data-count-theme="b">
<li data-role="list-divider">Divider</li>
<li><a href="index.html">Inbox <span class="ui-li-count">12</span></a></li>
<li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
<li><a href="index.html">Sent <span class="ui-li-count">328</span></a></li>
</ul>
<h2>Theming icons</h2>
<p>The default icon for each list item containing a link is <code>arrow-r</code>. To override this, set the <code>data-icon</code> attribute on the desired list item to the <a href="../buttons/buttons-icons.html">name of a standard icon</a>. To prevent icons from appearing altogether, set the <code> data-icon</code> attribute to "false". With a bit of custom styles it's also possible to use third party icons.</p>
<p>Markup for the listview:</p>
<pre>
<code>
<ul data-role="listview" data-inset="true" data-theme="b">
<li data-role="list-divider">Divider</li>
<li data-icon="home"><a href="#">data-icon="home"</a></li>
<li data-icon="delete"><a href="#">data-icon="delete"</a></li>
<li data-icon="plus"><a href="#">data-icon="plus"</a></li>
<li data-icon="arrow-u"><a href="#">data-icon="arrow-u"</a></li>
<li data-icon="arrow-d"><a href="#">data-icon="arrow-d"</a></li>
<li data-icon="check"><a href="#">data-icon="check"</a></li>
<li data-icon="gear"><a href="#">data-icon="gear"</a></li>
<li data-icon="grid"><a href="#">data-icon="grid"</a></li>
<li data-icon="star"><a href="#">data-icon="star"</a></li>
<li data-icon="custom" id="coffeeicon"><a href="#">custom-icon</a></li>
<li data-icon="arrow-r"><a href="#">data-icon="arrow-r"</a></li>
<li data-icon="arrow-l"><a href="#">data-icon="arrow-l"</a></li>
<li data-icon="minus"><a href="#">data-icon="minus"</a></li>
<li data-icon="refresh"><a href="#">data-icon="refresh"</a></li>
<li data-icon="forward"><a href="#">data-icon="forward"</a></li>
<li data-icon="back"><a href="#">data-icon="back"</a></li>
<li data-icon="alert"><a href="#">data-icon="alert"</a></li>
<li data-icon="info"><a href="#">data-icon="info"</a></li>
<li data-icon="search"><a href="#">data-icon="search"</a></li>
<li data-icon="false"><a href="#">data-icon="false"</a></li>
</ul>
</code>
</pre>
<p>Styles for the custom icon:</p>
<pre>
<code>
<style>
#coffeeicon .ui-icon-custom {
background-image: url("../toolbars/glyphish-icons/34-coffee.png");
background-position: 2px 2px;
background-size: 90%; }
</style>
</code>
</pre>
<style>
#coffeeicon .ui-icon-custom {
background-image: url("../toolbars/glyphish-icons/34-coffee.png");
background-position: 2px 1px;
background-size: 90%; }
</style>
<ul data-role="listview" data-inset="true" data-theme="b">
<li data-role="list-divider">Divider</li>
<li data-icon="home"><a href="#">data-icon="home"</a></li>
<li data-icon="delete"><a href="#">data-icon="delete"</a></li>
<li data-icon="plus"><a href="#">data-icon="plus"</a></li>
<li data-icon="arrow-u"><a href="#">data-icon="arrow-u"</a></li>
<li data-icon="arrow-d"><a href="#">data-icon="arrow-d"</a></li>
<li data-icon="check"><a href="#">data-icon="check"</a></li>
<li data-icon="gear"><a href="#">data-icon="gear"</a></li>
<li data-icon="grid"><a href="#">data-icon="grid"</a></li>
<li data-icon="star"><a href="#">data-icon="star"</a></li>
<li data-icon="custom" id="coffeeicon"><a href="#">custom-icon</a></li>
<li data-icon="arrow-r"><a href="#">data-icon="arrow-r"</a></li>
<li data-icon="arrow-l"><a href="#">data-icon="arrow-l"</a></li>
<li data-icon="minus"><a href="#">data-icon="minus"</a></li>
<li data-icon="refresh"><a href="#">data-icon="refresh"</a></li>
<li data-icon="forward"><a href="#">data-icon="forward"</a></li>
<li data-icon="back"><a href="#">data-icon="back"</a></li>
<li data-icon="alert"><a href="#">data-icon="alert"</a></li>
<li data-icon="info"><a href="#">data-icon="info"</a></li>
<li data-icon="search"><a href="#">data-icon="search"</a></li>
<li data-icon="false"><a href="#">data-icon="false"</a></li>
</ul>
<p>Custom icon by Joseph Wain / <a href="http://glyphish.com/">glyphish.com</a>. Licensed under the <a href="http://creativecommons.org/licenses/by/3.0/us/">Creative Commons Attribution 3.0 United States License</a>.</p>
<h2>Theming split buttons</h2>
<p>For split lists with a second link button, the framework default to "b" for the theme swatch (blue in the default theme). Here is a default split list:</p>
<ul data-role="listview" data-inset="true">
<li><a href="index.html">
<img src="images/album-bb.jpg" />
<h3>Broken Bells</h3>
<p>Broken Bells</p></a>
<a href="index.html">Purchase album</a>
</li>
<li><a href="index.html">
<img src="images/album-hc.jpg" />
<h3>Warning</h3>
<p>Hot Chip</p></a>
<a href="index.html">Purchase album</a>
</li>
</ul>
<code>
<ul data-role="listview" data-inset="true" data-split-theme="a">
</code>
<p>To specify the color swatch for the icon button on the right, add the <code>data-split-theme</code> to the list and specify a swatch letter. This attribute can also be added to individual split inside list items by adding a <code> data-theme</code> attribute to specific links (see second list item).</p>
<ul data-role="listview" data-inset="true" data-split-theme="a">
<li><a href="index.html">
<img src="images/album-bb.jpg" />
<h3>Broken Bells</h3>
<p>Broken Bells</p>
</a>
<a href="index.html">Purchase album</a>
</li>
<li><a href="index.html">
<img src="images/album-hc.jpg" />
<h3>Warning</h3>
<p>Hot Chip</p>
</a>
<a href="index.html" data-theme="e">Purchase album</a>
</li>
</ul>
<p>The icon for the split can be set at the list level by adding the <code>data-split-icon</code> to the list and specifying a <a href="../buttons/buttons-icons.html">standard icon</a>. The icon can also be set to an individual split by adding a <code>data-icon</code> attribute to specific list items (see second list item).</p>
<code>
<ul data-role="listview" data-inset="true" data-split-theme="d" data-split-icon="delete">
</code>
<ul data-role="listview" data-inset="true" data-split-theme="d" data-split-icon="delete" >
<li><a href="index.html">
<img src="images/album-bb.jpg" />
<h3>Broken Bells</h3>
<p>Broken Bells</p>
</a>
<a href="index.html">Purchase album</a>
</li>
<li data-icon="alert"><a href="index.html">
<img src="images/album-hc.jpg" />
<h3>Warning</h3>
<p>Hot Chip</p>
</a>
<a href="index.html" data-theme="e">Purchase album</a>
</li>
</ul>
<h2>Examples of all basic list swatches</h2>
<p>Swatch <strong>"a"</strong> on listview</p>
<ul data-role="listview" data-inset="true" data-theme="a">
<li><a href="index.html">Inbox <span class="ui-li-count">12</span></a></li>
<li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
<li><a href="index.html">Trash <span class="ui-li-count">62</span></a></li>
</ul>
<p>Swatch <strong>"b"</strong> on listview</p>
<ul data-role="listview" data-inset="true" data-theme="b">
<li><a href="index.html">Inbox <span class="ui-li-count">12</span></a></li>
<li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
<li><a href="index.html">Trash <span class="ui-li-count">62</span></a></li>
</ul>
<p>Swatch <strong>"c"</strong> on listview</p>
<ul data-role="listview" data-inset="true" data-theme="c">
<li><a href="index.html">Inbox <span class="ui-li-count">12</span></a></li>
<li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
<li><a href="index.html">Trash <span class="ui-li-count">62</span></a></li>
</ul>
<p>Swatch <strong>"d"</strong> on listview</p>
<ul data-role="listview" data-inset="true" data-theme="d">
<li><a href="index.html">Inbox <span class="ui-li-count">12</span></a></li>
<li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
<li><a href="index.html">Trash <span class="ui-li-count">62</span></a></li>
</ul>
<p>Swatch <strong>"e"</strong> on listview</p>
<ul data-role="listview" data-inset="true" data-theme="e">
<li><a href="index.html">Inbox <span class="ui-li-count">12</span></a></li>
<li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
<li><a href="index.html">Trash <span class="ui-li-count">62</span></a></li>
</ul>
</div><!--/content-primary -->
<div class="content-secondary">
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
<h3>More in this section</h3>
<ul data-role="listview" data-theme="c" data-dividertheme="d">
<li data-role="list-divider">Listviews</li>
<li><a href="docs-lists.html">List basics & API</a></li>
<li><a href="lists-ul.html">Basic linked list</a></li>
<li><a href="lists-nested.html">Nested list</a></li>
<li><a href="lists-ol.html">Numbered list</a></li>
<li><a href="lists-split.html">Split button list</a></li>
<li><a href="lists-divider.html">List dividers</a></li>
<li><a href="lists-autodividers.html">Autodividers</a></li>
<li><a href="lists-count.html">Count bubble</a></li>
<li><a href="lists-thumbnails.html">Thumbnails</a></li>
<li><a href="lists-icons.html">Icons</a></li>
<li><a href="lists-formatting.html">List formatting</a></li>
<li><a href="lists-inset.html">Inset styled lists</a></li>
<li><a href="lists-search.html">Search filter bar</a></li>
<li><a href="lists-search-inset.html">Inset search filter bar</a></li>
<li><a href="lists-search-with-dividers.html">Search filter with dividers</a></li>
<li><a href="lists-search-filtertext.html">Search filter hidden data</a></li>
<li><a href="lists-readonly.html">Read-only lists</a></li>
<li><a href="lists-readonly-inset.html">Read-only inset lists</a></li>
<li><a href="lists-forms.html">Lists with forms</a></li>
<li><a href="lists-forms-inset.html">Inset lists with forms</a></li>
<li><a href="lists-collapsible.html">Collapsible lists</a></li>
<li><a href="lists-performance.html">List performance test</a></li>
<li data-theme="a"><a href="lists-themes.html">Theming lists</a></li>
</ul>
</div>
</div>
</div><!-- /content -->
<div data-role="footer" class="footer-docs" data-theme="c">
<p class="jqm-version"></p>
<p>© 2012 jQuery Foundation and other contributors</p>
</div>
</div><!-- /page -->
</body>
</html>
|