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.

294 lines
8.5 KiB

  1. ---
  2. layout : 'default'
  3. css : 'message'
  4. element : 'message'
  5. elementType : 'collection'
  6. title : 'Message'
  7. description : 'A message displays information that should be read before proceeding to other nearby content.'
  8. type : 'UI 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">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="another example">
  64. <div class="ui icon message">
  65. <i class="circular notched circle loading icon"></i>
  66. <div class="content">
  67. <div class="header">
  68. Just one second
  69. </div>
  70. <p>We're fetching that content for you.</p>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="example">
  75. <h4 class="ui header">Dismissable Block</h4>
  76. <p>A message that the user can choose to hide</p>
  77. <div class="ui message">
  78. <i class="close icon"></i>
  79. <div class="header">
  80. Welcome back!
  81. </div>
  82. <p>This is a special notification which you can dismiss if you're bored with it.</p>
  83. </div>
  84. <div class="warning ui message">
  85. <p>Dismissable blocks do not automatically close when using the close icon, this behavior must be defined using javascript, for example:</p>
  86. <div class="code">
  87. $('.message .close').on('click', function() {
  88. $(this).closest('.message').fadeOut();
  89. });
  90. </div>
  91. </div>
  92. </div>
  93. <h2 class="ui dividing header">States</h2>
  94. <div class="example">
  95. <h4 class="ui header">Hidden</h4>
  96. <p>Text Blocks can be hidden</p>
  97. <div class="existing code">
  98. <div class="ui hidden message">
  99. <p>You can't see me</p>
  100. </div>
  101. </div>
  102. </div>
  103. <div class="example">
  104. <h4 class="ui header">Visible</h4>
  105. <p>Text Blocks can be set to visible if they need to force themselves to be shown.</p>
  106. <div class="ui visible message">
  107. <p>You can always see me</p>
  108. </div>
  109. </div>
  110. <h2 class="ui dividing header">Variations</h2>
  111. <div class="example">
  112. <h4 class="ui header">Floating</h4>
  113. <p>A message can float above content that it is related to</p>
  114. <div class="ui floating message">
  115. <p>Way to go!</p>
  116. </div>
  117. </div>
  118. <div class="example">
  119. <h4 class="ui header">Compact</h4>
  120. <p>A message can only take up the width of its content.</p>
  121. <div class="ui compact message">
  122. <p>Get all the best inventions in your e-mail every day. Sign up now!</p>
  123. </div>
  124. </div>
  125. <div class="example">
  126. <h4 class="ui header">Attached</h4>
  127. <p>A message can be formatted to attach itself to other content</p>
  128. <div class="ui attached message">
  129. <div class="header">
  130. Welcome to our site!
  131. </div>
  132. <p>Fill out the form below to sign-up for a new account</p>
  133. </div>
  134. <form class="ui form attached fluid segment">
  135. <div class="two fields">
  136. <div class="field">
  137. <label>First Name</label>
  138. <input placeholder="First Name" type="text">
  139. </div>
  140. <div class="field">
  141. <label>Last Name</label>
  142. <input placeholder="Last Name" type="text">
  143. </div>
  144. </div>
  145. <div class="field">
  146. <label>Username</label>
  147. <input placeholder="Username" type="text">
  148. </div>
  149. <div class="field">
  150. <label>Password</label>
  151. <input type="password">
  152. </div>
  153. <div class="inline field">
  154. <div class="ui checkbox">
  155. <input type="checkbox" id="terms" />
  156. <label for="terms">I agree to the terms and conditions</label>
  157. </div>
  158. </div>
  159. <div class="ui blue submit button">Submit</div>
  160. </form>
  161. <div class="ui bottom attached warning message">
  162. <i class="icon help"></i>
  163. Already signed up? <a href="#">Login here</a> instead.
  164. </div>
  165. </div>
  166. <div class="example">
  167. <h4 class="ui header">Warning</h4>
  168. <p>A message may be formatted to display warning messages.</p>
  169. <div class="ui warning message">
  170. <i class="close icon"></i>
  171. <div class="header">
  172. You must register before you can do that!
  173. </div>
  174. Visit our registration page, then try again
  175. </div>
  176. </div>
  177. <div class="example">
  178. <h4 class="ui header">Info</h4>
  179. <p>A message may be formatted to display information.</p>
  180. <div class="ui info message">
  181. <i class="close icon"></i>
  182. <div class="header">
  183. Was this what you wanted?
  184. </div>
  185. <ul class="list">
  186. <li>It's good to see you again.</li>
  187. <li>Did you know it's been a while?</li>
  188. </ul>
  189. </div>
  190. </div>
  191. <div class="example">
  192. <h4 class="ui header">Positive / Success</h4>
  193. <p>A message may be formatted to display a positive message.</p>
  194. <b class="ignored">
  195. <i class="attention icon"></i>
  196. Positive/Success and Negative/Error nessages by default use similar colors, but each has their own color variables that can be distinguished in your theme.
  197. </b>
  198. <div class="ui positive message">
  199. <i class="close icon"></i>
  200. <div class="header">
  201. You are eligible for a reward
  202. </div>
  203. <p>Go to your <b>special offers</b> page to see now.</p>
  204. </div>
  205. </div>
  206. <div class="another example">
  207. <div class="ui success message">
  208. <i class="close icon"></i>
  209. <div class="header">
  210. Your user registration was successful.
  211. </div>
  212. <p>You may now log-in with the username you have chosen</p>
  213. </div>
  214. </div>
  215. <div class="example">
  216. <h4 class="ui header">Negative / Error </h4>
  217. <p>A message may be formatted to display a negative message.</p>
  218. <div class="ui negative message">
  219. <i class="close icon"></i>
  220. <div class="header">
  221. We're sorry we can't apply that discount
  222. </div>
  223. <p>That offer has expired
  224. </div>
  225. </div>
  226. <div class="another example">
  227. <div class="ui error message">
  228. <i class="close icon"></i>
  229. <div class="header">
  230. There was some errors with your submission
  231. </div>
  232. <ul class="list">
  233. <li>You must include both a upper and lower case letters in your password.</li>
  234. <li>You need to select your home country.</li>
  235. </ul>
  236. </div>
  237. </div>
  238. <div class="example">
  239. <h4 class="ui header">Colored</h4>
  240. <p>A message can be formatted to be different colors</p>
  241. <div class="ui black message">Black</div>
  242. <div class="ui yellow message">Yellow</div>
  243. <div class="ui green message">Green</div>
  244. <div class="ui blue message">Blue</div>
  245. <div class="ui orange message">Orange</div>
  246. <div class="ui purple message">Purple</div>
  247. <div class="ui pink message">Pink</div>
  248. <div class="ui red message">Red</div>
  249. <div class="ui teal message">Teal</div>
  250. </div>
  251. <div class="example">
  252. <h4 class="ui header">Sizes</h4>
  253. <p>A message can have different sizes</p>
  254. <div class="ui small message">
  255. This is a very small message.
  256. </div>
  257. <div class="ui large message">
  258. This is large
  259. </div>
  260. <div class="ui huge message">
  261. This is huge
  262. </div>
  263. <div class="ui massive message">
  264. This is massive
  265. </div>
  266. </div>
  267. </div>
  268. </div>