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.

320 lines
14 KiB

11 years ago
11 years ago
  1. <!DOCTYPE html>
  2. <head>
  3. <!-- Standard Meta -->
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  6. <meta name="viewport" content="width=device-width" />
  7. <!-- Site Properities -->
  8. <meta http-equiv="X-Powered-By" content="DocPad v6.32.0"/>
  9. <title>About | Semantic UI</title>
  10. <meta name="description" content="Semantic empowers designers and developers by creating a shared vocabulary for UI." />
  11. <meta name="keywords" content="html5, ui, library, framework, javascript" />
  12. <link rel="stylesheet" type="text/css" href="/stylesheets/reset.css">
  13. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/icons.css">
  14. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/button.css">
  15. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/header.css">
  16. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/label.css">
  17. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/divider.css">
  18. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/block.css">
  19. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/elements/segment.css">
  20. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/collections/grid.css">
  21. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/collections/table.css">
  22. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/collections/form.css">
  23. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/collections/menu.css">
  24. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/modules/shape.css">
  25. <link rel="stylesheet" type="text/css" class="ui" href="/ui/flat/modules/checkbox.css">
  26. <link rel="stylesheet" type="text/css" href="/stylesheets/library/sidr.css">
  27. <link rel="stylesheet" type="text/css" href="/stylesheets/semantic.css">
  28. <link rel="stylesheet" type="text/css" href="/stylesheets/shape.css">
  29. <script src="/javascript/library/jquery.js"></script>
  30. <script src="/javascript/library/ace/ace.js"></script>
  31. <script src="/javascript/library/sidr.js"></script>
  32. <script src="/javascript/library/waypoints.js"></script>
  33. <script src="/ui/flat/modules/behavior/state.js"></script>
  34. <script src="/ui/flat/modules/shape.js"></script>
  35. <script src="/ui/flat/modules/checkbox.js"></script>
  36. <script src="/javascript/semantic.js"></script>
  37. <script src="/javascript/shape.js"></script>
  38. </head>
  39. <body id="example">
  40. <div class="ui large vertical menu" id="menu">
  41. <div class="header item">Table of Contents</div>
  42. <div class="item"><a href="/index.html"><b>Introduction</b></a></div>
  43. <div class="item"><a href="/download.html"><b>Download</b></a></div>
  44. <div class="item">
  45. <a href="/element.html"><b>UI Elements</b></a>
  46. <div class="menu">
  47. <a class="item" href="/elements/button.html">Button</a>
  48. <a class="item" href="/elements/label.html">Label</a>
  49. </div>
  50. </div>
  51. <div class="item">
  52. <a href="/collection.html"><b>UI Collections</b></a>
  53. <div class="menu">
  54. <a class="item" href="/collections/form.html">Form</a>
  55. <a class="item" href="/collections/grid.html">Grid</a>
  56. <a class="item" href="/collections/menu.html">Menu</a>
  57. <a class="item" href="/collections/table.html">Table</a>
  58. <a class="item" href="/collections/block.html">Text Block</a>
  59. </div>
  60. </div>
  61. <div class="item">
  62. <a href="/module.html"><b>UI Modules</b></a>
  63. <div class="menu">
  64. <a class="item" href="/modules/shape.html">Shape</a>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="ui fixed transparent contrasting main menu">
  69. <div class="container">
  70. <div class="title item">
  71. <b>Library:</b> About
  72. </div>
  73. <div class="icon previous link disabled item">
  74. <i class="icon left-open"></i>
  75. </div>
  76. <div class="section dropdown item">
  77. 1 of 5
  78. <div class="menu">
  79. <div class="active item">
  80. <a href="/index.html">1. About</a>
  81. </div>
  82. <div class="item">
  83. <a href="/download.html">2. Download</a>
  84. </div>
  85. <div class="item">
  86. <a href="/collection.html">3. UI Collections</a>
  87. </div>
  88. <div class="item">
  89. <a href="/element.html">4. UI Elements</a>
  90. </div>
  91. <div class="item">
  92. <a href="/module.html">5. UI Modules</a>
  93. </div>
  94. </div>
  95. </div>
  96. <div class="icon next link item">
  97. <a href="/download.html"><i class="icon right-open"></i></a>
  98. </div>
  99. <div class="right menu">
  100. <a class="item" href="https://github.com/quirkyinc/semantic">
  101. <i class="icon github"></i>
  102. </a>
  103. <div class="dropdown item">
  104. <i class="icon tint"></i> Theme
  105. <div class="theme menu">
  106. <div class="active item" data-theme="flat">Flat</div>
  107. <div class="item" data-theme="shaded">Shaded</div>
  108. <div class="item" data-theme="classic">Classic</div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. <div class="ui huge left attached vertical side buttons">
  115. <div class="ui large blue sidebar button"><i class="icon th-list"></i> Menu</div>
  116. </div>
  117. <div class="segment">
  118. <div class="container">
  119. <h1>Semantic</h1>
  120. <p>UI is the DNA of the web. Semantic empowers designers and developers by creating a shared vocabulary for UI.</p>
  121. </div>
  122. </div>
  123. <div class="main container">
  124. <div class="peek">
  125. <div class="ui vertical pointing link menu">
  126. <div class="active item">What is Semantic?</div>
  127. <div class="item">The UI Spec</div>
  128. <div class="item">The Module Spec</div>
  129. <div class="item">The Semantic Library</div>
  130. </div>
  131. </div>
  132. <h2>What is Semantic?</h2>
  133. <p>Semantic has two parts. The <a href="#standard">semantic specification</a>, and the <a href="#library">semantic library</a>.</b></p>
  134. <a name="standard"></a>
  135. <h2>The UI Specification</h2>
  136. <p>The semantic specification creates a standard language for describing user interface elements.</p>
  137. <table class="ui table">
  138. <tr>
  139. <td>UI Elements</td>
  140. <td>UI Only</td>
  141. <td>menus, columns, grids, tables, buttons, forms</td>
  142. </tr>
  143. <tr>
  144. <td>UI Modules</td>
  145. <td>UI + Behavior</td>
  146. <td>popups, modals, chat rooms</td>
  147. </tr>
  148. <tr>
  149. <td>Behavioral Modules</td>
  150. <td>Behavior Only</td>
  151. <td>form validation, state management, polyfills, history</td>
  152. </tr>
  153. </table>
  154. <h3>Exchanging Designs</h3>
  155. <p>Semantic defines HTML structures and class names for UI elements that attempt to create a common vernacular to make front end development <a href="http://instruct.westvalley.edu/lafave/DFW_present_tense.html">less prescriptive</a>.</p>
  156. <p>Sharing language for UI releases the burden from developers at making arbitrary decisions, like naming conventions, in their own projects, and opens up the ability to swap website designs without having to restructure your codebase.</p>
  157. <h3>What's in an Element?</h3>
  158. <p>UI elements definitions are made of 4 parts:
  159. <table class="ui table">
  160. <tr>
  161. <td>A prototype form of an element</td>
  162. <td>A bunny has two long ears and is furry</td>
  163. <tr>
  164. <td>A definition of the relationship between a plural and singular instance of an element</td>
  165. <td>Three white bunnies are each white</td>
  166. </tr>
  167. <tr>
  168. <td>A definition of possible variations of the element</td>
  169. <td> A bunny can be large or small and can be spotted or fuzzy</td>
  170. </tr>
  171. <tr>
  172. <td>A list of states which the element can exist</td>
  173. <td> A bunny can either be hopping, eating or sitting still</td>
  174. </tr>
  175. </table>
  176. <p>UI elements can be thought of as nouns, and variations as adjectives. Variations are written so to only describe the innate features of that variation, and must account for the differences when declared along-side other variations.</p>
  177. <p>For example, in English, a large planet has a different meaning than a large chair, and would require different specific contextual definitions, but both are the same variant "largeness" to the person using the word.</p>
  178. <p>Variations can be used together without negating each other unless used in a paradoxical way (A large small bunny).</p>
  179. <h3>Plurality</h3>
  180. <p>UI elements are given a plural definition. Groups of elements can share properties, in the same way "There are two tall men" provides a shortcut to saying "there is a tall man, and another tall man".</p>
  181. <p>Some plural relationships are not all instances of the same thing, and can be thought of as <b>ui collections</b>. For example a form is a collection of related UI elements, but not all items of the same type. Semantic allows for these grouping to be defined as well, so that groups of related elements can be defined together.</p>
  182. <h3>Just Show Me the Code</h3>
  183. <p>If you'd like to shortcut any more explanation, check out the standard definition for a UI button for a live example.</p>
  184. <a class="blue ui button" href="button.html">UI Button Spec</a>
  185. <h2>The Module Specification</h2>
  186. <p>In Semantic, modules are user interface elements which require a behavioral definition. For example, a pop-up is understood by the actual action that occurs, it "pops up". Without this logic any pop-up is incomplete.</p>
  187. <p>Semantic UI modules have two components, a definition of the UI element and a behavioral definition in javascript. Semantic includes a standard javascript module pattern, which helps in defining interface elements in a similar context to UI.</p>
  188. <p>The goal of the module design pattern is primarily to accomplish three things:</p>
  189. <ol>
  190. <li>Make debugging modules simpler by making techniques like performance profiling, and logging easier and more useful.</li>
  191. <li>Make understanding new code easier, by defining a common pattern for initializing, destroying elements, modifying settings, and allowing more advanced features.</li>
  192. <li>Reduce prescriptive aspects of</li>
  193. </ol>
  194. <h3>Why use Semantic Modules?</h3>
  195. <ol>
  196. <li><b>Puts accessibility first</b>.
  197. <p>Although Coffeescript is beautiful, and Angular is smart, Semantic has a different agenda: to be easy to use, and opinionless. Semantic can be thought of more as the <a href="http://en.wikipedia.org/wiki/Aaron_Copland">Aaron Copland</a> of programming libraries. It only requires an understanding of jQuery and Javascript to begin writing code. If you're stuck there are also <a href="#">plenty of examples</a> to help you get started.</p>
  198. </li>
  199. <li><b>Is self documenting.</b>
  200. <p>Instead of reading through inline comments to determine what a developer is intending, semantic allows developers to pass meaningful debug data where its most useful: the javascript console. This allows you to see the sequence of events that occur in a module , along with useful debug information, like the value of significant variables. If you're in the source code, debug statements also read similarly to code comments which provide context. <a href="#">Show me</a>
  201. </p>
  202. </li>
  203. <li><b>Separates arbitrary decisions from the fundamental mechanics of your module.</b>
  204. <p>Ever scroll through an unfimiliar library looking for the line of code where they define the ID tag for an expected html structure? Semantic keeps you from ever having to do that again. Developer decisions like metadata, classnames, selectors, and messages are separated from the less arbitrary parts of code. <a href="#">Show me</a></p>
  205. </li>
  206. <li><b>Lets you access anything, and change everything.</b>
  207. <p>Methods defined as part of module definitions are all invokable. Semantic also maps from dot notation to their appropriate locations inside the module, allowing developers not to only make flat modules. Settings can be changed at initialization, or after. Module defaults can be changed whenever. <a href="#">Show me</a></p>
  208. </li>
  209. <li><b>Plays nice with other libraries</b>.
  210. <p>Modules include a destroy method which will remove any bound events or initialized code. Modules also use namespaced events so you can have more flexibility over defining and clearing them
  211. </p>
  212. </li>
  213. <li><b>Patterns for every need</b>.
  214. <p>Semantic has patterns that work well both as a widget factory, and as a single entity.</p>
  215. </li>
  216. </ol>
  217. <h3>You really like to talk. Lets see some code</h3>
  218. <p>For a complete definition of the specification check to annotated source:</p>
  219. <div class="ui blue buttons">
  220. <a class="ui button">Single Instance</a>
  221. <a class="ui button" href="generated/multiple.html">Many Instances</a>
  222. </div>
  223. <a name="library"></a>
  224. <h2>The Libraries</h2>
  225. <p>To semantic library is a set of UI elements and javascript modules that provides an example implementation of the Semantic standard. The purpose is to be useful in their own right for developers, but also to provide a guide for how the standard can be used.</p>
  226. <h3>The UI Library</h3>
  227. <ul class="features">
  228. <li><a href="button.html">Buttons</a></li>
  229. <li><a>Text</a></li>
  230. <li><a>Headers</a></li>
  231. <li><a>Columns</a></li>
  232. <li><a>Elements (Grid System)</a></li>
  233. <li><a>Tags</a></li>
  234. <li><a>Items (Lists of Content)</a></li>
  235. <li><a>Panels (Type of Menu)</a></li>
  236. <li><a>Forms</a></li>
  237. <li><a>Fields</a></li>
  238. <li><a>Checkboxes</a></li>
  239. <li><a>Icons</a></li>
  240. <li><a>Dividers</a></li>
  241. </ul>
  242. <h3>The module library</h3>
  243. <p>Javascript modules.</p>
  244. <ul class="features">
  245. <li>Accordion</li>
  246. <li>API</li>
  247. <li>Animation</li>
  248. <li>Chat Room</li>
  249. <li>Form Validation</li>
  250. <li>Placeholder Text</li>
  251. <li>Modal</li>
  252. <li>Nag</li>
  253. <li>Popup</li>
  254. <li>Search</li>
  255. <li>Star Rating</li>
  256. <li>Shape</li>
  257. <li>State</li>
  258. <li>Tabs</li>
  259. </ul>
  260. </div>
  261. </body>
  262. </html>
  263. </body>
  264. </html>