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/jquery.mobile.css" />
8 <link rel="stylesheet" href="../../_assets/css/jqm-docs.css"/>
9 <script src="../../../js/jquery.js"></script>
10 <script src="../../../docs/_assets/js/jqm-docs.js"></script>
11 <script src="../../../js/"></script>
16 <div data-role="page" class="type-interior" data-theme="c">
18 <div data-role="header" data-theme="c">
19 <h1>Theming pages</h1>
20 <a href="../../../" data-icon="home" data-iconpos="notext" data-direction="reverse">Home</a>
21 <a href="../../nav.html" data-icon="search" data-iconpos="notext" data-rel="dialog" data-transition="fade">Search</a>
22 </div><!-- /header -->
24 <div data-role="content">
25 <div class="content-primary">
27 <ul data-role="controlgroup" data-type="horizontal" class="localnav">
28 <li><a href="../pages-themes.html" data-role="button" data-transition="fade">Theme Overview</a></li>
30 <li><a href="theme-a.html" data-role="button" data-transition="fade">A </a></li>
31 <li><a href="theme-b.html" data-role="button" data-transition="fade">B </a></li>
32 <li><a href="theme-c.html" data-role="button" data-transition="fade" class="ui-btn-active">C </a></li>
33 <li><a href="theme-d.html" data-role="button" data-transition="fade">D </a></li>
34 <li><a href="theme-e.html" data-role="button" data-transition="fade">E </a></li>
37 <h2>Theme C Sample Page</h2>
39 <p>This is an example of <code>data-theme="c"</code> applied to the same element as <code>data-role="page"</code>, showing how the theme is inherited by widgets throughout the page.</p>
41 <div data-role="fieldcontain">
42 <label for="name-a">Text Input:</label>
43 <input type="text" name="name" id="name-a" value="" />
46 <div data-role="fieldcontain">
47 <label for="switch-a">Flip switch:</label>
48 <select name="switch-a" id="switch-a" data-role="slider">
49 <option value="off">Off</option>
50 <option value="on">On</option>
54 <div data-role="fieldcontain">
55 <label for="slider-a">Slider:</label>
56 <input type="range" name="slider" id="slider-a" value="0" min="0" max="100" />
59 <div data-role="fieldcontain">
60 <fieldset data-role="controlgroup" data-type="horizontal">
61 <legend>Font styling:</legend>
62 <input type="checkbox" name="checkbox-6a" id="checkbox-6a" class="custom" />
63 <label for="checkbox-6a">b</label>
65 <input type="checkbox" name="checkbox-7a" id="checkbox-7a" class="custom" />
66 <label for="checkbox-7a"><em>i</em></label>
68 <input type="checkbox" name="checkbox-8a" id="checkbox-8a" class="custom" />
69 <label for="checkbox-8a">u</label>
73 <div data-role="fieldcontain">
74 <fieldset data-role="controlgroup">
75 <legend>Choose a pet:</legend>
76 <input type="radio" name="radio-choice-1" id="radio-choice-1a" value="choice-1" />
77 <label for="radio-choice-1a">Cat</label>
79 <input type="radio" name="radio-choice-1" id="radio-choice-2a" value="choice-2" />
80 <label for="radio-choice-2a">Dog</label>
82 <input type="radio" name="radio-choice-1" id="radio-choice-3a" value="choice-3" />
83 <label for="radio-choice-3a">Hamster</label>
85 <input type="radio" name="radio-choice-1" id="radio-choice-4a" value="choice-4" />
86 <label for="radio-choice-4a">Lizard</label>
90 <div data-role="fieldcontain">
91 <label for="select-choice-a" class="select">Choose shipping method:</label>
92 <select name="select-choice-a" id="select-choice-a">
93 <option value="standard">Standard: 7 day</option>
94 <option value="rush">Rush: 3 days</option>
95 <option value="express">Express: next day</option>
96 <option value="overnight">Overnight</option>
100 <h2>Collapsible Sets</h2>
101 <div data-role="collapsible-set">
102 <div data-role="collapsible" data-collapsed="false">
104 <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>
106 <div data-role="collapsible">
108 <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>
111 <div data-role="collapsible">
113 <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>
119 <ul data-role="listview" data-inset="true">
120 <li><a href="index.html">Inbox <span class="ui-li-count" >12</span></a></li>
121 <li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
122 <li><a href="index.html">Drafts <span class="ui-li-count">4</span></a></li>
123 <li><a href="index.html">Sent <span class="ui-li-count">328</span></a></li>
124 <li><a href="index.html">Trash <span class="ui-li-count">62</span></a></li>
127 </div><!--/content-primary -->
129 <div class="content-secondary">
131 <div data-role="collapsible" data-collapsed="true" data-theme="c" data-content-theme="c">
133 <h3>More in this section</h3>
135 <ul data-role="listview" data-theme="c" data-dividertheme="c">
136 <li data-role="list-divider">Pages & Dialogs</li>
137 <li><a href="../page-anatomy.html">Anatomy of a page</a></li>
138 <li><a href="../page-template.html" data-ajax="false">Single page template</a></li>
139 <li><a href="../multipage-template.html" data-ajax="false">Multi-page template</a></li>
140 <li><a href="../page-titles.html">Page titles</a></li>
141 <li><a href="../page-links.html">Linking pages</a></li>
142 <li><a href="../page-transitions.html" data-ajax="false">Page transitions</a></li>
143 <li><a href="../loader.html">Page loading widget</a></li>
144 <li><a href="../dialog/index.html">Dialogs</a></li>
145 <li><a href="../popup/index.html">Popups</a></li>
146 <li><a href="../page-cache.html">Prefetching & caching pages</a></li>
147 <li><a href="../page-navmodel.html">Ajax, hashes & history</a></li>
148 <li><a href="../page-dynamic.html">Dynamically Injecting Pages</a></li>
149 <li><a href="../page-scripting.html">Scripting pages</a></li>
150 <li data-theme="a"><a href="../pages-themes.html">Theming pages</a></li>
155 </div><!-- /content -->
157 <div data-role="footer" class="footer-docs" data-theme="c">
158 <p class="jqm-version"></p>
159 <p>© 2012 jQuery Foundation and other contributors</p>