Revert "Export"
[framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.1.0 / docs / pages / pages-themes / theme-d.html
1 <!DOCTYPE html> 
2 <html>
3         <head>
4         <meta charset="utf-8">
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="../../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
10         <script src="../../../js/jquery.js"></script>
11         <script src="../../../docs/_assets/js/jqm-docs.js"></script>
12         <script src="../../../js/"></script>
13
14 </head> 
15 <body> 
16
17         <div data-role="page" class="type-interior" data-theme="d">
18
19                 <div data-role="header" data-theme="d">
20                 <h1>Theming pages</h1>
21                 <a href="../../../" data-icon="home" data-iconpos="notext" data-direction="reverse">Home</a>
22                 <a href="../../nav.html" data-icon="search" data-iconpos="notext" data-rel="dialog" data-transition="fade">Search</a>
23         </div><!-- /header -->
24
25         <div data-role="content">
26                 <div class="content-primary">
27                         
28                         <ul data-role="controlgroup" data-type="horizontal" class="localnav">
29                                 <li><a href="../pages-themes.html" data-role="button" data-transition="fade">Theme Overview</a></li>                            
30                                 
31                                 <li><a href="theme-a.html" data-role="button" data-transition="fade">A&nbsp;</a></li>
32                                 <li><a href="theme-b.html" data-role="button" data-transition="fade">B&nbsp;</a></li>
33                                 <li><a href="theme-c.html" data-role="button" data-transition="fade">C&nbsp;</a></li>
34                                 <li><a href="theme-d.html" data-role="button" data-transition="fade" class="ui-btn-active">D&nbsp;</a></li>
35                                 <li><a href="theme-e.html" data-role="button" data-transition="fade">E&nbsp;</a></li>
36                         </ul>
37                         
38                         <h2>Theme D Sample Page</h2>
39
40                         <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>
41                         
42                                         <div data-role="fieldcontain">
43                                  <label for="name-a">Text Input:</label>
44                                  <input type="text" name="name" id="name-a" value=""  />
45                                         </div>
46
47                                         <div data-role="fieldcontain">
48                                                 <label for="switch-a">Flip switch:</label>
49                                                 <select name="switch-a" id="switch-a" data-role="slider">
50                                                         <option value="off">Off</option>
51                                                         <option value="on">On</option>
52                                                 </select> 
53                                         </div>
54
55                                         <div data-role="fieldcontain">
56                                                 <label for="slider-a">Slider:</label>
57                                                 <input type="range" name="slider" id="slider-a" value="0" min="0" max="100"  />
58                                         </div>
59
60                                         <div data-role="fieldcontain">
61                                         <fieldset data-role="controlgroup" data-type="horizontal">
62                                         <legend>Font styling:</legend>
63                                         <input type="checkbox" name="checkbox-6a" id="checkbox-6a" class="custom" />
64                                                 <label for="checkbox-6a">b</label>
65
66                                                 <input type="checkbox" name="checkbox-7a" id="checkbox-7a" class="custom" />
67                                                 <label for="checkbox-7a"><em>i</em></label>
68
69                                                 <input type="checkbox" name="checkbox-8a" id="checkbox-8a" class="custom" />
70                                                 <label for="checkbox-8a">u</label>    
71                                     </fieldset>
72                                         </div>
73
74                                         <div data-role="fieldcontain">
75                                             <fieldset data-role="controlgroup">
76                                                 <legend>Choose a pet:</legend>
77                                                         <input type="radio" name="radio-choice-1" id="radio-choice-1a" value="choice-1" />
78                                                         <label for="radio-choice-1a">Cat</label>
79
80                                                         <input type="radio" name="radio-choice-1" id="radio-choice-2a" value="choice-2"  />
81                                                         <label for="radio-choice-2a">Dog</label>
82
83                                                         <input type="radio" name="radio-choice-1" id="radio-choice-3a" value="choice-3"  />
84                                                         <label for="radio-choice-3a">Hamster</label>
85
86                                                         <input type="radio" name="radio-choice-1" id="radio-choice-4a" value="choice-4"  />
87                                                         <label for="radio-choice-4a">Lizard</label>
88                                             </fieldset>
89                                         </div>
90
91                                         <div data-role="fieldcontain">
92                                                 <label for="select-choice-a" class="select">Choose shipping method:</label>
93                                                 <select name="select-choice-a" id="select-choice-a">
94                                                         <option value="standard">Standard: 7 day</option>
95                                                         <option value="rush">Rush: 3 days</option>
96                                                         <option value="express">Express: next day</option>
97                                                         <option value="overnight">Overnight</option>
98                                                 </select>
99                                         </div>
100
101                                         <h2>Collapsible Sets</h2>               
102                                         <div data-role="collapsible-set">
103                                                 <div data-role="collapsible" data-collapsed="false">
104                                                         <h3>Section 1</h3>
105                                                         <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>
107                                                 <div data-role="collapsible">
108                                                         <h3>Section 2</h3>
109                                                         <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
111                                                 </div>
112                                                 <div data-role="collapsible">
113                                                         <h3>Section 3</h3>
114                                                         <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>
115
116                                                 </div>
117                                         </div>
118
119                                         <h2>Inset List</h2>
120                                         <ul data-role="listview" data-inset="true">
121                                                 <li><a href="index.html">Inbox <span class="ui-li-count" >12</span></a></li>
122                                                 <li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
123                                                 <li><a href="index.html">Drafts <span class="ui-li-count">4</span></a></li>
124                                                 <li><a href="index.html">Sent <span class="ui-li-count">328</span></a></li>
125                                                 <li><a href="index.html">Trash <span class="ui-li-count">62</span></a></li>
126                                         </ul>
127                         
128                                 </div><!--/content-primary -->          
129
130                                 <div class="content-secondary">
131
132                                         <div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
133
134                                                 <h3>More in this section</h3>
135
136                                                 <ul data-role="listview" data-theme="c" data-dividertheme="d">
137                                                         <li data-role="list-divider">Pages &amp; Dialogs</li>
138                                                         <li><a href="../page-anatomy.html">Anatomy of a page</a></li>
139                                                         <li><a href="../page-template.html" data-ajax="false">Single page template</a></li>
140                                                         <li><a href="../multipage-template.html" data-ajax="false">Multi-page template</a></li>
141                                                         <li><a href="../page-titles.html">Page titles</a></li>
142                                                         <li><a href="../page-links.html">Linking pages</a></li>
143                                                         <li><a href="../page-transitions.html" data-ajax="false">Page transitions</a></li>
144                                                         <li><a href="../page-dialogs.html">Dialogs</a></li>
145                                                         <li><a href="../page-cache.html">Prefetching &amp; caching pages</a></li>
146                                                         <li><a href="../page-navmodel.html">Ajax, hashes &amp; history</a></li>
147                                                         <li><a href="../page-dynamic.html">Dynamically Injecting Pages</a></li>
148                                                         <li><a href="../page-scripting.html">Scripting pages</a></li>
149                                                         <li data-theme="a"><a href="../pages-themes.html">Theming pages</a></li>
150                                                 </ul>
151                                         </div>
152                                 </div>          
153
154                         </div><!-- /content -->
155
156                         <div data-role="footer" class="footer-docs" data-theme="d">
157                                         <p>&copy; 2011-12 The jQuery Foundation</p>
158                         </div>
159
160                         </div><!-- /page -->
161
162                         </body>
163                         </html>