theme-a.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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="../../../jquery.mobile-1.0.1.min.css" />
  8. <link rel="stylesheet" href="../../_assets/css/jqm-docs.css"/>
  9. <script src="../../../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="../../../jquery.mobile-1.0.1.min.js"></script>
  13. </head>
  14. <body>
  15. <div data-role="page" class="type-interior" data-theme="a">
  16. <div data-role="header">
  17. <h1>Theming pages</h1>
  18. <a href="../../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
  19. </div><!-- /header -->
  20. <div data-role="content">
  21. <div class="content-primary">
  22. <ul data-role="controlgroup" data-type="horizontal" class="localnav">
  23. <li><a href="../pages-themes.html" data-role="button" data-transition="fade">Theme Overview</a></li>
  24. <li><a href="theme-a.html" data-role="button" data-transition="fade" class="ui-btn-active">A&nbsp;</a></li>
  25. <li><a href="theme-b.html" data-role="button" data-transition="fade">B&nbsp;</a></li>
  26. <li><a href="theme-c.html" data-role="button" data-transition="fade">C&nbsp;</a></li>
  27. <li><a href="theme-d.html" data-role="button" data-transition="fade">D&nbsp;</a></li>
  28. <li><a href="theme-e.html" data-role="button" data-transition="fade">E&nbsp;</a></li>
  29. </ul>
  30. <h2>Theme A Sample Page</h2>
  31. <p>This is an example of <code>data-theme="a"</code> applied to the same element as <code>data-role="page"</code>, showing how the theme is inherited by widgets throughout the page.</p>
  32. <div data-role="fieldcontain">
  33. <label for="name-a">Text Input:</label>
  34. <input type="text" name="name" id="name-a" value="" />
  35. </div>
  36. <div data-role="fieldcontain">
  37. <label for="switch-a">Flip switch:</label>
  38. <select name="switch-a" id="switch-a" data-role="slider">
  39. <option value="off">Off</option>
  40. <option value="on">On</option>
  41. </select>
  42. </div>
  43. <div data-role="fieldcontain">
  44. <label for="slider-a">Slider:</label>
  45. <input type="range" name="slider" id="slider-a" value="0" min="0" max="100" />
  46. </div>
  47. <div data-role="fieldcontain">
  48. <fieldset data-role="controlgroup" data-type="horizontal">
  49. <legend>Font styling:</legend>
  50. <input type="checkbox" name="checkbox-6a" id="checkbox-6a" class="custom" />
  51. <label for="checkbox-6a">b</label>
  52. <input type="checkbox" name="checkbox-7a" id="checkbox-7a" class="custom" />
  53. <label for="checkbox-7a"><em>i</em></label>
  54. <input type="checkbox" name="checkbox-8a" id="checkbox-8a" class="custom" />
  55. <label for="checkbox-8a">u</label>
  56. </fieldset>
  57. </div>
  58. <div data-role="fieldcontain">
  59. <fieldset data-role="controlgroup">
  60. <legend>Choose a pet:</legend>
  61. <input type="radio" name="radio-choice-1" id="radio-choice-1a" value="choice-1" />
  62. <label for="radio-choice-1a">Cat</label>
  63. <input type="radio" name="radio-choice-1" id="radio-choice-2a" value="choice-2" />
  64. <label for="radio-choice-2a">Dog</label>
  65. <input type="radio" name="radio-choice-1" id="radio-choice-3a" value="choice-3" />
  66. <label for="radio-choice-3a">Hamster</label>
  67. <input type="radio" name="radio-choice-1" id="radio-choice-4a" value="choice-4" />
  68. <label for="radio-choice-4a">Lizard</label>
  69. </fieldset>
  70. </div>
  71. <div data-role="fieldcontain">
  72. <label for="select-choice-a" class="select">Choose shipping method:</label>
  73. <select name="select-choice-a" id="select-choice-a">
  74. <option value="standard">Standard: 7 day</option>
  75. <option value="rush">Rush: 3 days</option>
  76. <option value="express">Express: next day</option>
  77. <option value="overnight">Overnight</option>
  78. </select>
  79. </div>
  80. <h2>Collapsible Sets</h2>
  81. <div data-role="collapsible-set">
  82. <div data-role="collapsible" data-collapsed="false">
  83. <h3>Section 1</h3>
  84. <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>
  85. </div>
  86. <div data-role="collapsible">
  87. <h3>Section 2</h3>
  88. <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>
  89. </div>
  90. <div data-role="collapsible">
  91. <h3>Section 3</h3>
  92. <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>
  93. </div>
  94. </div>
  95. <h2>Inset List</h2>
  96. <ul data-role="listview" data-inset="true">
  97. <li><a href="index.html">Inbox <span class="ui-li-count" >12</span></a></li>
  98. <li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
  99. <li><a href="index.html">Drafts <span class="ui-li-count">4</span></a></li>
  100. <li><a href="index.html">Sent <span class="ui-li-count">328</span></a></li>
  101. <li><a href="index.html">Trash <span class="ui-li-count">62</span></a></li>
  102. </ul>
  103. </div><!--/content-primary -->
  104. <div class="content-secondary">
  105. <div data-role="collapsible" data-collapsed="true" data-theme="a" data-content-theme="a">
  106. <h3>More in this section</h3>
  107. <ul data-role="listview" data-theme="a" data-dividertheme="a">
  108. <li data-role="list-divider">Pages &amp; Dialogs</li>
  109. <li><a href="../page-anatomy.html">Anatomy of a page</a></li>
  110. <li><a href="../page-template.html" data-ajax="false">Single page template</a></li>
  111. <li><a href="../multipage-template.html" data-ajax="false">Multi-page template</a></li>
  112. <li><a href="../page-titles.html">Page titles</a></li>
  113. <li><a href="../page-links.html">Linking pages</a></li>
  114. <li><a href="../page-transitions.html" data-ajax="false">Page transitions</a></li>
  115. <li><a href="../page-dialogs.html">Dialogs</a></li>
  116. <li><a href="../page-cache.html">Prefetching &amp; caching pages</a></li>
  117. <li><a href="../page-navmodel.html">Ajax, hashes &amp; history</a></li>
  118. <li><a href="../page-dynamic.html">Dynamically Injecting Pages</a></li>
  119. <li><a href="../page-scripting.html">Scripting pages</a></li>
  120. <li data-theme="b"><a href="../pages-themes.html">Theming pages</a></li>
  121. </ul>
  122. </div>
  123. </div>
  124. </div><!-- /content -->
  125. <div data-role="footer" class="footer-docs">
  126. <p>&copy; 2011-2012 The jQuery Project</p>
  127. </div>
  128. </div><!-- /page -->
  129. </body>
  130. </html>