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.

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