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.

484 lines
17 KiB

  1. ---
  2. layout : 'default'
  3. css : 'item'
  4. element : 'item'
  5. elementType : 'view'
  6. title : 'Item'
  7. description : 'An item view formats large collections of content for display vertically'
  8. type : 'UI View'
  9. themes : ['Default']
  10. ---
  11. <%- @partial('header') %>
  12. <link rel="stylesheet/less" type="text/css" href="/build/less/definitions/views/item.less" />
  13. <div class="main container">
  14. <h2 class="ui dividing header">Types</h2>
  15. <div class="even example">
  16. <h4 class="ui header">Items</h4>
  17. <p>A group of items.</p>
  18. <div class="ui items">
  19. <div class="item">
  20. <div class="image">
  21. <img src="/images/movies/12years.jpg">
  22. </div>
  23. <div class="content">
  24. <a class="header">12 Years a Slave</a>
  25. <div class="meta">
  26. <span class="cinema">Union Square 14</span>
  27. </div>
  28. <div class="description">
  29. In the pre-Civil War United States, Solomon Northup, a free black man from upstate New York, is abducted and sold into slavery. Facing cruelty as well as unexpected kindnesses Solomon struggles not only to stay alive, but to retain his dignity. In the twelfth year of his unforgettable odyssey, Solomon’s chance meeting with a Canadian abolitionist will forever alter his life.
  30. </div>
  31. <div class="extra">
  32. <div class="ui right floated disabled red button">Sold Out</div>
  33. <div class="ui horizontal label">IMAX</div>
  34. <div class="ui horizontal label"><i class="globe icon"></i> Additional Languages</div>
  35. <span class="available">
  36. <i class="red remove icon"></i>
  37. Tickets Unavailable
  38. </span>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="item">
  43. <div class="image">
  44. <img src="/images/movies/totoro.jpg">
  45. </div>
  46. <div class="content">
  47. <a class="header">My Neighbor Totoro</a>
  48. <div class="meta">
  49. <span class="cinema">IFC Cinema</span>
  50. </div>
  51. <div class="description">
  52. Two sisters move to the country with their father in order to be closer to their hospitalized mother, and discover the surrounding trees are inhabited by Totoros, magical spirits of the forest. When the youngest runs away from home, the older sister seeks help from the spirits to find her.
  53. </div>
  54. <div class="extra">
  55. <div class="ui right floated primary button">
  56. Buy tickets
  57. <i class="right chevron icon"></i>
  58. </div>
  59. <div class="ui horizontal label">Limited</div>
  60. <span class="available">
  61. <i class="green check icon"></i>
  62. 10 Seats Avaiable
  63. </span>
  64. </div>
  65. </div>
  66. </div>
  67. <div class="item">
  68. <div class="image">
  69. <img src="/images/movies/watchmen.jpg">
  70. </div>
  71. <div class="content">
  72. <a class="header">Watchmen</a>
  73. <div class="meta">
  74. <span class="cinema">IFC</span>
  75. </div>
  76. <div class="description">
  77. In a gritty and alternate 1985 the glory days of costumed vigilantes have been brought to a close by a government crackdown, but after one of the masked veterans is brutally murdered an investigation into the killer is initiated. The reunited heroes set out to prevent their own destruction, but in doing so uncover a sinister plot that puts all of humanity in grave danger.
  78. </div>
  79. <div class="extra">
  80. <div class="ui right floated primary button">
  81. Buy tickets
  82. <i class="right chevron icon"></i>
  83. </div>
  84. <span class="available">
  85. <i class="green check icon"></i>
  86. 40 Seats Avaiable
  87. </span>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. <h2 class="ui dividing header">Content</h2>
  94. <div class="example">
  95. <h4 class="ui header">Header</h4>
  96. <p>A item can contain a header</p>
  97. <div class="ui items">
  98. <div class="item">
  99. <div class="content">
  100. <div class="header">12 Amazing Secrets for Long Life</div>
  101. <div class="description">You won't believe how well it works.</div>
  102. </div>
  103. </div>
  104. <div class="item">
  105. <div class="content">
  106. <div class="header">The Last Words of a Dying Astronaut</div>
  107. <div class="description">Inspirational words shared by someone truly special.</div>
  108. </div>
  109. </div>
  110. <div class="item">
  111. <div class="content">
  112. <div class="header">A Funny Trick to Becoming Rich</div>
  113. <div class="description">This is an easy way anyone can become rich</div>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. <div class="example">
  119. <h4 class="ui header">Metadata</h4>
  120. <p>A item can contain content metadata</p>
  121. <div class="ui info message">
  122. <i class="info icon"></i>
  123. You can include an arbitrary amount of metadata using your own class conventions, all child elements will automatically be spaced
  124. </div>
  125. <div class="ui items">
  126. <div class="item">
  127. <div class="content">
  128. <div class="header">Arrowhead Valley Camp</div>
  129. <div class="meta">
  130. <span class="price">$1200</span>
  131. <span class="stay">1 Month</span>
  132. </div>
  133. <div class="description">
  134. This camp in the Hudson Valley is perfect for teenagers from 10-14.
  135. </div>
  136. </div>
  137. </div>
  138. <div class="item">
  139. <div class="content">
  140. <div class="header">Buck's Homebrew Stayaway</div>
  141. <div class="meta">
  142. <span class="price">$1000</span>
  143. <span class="stay">2 Weeks</span>
  144. </div>
  145. <div class="description">
  146. This adult stay away from home camp will teach you everything you need to know about forestry and homebrew.
  147. </div>
  148. </div>
  149. </div>
  150. <div class="item">
  151. <div class="content">
  152. <div class="header">Astrology Camp</div>
  153. <div class="meta">
  154. <span class="price">$1600</span>
  155. <span class="stay">6 Weeks</span>
  156. </div>
  157. <div class="description">
  158. Learn astrology the old fashioned way in this stayaway camp for kids aged 8-17.
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. <div class="example">
  165. <h4 class="ui header">Link</h4>
  166. <p>A item can contain contain links as images, headers, or inside content</p>
  167. <div class="ui yellow message">
  168. <i class="star icon"></i>
  169. To make the entire content of a item link, check out the link variation below
  170. </div>
  171. <div class="ui items">
  172. <div class="item">
  173. <a class="ui tiny image">
  174. <img src="/images/avatar/large/stevie.jpg">
  175. </a>
  176. <div class="content">
  177. <a class="header">Stevie Feliciano</a>
  178. <div class="description">
  179. <p>Stevie Feliciano is a library scientist living in New York City. She likes to spend her time reading, running, and writing.</p>
  180. <a>View Profile</a>
  181. </div>
  182. </div>
  183. </div>
  184. <div class="item">
  185. <a class="ui tiny image">
  186. <img src="/images/avatar/large/veronika.jpg">
  187. </a>
  188. <div class="content">
  189. <a class="header">Veronika Ossi</a>
  190. <div class="description">
  191. <p>Veronika Ossi is a set designer living in New York who enjoys kittens, music, and partying.</p>
  192. <a>View Profile</a>
  193. </div>
  194. </div>
  195. </div>
  196. <div class="item">
  197. <a class="ui tiny image">
  198. <img src="/images/avatar/large/jenny.jpg">
  199. </a>
  200. <div class="content">
  201. <a class="header">Jenny Hess</a>
  202. <div class="description">
  203. <p>Jenny is a student studying Media Management at the New School.</p>
  204. <a>View Profile</a>
  205. </div>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. <div class="example">
  211. <h4 class="ui header">Icons</h4>
  212. <p>A item can contain icons to denote user actions.</p>
  213. <div class="ui info message">
  214. Common actions may contain special formatting, like "star" or "heart". To attach events, on a user action, please check out the <a href="#">state behavior</a>.
  215. </div>
  216. <div class="ui items">
  217. <div class="item">
  218. <div class="content">
  219. <i class="right floated like icon"></i>
  220. <i class="right floated star icon"></i>
  221. <a class="header">Cute Dog</a>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. <div class="example">
  227. <h4 class="ui header">Description</h4>
  228. <p>A item can contain a description with a single or multiple paragraphs</p>
  229. <div class="ui items">
  230. <div class="item">
  231. <div class="content">
  232. <a class="header">Cute Dog</a>
  233. <div class="meta">2 days ago</div>
  234. <div class="description">
  235. <p>Cute dogs come in a variety of shapes and sizes. Some cute dogs are cute for their adorable faces, others for their tiny stature, and even others for their massive size.</p>
  236. <p>Many people also have their own barometers for what makes a cute dog.</p>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. <div class="example">
  243. <h4 class="ui header">Extra Content</h4>
  244. <p>A item can contain extra content meant to be formatted separately from the main content</p>
  245. <div class="ui items">
  246. <div class="item">
  247. <div class="content">
  248. <a class="header">Cute Dog</a>
  249. <div class="meta">2 days ago</div>
  250. <div class="description">
  251. <p>Cute dogs come in a variety of shapes and sizes. Some cute dogs are cute for their adorable faces, others for their tiny stature, and even others for their massive size.</p>
  252. <p>Many people also have their own barometers for what makes a cute dog.</p>
  253. </div>
  254. <div class="extra">
  255. <i class="green check icon"></i>
  256. 121 Votes
  257. </div>
  258. </div>
  259. </div>
  260. </div>
  261. </div>
  262. <div class="example">
  263. <h4 class="ui header">Image</h4>
  264. <p>A item can contain an image</p>
  265. <div class="ui items">
  266. <div class="item">
  267. <div class="image">
  268. <img src="/images/demo/highres.jpg">
  269. </div>
  270. <div class="content">
  271. <a class="header">Cute Dog</a>
  272. <div class="meta">2 days ago</div>
  273. <div class="description">
  274. <p>Cute dogs come in a variety of shapes and sizes. Some cute dogs are cute for their adorable faces, others for their tiny stature, and even others for their massive size.</p>
  275. <p>Many people also have their own barometers for what makes a cute dog.</p>
  276. </div>
  277. <div class="extra">
  278. <i class="green check icon"></i>
  279. 121 Votes
  280. </div>
  281. </div>
  282. </div>
  283. </div>
  284. </div>
  285. <h2 class="ui dividing header">Variations</h2>
  286. <div class="example">
  287. <h4 class="ui header">Divided</h4>
  288. <p>Items can be divided to better distinguish between grouped content</p>
  289. <div class="ui info message">
  290. <i class="info icon"></i>
  291. The following example uses <a href="/elements/segment.html">ui</a> for legibility only. This is not necessary for using <code>ui items</code>
  292. </div>
  293. <div class="ui items">
  294. <div class="item">
  295. <div class="image">
  296. <img src="/images/logos/arrowhead.png">
  297. </div>
  298. <div class="middle aligned content">
  299. <a class="header">Arrowhead Valley Camp</a>
  300. <div class="meta">
  301. <span class="price">$1200</span>
  302. <span class="stay">1 Month</span>
  303. </div>
  304. <div class="description">
  305. This camp in the Hudson Valley is perfect for teenagers from 10-14.
  306. </div>
  307. <div class="extra">
  308. <span class="right floated amenities ui label">
  309. <i class="child icon"></i>
  310. Child Friendly
  311. </span>
  312. <span class="available">
  313. <i class="red check icon"></i>
  314. 0 Spots Available
  315. </span>
  316. </div>
  317. </div>
  318. </div>
  319. <div class="item">
  320. <div class="image">
  321. <img src="/images/logos/big-buck.png">
  322. </div>
  323. <div class="middle aligned content">
  324. <a class="header">Buck's Homebrew Stayaway</a>
  325. <div class="meta">
  326. <span class="price">$1000</span>
  327. <span class="stay">2 Weeks</span>
  328. </div>
  329. <div class="description">
  330. This adult stay away from home camp will teach you everything you need to know about forestry and homebrew.
  331. </div>
  332. <div class="extra">
  333. <span class="right floated amenities ui label">
  334. <i class="male icon"></i>
  335. Adults-Only
  336. </span>
  337. <span class="available">
  338. <i class="green check icon"></i>
  339. 2 Spots Available
  340. </span>
  341. </div>
  342. </div>
  343. </div>
  344. <div class="item">
  345. <div class="image">
  346. <img src="/images/logos/sunset.png">
  347. </div>
  348. <div class="middle aligned content">
  349. <a class="header">Greek Astrology Camp</a>
  350. <div class="meta">
  351. <span class="price">$1600</span>
  352. <span class="stay">6 Weeks</span>
  353. </div>
  354. <div class="description">
  355. Learn astrology the old fashioned way in this stayaway camp for kids aged 8-17.
  356. </div>
  357. <div class="extra">
  358. <span class="right floated amenities ui label">
  359. <i class="child icon"></i>
  360. Child Friendly
  361. </span>
  362. <span class="available">
  363. <i class="green check icon"></i>
  364. 25 Spots Available
  365. </span>
  366. </div>
  367. </div>
  368. </div>
  369. </div>
  370. </div>
  371. <div class="example">
  372. <h4 class="ui header">Link Item</h4>
  373. <p>A item can be formatted so that the entire contents link to another page</p>
  374. <div class="ui items">
  375. <a class="item" href="http://www.dog.com">
  376. <div class="image">
  377. <img src="/images/demo/highres.jpg">
  378. </div>
  379. <div class="content">
  380. <div class="header">Cute Dog</div>
  381. <div class="meta">
  382. <span class="category">Animals</span>
  383. </div>
  384. <div class="description">
  385. Click to view more information about this dog at dog.com
  386. </div>
  387. <div class="extra">
  388. <div class="author">
  389. <img class="ui avatar image" src="/images/demo/photo2.jpg"> Dog Doggington
  390. </div>
  391. </div>
  392. </div>
  393. </a>
  394. <a class="item" href="http://www.dog.com">
  395. <div class="image">
  396. <img src="/images/demo/highres3.jpg">
  397. </div>
  398. <div class="content">
  399. <div class="header">Magic Dog</div>
  400. <div class="meta">
  401. <span class="category">Animals</span>
  402. </div>
  403. <div class="description">
  404. Click to view more information about a magic dog at dog.com
  405. </div>
  406. <div class="extra">
  407. <div class="author">
  408. <img class="ui avatar image" src="/images/demo/photo.jpg"> Dog Doggington
  409. </div>
  410. </div>
  411. </div>
  412. </a>
  413. </div>
  414. </div>
  415. <div class="another example">
  416. <div class="ui link items">
  417. <div class="item">
  418. <div class="content">
  419. <a class="header">Cute Dog</a>
  420. <div class="meta">
  421. <span class="category">Animals</span>
  422. </div>
  423. <div class="description">
  424. This item simulates a link without using the A tag for use with javascript links.
  425. </div>
  426. </div>
  427. <div class="extra content">
  428. <span class="right floated author">
  429. <img class="ui avatar image" src="/images/demo/photo2.jpg"> Dog Doggington
  430. </span>
  431. </div>
  432. </div>
  433. </div>
  434. </div>
  435. <div class="example">
  436. <h4 class="ui header">Floated Content</h4>
  437. <p>Any content element can be floated left or right</p>
  438. <div class="ui info message">
  439. <i class="info icon"></i>
  440. You can include an arbitrary amount of metadata using your own class conventions, all child elements will automatically be spaced
  441. </div>
  442. <div class="ui items">
  443. <div class="item">
  444. <div class="content">
  445. <a class="header">Cute Dog</a>
  446. <div class="meta">
  447. <span class="right floated time">2 days ago</span>
  448. <span class="category">Animals</span>
  449. </div>
  450. <div class="description">
  451. Here's a description of a cute dog.
  452. </div>
  453. <div class="content">
  454. <span class="right floated author">
  455. <img class="ui avatar image" src="/images/demo/photo2.jpg"> Dog Doggington
  456. </span>
  457. </div>
  458. </div>
  459. </div>
  460. </div>
  461. </div>
  462. </div>