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.

173 lines
4.8 KiB

11 years ago
  1. ---
  2. layout : 'default'
  3. css : 'input'
  4. title : 'Input'
  5. description : 'Inputs allow a user to enter information'
  6. type : 'UI Element'
  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">Input</h4>
  20. <p>A standard input</p>
  21. <div class="ui input">
  22. <input type="text" placeholder="Search...">
  23. </div>
  24. </div>
  25. <h2 class="ui dividing header">States</h2>
  26. <div class="example">
  27. <h4 class="ui header">Focus</h4>
  28. <p>An input field can show a user is currently interacting with it</p>
  29. <div class="ui input focus">
  30. <input type="text" placeholder="Search...">
  31. </div>
  32. </div>
  33. <div class="example">
  34. <h4 class="ui header">Loading</h4>
  35. <p>An icon input field can show that it is currently loading data</p>
  36. <div class="ui icon input loading">
  37. <input type="text" placeholder="Search...">
  38. <i class="icon"></i>
  39. </div>
  40. </div>
  41. <div class="example">
  42. <h4 class="ui header">Error</h4>
  43. <p>An input field can show the data contains errors</p>
  44. <div class="ui input error" placeholder="Search...">
  45. <input type="text">
  46. </div>
  47. </div>
  48. <h2 class="ui dividing header">Variations</h2>
  49. <div class="example">
  50. <h4 class="ui header">Icon</h4>
  51. <p>An input can be formatted with an icon</p>
  52. <div class="ui icon input">
  53. <input type="text" placeholder="Search...">
  54. <i class="search icon"></i>
  55. </div>
  56. </div>
  57. <div class="another example">
  58. <div class="ui left icon input">
  59. <input type="text" placeholder="Search users...">
  60. <i class="users icon"></i>
  61. </div>
  62. </div>
  63. <div class="another example">
  64. <div class="ui icon input">
  65. <input type="text" placeholder="Search...">
  66. <i class="circular search icon"></i>
  67. </div>
  68. </div>
  69. <div class="another example">
  70. <div class="ui icon input">
  71. <input type="text" placeholder="Search...">
  72. <i class="inverted search icon"></i>
  73. </div>
  74. </div>
  75. <div class="example">
  76. <h4 class="ui header">Labeled</h4>
  77. <p>An input can be formatted with a label</p>
  78. <div class="ui labeled input">
  79. <input type="text" placeholder="Search...">
  80. <div class="ui corner label">
  81. <i class="asterisk icon"></i>
  82. </div>
  83. </div>
  84. <br><br>
  85. <div class="ui labeled input">
  86. <input type="text" placeholder="Search...">
  87. <div class="ui corner label">
  88. <div class="text">New</div>
  89. </div>
  90. </div>
  91. </div>
  92. <div class="example">
  93. <h4 class="ui header">Action</h4>
  94. <p>An input can be formatted to alert the user to an action they may perform</p>
  95. <div class="ui action input">
  96. <input type="text" placeholder="Search...">
  97. <div class="ui button">Search</div>
  98. </div>
  99. </div>
  100. <div class="another example">
  101. <div class="ui action input">
  102. <input type="text" value="http://ww.short.url/c0opq">
  103. <div class="ui teal right labeled icon button"><i class="copy icon"></i> Copy</div>
  104. </div>
  105. </div>
  106. <div class="another example">
  107. <div class="ui action input">
  108. <input type="text" placeholder="Search...">
  109. <div class="ui icon button"><i class="search icon"></i></div>
  110. </div>
  111. </div>
  112. <div class="example">
  113. <h4 class="ui header">Fluid</h4>
  114. <p>An input can take the size of its container</p>
  115. <div class="ui fluid icon input">
  116. <input type="text" placeholder="Search a very wide input...">
  117. <i class="search icon"></i>
  118. </div>
  119. </div>
  120. <div class="example">
  121. <h4 class="ui header">Size</h4>
  122. <p>An input can vary in size</p>
  123. <div class="ui mini icon input">
  124. <input type="text" placeholder="Search mini...">
  125. <i class="search icon"></i>
  126. </div>
  127. </div>
  128. <div class="another example">
  129. <div class="ui small icon input">
  130. <input type="text" placeholder="Search small...">
  131. <i class="search icon"></i>
  132. </div>
  133. </div>
  134. <div class="another example">
  135. <div class="ui large icon input">
  136. <input type="text" placeholder="Search large...">
  137. <i class="search icon"></i>
  138. </div>
  139. </div>
  140. <div class="another example">
  141. <div class="ui big icon input">
  142. <input type="text" placeholder="Search big...">
  143. <i class="search icon"></i>
  144. </div>
  145. </div>
  146. <div class="another example">
  147. <div class="ui huge icon input">
  148. <input type="text" placeholder="Search huge...">
  149. <i class="search icon"></i>
  150. </div>
  151. </div>
  152. <div class="another example">
  153. <div class="ui massive icon input">
  154. <input type="text" placeholder="Search massive...">
  155. <i class="search icon"></i>
  156. </div>
  157. </div>
  158. </div>