PageRenderTime 44ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/public/assets/vendors/tags/bower_components/bootstrap/docs/_includes/components/panels.html

https://gitlab.com/sawmainek/528Express-Server
HTML | 279 lines | 251 code | 16 blank | 12 comment | 0 complexity | 8b00c6e97a756f0b8c570bcc089c94c5 MD5 | raw file
  1. <div class="bs-docs-section">
  2. <h1 id="panels" class="page-header">Panels</h1>
  3. <p class="lead">While not always necessary, sometimes you need to put your DOM in a box. For those situations, try the panel component.</p>
  4. <h2 id="panels-basic">Basic example</h2>
  5. <p>By default, all the <code>.panel</code> does is apply some basic border and padding to contain some content.</p>
  6. <div class="bs-example" data-example-id="simple-panel">
  7. <div class="panel panel-default">
  8. <div class="panel-body">
  9. Basic panel example
  10. </div>
  11. </div>
  12. </div>
  13. {% highlight html %}
  14. <div class="panel panel-default">
  15. <div class="panel-body">
  16. Basic panel example
  17. </div>
  18. </div>
  19. {% endhighlight %}
  20. <h2 id="panels-heading">Panel with heading</h2>
  21. <p>Easily add a heading container to your panel with <code>.panel-heading</code>. You may also include any <code>&lt;h1&gt;</code>-<code>&lt;h6&gt;</code> with a <code>.panel-title</code> class to add a pre-styled heading.</p>
  22. <p>For proper link coloring, be sure to place links in headings within <code>.panel-title</code>.</p>
  23. <div class="bs-example" data-example-id="panel-with-heading">
  24. <div class="panel panel-default">
  25. <div class="panel-heading">Panel heading without title</div>
  26. <div class="panel-body">
  27. Panel content
  28. </div>
  29. </div>
  30. <div class="panel panel-default">
  31. <div class="panel-heading">
  32. <h3 class="panel-title">Panel title</h3>
  33. </div>
  34. <div class="panel-body">
  35. Panel content
  36. </div>
  37. </div>
  38. </div>
  39. {% highlight html %}
  40. <div class="panel panel-default">
  41. <div class="panel-heading">Panel heading without title</div>
  42. <div class="panel-body">
  43. Panel content
  44. </div>
  45. </div>
  46. <div class="panel panel-default">
  47. <div class="panel-heading">
  48. <h3 class="panel-title">Panel title</h3>
  49. </div>
  50. <div class="panel-body">
  51. Panel content
  52. </div>
  53. </div>
  54. {% endhighlight %}
  55. <h2 id="panels-footer">Panel with footer</h2>
  56. <p>Wrap buttons or secondary text in <code>.panel-footer</code>. Note that panel footers <strong>do not</strong> inherit colors and borders when using contextual variations as they are not meant to be in the foreground.</p>
  57. <div class="bs-example" data-example-id="panel-with-footer">
  58. <div class="panel panel-default">
  59. <div class="panel-body">
  60. Panel content
  61. </div>
  62. <div class="panel-footer">Panel footer</div>
  63. </div>
  64. </div>
  65. {% highlight html %}
  66. <div class="panel panel-default">
  67. <div class="panel-body">
  68. Panel content
  69. </div>
  70. <div class="panel-footer">Panel footer</div>
  71. </div>
  72. {% endhighlight %}
  73. <h2 id="panels-alternatives">Contextual alternatives</h2>
  74. <p>Like other components, easily make a panel more meaningful to a particular context by adding any of the contextual state classes.</p>
  75. <div class="bs-example" data-example-id="contextual-panels">
  76. <div class="panel panel-primary">
  77. <div class="panel-heading">
  78. <h3 class="panel-title">Panel title</h3>
  79. </div>
  80. <div class="panel-body">
  81. Panel content
  82. </div>
  83. </div>
  84. <div class="panel panel-success">
  85. <div class="panel-heading">
  86. <h3 class="panel-title">Panel title</h3>
  87. </div>
  88. <div class="panel-body">
  89. Panel content
  90. </div>
  91. </div>
  92. <div class="panel panel-info">
  93. <div class="panel-heading">
  94. <h3 class="panel-title">Panel title</h3>
  95. </div>
  96. <div class="panel-body">
  97. Panel content
  98. </div>
  99. </div>
  100. <div class="panel panel-warning">
  101. <div class="panel-heading">
  102. <h3 class="panel-title">Panel title</h3>
  103. </div>
  104. <div class="panel-body">
  105. Panel content
  106. </div>
  107. </div>
  108. <div class="panel panel-danger">
  109. <div class="panel-heading">
  110. <h3 class="panel-title">Panel title</h3>
  111. </div>
  112. <div class="panel-body">
  113. Panel content
  114. </div>
  115. </div>
  116. </div>
  117. {% highlight html %}
  118. <div class="panel panel-primary">...</div>
  119. <div class="panel panel-success">...</div>
  120. <div class="panel panel-info">...</div>
  121. <div class="panel panel-warning">...</div>
  122. <div class="panel panel-danger">...</div>
  123. {% endhighlight %}
  124. <h2 id="panels-tables">With tables</h2>
  125. <p>Add any non-bordered <code>.table</code> within a panel for a seamless design. If there is a <code>.panel-body</code>, we add an extra border to the top of the table for separation.</p>
  126. <div class="bs-example" data-example-id="table-within-panel">
  127. <div class="panel panel-default">
  128. <!-- Default panel contents -->
  129. <div class="panel-heading">Panel heading</div>
  130. <div class="panel-body">
  131. <p>Some default panel content here. Nulla vitae elit libero, a pharetra augue. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
  132. </div>
  133. <!-- Table -->
  134. <table class="table">
  135. <thead>
  136. <tr>
  137. <th>#</th>
  138. <th>First Name</th>
  139. <th>Last Name</th>
  140. <th>Username</th>
  141. </tr>
  142. </thead>
  143. <tbody>
  144. <tr>
  145. <th scope="row">1</th>
  146. <td>Mark</td>
  147. <td>Otto</td>
  148. <td>@mdo</td>
  149. </tr>
  150. <tr>
  151. <th scope="row">2</th>
  152. <td>Jacob</td>
  153. <td>Thornton</td>
  154. <td>@fat</td>
  155. </tr>
  156. <tr>
  157. <th scope="row">3</th>
  158. <td>Larry</td>
  159. <td>the Bird</td>
  160. <td>@twitter</td>
  161. </tr>
  162. </tbody>
  163. </table>
  164. </div>
  165. </div>
  166. {% highlight html %}
  167. <div class="panel panel-default">
  168. <!-- Default panel contents -->
  169. <div class="panel-heading">Panel heading</div>
  170. <div class="panel-body">
  171. <p>...</p>
  172. </div>
  173. <!-- Table -->
  174. <table class="table">
  175. ...
  176. </table>
  177. </div>
  178. {% endhighlight %}
  179. <p>If there is no panel body, the component moves from panel header to table without interruption.</p>
  180. <div class="bs-example" data-example-id="panel-without-body-with-table">
  181. <div class="panel panel-default">
  182. <!-- Default panel contents -->
  183. <div class="panel-heading">Panel heading</div>
  184. <!-- Table -->
  185. <table class="table">
  186. <thead>
  187. <tr>
  188. <th>#</th>
  189. <th>First Name</th>
  190. <th>Last Name</th>
  191. <th>Username</th>
  192. </tr>
  193. </thead>
  194. <tbody>
  195. <tr>
  196. <th scope="row">1</th>
  197. <td>Mark</td>
  198. <td>Otto</td>
  199. <td>@mdo</td>
  200. </tr>
  201. <tr>
  202. <th scope="row">2</th>
  203. <td>Jacob</td>
  204. <td>Thornton</td>
  205. <td>@fat</td>
  206. </tr>
  207. <tr>
  208. <th scope="row">3</th>
  209. <td>Larry</td>
  210. <td>the Bird</td>
  211. <td>@twitter</td>
  212. </tr>
  213. </tbody>
  214. </table>
  215. </div>
  216. </div>
  217. {% highlight html %}
  218. <div class="panel panel-default">
  219. <!-- Default panel contents -->
  220. <div class="panel-heading">Panel heading</div>
  221. <!-- Table -->
  222. <table class="table">
  223. ...
  224. </table>
  225. </div>
  226. {% endhighlight %}
  227. <h2 id="panels-list-group">With list groups</h2>
  228. <p>Easily include full-width <a href="#list-group">list groups</a> within any panel.</p>
  229. <div class="bs-example" data-example-id="panel-with-list-group">
  230. <div class="panel panel-default">
  231. <!-- Default panel contents -->
  232. <div class="panel-heading">Panel heading</div>
  233. <div class="panel-body">
  234. <p>Some default panel content here. Nulla vitae elit libero, a pharetra augue. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
  235. </div>
  236. <!-- List group -->
  237. <ul class="list-group">
  238. <li class="list-group-item">Cras justo odio</li>
  239. <li class="list-group-item">Dapibus ac facilisis in</li>
  240. <li class="list-group-item">Morbi leo risus</li>
  241. <li class="list-group-item">Porta ac consectetur ac</li>
  242. <li class="list-group-item">Vestibulum at eros</li>
  243. </ul>
  244. </div>
  245. </div>
  246. {% highlight html %}
  247. <div class="panel panel-default">
  248. <!-- Default panel contents -->
  249. <div class="panel-heading">Panel heading</div>
  250. <div class="panel-body">
  251. <p>...</p>
  252. </div>
  253. <!-- List group -->
  254. <ul class="list-group">
  255. <li class="list-group-item">Cras justo odio</li>
  256. <li class="list-group-item">Dapibus ac facilisis in</li>
  257. <li class="list-group-item">Morbi leo risus</li>
  258. <li class="list-group-item">Porta ac consectetur ac</li>
  259. <li class="list-group-item">Vestibulum at eros</li>
  260. </ul>
  261. </div>
  262. {% endhighlight %}
  263. </div>