|
1 | | -<!DOCTYPE html> |
| 1 | +<!DOCTYPE html> |
2 | 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 - Responsive Table</title> |
7 | | - <link rel="stylesheet" href="../../../../css/themes/default/jquery.mobile.css"> |
| 3 | +<head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | + <title>Table Column toggle: Heading groups - jQuery Mobile Demos</title> |
| 7 | + <link rel="stylesheet" href="../../../../css/themes/default/jquery.mobile.css"> |
8 | 8 | <link rel="stylesheet" href="../../_assets/css/jqm-demos.css"> |
9 | 9 | <link rel="shortcut icon" href="../../_assets/favicon.ico"> |
10 | | - |
| 10 | + <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,700' rel='stylesheet' type='text/css'> |
11 | 11 | <script src="../../../../js/jquery.js"></script> |
12 | 12 | <script src="../../_assets/js/"></script> |
13 | 13 | <script src="../../../../js/"></script> |
14 | | - |
15 | | - <!-- We're using a style block to make it easy to view the custom styles --> |
16 | | - <!-- In production, these should be added to an custom.css file loaded in the head --> |
17 | 14 | <style> |
18 | | - .th-groups th { |
19 | | - text-align:center; |
20 | | - background-color:rgba(0,0,0,.1); |
21 | | - border-right:1px solid #fff; |
22 | | - } |
23 | | - .th-groups th.totals { |
24 | | - background-color:rgba(0,0,0,.5); |
25 | | - color:#fff; |
26 | | - text-shadow:none; |
27 | | - } |
28 | | - |
29 | | - |
30 | | - /* Show priority 1 at 320px (20em x 16px) */ |
31 | | - @media screen and (min-width: 20em) { |
32 | | - th.ui-table-priority-1, |
33 | | - td.ui-table-priority-1 { |
34 | | - display: table-cell; |
35 | | - } |
36 | | - } |
37 | | - /* Show priority 2 at 480px (30em x 16px) */ |
38 | | - @media screen and (min-width: 30em) { |
39 | | - th.ui-table-priority-2, |
40 | | - td.ui-table-priority-2 { |
41 | | - display: table-cell; |
42 | | - } |
43 | | - } |
44 | | - /* Show priority 3 at 640px (40em x 16px) */ |
45 | | - @media screen and (min-width: 40em) { |
46 | | - th.ui-table-priority-3, |
47 | | - td.ui-table-priority-3 { |
48 | | - display: table-cell; |
49 | | - } |
50 | | - } |
51 | | - /* Show priority 4 at 800px (50em x 16px) */ |
52 | | - @media screen and (min-width: 50em) { |
53 | | - th.ui-table-priority-4, |
54 | | - td.ui-table-priority-4 { |
55 | | - display: table-cell; |
56 | | - } |
57 | | - } |
58 | | - /* Show priority 5 at 960px (60em x 16px) */ |
59 | | - @media screen and (min-width: 60em) { |
60 | | - th.ui-table-priority-5, |
61 | | - td.ui-table-priority-5 { |
62 | | - display: table-cell; |
63 | | - } |
64 | | - } |
65 | | - /* Show priority 6 at 1200 (75em x 16px) */ |
66 | | - @media screen and (min-width: 75em) { |
67 | | - th.ui-table-priority-6, |
68 | | - td.ui-table-priority-6 { |
69 | | - display: table-cell; |
70 | | - } |
71 | | - } |
72 | | - /* Manually hidden */ |
73 | | - th.ui-table-cell-hidden, |
74 | | - td.ui-table-cell-hidden { |
75 | | - display: none; |
76 | | - } |
77 | | - |
78 | | - /* Manually shown */ |
79 | | - th.ui-table-cell-visible, |
80 | | - td.ui-table-cell-visible { |
81 | | - display: table-cell; |
82 | | - } |
| 15 | + .th-groups th { |
| 16 | + text-align: center; |
| 17 | + background-color: rgba(0,0,0,.1); |
| 18 | + border-right: 1px solid #fff; |
| 19 | + } |
| 20 | + .th-groups th.totals { |
| 21 | + background-color: rgba(0,0,0,.5); |
| 22 | + color: #fff; |
| 23 | + text-shadow: none; |
| 24 | + } |
| 25 | + /* Show priority 1 at 320px (20em x 16px) */ |
| 26 | + @media screen and (min-width: 20em) { |
| 27 | + th.ui-table-priority-1, |
| 28 | + td.ui-table-priority-1 { |
| 29 | + display: table-cell; |
| 30 | + } |
| 31 | + } |
| 32 | + /* Show priority 2 at 480px (30em x 16px) */ |
| 33 | + @media screen and (min-width: 30em) { |
| 34 | + th.ui-table-priority-2, |
| 35 | + td.ui-table-priority-2 { |
| 36 | + display: table-cell; |
| 37 | + } |
| 38 | + } |
| 39 | + /* Show priority 3 at 640px (40em x 16px) */ |
| 40 | + @media screen and (min-width: 40em) { |
| 41 | + th.ui-table-priority-3, |
| 42 | + td.ui-table-priority-3 { |
| 43 | + display: table-cell; |
| 44 | + } |
| 45 | + } |
| 46 | + /* Show priority 4 at 800px (50em x 16px) */ |
| 47 | + @media screen and (min-width: 50em) { |
| 48 | + th.ui-table-priority-4, |
| 49 | + td.ui-table-priority-4 { |
| 50 | + display: table-cell; |
| 51 | + } |
| 52 | + } |
| 53 | + /* Show priority 5 at 960px (60em x 16px) */ |
| 54 | + @media screen and (min-width: 60em) { |
| 55 | + th.ui-table-priority-5, |
| 56 | + td.ui-table-priority-5 { |
| 57 | + display: table-cell; |
| 58 | + } |
| 59 | + } |
| 60 | + /* Show priority 6 at 1200 (75em x 16px) */ |
| 61 | + @media screen and (min-width: 75em) { |
| 62 | + th.ui-table-priority-6, |
| 63 | + td.ui-table-priority-6 { |
| 64 | + display: table-cell; |
| 65 | + } |
| 66 | + } |
| 67 | + /* Manually hidden */ |
| 68 | + th.ui-table-cell-hidden, |
| 69 | + td.ui-table-cell-hidden { |
| 70 | + display: none; |
| 71 | + } |
| 72 | + /* Manually shown */ |
| 73 | + th.ui-table-cell-visible, |
| 74 | + td.ui-table-cell-visible { |
| 75 | + display: table-cell; |
| 76 | + } |
83 | 77 | </style> |
84 | 78 | </head> |
85 | 79 | <body> |
86 | | - |
87 | | - <div data-role="page"> |
88 | | - |
89 | | - <div data-role="header" class="jqm-header" data-theme="f"> |
90 | | - <h1>Responsive Table</h1> |
91 | | - <a href="../../" data-icon="home" data-iconpos="notext" data-ajax="false">Home</a> |
92 | | - </div><!-- /header --> |
93 | | - |
94 | | - <div data-role="content"> |
95 | | - <h2>Heading groups</h2> |
96 | | - |
97 | | - <h3>Column Toggle example</h3> |
98 | | - <p>The columns of data are shown and toggled as sets under each grouped heading for each financial quarter. In this example, the totals are shown at narrow widths, then more historical quarters are revealed at wider widths by assigning priorities to the columns. </p> |
99 | | - |
100 | | - <div data-demo-html="true" data-demo-css="true"> |
| 80 | +<div data-role="page" class="jqm-demos"> |
| 81 | + |
| 82 | + <div data-role="header" class="jqm-header" data-theme="f"> |
| 83 | + <h1>Responsive Tables</h1> |
| 84 | + <a href="#panel-nav" data-icon="bars" data-iconpos="notext">Navigation</a> |
| 85 | + <a href="../../" data-icon="home" data-iconpos="notext" data-ajax="false">Home</a> |
| 86 | + </div><!-- /header --> |
| 87 | + |
| 88 | + <div data-role="content" class="jqm-content jqm-fullwidth"> |
| 89 | + |
| 90 | + <h2>Column toggle: Heading groups</h2> |
| 91 | + |
| 92 | + <p>The columns of data are shown and toggled as sets under each grouped heading for each financial quarter. In this example, the totals are shown at narrow widths, then more historical quarters are revealed at wider widths by assigning priorities to the columns.</p> |
| 93 | + |
| 94 | + <div data-demo-html="true" data-demo-css="true"> |
101 | 95 |
|
102 | 96 | <table data-role="table" id="financial-table" data-column-btn-theme="b" data-column-popup-theme="a" data-mode="columntoggle" class="table-stroke"> |
103 | 97 | <thead> |
@@ -210,23 +204,15 @@ <h3>Column Toggle example</h3> |
210 | 204 |
|
211 | 205 | </div><!-- /data-demo --> |
212 | 206 |
|
213 | | - |
214 | | - |
| 207 | + </div><!-- /content --> |
215 | 208 |
|
216 | | - </div><!-- /content --> |
| 209 | + <div data-role="footer" class="jqm-footer" data-theme="c"> |
| 210 | + <p class="jqm-version"></p> |
| 211 | + <p>Copyright 2013 The jQuery Foundation</p> |
| 212 | + </div><!-- /jqm-footer --> |
217 | 213 |
|
218 | | - <div data-role="footer" class="jqm-footer" data-theme="c"> |
219 | | - <p class="jqm-version"></p> |
220 | | - <p>Copyright 2013 The jQuery Foundation</p> |
221 | | - </div> |
222 | | - |
223 | | - </div><!-- /page --> |
| 214 | +<?php include( '../../nav.html' ); ?> |
224 | 215 |
|
| 216 | +</div><!-- /page --> |
225 | 217 | </body> |
226 | 218 | </html> |
227 | | - |
228 | | - |
229 | | - |
230 | | - |
231 | | - |
232 | | - |
0 commit comments