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.

258 lines
7.4 KiB

  1. ---
  2. layout : 'default'
  3. css : 'text'
  4. title : 'Message'
  5. description : 'Messages alert a user to information they must immediately consider before proceeding on to the normal content of the page'
  6. type : 'UI Collection'
  7. element : 'message'
  8. elementType : 'collection'
  9. themes : ['default', 'github', 'google']
  10. ---
  11. <link rel="stylesheet/less" type="text/css" href="/build/less/definitions/collections/message.less" />
  12. <%- @partial('header') %>
  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">States</a>
  18. <a class="item">Variations</a>
  19. </div>
  20. </div>
  21. <h2 class="ui dividing header">Types</h2>
  22. <div class="example">
  23. <h4 class="ui header">Text Message</h4>
  24. <p>A basic message</p>
  25. <div class="ui message">
  26. <div class="header">
  27. Welcome back!
  28. </div>
  29. <p>
  30. It's good to see you again. I have had a lot to think about since our last visit, I've changed much as a person and I can see that you have too.
  31. </p>
  32. <p>
  33. Perhaps we can talk about it if you have the time.
  34. </p>
  35. </div>
  36. </div>
  37. <div class="example">
  38. <h4 class="ui header">List Message</h4>
  39. <p>A message with a list</p>
  40. <div class="ui message">
  41. <div class="header">
  42. Welcome back!
  43. </div>
  44. <ul class="list">
  45. <li>It's good to see you again.</li>
  46. <li>Did you know it's been a while?</li>
  47. </ul>
  48. </div>
  49. </div>
  50. <div class="example">
  51. <h4 class="ui header">Icon Message</h4>
  52. <p>A message can contain an icon.</p>
  53. <div class="ui icon message">
  54. <i class="inbox icon"></i>
  55. <div class="content">
  56. <div class="header">
  57. Have you heard about our mailing list?
  58. </div>
  59. <p>Get all the best inventions in your e-mail every day. Sign up now!</p>
  60. </div>
  61. </div>
  62. </div>
  63. <div class="example">
  64. <h4 class="ui header">Dismissable Block</h4>
  65. <p>A message that the user can choose to hide</p>
  66. <div class="ui message">
  67. <i class="close icon"></i>
  68. <div class="header">
  69. Welcome back!
  70. </div>
  71. <p>This is a special notification which you can dismiss if you're bored with it.</p>
  72. </div>
  73. <div class="warning ui message">
  74. <p>Dismissable blocks do not automatically close when using the close icon, this behavior must be defined using javascript, for example:</p>
  75. <div class="code">
  76. $('.message .close').on('click', function() {
  77. $(this).closest('.message').fadeOut();
  78. });
  79. </div>
  80. </div>
  81. </div>
  82. <h2 class="ui dividing header">States</h2>
  83. <div class="example">
  84. <h4 class="ui header">Hidden</h4>
  85. <p>Text Blocks can be hidden</p>
  86. <div class="existing code">
  87. <div class="ui hidden message">
  88. <p>You can't see me</p>
  89. </div>
  90. </div>
  91. </div>
  92. <div class="example">
  93. <h4 class="ui header">Visible</h4>
  94. <p>Text Blocks can be set to visible if they need to force themselves to be shown.</p>
  95. <div class="ui visible message">
  96. <p>You can always see me</p>
  97. </div>
  98. </div>
  99. <h2 class="ui dividing header">Variations</h2>
  100. <div class="example">
  101. <h4 class="ui header">Floating</h4>
  102. <p>A message can float above content that it is related to</p>
  103. <div class="ui floating message">
  104. <p>Way to go!</p>
  105. </div>
  106. </div>
  107. <div class="example">
  108. <h4 class="ui header">Compact</h4>
  109. <p>A message can only take up the width of its content.</p>
  110. <div class="ui compact message">
  111. <p>Get all the best inventions in your e-mail every day. Sign up now!</p>
  112. </div>
  113. </div>
  114. <div class="example">
  115. <h4 class="ui header">Attached</h4>
  116. <p>A message can be formatted to attach itself to other content</p>
  117. <div class="ui attached message">
  118. <div class="header">
  119. Have you heard about our mailing list?
  120. </div>
  121. <p>Get all the best inventions in your e-mail every day. Sign up now!</p>
  122. </div>
  123. <form class="ui form attached fluid segment">
  124. <p>Let's go ahead and get you signed up.</p>
  125. <div class="two fields">
  126. <div class="field">
  127. <label>First Name</label>
  128. <input placeholder="First Name" type="text">
  129. </div>
  130. <div class="field">
  131. <label>Last Name</label>
  132. <input placeholder="Last Name" type="text">
  133. </div>
  134. </div>
  135. <div class="field">
  136. <label>Username</label>
  137. <input placeholder="Username" type="text">
  138. </div>
  139. <div class="field">
  140. <label>Password</label>
  141. <input type="password">
  142. </div>
  143. <div class="inline field">
  144. <div class="ui checkbox">
  145. <input type="checkbox" id="terms" />
  146. <label for="terms">I agree to the terms and conditions</label>
  147. </div>
  148. </div>
  149. <div class="ui blue submit button">Submit</div>
  150. </form>
  151. <div class="ui bottom attached info message">
  152. <i class="icon help"></i>Are you sure you know what you're doing?
  153. </div>
  154. </div>
  155. <div class="example">
  156. <h4 class="ui header">Colored</h4>
  157. <p>A message can be formatted to be different colors</p>
  158. <div class="ui black message">Black</div>
  159. <div class="ui yellow message">Yellow</div>
  160. <div class="ui green message">Green</div>
  161. <div class="ui blue message">Blue</div>
  162. <div class="ui orange message">Orange</div>
  163. <div class="ui purple message">Purple</div>
  164. <div class="ui pink message">Pink</div>
  165. <div class="ui red message">Red</div>
  166. <div class="ui teal message">Teal</div>
  167. </div>
  168. <div class="example">
  169. <h4 class="ui header">Warning</h4>
  170. <p>A message may be formatted to display warning messages.</p>
  171. <div class="ui warning message">
  172. <i class="close icon"></i>
  173. <div class="header">
  174. You must register before you can do that!
  175. </div>
  176. Visit our registration page, then try again
  177. </div>
  178. </div>
  179. <div class="example">
  180. <h4 class="ui header">Info</h4>
  181. <p>A message may be formatted to display information.</p>
  182. <div class="ui info message">
  183. <i class="close icon"></i>
  184. <div class="header">
  185. Was this what you wanted?
  186. </div>
  187. <ul class="list">
  188. <li>It's good to see you again.</li>
  189. <li>Did you know it's been a while?</li>
  190. </ul>
  191. </div>
  192. </div>
  193. <div class="example">
  194. <h4 class="ui header">Success</h4>
  195. <p>A message may be formatted to display a success message.</p>
  196. <div class="ui success message">
  197. <i class="close icon"></i>
  198. <div class="header">
  199. Congratulations, you are now a member!
  200. </div>
  201. </div>
  202. </div>
  203. <div class="example">
  204. <h4 class="ui header">Error</h4>
  205. <p>A message may be formatted to display errors.</p>
  206. <div class="ui error message">
  207. <i class="close icon"></i>
  208. <div class="header">
  209. Was this what you wanted?
  210. </div>
  211. <ul class="list">
  212. <li>It's good to see you again.</li>
  213. <li>Did you know it's been a while?</li>
  214. </ul>
  215. </div>
  216. </div>
  217. <div class="example">
  218. <h4 class="ui header">Sizes</h4>
  219. <p>A message can have different sizes</p>
  220. <div class="ui small message">
  221. This is a very small message.
  222. </div>
  223. <div class="ui large message">
  224. This is large
  225. </div>
  226. <div class="ui huge message">
  227. This is huge
  228. </div>
  229. <div class="ui massive message">
  230. This is massive
  231. </div>
  232. </div>
  233. </div>
  234. </div>