5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <title>jQuery Mobile Docs - Theming Pages</title>
7 <link rel="stylesheet" href="../../../css/themes/default/" />
8 <link rel="stylesheet" href="../../_assets/css/jqm-docs.css"/>
9 <script src="../../../js/jquery.js"></script>
10 <script src="../../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
11 <script src="../../_assets/js/jqm-docs.js"></script>
12 <script src="../../../js/"></script>
16 <div data-role="page" class="type-interior" data-theme="d">
18 <div data-role="header" data-theme="d">
19 <h1>Theming pages</h1>
20 <a href="../../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
21 </div><!-- /header -->
23 <div data-role="content">
24 <div class="content-primary">
26 <ul data-role="controlgroup" data-type="horizontal" class="localnav">
27 <li><a href="../pages-themes.html" data-role="button" data-transition="fade">Theme Overview</a></li>
29 <li><a href="theme-a.html" data-role="button" data-transition="fade">A </a></li>
30 <li><a href="theme-b.html" data-role="button" data-transition="fade">B </a></li>
31 <li><a href="theme-c.html" data-role="button" data-transition="fade">C </a></li>
32 <li><a href="theme-d.html" data-role="button" data-transition="fade" class="ui-btn-active">D </a></li>
33 <li><a href="theme-e.html" data-role="button" data-transition="fade">E </a></li>
36 <h2>Theme D Sample Page</h2>
38 <p>This is an example of <code>data-theme="d"</code> applied to the same element as <code>data-role="page"</code>, showing how the theme is inherited by widgets throughout the page.</p>
40 <div data-role="fieldcontain">
41 <label for="name-a">Text Input:</label>
42 <input type="text" name="name" id="name-a" value="" />
45 <div data-role="fieldcontain">
46 <label for="switch-a">Flip switch:</label>
47 <select name="switch-a" id="switch-a" data-role="slider">
48 <option value="off">Off</option>
49 <option value="on">On</option>
53 <div data-role="fieldcontain">
54 <label for="slider-a">Slider:</label>
55 <input type="range" name="slider" id="slider-a" value="0" min="0" max="100" />
58 <div data-role="fieldcontain">
59 <fieldset data-role="controlgroup" data-type="horizontal">
60 <legend>Font styling:</legend>
61 <input type="checkbox" name="checkbox-6a" id="checkbox-6a" class="custom" />
62 <label for="checkbox-6a">b</label>
64 <input type="checkbox" name="checkbox-7a" id="checkbox-7a" class="custom" />
65 <label for="checkbox-7a"><em>i</em></label>
67 <input type="checkbox" name="checkbox-8a" id="checkbox-8a" class="custom" />
68 <label for="checkbox-8a">u</label>
72 <div data-role="fieldcontain">
73 <fieldset data-role="controlgroup">
74 <legend>Choose a pet:</legend>
75 <input type="radio" name="radio-choice-1" id="radio-choice-1a" value="choice-1" />
76 <label for="radio-choice-1a">Cat</label>
78 <input type="radio" name="radio-choice-1" id="radio-choice-2a" value="choice-2" />
79 <label for="radio-choice-2a">Dog</label>
81 <input type="radio" name="radio-choice-1" id="radio-choice-3a" value="choice-3" />
82 <label for="radio-choice-3a">Hamster</label>
84 <input type="radio" name="radio-choice-1" id="radio-choice-4a" value="choice-4" />
85 <label for="radio-choice-4a">Lizard</label>
89 <div data-role="fieldcontain">
90 <label for="select-choice-a" class="select">Choose shipping method:</label>
91 <select name="select-choice-a" id="select-choice-a">
92 <option value="standard">Standard: 7 day</option>
93 <option value="rush">Rush: 3 days</option>
94 <option value="express">Express: next day</option>
95 <option value="overnight">Overnight</option>
99 <h2>Collapsible Sets</h2>
100 <div data-role="collapsible-set">
101 <div data-role="collapsible" data-collapsed="false">
103 <p>I'm the collapsible content in a set so this feels like an accordion. I'm visible by default because I have the <code>data-collapsed="false"</code> attribute; to collapse me, either click my header or expand another header in my set.</p>
105 <div data-role="collapsible">
107 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I have the "collapsed" state; you need to expand the header to see me.</p>
110 <div data-role="collapsible">
112 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I have the "collapsed" state; you need to expand the header to see me.</p>
118 <ul data-role="listview" data-inset="true">
119 <li><a href="index.html">Inbox <span class="ui-li-count" >12</span></a></li>
120 <li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
121 <li><a href="index.html">Drafts <span class="ui-li-count">4</span></a></li>
122 <li><a href="index.html">Sent <span class="ui-li-count">328</span></a></li>
123 <li><a href="index.html">Trash <span class="ui-li-count">62</span></a></li>
126 </div><!--/content-primary -->
128 <div class="content-secondary">
130 <div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
132 <h3>More in this section</h3>
134 <ul data-role="listview" data-theme="c" data-dividertheme="d">
135 <li data-role="list-divider">Pages & Dialogs</li>
136 <li><a href="../page-anatomy.html">Anatomy of a page</a></li>
137 <li><a href="../page-template.html" data-ajax="false">Single page template</a></li>
138 <li><a href="../multipage-template.html" data-ajax="false">Multi-page template</a></li>
139 <li><a href="../page-titles.html">Page titles</a></li>
140 <li><a href="../page-links.html">Linking pages</a></li>
141 <li><a href="../page-transitions.html" data-ajax="false">Page transitions</a></li>
142 <li><a href="../page-dialogs.html">Dialogs</a></li>
143 <li><a href="../page-cache.html">Prefetching & caching pages</a></li>
144 <li><a href="../page-navmodel.html">Ajax, hashes & history</a></li>
145 <li><a href="../page-dynamic.html">Dynamically Injecting Pages</a></li>
146 <li><a href="../page-scripting.html">Scripting pages</a></li>
147 <li data-theme="a"><a href="../pages-themes.html">Theming pages</a></li>
152 </div><!-- /content -->
154 <div data-role="footer" class="footer-docs" data-theme="d">
155 <p>© 2011 The jQuery Project</p>