diff --git a/docs/button.html b/docs/button.html index 5b58864a1..e77e6b3e1 100755 --- a/docs/button.html +++ b/docs/button.html @@ -99,8 +99,21 @@ - @@ -110,7 +123,8 @@

Button

-

Semantic is a set of standards designed to make front end development less arbitrary. This is the definition of a button.

+

Buttons indicate a possible action a user may take.

+

Variations can explain relationships between actions and other elements, or to show emphasis.

@@ -192,43 +206,34 @@

Can have different colors:

-
Blue Button
+
Blue Button
Purple Button
-
Green Button
+ +

Can be positive or negative:

+
Positive Button
+
Nevative Button

Can fit parent container:

Fits container
-

Can be formatted to fit just an icon or image:

-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
+

Can be bubbly:

+
More bubbly
+ +

Can be formatted as an icon toolbar:

- -
-
- +

Can be attached to the top or bottom of other content

Top
Bottom
+ +

Can be attached to the left or right of other content

+
Left
+
+
Right
+

Can be attached to an input field

@@ -236,7 +241,7 @@
Search
-

Buttons (Button Groups)

+

Buttons (Group)

Can exist together as groups

@@ -244,12 +249,21 @@
Two
Three
-

Groups can be vertical

-
-
One
-
Two
-
Three
+ +

Can be formatted as icon toolbars

+
+
+
+
+ +

Groups can be separated by conditionals

+
+
Cancel
+
+
Save
+
+

Groups can be divided evenly to fit parent

One
@@ -263,6 +277,9 @@
One
Two
Three
+
+
+


Large

diff --git a/docs/javascript/example.js b/docs/javascript/example.js index 0963cbe2e..41bc385a7 100755 --- a/docs/javascript/example.js +++ b/docs/javascript/example.js @@ -8,7 +8,7 @@ shape.ready = function() { // selector cache var - $ui = $('.ui'), + $ui = $('.ui').not('.hover, .down'), $swap = $('.swap'), $menu = $('.menu.button'), $demo = $('.demo'), @@ -25,6 +25,31 @@ shape.ready = function() { // event handlers handler = { + initializeCode: function() { + var + $content = $(this), + contentType = $content.data('type') || 'javascript', + editor = ace.edit($content[0]), + editorSession = editor.getSession(), + padding = 3, + codeHeight = editor.getSession().getScreenLength() * (editor.renderer.lineHeight + padding) + editor.renderer.scrollBar.getWidth() + ; + editor.setTheme('ace/theme/github'); + editor.setShowPrintMargin(false); + editor.setReadOnly(true); + editor.renderer.setShowGutter(false); + editor.setHighlightActiveLine(false); + + editorSession.setMode('ace/mode/'+ contentType); + editorSession.setTabSize(2); + editorSession.setUseSoftTabs(true); + + + $(this).height(codeHeight + 'px'); + editor.resize(); + + }, + peek: function() { $('html, body') .stop() @@ -65,7 +90,7 @@ shape.ready = function() { $waypoints .waypoint({ continuous : false, - offset : 220, + offset : 215, handler : function(direction) { var index = (direction == 'down') @@ -83,32 +108,11 @@ shape.ready = function() { }) ; - $code - .each(function() { - var - $content = $(this), - contentType = $content.data('type') || 'javascript', - editor = ace.edit($content[0]), - editorSession = editor.getSession(), - padding = 2, - codeHeight = editor.getSession().getScreenLength() * (editor.renderer.lineHeight + padding) + editor.renderer.scrollBar.getWidth() - ; - editor.setTheme('ace/theme/github'); - editor.setShowPrintMargin(false); - editor.setReadOnly(true); - editor.renderer.setShowGutter(false); - editor.setHighlightActiveLine(false); - - editorSession.setMode('ace/mode/'+ contentType); - editorSession.setTabSize(2); - editorSession.setUseSoftTabs(true); - - - $(this).height(codeHeight + 'px'); - editor.resize(); - - }) - ; + if(window.ace !== undefined) { + $code + .each(handler.initializeCode) + ; + } $swap .on('click', handler.swapStyle) diff --git a/docs/module.html b/docs/module.html index 46fb0ca84..fe8fc887c 100755 --- a/docs/module.html +++ b/docs/module.html @@ -219,7 +219,7 @@

The Libraries

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.

The UI Library

-