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.

458 lines
15 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. <div class="peek">
  15. <div class="ui vertical pointing secondary menu">
  16. <a class="active item">Types</a>
  17. <a class="item">Content</a>
  18. <a class="item">Variations</a>
  19. </div>
  20. </div>
  21. <h2 class="ui dividing header">Types</h2>
  22. <div class="even example">
  23. <h4 class="ui header">Items</h4>
  24. <p>A group of items.</p>
  25. <div class="ui items segment">
  26. <div class="item">
  27. <div class="image">
  28. <img src="/images/logos/arrowhead.png">
  29. </div>
  30. <div class="middle aligned content">
  31. <a class="header">Arrowhead Valley Camp</a>
  32. <div class="meta">
  33. <span class="price">$1200</span>
  34. <span class="stay">1 Month</span>
  35. </div>
  36. <div class="description">
  37. This camp in the Hudson Valley is perfect for teenagers from 10-14.
  38. </div>
  39. <div class="extra">
  40. <span class="right floated amenities ui label">
  41. <i class="child icon"></i>
  42. Child Friendly
  43. </span>
  44. <span class="available">
  45. <i class="red check icon"></i>
  46. 0 Spots Available
  47. </span>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="item">
  52. <div class="image">
  53. <img src="/images/logos/big-buck.png">
  54. </div>
  55. <div class="middle aligned content">
  56. <a class="header">Buck's Homebrew Stayaway</a>
  57. <div class="meta">
  58. <span class="price">$1000</span>
  59. <span class="stay">2 Weeks</span>
  60. </div>
  61. <div class="description">
  62. This adult stay away from home camp will teach you everything you need to know about forestry and homebrew.
  63. </div>
  64. <div class="extra">
  65. <span class="right floated amenities ui label">
  66. <i class="male icon"></i>
  67. Adults-Only
  68. </span>
  69. <span class="available">
  70. <i class="green check icon"></i>
  71. 2 Spots Available
  72. </span>
  73. </div>
  74. </div>
  75. </div>
  76. <div class="item">
  77. <div class="image">
  78. <img src="/images/logos/sunset.png">
  79. </div>
  80. <div class="middle aligned content">
  81. <a class="header">Greek Astrology Camp</a>
  82. <div class="meta">
  83. <span class="price">$1600</span>
  84. <span class="stay">6 Weeks</span>
  85. </div>
  86. <div class="description">
  87. Learn astrology the old fashioned way in this stayaway camp for kids aged 8-17.
  88. </div>
  89. <div class="extra">
  90. <span class="right floated amenities ui label">
  91. <i class="child icon"></i>
  92. Child Friendly
  93. </span>
  94. <span class="available">
  95. <i class="green check icon"></i>
  96. 25 Spots Available
  97. </span>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. <h2 class="ui dividing header">Content</h2>
  104. <div class="example">
  105. <h4 class="ui header">Header</h4>
  106. <p>A item can contain a header</p>
  107. <div class="ui items segment">
  108. <div class="item">
  109. <div class="content">
  110. <div class="header">Arrowhead Valley Camp</div>
  111. <div class="description">
  112. This camp in the Hudson Valley is perfect for teenagers from 10-14.
  113. </div>
  114. </div>
  115. </div>
  116. <div class="item">
  117. <div class="content">
  118. <div class="header">Buck's Homebrew Stayaway</div>
  119. <div class="description">
  120. This adult stay away from home camp will teach you everything you need to know about forestry and homebrew.
  121. </div>
  122. </div>
  123. </div>
  124. <div class="item">
  125. <div class="content">
  126. <div class="header">Astrology Camp</div>
  127. <div class="description">
  128. Learn astrology the old fashioned way in this stayaway camp for kids aged 8-17.
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. <div class="example">
  135. <h4 class="ui header">Metadata</h4>
  136. <p>A item can contain content metadata</p>
  137. <div class="ui info message">
  138. <i class="info icon"></i>
  139. You can include an arbitrary amount of metadata using your own class conventions, all child elements will automatically be spaced
  140. </div>
  141. <div class="ui items segment">
  142. <div class="item">
  143. <div class="content">
  144. <div class="header">Arrowhead Valley Camp</div>
  145. <div class="meta">
  146. <span class="price">$1200</span>
  147. <span class="stay">1 Month</span>
  148. </div>
  149. <div class="description">
  150. This camp in the Hudson Valley is perfect for teenagers from 10-14.
  151. </div>
  152. </div>
  153. </div>
  154. <div class="item">
  155. <div class="content">
  156. <div class="header">Buck's Homebrew Stayaway</div>
  157. <div class="meta">
  158. <span class="price">$1000</span>
  159. <span class="stay">2 Weeks</span>
  160. </div>
  161. <div class="description">
  162. This adult stay away from home camp will teach you everything you need to know about forestry and homebrew.
  163. </div>
  164. </div>
  165. </div>
  166. <div class="item">
  167. <div class="content">
  168. <div class="header">Astrology Camp</div>
  169. <div class="meta">
  170. <span class="price">$1600</span>
  171. <span class="stay">6 Weeks</span>
  172. </div>
  173. <div class="description">
  174. Learn astrology the old fashioned way in this stayaway camp for kids aged 8-17.
  175. </div>
  176. </div>
  177. </div>
  178. </div>
  179. </div>
  180. <div class="example">
  181. <h4 class="ui header">Link</h4>
  182. <p>A item can contain contain links as images, headers, or inside content</p>
  183. <div class="ui yellow message">
  184. <i class="star icon"></i>
  185. To make the entire content of a item link, check out the link variation below
  186. </div>
  187. <div class="ui items segment">
  188. <div class="item">
  189. <a class="ui tiny image">
  190. <img src="/images/avatar/large/stevie.jpg">
  191. </a>
  192. <div class="content">
  193. <a class="header">Stevie Feliciano</a>
  194. <div class="description">
  195. <p>Stevie Feliciano is a library scientist living in New York City. She likes to spend her time reading, running, and writing.</p>
  196. <a>View Profile</a>
  197. </div>
  198. </div>
  199. </div>
  200. <div class="item">
  201. <a class="ui tiny image">
  202. <img src="/images/avatar/large/veronika.jpg">
  203. </a>
  204. <div class="content">
  205. <a class="header">Veronika Ossi</a>
  206. <div class="description">
  207. <p>Veronika Ossi is a set designer living in New York who enjoys kittens, music, and partying.</p>
  208. <a>View Profile</a>
  209. </div>
  210. </div>
  211. </div>
  212. <div class="item">
  213. <a class="ui tiny image">
  214. <img src="/images/avatar/large/jenny.jpg">
  215. </a>
  216. <div class="content">
  217. <a class="header">Jenny Hess</a>
  218. <div class="description">
  219. <p>Jenny is a student studying Media Management at the New School.</p>
  220. <a>View Profile</a>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. <div class="example">
  227. <h4 class="ui header">Icons</h4>
  228. <p>A item can contain icons to denote user actions.</p>
  229. <div class="ui info message">
  230. 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>.
  231. </div>
  232. <div class="ui items segment">
  233. <div class="item">
  234. <div class="content">
  235. <i class="right floated like icon"></i>
  236. <i class="right floated star icon"></i>
  237. <a class="header">Cute Dog</a>
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. <div class="example">
  243. <h4 class="ui header">Description</h4>
  244. <p>A item can contain a description with a single or multiple paragraphs</p>
  245. <div class="ui items segment">
  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>
  255. </div>
  256. </div>
  257. </div>
  258. <div class="example">
  259. <h4 class="ui header">Extra Content</h4>
  260. <p>A item can contain extra content meant to be formatted separately from the main content</p>
  261. <div class="ui items segment">
  262. <div class="item">
  263. <div class="content">
  264. <a class="header">Cute Dog</a>
  265. <div class="meta">2 days ago</div>
  266. <div class="description">
  267. <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>
  268. <p>Many people also have their own barometers for what makes a cute dog.</p>
  269. </div>
  270. <div class="extra">
  271. <i class="green check icon"></i>
  272. 121 Votes
  273. </div>
  274. </div>
  275. </div>
  276. </div>
  277. </div>
  278. <div class="example">
  279. <h4 class="ui header">Image</h4>
  280. <p>A item can contain an image</p>
  281. <div class="ui items segment">
  282. <div class="item">
  283. <div class="image">
  284. <img src="/images/demo/highres.jpg">
  285. </div>
  286. <div class="content">
  287. <a class="header">Cute Dog</a>
  288. <div class="meta">2 days ago</div>
  289. <div class="description">
  290. <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>
  291. <p>Many people also have their own barometers for what makes a cute dog.</p>
  292. </div>
  293. <div class="extra">
  294. <i class="green check icon"></i>
  295. 121 Votes
  296. </div>
  297. </div>
  298. </div>
  299. </div>
  300. </div>
  301. <h2 class="ui dividing header">Variations</h2>
  302. <div class="example">
  303. <h4 class="ui header">Divided</h4>
  304. <p>Items can be divided to better distinguish between grouped content</p>
  305. <div class="ui info message">
  306. <i class="info icon"></i>
  307. The following example uses <a href="/elements/segment.html">ui</a> for legibility only. This is not necessary for using <code>ui items</code>
  308. </div>
  309. <div class="ui divided items segment">
  310. <div class="item" href="http://www.dog.com">
  311. <div class="content">
  312. <a class="header">Cute Dog</a>
  313. <div class="meta">
  314. <span class="category">Animals</span>
  315. </div>
  316. <div class="description">
  317. Click to view more information about this dog at dog.com
  318. </div>
  319. <div class="extra">
  320. <div class="author">
  321. <img class="ui avatar image" src="/images/demo/photo2.jpg"> Dog Doggington
  322. </div>
  323. </div>
  324. </div>
  325. </div>
  326. <div class="item" href="http://www.dog.com">
  327. <div class="content">
  328. <a class="header">Magic Dog</a>
  329. <div class="meta">
  330. <span class="category">Animals</span>
  331. </div>
  332. <div class="description">
  333. Click to view more information about a magic dog at dog.com
  334. </div>
  335. <div class="extra">
  336. <div class="author">
  337. <img class="ui avatar image" src="/images/demo/photo.jpg"> Dog Doggington
  338. </div>
  339. </div>
  340. </div>
  341. </div>
  342. </div>
  343. </div>
  344. <div class="example">
  345. <h4 class="ui header">Link Item</h4>
  346. <p>A item can be formatted so that the entire contents link to another page</p>
  347. <div class="ui items segment">
  348. <a class="item" href="http://www.dog.com">
  349. <div class="image">
  350. <img src="/images/demo/highres.jpg">
  351. </div>
  352. <div class="content">
  353. <div class="header">Cute Dog</div>
  354. <div class="meta">
  355. <span class="category">Animals</span>
  356. </div>
  357. <div class="description">
  358. Click to view more information about this dog at dog.com
  359. </div>
  360. <div class="extra">
  361. <div class="author">
  362. <img class="ui avatar image" src="/images/demo/photo2.jpg"> Dog Doggington
  363. </div>
  364. </div>
  365. </div>
  366. </a>
  367. <a class="item" href="http://www.dog.com">
  368. <div class="image">
  369. <img src="/images/demo/highres3.jpg">
  370. </div>
  371. <div class="content">
  372. <div class="header">Magic Dog</div>
  373. <div class="meta">
  374. <span class="category">Animals</span>
  375. </div>
  376. <div class="description">
  377. Click to view more information about a magic dog at dog.com
  378. </div>
  379. <div class="extra">
  380. <div class="author">
  381. <img class="ui avatar image" src="/images/demo/photo.jpg"> Dog Doggington
  382. </div>
  383. </div>
  384. </div>
  385. </a>
  386. </div>
  387. </div>
  388. <div class="another example">
  389. <div class="ui link items">
  390. <div class="item">
  391. <div class="content">
  392. <a class="header">Cute Dog</a>
  393. <div class="meta">
  394. <span class="category">Animals</span>
  395. </div>
  396. <div class="description">
  397. This item simulates a link without using the A tag for use with javascript links.
  398. </div>
  399. </div>
  400. <div class="extra content">
  401. <span class="right floated author">
  402. <img class="ui avatar image" src="/images/demo/photo2.jpg"> Dog Doggington
  403. </span>
  404. </div>
  405. </div>
  406. </div>
  407. </div>
  408. <div class="example">
  409. <h4 class="ui header">Floated Content</h4>
  410. <p>Any content element can be floated left or right</p>
  411. <div class="ui info message">
  412. <i class="info icon"></i>
  413. You can include an arbitrary amount of metadata using your own class conventions, all child elements will automatically be spaced
  414. </div>
  415. <div class="ui items segment">
  416. <div class="item">
  417. <div class="content">
  418. <a class="header">Cute Dog</a>
  419. <div class="meta">
  420. <span class="right floated time">2 days ago</span>
  421. <span class="category">Animals</span>
  422. </div>
  423. <div class="description">
  424. Here's a description of a cute dog.
  425. </div>
  426. <div class="content">
  427. <span class="right floated author">
  428. <img class="ui avatar image" src="/images/demo/photo2.jpg"> Dog Doggington
  429. </span>
  430. </div>
  431. </div>
  432. </div>
  433. </div>
  434. </div>
  435. </div>