You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1167 lines
47 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. ---
  2. layout : 'default'
  3. css : 'Grid'
  4. element : 'grid'
  5. elementType : 'collection'
  6. title : 'Grid'
  7. description : 'A grid is a structure used to harmonize negative space in a layout'
  8. type : 'UI Collection'
  9. themes : ['Default']
  10. ---
  11. <link rel="stylesheet/less" type="text/css" href="/build/less/definitions/collections/grid.less" />
  12. <script src="/javascript/grid.js"></script>
  13. <%- @partial('header', { tabs: { overview: 'Overview', definition: 'Definition' } }) %>
  14. <div class="main container">
  15. <div class="ui active tab" data-tab="overview">
  16. <h3 class="ui dividing header">Grids</h3>
  17. <div class="highlighted example">
  18. <h4 class="ui header">Why Use Grids?</h4>
  19. <div class="ignored">
  20. <p>A grid is a structure, with a <a href="http://99designs.com/designer-blog/2013/03/21/history-of-the- grid-part-1/" target="_blank">very rich history</a> used to align negative space in your design.</p>
  21. <p>Using a grid makes content appear to flow naturally on your page, and allows you to quickly adjust layouts without assigning specific sizes directly to content elements, letting you rapidly prototype and design your page.</p>
  22. <div class="ui toggle animation checkbox">
  23. <input type="checkbox" name="animation" />
  24. <label>Toggle Animation</label>
  25. </div>
  26. </div>
  27. <div class="ui ignored info message">
  28. <p>All grid systems use an arbitrary column count. Semantic's default theme assumes <b>16 columns</b>. This number can be adjusted in your project by adjust the <code>@columnCount</code> value in <code>site.variables</code>.</p>
  29. </div>
  30. <div class="ui grid">
  31. <div class="four wide column"></div>
  32. <div class="four wide column"></div>
  33. <div class="four wide column"></div>
  34. <div class="four wide column"></div>
  35. </div>
  36. </div>
  37. <div class="highlighted example">
  38. <h4 class="ui header">Specifying Column Widths</h4>
  39. <p>Column widths can be specified either using <code>(x) wide</code> class names or subdividing a grid or row using an <code>(x) column grid</code> or <code>(x) column row</code></p>
  40. <div class="ui grid">
  41. <div class="four wide column"></div>
  42. <div class="four wide column"></div>
  43. <div class="four wide column"></div>
  44. <div class="four wide column"></div>
  45. </div>
  46. </div>
  47. <div class="another highlighted example">
  48. <div class="ui two column grid">
  49. <div class="column"></div>
  50. <div class="column"></div>
  51. <div class="four column row">
  52. <div class="column"></div>
  53. <div class="column"></div>
  54. <div class="column"></div>
  55. <div class="column"></div>
  56. </div>
  57. </div>
  58. </div>
  59. <div class="highlighted example">
  60. <h4 class="ui header">Column Flow</h4>
  61. <p>A grid does not necessarily need to specify rows. If you include <code>columns</code> as direct child of <code>ui grid</code> content will automatically flow to the next row when all the grid columns are taken in the current row</b>.</p>
  62. <div class="ui grid">
  63. <div class="four wide column"></div>
  64. <div class="four wide column"></div>
  65. <div class="four wide column"></div>
  66. <div class="four wide column"></div>
  67. <div class="four wide column"></div>
  68. <div class="four wide column"></div>
  69. <div class="four wide column"></div>
  70. <div class="four wide column"></div>
  71. </div>
  72. </div>
  73. <div class="highlighted example">
  74. <h4 class="ui header">Specifying Rows</h4>
  75. <p>Specifying wrapping <code>row</code> elements allows you to manually control line breaks for rows, and use additional row variations.</p>
  76. <div class="ui ignored info icon message">
  77. <i class="help circle icon"></i>
  78. <div class="content">
  79. <div class="header">Why Include Row Markup?</div>
  80. <p>It's often easier to have dynamic content output without nested rows, but using row wrappers is the only way for variations like <code>equal height</code> and <code>vertically divided</code> to function correctly.</p>
  81. </div>
  82. </div>
  83. <div class="ui grid">
  84. <div class="twelve wide column"></div>
  85. <div class="four column row">
  86. <div class="right floated column"></div>
  87. <div class="left floated column"></div>
  88. </div>
  89. <div class="row">
  90. <div class="three wide column"></div>
  91. <div class="eight wide column"></div>
  92. <div class="five wide column"></div>
  93. </div>
  94. </div>
  95. </div>
  96. <div class="example">
  97. <h4 class="ui header">Specifying Alignment</h4>
  98. <p>You can specify alignment using alignment variations on a grid, row, or column level.</p>
  99. <div class="ui ignored info message">
  100. <div class="header">Word Order Requirements</div>
  101. <p>Keep in mind multi-word variations like <code>right floated</code> <b>require you to specify both class names side-by-side</b>, this helps preserve syntax when stacking variations like a <code>right floated left aligned column</code></p>
  102. </div>
  103. <div class="ui right aligned grid">
  104. <div class="right floated left aligned six wide column">
  105. <div class="ui segment">
  106. Right floated left aligned
  107. </div>
  108. </div>
  109. <div class="left floated right aligned six wide column">
  110. <div class="ui segment">
  111. Left floated right aligned
  112. </div>
  113. </div>
  114. <div class="center aligned two column row">
  115. <div class="column">
  116. <div class="ui segment">
  117. Center aligned row
  118. </div>
  119. </div>
  120. <div class="column">
  121. <div class="ui segment">
  122. Center aligned row
  123. </div>
  124. </div>
  125. </div>
  126. <div class="sixteen wide column">
  127. <div class="ui segment">
  128. Right Aligned Grid
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. <div class="highlighted negative example">
  134. <h4 class="ui header">Grid Row Spacing</h4>
  135. <p>Grid columns have vertical spacing above and below each column to create vertical flow between columns.</p>
  136. <div class="ui ignored warning message">
  137. Grids use negative margins to ensure the first and last row of columns will set flush with the edge of the grid. Consecutive grids will automatically preserve row spacing between grids. To allow first and last columns to have vertical padding use a <code>vertically padded grid</code> variation.
  138. </div>
  139. <div class="ui top attached button">Button before grid</div>
  140. <div class="ui grid">
  141. <div class="sixteen wide column"></div>
  142. <div class="ten wide column"></div>
  143. <div class="six wide column"></div>
  144. </div>
  145. <div class="ui grid">
  146. <div class="sixteen wide column"></div>
  147. </div>
  148. <div class="ui bottom attached button">Button after grid</div>
  149. </div>
  150. <div class="highlighted special example">
  151. <h4 class="ui header">Nesting Grids</h4>
  152. <p>You can include grids even inside other grids, this can be useful for things like dividing rows inside of a page grid.</p>
  153. <div class="ui ignored info message">
  154. <div class="ui header">Matching Column Widths on Nested Grids</div>
  155. <p>Each grid is divided into 16 columns, so a grid inside another grid column <b>sub-divides that column into sixteen more columns</b>.</p>
  156. <p>This means, an <code>eight wide column</code> in grid located inside a <code>two wide column</code>, is the same width as a <code>one wide column</code> on the outer grid.</p>
  157. </div>
  158. <div class="ui two column page grid">
  159. <div class="column">
  160. <div class="ui two column grid">
  161. <div class="column"></div>
  162. <div class="column"></div>
  163. </div>
  164. </div>
  165. <div class="column"></div>
  166. <div class="column"></div>
  167. <div class="column">
  168. <div class="ui grid">
  169. <div class="eight wide column"></div>
  170. <div class="eight wide column"></div>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. <h3 class="ui dividing header">Page Grids</h3>
  176. <div class="highlighted example">
  177. <h4 class="ui header">Page Gutters</h4>
  178. <p>A page grid is designed to provide a responsive container suitable for wrapping the entire contents of your page.</p>
  179. <div class="ui page grid">
  180. <div class="four wide column"></div>
  181. <div class="four wide column"></div>
  182. <div class="four wide column"></div>
  183. <div class="four wide column"></div>
  184. <div class="four wide column"></div>
  185. <div class="four wide column"></div>
  186. <div class="four wide column"></div>
  187. <div class="four wide column"></div>
  188. </div>
  189. </div>
  190. <div class="no example">
  191. <h4 class="ui header">Page Grid Breakpoints</h4>
  192. <p>Semantic's page grid, by default, uses percentage values for page gutters. This means your page container will <b>constantly adjust</b> as the browser width changes, giving you the largest possible space for each breakpoint</p>
  193. <p><code>grid</code> <code>row</code> and <code>column</code> all can receive responsive classes to make them appear only on a particular device.</p>
  194. <table class="ui black celled table">
  195. <thead>
  196. <tr>
  197. <th>Name</th>
  198. <th>Breakpoint</th>
  199. <th>Page Gutter</th>
  200. <th>Responsive Class</th>
  201. <th>Variable</th>
  202. </tr>
  203. </thead>
  204. <tbody>
  205. <tr>
  206. <td>Mobile</td>
  207. <td>Below 768px</td>
  208. <td>1rem</td>
  209. <td>mobile only</td>
  210. <td>$mobileBreakpoint</td>
  211. </tr>
  212. <tr>
  213. <td>Tablet</td>
  214. <td>Above 768px and below 992px</td>
  215. <td>8%</td>
  216. <td>tablet only</td>
  217. <td>$tabletBreakpoint</td>
  218. </tr>
  219. <tr>
  220. <td>Computer</td>
  221. <td>Above 992px</td>
  222. <td>13%</td>
  223. <td>computer only</td>
  224. <td>$computerBreakpoint</td>
  225. </tr>
  226. <tr>
  227. <td>Large Monitor</td>
  228. <td>Above 1400px</td>
  229. <td>18%</td>
  230. <td><em>None</em></td>
  231. <td>$largeMonitorBreakpoint</td>
  232. </tr>
  233. <tr>
  234. <td>Widescreen Monitor</td>
  235. <td>Above 1920px</td>
  236. <td>23%</td>
  237. <td><em>None</em></td>
  238. <td>$widescreenBreakpoint</td>
  239. </tr>
  240. </tbody>
  241. </table>
  242. </div>
  243. <h3 class="ui dividing header">Formatting Grids</h3>
  244. <div class="animated example">
  245. <h4 class="ui header">Content Inside Grids</h4>
  246. <p>Previous examples were shaded to help show the physical layout of grids, but grids themselves do not provide any styles.</p>
  247. <p class="ignored">In order to create content segments inside a grid you must specify individual <code>ui elements</code> for example <a href="/elements/segment.html">ui segments</a>.</p>
  248. <div class="ui five column grid">
  249. <div class="column">
  250. <div class="ui segment">
  251. <img src="/images/avatar/large/elliot.jpg" class="ui fluid image">
  252. </div>
  253. </div>
  254. <div class="column">
  255. <div class="ui segment">
  256. <img src="/images/avatar/large/matt.jpg" class="ui fluid image">
  257. </div>
  258. </div>
  259. <div class="column">
  260. <div class="ui segment">
  261. <img src="/images/avatar/large/jenny.jpg" class="ui fluid image">
  262. </div>
  263. </div>
  264. <div class="column">
  265. <div class="ui segment">
  266. <img src="/images/avatar/large/steve.jpg" class="ui fluid image">
  267. </div>
  268. </div>
  269. <div class="column">
  270. <div class="ui segment">
  271. <img src="/images/avatar/large/stevie.jpg" class="ui fluid image">
  272. </div>
  273. </div>
  274. <div class="column">
  275. <div class="ui segment">
  276. <img src="/images/avatar/large/veronika.jpg" class="ui fluid image">
  277. </div>
  278. </div>
  279. <div class="column">
  280. <div class="ui segment">
  281. <img src="/images/avatar/large/justen.jpg" class="ui fluid image">
  282. </div>
  283. </div>
  284. <div class="column">
  285. <div class="ui segment">
  286. <img src="/images/avatar/large/tom.jpg" class="ui fluid image">
  287. </div>
  288. </div>
  289. <div class="column">
  290. <div class="ui segment">
  291. <img src="/images/avatar/large/helen.jpg" class="ui fluid image">
  292. </div>
  293. </div>
  294. <div class="column">
  295. <div class="ui segment">
  296. <img src="/images/avatar/large/christian.jpg" class="ui fluid image">
  297. </div>
  298. </div>
  299. </div>
  300. </div>
  301. <div class="example">
  302. <h4 class="ui header">Full Width Backgrounds</h4>
  303. <p>Grids use <b>negative margins</b> to remove first and last column margins, this means you cannot directly apply a background color on a grid. To add a background try wrapping your grid inside another container, for example a <code>ui segment</code>.</p>
  304. <div class="ui ignored warning message">
  305. Due to <a href="http://stackoverflow.com/questions/19718634/how-to-disable-margin-collapsing" target="_blank">collapsing margins</a> the parent container must have a clearfix, or <code>overflow:hidden</code> to prevent inheriting the grid's margins.
  306. </div>
  307. <div class="ui inverted teal vertical segment">
  308. <div class="ui page grid">
  309. <div class="column">
  310. <h2 class="ui inverted header">Second Heading</h2>
  311. <p>Second section of content</p>
  312. </div>
  313. </div>
  314. </div>
  315. <div class="ui inverted black vertical segment">
  316. <div class="ui page grid">
  317. <div class="column">
  318. <h2 class="ui inverted header">Second Heading</h2>
  319. <p>Second section of content</p>
  320. </div>
  321. </div>
  322. </div>
  323. </div>
  324. <div class="example">
  325. <h4 class="ui header">Row and Column Backgrounds</h4>
  326. <p>If you need to specify colors on grid rows of columns, you can use a <b>color variation</b></p>
  327. <div class="ui info message ignored">
  328. <p>Using colored variations on grid columns will require you to use a <code>padded grid</code> variation to avoid coloring in the negative margins of the grid body.</p>
  329. </div>
  330. <div class="ui padded grid">
  331. <div class="two column row">
  332. <div class="white column">
  333. <h2 class="ui header">Features</h2>
  334. <p>First section of content</p>
  335. </div>
  336. <div class="teal column">
  337. <h2 class="ui inverted header">Statistics</h2>
  338. <p>First section of content</p>
  339. </div>
  340. </div>
  341. <div class="black row">
  342. <div class="column">
  343. <h2 class="ui inverted header">Headline</h2>
  344. <p>Second section of content</p>
  345. </div>
  346. </div>
  347. <div class="eight wide teal column">
  348. <h2 class="ui inverted header">Sitemap</h2>
  349. <p>Second section of content</p>
  350. </div>
  351. <div class="eight wide white column">
  352. <h2 class="ui header">Contact Us</h2>
  353. <p>Second section of content</p>
  354. </div>
  355. </div>
  356. </div>
  357. </div>
  358. <div class="ui tab" data-tab="definition">
  359. <h2 class="ui dividing header">Types</h2>
  360. <div class="example">
  361. <h4 class="ui header">Page Grid</h4>
  362. <p>A page grid is used to layout page contents into a grid system.
  363. <div class="ui ignored info message">
  364. <p>A page grid has gutters to the left and right of its columns to center content on a page. These gutterss adjust as the width of the browser changes, ensuring your grid uses a sensible amount of the browser.</p>
  365. </div>
  366. <div class="ui page grid">
  367. <div class="eight wide column">
  368. <div class="ui labeled vertical fluid inverted icon menu">
  369. <a class="item">
  370. <i class="icon mail"></i>
  371. Mail
  372. </a>
  373. <a class="item">
  374. <i class="icon lab"></i>
  375. Lab
  376. </a>
  377. <a class="item">
  378. <i class="icon star"></i>
  379. Favorites
  380. </a>
  381. </div>
  382. </div>
  383. <div class="eight wide column">
  384. <div class="ui segment">
  385. <b>Inbox</b>
  386. <p>Welcome to your inbox. Would you like to see more information?</p>
  387. </div>
  388. </div>
  389. </div>
  390. </div>
  391. <div class="example">
  392. <h4 class="ui header">Divided Grid</h4>
  393. <p>A grid can have dividers between its columns</p>
  394. <div class="ui three column divided grid">
  395. <div class="column">
  396. <h5 class="ui header">How We Collect and Use Information</h5>
  397. <p>We ask for certain information such as your username, real name, birthdate, address, phone number and e-mail address when you register for a Semantic UI account, or if you correspond with us. We may also retain any messages you send through the Service, and may collect information you provide in User Content you post to the Service. We use this information to operate, maintain, and provide to you the features and functionality of the Service. Your username and if you choose to disclose it, your real name, will be published publicly. Once published your username and / or real name may not be able to be removed.</p>
  398. </div>
  399. <div class="column">
  400. <h5 class="ui header">
  401. Information we may receive from third parties
  402. </h5>
  403. <p>We may receive information about you from third parties. For example, if you access our websites or Service through a third-party connection or log-in, for example, through Facebook Connect, by “following,” “liking,” adding the Semantic UI application, linking your account to the Semantic UI Service, etc., that third party may pass certain information about your use of its service to Semantic UI. This information could include, but is not limited to, the user ID associated with your account (for example, your Facebook UID), an access token necessary to access that service, any information that you have permitted the third party to share with us, and any information you have made public in connection with that service. </p>
  404. </div>
  405. <div class="column">
  406. <p>Semantic UI may, in its sole discretion, develop a feature that allows you to invite third parties to the Service. If you choose to use our invitation service to invite a third party to the Service through our “Invite friends” feature, you may directly choose a friend to invite through your mobile device’s native contact list – but we do not require that you import your contacts list to the Service, and we do not retain the information contained in your contacts list. You understand that by inviting a friend to Semantic UI through the “Invite friends” feature, you are directly sending a text or email from your personal accounts and that we are not storing your contact list. In addition, you understand and agree that normal carrier charges apply to communications sent from you phone. Since this invitation is coming directly from your email or phone, we do not have access to or control this communication.</p>
  407. </div>
  408. </div>
  409. </div>
  410. <div class="example">
  411. <h4 class="ui header">Vertically Divided Grid</h4>
  412. <p>A grid can have dividers between rows</p>
  413. <div class="ui vertically divided grid">
  414. <div class="two column row">
  415. <div class="column">
  416. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  417. </div>
  418. <div class="column">
  419. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  420. </div>
  421. </div>
  422. <div class="three column row">
  423. <div class="column">
  424. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  425. </div>
  426. <div class="column">
  427. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  428. </div>
  429. <div class="column">
  430. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  431. </div>
  432. </div>
  433. </div>
  434. </div>
  435. <div class="example">
  436. <h4 class="ui header">Celled Grid</h4>
  437. <p>A grid can have rows divided into cells</p>
  438. <div class="ui celled grid">
  439. <div class="row">
  440. <div class="three wide column">
  441. <img src="/images/leaves/2.png" class="ui fluid image">
  442. </div>
  443. <div class="three wide column">
  444. <img src="/images/leaves/5.png" class="ui fluid image">
  445. </div>
  446. <div class="three wide column">
  447. <img src="/images/leaves/6.png" class="ui fluid image">
  448. </div>
  449. <div class="seven wide column">
  450. <h3 class="ui green header">What are Leaves?</h3>
  451. <p>A leaf is an above-ground plant organ. Its main functions are photosynthesis and gas exchange. A leaf is often flat, so it absorbs the most light, and thin, so that the sunlight can get to the chloroplasts in the cells.</p>
  452. </div>
  453. </div>
  454. <div class="row">
  455. <div class="three wide column">
  456. <img src="/images/leaves/4.png" class="ui fluid image">
  457. </div>
  458. <div class="ten wide column">
  459. <h3 class="ui green header">Types of Leaves</h3>
  460. <p>Leaves come in many shapes and sizes. The biggest undivided leaf is that of a giant edible aroid. This lives in marshy parts of the tropical rain forest of Borneo.</p>
  461. <p> One of its leaves can be ten feet across and have a surface area of over 30 square feet.
  462. </p>
  463. </div>
  464. <div class="three wide column">
  465. <img src="/images/leaves/7.png" class="ui fluid image">
  466. </div>
  467. </div>
  468. </div>
  469. </div>
  470. <h2 class="ui dividing header">Elements</h2>
  471. <div class="example">
  472. <h4 class="ui header">Rows</h4>
  473. <p>A row is used to create vertical padding between groups of columns on a page.</p>
  474. <div class="ui grid">
  475. <div class="four column row">
  476. <div class="column">
  477. <div class="ui segment">
  478. A
  479. </div>
  480. </div>
  481. <div class="column">
  482. <div class="ui segment">
  483. A
  484. </div>
  485. </div>
  486. <div class="column">
  487. <div class="ui segment">
  488. A
  489. </div>
  490. </div>
  491. <div class="column">
  492. <div class="ui segment">
  493. A
  494. </div>
  495. </div>
  496. </div>
  497. <div class="five column row">
  498. <div class="column">
  499. <div class="ui segment">
  500. B
  501. </div>
  502. </div>
  503. <div class="column">
  504. <div class="ui segment">
  505. B
  506. </div>
  507. </div>
  508. <div class="column">
  509. <div class="ui segment">
  510. B
  511. </div>
  512. </div>
  513. <div class="column">
  514. <div class="ui segment">
  515. B
  516. </div>
  517. </div>
  518. <div class="column">
  519. <div class="ui segment">
  520. B
  521. </div>
  522. </div>
  523. </div>
  524. </div>
  525. </div>
  526. <div class="example">
  527. <h4 class="ui header">Columns</h4>
  528. <p>Columns each contain gutters giving them equal spacing from other columns.</p>
  529. <div class="ui three column grid">
  530. <div class="column">
  531. <div class="ui segment">
  532. 1
  533. </div>
  534. </div>
  535. <div class="column">
  536. <div class="ui segment">
  537. 2
  538. </div>
  539. </div>
  540. <div class="column">
  541. <div class="ui segment">
  542. 3
  543. </div>
  544. </div>
  545. <div class="column">
  546. <div class="ui segment">
  547. 4
  548. </div>
  549. </div>
  550. </div>
  551. </div>
  552. <h2 class="ui dividing header">Variations</h2>
  553. <h3 class="ui header">Grid</h3>
  554. <div class="example">
  555. <h4 class="ui header">Column Count</h4>
  556. <p>A grid can have a different number of columns per row</p>
  557. <div class="ui two column grid">
  558. <div class="column">
  559. <div class="ui fluid form segment">
  560. <h3 class="ui header">Log-in</h3>
  561. <div class="field">
  562. <label>Username</label>
  563. <input placeholder="Username" type="text">
  564. </div>
  565. <div class="field">
  566. <label>Password</label>
  567. <input type="password">
  568. </div>
  569. <div class="inline field">
  570. <div class="ui checkbox">
  571. <input type="checkbox" id="remember" />
  572. <label for="remember">Remember me</label>
  573. </div>
  574. </div>
  575. <div class="ui submit button">Login</div>
  576. </div>
  577. </div>
  578. <div class="column">
  579. <div class="ui fluid form segment">
  580. <h3 class="ui header">Register</h3>
  581. <div class="field">
  582. <label>Username</label>
  583. <input placeholder="Username" type="text">
  584. </div>
  585. <div class="field">
  586. <label>Password</label>
  587. <input type="password">
  588. </div>
  589. <div class="inline field">
  590. <div class="ui checkbox">
  591. <input type="checkbox" id="conditions" />
  592. <label for="conditions">I agree to the terms and conditions</label>
  593. </div>
  594. </div>
  595. <div class="ui blue submit button">Submit</div>
  596. </div>
  597. </div>
  598. </div>
  599. </div>
  600. <div class="example">
  601. <h4 class="ui header">Padded</h4>
  602. <p>A grid can preserve its vertical and horizontal gutters on first and last columns</p>
  603. <p>This paragraph of text will not align with the edges of the first column below because the grid preserves its outter gutters</p>
  604. <div class="ui two column padded grid">
  605. <div class="column">
  606. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  607. </div>
  608. <div class="column">
  609. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  610. </div>
  611. </div>
  612. </div>
  613. <div class="another example">
  614. <p>This paragraph of text will not align vertically with the edges of the first column below because the grid preserves its outter gutters</p>
  615. <div class="ui two column vertically padded grid">
  616. <div class="column">
  617. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  618. </div>
  619. <div class="column">
  620. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  621. </div>
  622. </div>
  623. </div>
  624. <div class="another example">
  625. <p>This paragraph of text will not align horizontally with the edges of the first column below because the grid preserves its outter gutters</p>
  626. <div class="ui two column horizontally padded grid">
  627. <div class="column">
  628. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  629. </div>
  630. <div class="column">
  631. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  632. </div>
  633. </div>
  634. </div>
  635. <div class="example">
  636. <h4 class="ui header">Relaxed</h4>
  637. <p>A grid can increase its gutters to allow for more negative space</p>
  638. <div class="ui two column relaxed grid">
  639. <div class="column">
  640. <div class="ui fluid form segment">
  641. <h3 class="ui header">Log-in</h3>
  642. <div class="field">
  643. <label>Username</label>
  644. <input placeholder="Username" type="text">
  645. </div>
  646. <div class="field">
  647. <label>Password</label>
  648. <input type="password">
  649. </div>
  650. <div class="ui blue submit button">Login</div>
  651. </div>
  652. </div>
  653. <div class="column">
  654. <div class="ui fluid form segment">
  655. <h3 class="ui header">Register</h3>
  656. <div class="two fields">
  657. <div class="field">
  658. <label>First Name</label>
  659. <input placeholder="First Name" type="text">
  660. </div>
  661. <div class="field">
  662. <label>Last Name</label>
  663. <input placeholder="Last Name" type="text">
  664. </div>
  665. </div>
  666. <div class="field">
  667. <label>Username</label>
  668. <input placeholder="Username" type="text">
  669. </div>
  670. <div class="field">
  671. <label>Password</label>
  672. <input type="password">
  673. </div>
  674. <div class="inline field">
  675. <div class="ui checkbox">
  676. <input type="checkbox" id="terms" />
  677. <label for="terms">I agree to the terms and conditions</label>
  678. </div>
  679. </div>
  680. <div class="ui blue submit button">Submit</div>
  681. </div>
  682. </div>
  683. </div>
  684. </div>
  685. <div class="another example">
  686. <div class="ui two column very relaxed grid">
  687. <div class="column">
  688. <div class="ui fluid form segment">
  689. <h3 class="ui header">Log-in</h3>
  690. <div class="field">
  691. <label>Username</label>
  692. <input placeholder="Username" type="text">
  693. </div>
  694. <div class="field">
  695. <label>Password</label>
  696. <input type="password">
  697. </div>
  698. <div class="ui blue submit button">Login</div>
  699. </div>
  700. </div>
  701. <div class="column">
  702. <div class="ui fluid form segment">
  703. <h3 class="ui header">Register</h3>
  704. <div class="two fields">
  705. <div class="field">
  706. <label>First Name</label>
  707. <input placeholder="First Name" type="text">
  708. </div>
  709. <div class="field">
  710. <label>Last Name</label>
  711. <input placeholder="Last Name" type="text">
  712. </div>
  713. </div>
  714. <div class="field">
  715. <label>Username</label>
  716. <input placeholder="Username" type="text">
  717. </div>
  718. <div class="field">
  719. <label>Password</label>
  720. <input type="password">
  721. </div>
  722. <div class="inline field">
  723. <div class="ui checkbox">
  724. <input type="checkbox" id="terms" />
  725. <label for="terms"></label>
  726. </div>
  727. <label>I agree to the terms and conditions</label>
  728. </div>
  729. <div class="ui blue submit button">Submit</div>
  730. </div>
  731. </div>
  732. </div>
  733. </div>
  734. <div class="example">
  735. <h4 class="ui header">Doubling</h4>
  736. <p>A grid can double its column width on tablet and mobile sizes</p>
  737. <div class="ui text message info ignore">
  738. <i class="icon heart"></i> A grid will round its columns to the closest reasonable value when doubling, for example a <code>five column grid</code> will double <code>1 mobile, 3 tablet, 5 desktop</code>
  739. </div>
  740. <div class="five column doubling ui grid">
  741. <div class="column">
  742. <div class="ui segment">
  743. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  744. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  745. </div>
  746. </div>
  747. <div class="column">
  748. <div class="ui segment">
  749. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  750. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  751. </div>
  752. </div>
  753. <div class="column">
  754. <div class="ui segment">
  755. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  756. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  757. </div>
  758. </div>
  759. <div class="column">
  760. <div class="ui segment">
  761. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  762. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  763. </div>
  764. </div>
  765. <div class="column">
  766. <div class="ui segment">
  767. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  768. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  769. </div>
  770. </div>
  771. </div>
  772. </div>
  773. <div class="example">
  774. <h4 class="ui header">Stackable Grid</h4>
  775. <p>A grid can have its columns stack on-top of each other after reaching mobile breakpoints</p>
  776. <div class="ui text message info ignore">
  777. <i class="icon heart"></i> To see a grid stack, try resizing your browser to a small width
  778. </div>
  779. <div class="two column stackable ui grid">
  780. <div class="column">
  781. <div class="ui segment">
  782. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  783. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  784. </div>
  785. </div>
  786. <div class="column">
  787. <div class="ui segment">
  788. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  789. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  790. </div>
  791. </div>
  792. </div>
  793. </div>
  794. <div class="example">
  795. <h4 class="ui header">Text Alignment</h4>
  796. <p>A grid can specify its text alignment</p>
  797. <div class="ui center aligned three column grid">
  798. <div class="row">
  799. <div class="column">
  800. <div class="ui vertical fluid menu">
  801. <div class="header item">
  802. Cats
  803. </div>
  804. </div>
  805. </div>
  806. <div class="column">
  807. <div class="ui vertical fluid menu">
  808. <div class="header item">
  809. Dogs
  810. </div>
  811. <div class="item">
  812. Poodle
  813. </div>
  814. <div class="item">
  815. Cockerspaniel
  816. </div>
  817. </div>
  818. </div>
  819. <div class="column">
  820. <div class="ui vertical fluid menu">
  821. <div class="header item">
  822. Monkeys
  823. </div>
  824. </div>
  825. </div>
  826. </div>
  827. </div>
  828. </div>
  829. <div class="example">
  830. <h4 class="ui header">Vertical Alignment</h4>
  831. <p>A grid can specify its vertical alignment to have all its columns vertically centered.</p>
  832. <div class="ui middle aligned three column grid">
  833. <div class="row">
  834. <div class="column">
  835. <div class="ui vertical fluid menu">
  836. <div class="header item">
  837. Cats
  838. </div>
  839. </div>
  840. </div>
  841. <div class="column">
  842. <div class="ui vertical fluid menu">
  843. <div class="header item">
  844. Dogs
  845. </div>
  846. <div class="item">
  847. Poodle
  848. </div>
  849. <div class="item">
  850. Cockerspaniel
  851. </div>
  852. </div>
  853. </div>
  854. <div class="column">
  855. <div class="ui vertical fluid menu">
  856. <div class="header item">
  857. Monkeys
  858. </div>
  859. </div>
  860. </div>
  861. </div>
  862. </div>
  863. </div>
  864. <h3 class="ui header">Rows</h3>
  865. <div class="example">
  866. <h4 class="ui header">Responsive to Device</h4>
  867. <p>A grid can have its columns, or rows only show content for computer, tablet, or mobile.</p>
  868. <div class="ui text message info ignore">
  869. <i class="icon heart"></i> Breakpoints are 768px and below for mobile, 768-992px for tablet and 992px+ for computer</i>
  870. </div>
  871. <div class="ui grid">
  872. <div class="two column mobile only row">
  873. <div class="column">
  874. <div class="ui segment">
  875. Mobile
  876. </div>
  877. </div>
  878. <div class="column">
  879. <div class="ui segment">
  880. Mobile
  881. </div>
  882. </div>
  883. </div>
  884. <div class="three column row">
  885. <div class="computer only column">
  886. <div class="ui segment">
  887. Computer
  888. </div>
  889. </div>
  890. <div class="tablet mobile only column">
  891. <div class="ui segment">
  892. Tablet and Mobile
  893. </div>
  894. </div>
  895. <div class="column">
  896. <div class="ui segment">
  897. All Sizes
  898. </div>
  899. </div>
  900. <div class="column">
  901. <div class="ui segment">
  902. All Sizes
  903. </div>
  904. </div>
  905. </div>
  906. <div class="four column computer only row">
  907. <div class="column">
  908. <div class="ui segment">
  909. Computer
  910. </div>
  911. </div>
  912. <div class="column">
  913. <div class="ui segment">
  914. Computer
  915. </div>
  916. </div>
  917. <div class="column">
  918. <div class="ui segment">
  919. Computer
  920. </div>
  921. </div>
  922. <div class="column">
  923. <div class="ui segment">
  924. Computer
  925. </div>
  926. </div>
  927. </div>
  928. <div class="three column tablet only row">
  929. <div class="column">
  930. <div class="ui segment">
  931. Tablet
  932. </div>
  933. </div>
  934. <div class="column">
  935. <div class="ui segment">
  936. Tablet
  937. </div>
  938. </div>
  939. <div class="column">
  940. <div class="ui segment">
  941. Tablet
  942. </div>
  943. </div>
  944. </div>
  945. </div>
  946. </div>
  947. <div class="example">
  948. <h4 class="ui header">Equal Height</h4>
  949. <p>A row can specify that it is equal height so all of its columns appear the length of its longest column.</p>
  950. <div class="ui three column grid">
  951. <div class="equal height row">
  952. <div class="column" style="background-color:#F0F0FF;">
  953. <p>This is a short row</p>
  954. </div>
  955. <div class="column" style="background-color:#F0F0FF;">
  956. <p>This is a short row</p>
  957. </div>
  958. <div class="column" style="background-color:#F0F0FF;">
  959. <p>This is a very long row with lots of text in it and way more text than the other rows</p>
  960. <p>It might even span for multiple paragraphs.</p>
  961. </div>
  962. </div>
  963. </div>
  964. </div>
  965. <div class="example">
  966. <h4 class="ui header">Vertical Alignment</h4>
  967. <p>A row can also specify its vertical alignment to have its columns vertically centered.</p>
  968. <div class="ui three column grid">
  969. <div class="top aligned row">
  970. <div class="column">
  971. <div class="ui vertical fluid menu">
  972. <div class="header item">
  973. Cats
  974. </div>
  975. </div>
  976. </div>
  977. <div class="column">
  978. <div class="ui vertical fluid menu">
  979. <div class="header item">
  980. Dogs
  981. </div>
  982. <div class="item">
  983. Poodle
  984. </div>
  985. <div class="item">
  986. Cockerspaniel
  987. </div>
  988. </div>
  989. </div>
  990. <div class="column">
  991. <div class="ui vertical fluid menu">
  992. <div class="header item">
  993. Monkeys
  994. </div>
  995. </div>
  996. </div>
  997. </div>
  998. <div class="justified row">
  999. <div class="sixteen wide column">
  1000. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam blandit sagittis elit, nec pharetra justo lobortis vitae. Quisque sed libero ut lacus mattis lacinia. Pellentesque pharetra vel quam sed tristique. Aenean sit amet purus sed sapien suscipit rhoncus. Nunc vel pharetra elit. Integer eleifend in turpis vel suscipit. Mauris porttitor nunc ante, eu vestibulum augue facilisis lacinia. Curabitur blandit urna lorem, et ornare mi laoreet iaculis. Nunc volutpat ultrices libero quis molestie. Nunc ac porta odio. Quisque interdum sodales augue, quis facilisis sem elementum quis.</p>
  1001. </div>
  1002. </div>
  1003. <div class="middle aligned row">
  1004. <div class="column">
  1005. <div class="ui vertical fluid menu">
  1006. <div class="header item">
  1007. Dogs
  1008. </div>
  1009. </div>
  1010. </div>
  1011. <div class="column">
  1012. <div class="ui vertical fluid menu">
  1013. <div class="header item">
  1014. Dogs
  1015. </div>
  1016. <div class="item">
  1017. Poodle
  1018. </div>
  1019. <div class="item">
  1020. Cockerspaniel
  1021. </div>
  1022. </div>
  1023. </div>
  1024. <div class="column">
  1025. <div class="ui vertical fluid menu">
  1026. <div class="header item">
  1027. Monkeys
  1028. </div>
  1029. </div>
  1030. </div>
  1031. </div>
  1032. <div class="bottom aligned row">
  1033. <div class="column">
  1034. <div class="ui vertical fluid menu">
  1035. <div class="header item">
  1036. Cats
  1037. </div>
  1038. </div>
  1039. </div>
  1040. <div class="column">
  1041. <div class="ui vertical fluid menu">
  1042. <div class="header item">
  1043. Dogs
  1044. </div>
  1045. <div class="item">
  1046. Poodle
  1047. </div>
  1048. <div class="item">
  1049. Cockerspaniel
  1050. </div>
  1051. </div>
  1052. </div>
  1053. <div class="column">
  1054. <div class="ui vertical fluid menu">
  1055. <div class="header item">
  1056. Monkeys
  1057. </div>
  1058. </div>
  1059. </div>
  1060. </div>
  1061. </div>
  1062. </div>
  1063. <h3 class="ui header">Columns</h3>
  1064. <div class="example">
  1065. <h4 class="ui header">Floating</h4>
  1066. <p>A column can be "floated" to either the left or right of its row.</p>
  1067. <div class="ui grid">
  1068. <div class="left floated four wide column">
  1069. <div class="ui vertical fluid menu">
  1070. <div class="header item">
  1071. Dogs
  1072. </div>
  1073. <div class="item">
  1074. Poodle
  1075. </div>
  1076. <div class="item">
  1077. Cockerspaniel
  1078. </div>
  1079. </div>
  1080. </div>
  1081. <div class="right floated four wide column">
  1082. <div class="ui vertical fluid menu">
  1083. <div class="header item">
  1084. Cats
  1085. </div>
  1086. <div class="item">
  1087. Abysinnian
  1088. </div>
  1089. <div class="item">
  1090. Sphynx
  1091. </div>
  1092. </div>
  1093. </div>
  1094. </div>
  1095. </div>
  1096. <div class="example">
  1097. <h4 class="ui header">Column Width</h4>
  1098. <p>A column can vary in width taking up more than a single grid column.</p>
  1099. <div class="ui grid">
  1100. <div class="three wide column">
  1101. <div class="ui segment"><b>Column One</b> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum iaculis sapien.</div>
  1102. </div>
  1103. <div class="six wide column">
  1104. <div class="ui segment"><b>Column Two</b> Aliquam lobortis commodo sem ac accumsan. Vestibulum non faucibus lorem. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur sed lorem lorem. Nam augue erat, dignissim nec aliquam vel, congue et sapien. Integer viverra justo vel nibh suscipit commodo. Nullam ut turpis nibh, in luctus risus. Sed ut risus nec dui mattis porta. Nam nisi magna, ornare mollis congue a, suscipit at nisl.</div>
  1105. </div>
  1106. <div class="three wide column">
  1107. <div class="ui segment"><b>Column Three</b> Donec semper mollis condimentum. Aenean eget rutrum magna. Mauris ornare nibh scelerisque turpis lobortis dignissim. Etiam eleifend justo eget quam semper vulputate. Nulla et risus convallis velit molestie iaculis. Aliquam erat volutpat. </div>
  1108. </div>
  1109. </div>
  1110. </div>
  1111. </div>
  1112. </div>