Updating icons. Edges were slightly blurry.
[ReadingsJQM.git] / snippets / buttons.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 Boilerplate </title>
7         <link rel="stylesheet"  href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
8
9         <!-- if you have a custom theme, add it here -->
10         <link rel="stylesheet"  href="themes/jQuery-Mobile-Boilerplate.css" />
11
12         <link rel="stylesheet" href="css/custom.css" />
13
14         <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
15         <script src="js/application.js"></script>
16         <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
17         
18 </head> 
19 <body> 
20         <div data-role="page">
21
22                 <div data-role="header">
23                         <a href="../index.html" data-icon="home">Home</a>
24                         <h1>Buttons</h1>
25                 </div>
26
27                 <div data-role="content">
28
29
30
31
32 <h2>Simple Button</h2>
33
34 <a href="index.html" data-role="button">Link button</a>
35
36 <h2>Icon Buttons</h2>
37
38 <p><b>Left arrow</b> - data-icon="arrow-l"</p>
39 <a href="index.html" data-role="button" data-icon="arrow-l">My button</a>
40 <p><b>Right arrow</b> - data-icon="arrow-r"</p>
41 <a href="index.html" data-role="button" data-icon="arrow-r">My button</a>
42 <p><b>Up arrow</b> - data-icon="arrow-u"</p>
43 <a href="index.html" data-role="button" data-icon="arrow-u">My button</a>
44 <p><b>Down arrow</b> - data-icon="arrow-d"</p>
45 <a href="index.html" data-role="button" data-icon="arrow-d">My button</a>
46 <p><b>Delete</b> - data-icon="delete"</p>
47 <a href="index.html" data-role="button" data-icon="delete">My button</a>
48 <p><b>Plus</b> - data-icon="plus"</p>
49 <a href="index.html" data-role="button" data-icon="plus">My button</a>
50 <p><b>Minus</b> - data-icon="minus"</p>
51 <a href="index.html" data-role="button" data-icon="minus">My button</a>
52 <p><b>Check</b> - data-icon="check"</p>
53 <a href="index.html" data-role="button" data-icon="check">My button</a>
54 <p><b>Gear</b> - data-icon="gear"</p>
55 <a href="index.html" data-role="button" data-icon="gear">My button</a>
56 <p><b>Refresh</b> - data-icon="refresh"</p>
57 <a href="index.html" data-role="button" data-icon="refresh">My button</a>
58 <p><b>Forward</b> - data-icon="forward"</p>
59 <a href="index.html" data-role="button" data-icon="forward">My button</a>
60 <p><b>Back</b> - data-icon="back"</p>
61 <a href="index.html" data-role="button" data-icon="back">My button</a>
62 <p><b>Grid</b> - data-icon="grid"</p>
63 <a href="index.html" data-role="button" data-icon="grid">My button</a>
64 <p><b>Star</b> - data-icon="star"</p>
65 <a href="index.html" data-role="button" data-icon="star">My button</a>
66 <p><b>Alert</b> - data-icon="alert"</p>
67 <a href="index.html" data-role="button" data-icon="alert">My button</a>
68 <p><b>Info</b> - data-icon="info"</p>
69 <a href="index.html" data-role="button" data-icon="info">My button</a>
70 <p><b>Home</b> - data-icon="home"</p>
71 <a href="index.html" data-role="button" data-icon="home">My button</a>
72 <p><b>Search</b> - data-icon="search"</p>
73 <a href="index.html" data-role="button" data-icon="search">My button</a>
74
75 <h2>Icon positioning</h2>
76
77 <p>Right aligned:</p>
78 <a href="index.html" data-role="button" data-icon="delete" data-iconpos="right">Delete</a>
79
80 <p>Top aligned</p>
81 <a href="index.html" data-role="button" data-icon="delete" data-iconpos="top">Delete</a>
82
83 <p>Bottom aligned</p>
84 <a href="index.html" data-role="button" data-icon="delete" data-iconpos="bottom">Delete</a>
85
86 <p>Icon-only button (no text):</p>
87 <a href="index.html" data-role="button" data-icon="delete" data-iconpos="notext">Delete</a>
88
89 <h2>Inline buttons</h2>
90
91 <a href="index.html" data-role="button" data-inline="true">Cancel</a>
92 <a href="index.html" data-role="button" data-inline="true" data-theme="b">Save</a>
93
94 <h2>Grouped buttons</h2>
95
96 <div data-role="controlgroup">
97         <a href="index.html" data-role="button">One</a>
98         <a href="index.html" data-role="button">Two</a>
99         <a href="index.html" data-role="button">Three</a>
100 </div>
101
102 <div data-role="controlgroup" data-type="horizontal">
103         <a href="index.html" data-role="button">One</a>
104         <a href="index.html" data-role="button">Two</a>
105         <a href="index.html" data-role="button">Three</a>
106 </div>
107
108 <div data-role="controlgroup" data-type="horizontal">
109         <a href="index.html" data-role="button" data-icon="home">One</a>
110         <a href="index.html" data-role="button" data-icon="gear">Two</a>
111         <a href="index.html" data-role="button" data-icon="refresh">Three</a>
112 </div>
113
114 <div data-role="controlgroup" data-type="horizontal">
115         <a href="index.html" data-role="button" data-icon="minus" data-iconpos="notext">One</a>
116         <a href="index.html" data-role="button" data-icon="plus" data-iconpos="notext">Two</a>
117         <a href="index.html" data-role="button" data-icon="delete" data-iconpos="notext">Three</a>
118 </div>
119
120
121
122
123
124
125                 </div>
126                 
127                 <div data-role="footer" data-theme="c">
128                         <p>&copy; 2012 - jQuery Mobile Boilerplate</p>
129                 </div>  
130                 
131         </div>
132 </body>
133 </html>