|
48 | 48 | <p>Add the <code>data-content-theme</code> attribute to set a theme for the content of the collapsible. To provide a stronger visual connection between the collapsible header and content, add the <code>data-content-theme</code> attribute to the wrapper and specify a theme swatch letter. This applies the swatch's border and <em>flat</em> background color (not the gradient) to the content block, removes the rounded corners from the bottom of the header, and gives the bottom of the content block rounded corners to visually group these elements.</p> |
49 | 49 |
|
50 | 50 | <div data-demo-html="true"> |
51 | | - <div data-role="collapsible" data-theme="b" data-content-theme="d"> |
| 51 | + <div data-role="collapsible" data-theme="a" data-content-theme="a"> |
52 | 52 | <h4>Heading</h4> |
53 | | - <p>I'm the collapsible content with a themed content block set to "d".</p> |
| 53 | + <p>I'm the collapsible content with a themed content block set to "a".</p> |
54 | 54 | </div> |
55 | 55 | </div><!--/demo-html --> |
56 | 56 |
|
|
59 | 59 | <p>To expand the content when the page loads, add the <code>data-collapsed="false"</code> attribute to the wrapper.</p> |
60 | 60 |
|
61 | 61 | <div data-demo-html="true"> |
62 | | - <div data-role="collapsible" data-collapsed="false" data-theme="b" data-content-theme="d"> |
| 62 | + <div data-role="collapsible" data-collapsed="false" data-theme="a" data-content-theme="a"> |
63 | 63 | <h4>Heading</h4> |
64 | 64 | <ul data-role="listview"> |
65 | 65 | <li><a href="#">List item 1</a></li> |
|
86 | 86 |
|
87 | 87 | <h2>Icons</h2> |
88 | 88 |
|
89 | | - <p>The default icons of collapsible headings can be overridden by using the <code>data-collapsed-icon</code> and <code>data-expanded-icon</code> attributes. In the example below, <code>data-collapsed-icon="arrow-d"</code> and <code>data-expanded-icon="arrow-u"</code>.</p> |
| 89 | + <p>The default icons of collapsible headings can be overridden by using the <code>data-collapsed-icon</code> and <code>data-expanded-icon</code> attributes. In the example below, <code>data-collapsed-icon="carat-d"</code> and <code>data-expanded-icon="carat-u"</code>.</p> |
90 | 90 |
|
91 | 91 | <div data-demo-html="true"> |
92 | | - <div data-role="collapsible" data-theme="b" data-content-theme="d" data-collapsed-icon="arrow-d" data-expanded-icon="arrow-u"> |
| 92 | + <div data-role="collapsible" data-theme="a" data-content-theme="a" data-collapsed-icon="carat-d" data-expanded-icon="carat-u"> |
93 | 93 | <h4>Heading</h4> |
94 | 94 | <ul data-role="listview" data-inset="false"> |
95 | 95 | <li>Read-only list item 1</li> |
|
102 | 102 | <h2>Icon positioning</h2> |
103 | 103 | <p>The default icon positioning of collapsible headings can be overridden by using the <code>data-iconpos</code> attribute. In the below case, <code>data-iconpos="right"</code>.</p> |
104 | 104 |
|
105 | | - <div data-role="collapsible" data-iconpos="right" data-theme="b" data-content-theme="d"> |
| 105 | + <div data-role="collapsible" data-iconpos="right" data-theme="a" data-content-theme="a"> |
106 | 106 | <h3>I'm a header</h3> |
107 | 107 | <p><code>data-iconpos="right"</code></p> |
108 | 108 | </div> |
|
112 | 112 | <p>For forms, use a <code>fieldset</code> and <code>legend</code> for the collapsible.</p> |
113 | 113 | <div data-demo-html="true"> |
114 | 114 | <form> |
115 | | - <fieldset data-role="collapsible" data-theme="a" data-content-theme="d"> |
| 115 | + <fieldset data-role="collapsible" data-theme="a" data-content-theme="a"> |
116 | 116 | <legend>Legend</legend> |
117 | 117 |
|
118 | 118 | <label for="textinput-f">Text Input:</label> |
|
135 | 135 | <p>By default collapsibles have an inset appearance. To make them full width without corner styling add the <code>data-inset="false"</code> attribute to the element.</p> |
136 | 136 |
|
137 | 137 | <div data-demo-html="true"> |
138 | | - <div data-role="collapsible" data-inset="false" data-theme="c" data-content-theme="d"> |
| 138 | + <div data-role="collapsible" data-inset="false" data-content-theme="a"> |
139 | 139 | <h4>Heading</h4> |
140 | 140 | <p>I'm the collapsible content. By default I'm closed, but you can click the header to open me.</p> |
141 | 141 | </div> |
|
146 | 146 | <p>This is an example of a series of individual collapsibles. The difference with a "Collapsible Set" is that multiple collapsible rows can be open at once.</p> |
147 | 147 |
|
148 | 148 | <div data-demo-html="true"> |
149 | | - <div data-role="collapsible" data-theme="b" data-content-theme="d" data-inset="false"> |
| 149 | + <div data-role="collapsible" data-theme="b" data-content-theme="a" data-inset="false"> |
150 | 150 | <h3>Pets</h3> |
151 | 151 | <ul data-role="listview"> |
152 | 152 | <li><a href="#">Canary</a></li> |
|
157 | 157 | <li><a href="#">Mouse</a></li> |
158 | 158 | </ul> |
159 | 159 | </div><!-- /collapsible --> |
160 | | - <div data-role="collapsible" data-theme="b" data-content-theme="d" data-inset="false"> |
| 160 | + <div data-role="collapsible" data-theme="b" data-content-theme="a" data-inset="false"> |
161 | 161 | <h3>Farm animals</h3> |
162 | 162 | <ul data-role="listview"> |
163 | 163 | <li><a href="#">Chicken</a></li> |
|
168 | 168 | <li><a href="#">Sheep</a></li> |
169 | 169 | </ul> |
170 | 170 | </div><!-- /collapsible --> |
171 | | - <div data-role="collapsible" data-theme="b" data-content-theme="d" data-inset="false"> |
| 171 | + <div data-role="collapsible" data-theme="b" data-content-theme="a" data-inset="false"> |
172 | 172 | <h3>Wild Animals</h3> |
173 | 173 | <ul data-role="listview"> |
174 | 174 | <li><a href="#">Aardvark</a></li> |
|
186 | 186 |
|
187 | 187 | <div data-demo-html="true" data-demo-css="#negateDoubleBorder"> |
188 | 188 | <div id="demo-borders"> |
189 | | - <div data-role="collapsible" data-theme="e" data-content-theme="d" data-inset="false"> |
| 189 | + <div data-role="collapsible" data-theme="b" data-content-theme="b" data-inset="false"> |
190 | 190 | <h3>Pets</h3> |
191 | 191 | <ul data-role="listview"> |
192 | 192 | <li><a href="#">Canary</a></li> |
|
197 | 197 | <li><a href="#">Mouse</a></li> |
198 | 198 | </ul> |
199 | 199 | </div><!-- /collapsible --> |
200 | | - <div data-role="collapsible" data-theme="e" data-content-theme="d" data-inset="false"> |
| 200 | + <div data-role="collapsible" data-theme="b" data-content-theme="b" data-inset="false"> |
201 | 201 | <h3>Farm animals</h3> |
202 | 202 | <ul data-role="listview"> |
203 | 203 | <li><a href="#">Chicken</a></li> |
|
0 commit comments