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.

1038 lines
37 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
11 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. <%- @partial('header') %>
  13. <div class="main container">
  14. <div class="peek">
  15. <div class="ui vertical pointing secondary menu">
  16. <a class="item">Introduction</a>
  17. <a class="active item">Types</a>
  18. <a class="item">Elements</a>
  19. <a class="item">Variations</a>
  20. </div>
  21. </div>
  22. <h2 class="ui dividing header">Introduction</h2>
  23. <div class="highlighted example">
  24. <h4 class="ui header">Grid</h4>
  25. <p>A grid is made up of columns of content with gutters to provide negative space between columns.</p>
  26. <div class="ui ignored message">
  27. <p>A grid does not necessarily need to specify rows. Content will automatically flow to the next row when all the grid columns are taken in the current row.</p>
  28. </div>
  29. <div class="ui ignored info message">
  30. <p>All grid systems must assume an arbitrary amount of column rows. Semantic's default theme assumes <b>16 columns</b></p>
  31. </div>
  32. <div class="ui grid">
  33. <div class="four wide column">
  34. <div class="ui segment">
  35. </div>
  36. </div>
  37. <div class="four wide column">
  38. <div class="ui segment">
  39. </div>
  40. </div>
  41. <div class="four wide column">
  42. <div class="ui segment">
  43. </div>
  44. </div>
  45. <div class="four wide column">
  46. <div class="ui segment">
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="highlighted example">
  52. <h4 class="ui header">Grid with Rows</h4>
  53. <p>A grid can wrap groups of columns into rows</p>
  54. <div class="ui ignored message">
  55. The bottom and top rows, when rows are specified will sit flush with the edge of the grid.</p>
  56. </div>
  57. <div class="ui ignored positive message">
  58. <h3 class="ui header">The Benefits of Rows</h3>
  59. <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>
  60. <p>In addition, the bottom and top rows, when specified will sit flush with the edge of the grid.</p>
  61. </div>
  62. <div class="ui grid">
  63. <div class="ui four column row">
  64. <div class="column">
  65. <div class="ui segment">
  66. </div>
  67. </div>
  68. <div class="column">
  69. <div class="ui segment">
  70. </div>
  71. </div>
  72. <div class="column">
  73. <div class="ui segment">
  74. </div>
  75. </div>
  76. <div class="column">
  77. <div class="ui segment">
  78. </div>
  79. </div>
  80. </div>
  81. <div class="ui row">
  82. <div class="three wide column">
  83. <div class="ui segment">
  84. </div>
  85. </div>
  86. <div class="eight wide column">
  87. <div class="ui segment">
  88. </div>
  89. </div>
  90. <div class="five wide column">
  91. <div class="ui segment">
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. <div class="highlighted example">
  98. <h4 class="ui header">Nested grids</h4>
  99. <p>A grid can be placed inside another grid</p>
  100. <div class="ui ignored message">
  101. <p>Any grid column can be broken up using a second grid, however for the content of the inner grid to align with the outter grid, you will need to use the <code>fitted grid</code> variation on the inner grid, removing the outer margins from the first and last element.</p>
  102. </div>
  103. <div class="ui ignored info message">
  104. <h3 class="ui header">Column Count</h3>
  105. <p>Each grid is divided into 16 columns, so a grid inside a grid inside a column, <b>sub-divides that column into 16 more columns</b>. This means for example, a <code>eight wide column</code> on a nested grid inside a <code>two wide column</code>, is the same as a <code>one wide column</code> on the outer grid.</p>
  106. </div>
  107. <div class="ui two column grid">
  108. <div class="column">
  109. <div class="ui two column fitted grid">
  110. <div class="column">
  111. <div class="ui segment">
  112. </div>
  113. </div>
  114. <div class="column">
  115. <div class="ui segment">
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. <div class="column">
  121. <div class="ui fitted grid">
  122. <div class="eight wide column">
  123. <div class="ui segment">
  124. </div>
  125. </div>
  126. <div class="eight wide column">
  127. <div class="ui segment">
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. <h2 class="ui dividing header">Types</h2>
  135. <div class="example">
  136. <h4 class="ui header">Page Grid</h4>
  137. <p>A page grid is used to layout page contents into a grid system.
  138. <div class="ui ignored info message">
  139. <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>
  140. </div>
  141. <div class="ui page grid">
  142. <div class="eight wide column">
  143. <div class="ui labeled vertical fluid inverted icon menu">
  144. <a class="item">
  145. <i class="icon mail"></i>
  146. Mail
  147. </a>
  148. <a class="item">
  149. <i class="icon lab"></i>
  150. Lab
  151. </a>
  152. <a class="item">
  153. <i class="icon star"></i>
  154. Favorites
  155. </a>
  156. </div>
  157. </div>
  158. <div class="eight wide column">
  159. <div class="ui segment">
  160. <b>Inbox</b>
  161. <p>Welcome to your inbox. Would you like to see more information?</p>
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. <div class="example">
  167. <h4 class="ui header">Divided Grid</h4>
  168. <p>A grid can have dividers between its columns</p>
  169. <div class="ui six column divided grid">
  170. <div class="row">
  171. <div class="column">
  172. <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>
  173. </div>
  174. <div class="column">
  175. <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>
  176. </div>
  177. <div class="column">
  178. <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>
  179. <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>
  180. </div>
  181. <div class="column">
  182. <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>
  183. </div>
  184. <div class="column">
  185. <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>
  186. </div>
  187. <div class="column">
  188. <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>
  189. <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>
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. <div class="example">
  195. <h4 class="ui header">Vertically Divided Grid</h4>
  196. <p>A grid can have dividers between rows</p>
  197. <div class="ui vertically divided grid">
  198. <div class="two column row">
  199. <div class="column">
  200. <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>
  201. </div>
  202. <div class="column">
  203. <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>
  204. </div>
  205. </div>
  206. <div class="three column row">
  207. <div class="column">
  208. <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>
  209. </div>
  210. <div class="column">
  211. <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>
  212. </div>
  213. <div class="column">
  214. <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>
  215. </div>
  216. </div>
  217. </div>
  218. </div>
  219. <div class="example">
  220. <h4 class="ui header">Celled Grid</h4>
  221. <p>A grid can have rows divided into cells</p>
  222. <div class="ui celled grid">
  223. <div class="row">
  224. <div class="two wide column" style="">
  225. <p>Lorem ipsum do</p>
  226. </div>
  227. <div class="three wide column" style="">
  228. <p>Lorem ipsum dolor </p>
  229. </div>
  230. <div class="seven wide column">
  231. <p>Lorem ipsum dolor sitos. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>
  232. </div>
  233. </div>
  234. <div class="row">
  235. <div class="five wide column">
  236. <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>
  237. </div>
  238. <div class="three wide column">
  239. <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>
  240. <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>
  241. </div>
  242. <div class="two wide column">
  243. <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>
  244. </div>
  245. <div class="two wide column">
  246. <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>
  247. </div>
  248. </div>
  249. </div>
  250. </div>
  251. <h2 class="ui dividing header">Elements</h2>
  252. <div class="highlighted example">
  253. <h4 class="ui header">Rows</h4>
  254. <p>A row is used to create vertical padding between groups of columns on a page.</p>
  255. <div class="ui grid">
  256. <div class="row">
  257. <div class="column">
  258. <div class="ui segment">
  259. A
  260. </div>
  261. </div>
  262. <div class="column">
  263. <div class="ui segment">
  264. A
  265. </div>
  266. </div>
  267. <div class="column">
  268. <div class="ui segment">
  269. A
  270. </div>
  271. </div>
  272. <div class="column">
  273. <div class="ui segment">
  274. A
  275. </div>
  276. </div>
  277. <div class="column">
  278. <div class="ui segment">
  279. A
  280. </div>
  281. </div>
  282. <div class="column">
  283. <div class="ui segment">
  284. A
  285. </div>
  286. </div>
  287. <div class="column">
  288. <div class="ui segment">
  289. A
  290. </div>
  291. </div>
  292. <div class="column">
  293. <div class="ui segment">
  294. A
  295. </div>
  296. </div>
  297. <div class="column">
  298. <div class="ui segment">
  299. A
  300. </div>
  301. </div>
  302. <div class="column">
  303. <div class="ui segment">
  304. A
  305. </div>
  306. </div>
  307. <div class="column">
  308. <div class="ui segment">
  309. A
  310. </div>
  311. </div>
  312. <div class="column">
  313. <div class="ui segment">
  314. A
  315. </div>
  316. </div>
  317. <div class="column">
  318. <div class="ui segment">
  319. A
  320. </div>
  321. </div>
  322. <div class="column">
  323. <div class="ui segment">
  324. A
  325. </div>
  326. </div>
  327. <div class="column">
  328. <div class="ui segment">
  329. A
  330. </div>
  331. </div>
  332. <div class="column">
  333. <div class="ui segment">
  334. A
  335. </div>
  336. </div>
  337. </div>
  338. <div class="row">
  339. <div class="column">
  340. <div class="ui segment">
  341. B
  342. </div>
  343. </div>
  344. <div class="column">
  345. <div class="ui segment">
  346. B
  347. </div>
  348. </div>
  349. <div class="column">
  350. <div class="ui segment">
  351. B
  352. </div>
  353. </div>
  354. <div class="column">
  355. <div class="ui segment">
  356. B
  357. </div>
  358. </div>
  359. <div class="column">
  360. <div class="ui segment">
  361. B
  362. </div>
  363. </div>
  364. <div class="column">
  365. <div class="ui segment">
  366. B
  367. </div>
  368. </div>
  369. <div class="column">
  370. <div class="ui segment">
  371. B
  372. </div>
  373. </div>
  374. <div class="column">
  375. <div class="ui segment">
  376. B
  377. </div>
  378. </div>
  379. <div class="column">
  380. <div class="ui segment">
  381. B
  382. </div>
  383. </div>
  384. <div class="column">
  385. <div class="ui segment">
  386. B
  387. </div>
  388. </div>
  389. <div class="column">
  390. <div class="ui segment">
  391. B
  392. </div>
  393. </div>
  394. <div class="column">
  395. <div class="ui segment">
  396. B
  397. </div>
  398. </div>
  399. <div class="column">
  400. <div class="ui segment">
  401. B
  402. </div>
  403. </div>
  404. <div class="column">
  405. <div class="ui segment">
  406. B
  407. </div>
  408. </div>
  409. <div class="column">
  410. <div class="ui segment">
  411. B
  412. </div>
  413. </div>
  414. <div class="column">
  415. <div class="ui segment">
  416. B
  417. </div>
  418. </div>
  419. </div>
  420. </div>
  421. </div>
  422. <div class="highlighted example">
  423. <h4 class="ui header">Columns</h4>
  424. <p>Columns each contain gutters giving them equal spacing from other columns.</p>
  425. <div class="ui three column grid">
  426. <div class="column">
  427. <div class="ui segment">
  428. 1
  429. </div>
  430. </div>
  431. <div class="column">
  432. <div class="ui segment">
  433. 2
  434. </div>
  435. </div>
  436. <div class="column">
  437. <div class="ui segment">
  438. 3
  439. </div>
  440. </div>
  441. <div class="column">
  442. <div class="ui segment">
  443. 4
  444. </div>
  445. </div>
  446. </div>
  447. </div>
  448. <h2 class="ui dividing header">Variations</h2>
  449. <h3 class="ui header">Grid</h3>
  450. <div class="example">
  451. <h4 class="ui header">Specifying Column Count Per Row</h4>
  452. <p>A grid can have a different number of columns per row</p>
  453. <div class="ui two column grid">
  454. <div class="column">
  455. <div class="ui fluid form segment">
  456. <h3 class="ui header">Log-in</h3>
  457. <div class="field">
  458. <label>Username</label>
  459. <input placeholder="Username" type="text">
  460. </div>
  461. <div class="field">
  462. <label>Password</label>
  463. <input type="password">
  464. </div>
  465. <div class="ui blue submit button">Login</div>
  466. </div>
  467. </div>
  468. <div class="column">
  469. <div class="ui fluid form segment">
  470. <h3 class="ui header">Register</h3>
  471. <div class="two fields">
  472. <div class="field">
  473. <label>First Name</label>
  474. <input placeholder="First Name" type="text">
  475. </div>
  476. <div class="field">
  477. <label>Last Name</label>
  478. <input placeholder="Last Name" type="text">
  479. </div>
  480. </div>
  481. <div class="field">
  482. <label>Username</label>
  483. <input placeholder="Username" type="text">
  484. </div>
  485. <div class="field">
  486. <label>Password</label>
  487. <input type="password">
  488. </div>
  489. <div class="inline field">
  490. <div class="ui checkbox">
  491. <input type="checkbox" id="conditions" />
  492. <label for="conditions">I agree to the terms and conditions</label>
  493. </div>
  494. </div>
  495. <div class="ui blue submit button">Submit</div>
  496. </div>
  497. </div>
  498. </div>
  499. </div>
  500. <div class="example">
  501. <h4 class="ui header">Fitted</h4>
  502. <p>A fitted grid fits its outer columns against its container</p>
  503. <h3 class="ui header">Content Outside Grid</h3>
  504. <p>This paragraph of text will automatically align with the edges of the grid below because it is fitted to remove left and right margins.
  505. <div class="ui two column fitted grid">
  506. <div class="column">
  507. <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>
  508. <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>
  509. </div>
  510. <div class="column">
  511. <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>
  512. <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>
  513. </div>
  514. </div>
  515. </div>
  516. <div class="example">
  517. <h4 class="ui header">Relaxed</h4>
  518. <p>A grid can increase its gutters to allow for more negative space</p>
  519. <div class="ui two column relaxed grid">
  520. <div class="column">
  521. <div class="ui fluid form segment">
  522. <h3 class="ui header">Log-in</h3>
  523. <div class="field">
  524. <label>Username</label>
  525. <input placeholder="Username" type="text">
  526. </div>
  527. <div class="field">
  528. <label>Password</label>
  529. <input type="password">
  530. </div>
  531. <div class="ui blue submit button">Login</div>
  532. </div>
  533. </div>
  534. <div class="column">
  535. <div class="ui fluid form segment">
  536. <h3 class="ui header">Register</h3>
  537. <div class="two fields">
  538. <div class="field">
  539. <label>First Name</label>
  540. <input placeholder="First Name" type="text">
  541. </div>
  542. <div class="field">
  543. <label>Last Name</label>
  544. <input placeholder="Last Name" type="text">
  545. </div>
  546. </div>
  547. <div class="field">
  548. <label>Username</label>
  549. <input placeholder="Username" type="text">
  550. </div>
  551. <div class="field">
  552. <label>Password</label>
  553. <input type="password">
  554. </div>
  555. <div class="inline field">
  556. <div class="ui checkbox">
  557. <input type="checkbox" id="terms" />
  558. <label for="terms">I agree to the terms and conditions</label>
  559. </div>
  560. </div>
  561. <div class="ui blue submit button">Submit</div>
  562. </div>
  563. </div>
  564. </div>
  565. </div>
  566. <div class="another example">
  567. <div class="ui two column very relaxed grid">
  568. <div class="column">
  569. <div class="ui fluid form segment">
  570. <h3 class="ui header">Log-in</h3>
  571. <div class="field">
  572. <label>Username</label>
  573. <input placeholder="Username" type="text">
  574. </div>
  575. <div class="field">
  576. <label>Password</label>
  577. <input type="password">
  578. </div>
  579. <div class="ui blue submit button">Login</div>
  580. </div>
  581. </div>
  582. <div class="column">
  583. <div class="ui fluid form segment">
  584. <h3 class="ui header">Register</h3>
  585. <div class="two fields">
  586. <div class="field">
  587. <label>First Name</label>
  588. <input placeholder="First Name" type="text">
  589. </div>
  590. <div class="field">
  591. <label>Last Name</label>
  592. <input placeholder="Last Name" type="text">
  593. </div>
  594. </div>
  595. <div class="field">
  596. <label>Username</label>
  597. <input placeholder="Username" type="text">
  598. </div>
  599. <div class="field">
  600. <label>Password</label>
  601. <input type="password">
  602. </div>
  603. <div class="inline field">
  604. <div class="ui checkbox">
  605. <input type="checkbox" id="terms" />
  606. <label for="terms"></label>
  607. </div>
  608. <label>I agree to the terms and conditions</label>
  609. </div>
  610. <div class="ui blue submit button">Submit</div>
  611. </div>
  612. </div>
  613. </div>
  614. </div>
  615. <div class="example">
  616. <h4 class="ui header">Doubling Grid</h4>
  617. <p>A grid can double its</p>
  618. <div class="ui text message info ignore">
  619. <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>
  620. </div>
  621. <div class="five column doubling ui grid">
  622. <div class="column">
  623. <div class="ui segment">
  624. <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>
  625. <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>
  626. </div>
  627. </div>
  628. <div class="column">
  629. <div class="ui segment">
  630. <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>
  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 class="column">
  635. <div class="ui segment">
  636. <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>
  637. <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>
  638. </div>
  639. </div>
  640. <div class="column">
  641. <div class="ui segment">
  642. <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>
  643. <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>
  644. </div>
  645. </div>
  646. <div class="column">
  647. <div class="ui segment">
  648. <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>
  649. <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>
  650. </div>
  651. </div>
  652. </div>
  653. </div>
  654. <div class="example">
  655. <h4 class="ui header">Stackable Grid</h4>
  656. <p>A grid can have its columns stack on-top of each other after reaching mobile breakpoints</p>
  657. <div class="ui text message info ignore">
  658. <i class="icon heart"></i> To see a grid stack, try resizing your browser to a small width
  659. </div>
  660. <div class="two column stackable ui grid">
  661. <div class="column">
  662. <div class="ui segment">
  663. <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>
  664. <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>
  665. </div>
  666. </div>
  667. <div class="column">
  668. <div class="ui segment">
  669. <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>
  670. <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>
  671. </div>
  672. </div>
  673. </div>
  674. </div>
  675. <div class="example">
  676. <h4 class="ui header">Text Alignment</h4>
  677. <p>A grid can specify its text alignment</p>
  678. <div class="ui center aligned three column grid">
  679. <div class="row">
  680. <div class="column">
  681. <div class="ui vertical fluid menu">
  682. <div class="header item">
  683. Cats
  684. </div>
  685. </div>
  686. </div>
  687. <div class="column">
  688. <div class="ui vertical fluid menu">
  689. <div class="header item">
  690. Dogs
  691. </div>
  692. <div class="item">
  693. Poodle
  694. </div>
  695. <div class="item">
  696. Cockerspaniel
  697. </div>
  698. </div>
  699. </div>
  700. <div class="column">
  701. <div class="ui vertical fluid menu">
  702. <div class="header item">
  703. Monkeys
  704. </div>
  705. </div>
  706. </div>
  707. </div>
  708. </div>
  709. </div>
  710. <div class="example">
  711. <h4 class="ui header">Vertical Alignment</h4>
  712. <p>A grid can specify its vertical alignment to have all its columns vertically centered.</p>
  713. <div class="ui middle aligned three column grid">
  714. <div class="row">
  715. <div class="column">
  716. <div class="ui vertical fluid menu">
  717. <div class="header item">
  718. Cats
  719. </div>
  720. </div>
  721. </div>
  722. <div class="column">
  723. <div class="ui vertical fluid menu">
  724. <div class="header item">
  725. Dogs
  726. </div>
  727. <div class="item">
  728. Poodle
  729. </div>
  730. <div class="item">
  731. Cockerspaniel
  732. </div>
  733. </div>
  734. </div>
  735. <div class="column">
  736. <div class="ui vertical fluid menu">
  737. <div class="header item">
  738. Monkeys
  739. </div>
  740. </div>
  741. </div>
  742. </div>
  743. </div>
  744. </div>
  745. <h3 class="ui header">Rows</h3>
  746. <div class="example">
  747. <h4 class="ui header">Responsive to Device</h4>
  748. <p>A grid can have its columns, or rows only show content for computer, tablet, or mobile.</p>
  749. <div class="ui text message info ignore">
  750. <i class="icon heart"></i> Breakpoints are 768px and below for mobile, 768-992px for tablet and 992px+ for computer</i>
  751. </div>
  752. <div class="ui grid">
  753. <div class="two column mobile only row">
  754. <div class="column">
  755. <div class="ui segment">
  756. Mobile
  757. </div>
  758. </div>
  759. <div class="column">
  760. <div class="ui segment">
  761. Mobile
  762. </div>
  763. </div>
  764. </div>
  765. <div class="three column row">
  766. <div class="computer only column">
  767. <div class="ui segment">
  768. Computer
  769. </div>
  770. </div>
  771. <div class="tablet mobile only column">
  772. <div class="ui segment">
  773. Tablet and Mobile
  774. </div>
  775. </div>
  776. <div class="column">
  777. <div class="ui segment">
  778. All Sizes
  779. </div>
  780. </div>
  781. <div class="column">
  782. <div class="ui segment">
  783. All Sizes
  784. </div>
  785. </div>
  786. </div>
  787. <div class="four column computer only row">
  788. <div class="column">
  789. <div class="ui segment">
  790. Computer
  791. </div>
  792. </div>
  793. <div class="column">
  794. <div class="ui segment">
  795. Computer
  796. </div>
  797. </div>
  798. <div class="column">
  799. <div class="ui segment">
  800. Computer
  801. </div>
  802. </div>
  803. <div class="column">
  804. <div class="ui segment">
  805. Computer
  806. </div>
  807. </div>
  808. </div>
  809. <div class="three column tablet only row">
  810. <div class="column">
  811. <div class="ui segment">
  812. Tablet
  813. </div>
  814. </div>
  815. <div class="column">
  816. <div class="ui segment">
  817. Tablet
  818. </div>
  819. </div>
  820. <div class="column">
  821. <div class="ui segment">
  822. Tablet
  823. </div>
  824. </div>
  825. </div>
  826. </div>
  827. </div>
  828. <div class="example">
  829. <h4 class="ui header">Equal Height</h4>
  830. <p>A row can specify that it is equal height so all of its columns appear the length of its longest column.</p>
  831. <div class="ui three column grid">
  832. <div class="equal height row">
  833. <div class="column" style="background-color:#F0F0FF;">
  834. <p>This is a short row</p>
  835. </div>
  836. <div class="column" style="background-color:#F0F0FF;">
  837. <p>This is a short row</p>
  838. </div>
  839. <div class="column" style="background-color:#F0F0FF;">
  840. <p>This is a very long row with lots of text in it and way more text than the other rows</p>
  841. <p>It might even span for multiple paragraphs.</p>
  842. </div>
  843. </div>
  844. </div>
  845. </div>
  846. <div class="example">
  847. <h4 class="ui header">Vertical Alignment</h4>
  848. <p>A row can also specify its vertical alignment to have its columns vertically centered.</p>
  849. <div class="ui three column grid">
  850. <div class="top aligned row">
  851. <div class="column">
  852. <div class="ui vertical fluid menu">
  853. <div class="header item">
  854. Cats
  855. </div>
  856. </div>
  857. </div>
  858. <div class="column">
  859. <div class="ui vertical fluid menu">
  860. <div class="header item">
  861. Dogs
  862. </div>
  863. <div class="item">
  864. Poodle
  865. </div>
  866. <div class="item">
  867. Cockerspaniel
  868. </div>
  869. </div>
  870. </div>
  871. <div class="column">
  872. <div class="ui vertical fluid menu">
  873. <div class="header item">
  874. Monkeys
  875. </div>
  876. </div>
  877. </div>
  878. </div>
  879. <div class="justified row">
  880. <div class="sixteen wide column">
  881. <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>
  882. </div>
  883. </div>
  884. <div class="middle aligned row">
  885. <div class="column">
  886. <div class="ui vertical fluid menu">
  887. <div class="header item">
  888. Dogs
  889. </div>
  890. </div>
  891. </div>
  892. <div class="column">
  893. <div class="ui vertical fluid menu">
  894. <div class="header item">
  895. Dogs
  896. </div>
  897. <div class="item">
  898. Poodle
  899. </div>
  900. <div class="item">
  901. Cockerspaniel
  902. </div>
  903. </div>
  904. </div>
  905. <div class="column">
  906. <div class="ui vertical fluid menu">
  907. <div class="header item">
  908. Monkeys
  909. </div>
  910. </div>
  911. </div>
  912. </div>
  913. <div class="bottom aligned row">
  914. <div class="column">
  915. <div class="ui vertical fluid menu">
  916. <div class="header item">
  917. Cats
  918. </div>
  919. </div>
  920. </div>
  921. <div class="column">
  922. <div class="ui vertical fluid menu">
  923. <div class="header item">
  924. Dogs
  925. </div>
  926. <div class="item">
  927. Poodle
  928. </div>
  929. <div class="item">
  930. Cockerspaniel
  931. </div>
  932. </div>
  933. </div>
  934. <div class="column">
  935. <div class="ui vertical fluid menu">
  936. <div class="header item">
  937. Monkeys
  938. </div>
  939. </div>
  940. </div>
  941. </div>
  942. </div>
  943. </div>
  944. <h3 class="ui header">Columns</h3>
  945. <div class="example">
  946. <h4 class="ui header">Floating</h4>
  947. <p>A column can be "floated" to either the left or right of its row.</p>
  948. <div class="ui grid">
  949. <div class="left floated four wide column">
  950. <div class="ui vertical fluid menu">
  951. <div class="header item">
  952. Dogs
  953. </div>
  954. <div class="item">
  955. Poodle
  956. </div>
  957. <div class="item">
  958. Cockerspaniel
  959. </div>
  960. </div>
  961. </div>
  962. <div class="right floated four wide column">
  963. <div class="ui vertical fluid menu">
  964. <div class="header item">
  965. Cats
  966. </div>
  967. <div class="item">
  968. Abysinnian
  969. </div>
  970. <div class="item">
  971. Sphynx
  972. </div>
  973. </div>
  974. </div>
  975. </div>
  976. </div>
  977. <div class="example">
  978. <h4 class="ui header">Column Width</h4>
  979. <p>A column can vary in width taking up more than a single grid column.</p>
  980. <div class="ui grid">
  981. <div class="three wide column">
  982. <div class="ui segment"><b>Column One</b> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum iaculis sapien.</div>
  983. </div>
  984. <div class="six wide column">
  985. <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>
  986. </div>
  987. <div class="three wide column">
  988. <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>
  989. </div>
  990. </div>
  991. </div>
  992. </div>