Browse Source

Adds lots of new stuff. Chatroom first pass, rating, updates to checkbox

Former-commit-id: afe89532f949937d4b9ca2ccb0f428bca5bd7b3e
Former-commit-id: 6a997fd1400740a52797ce7e20d208196fa4244c
beta
jlukic 11 years ago
parent
commit
c1975689f4
  1. 64
      build/minified/modules/star.js
  2. 64
      build/packaged/modules/star.js
  3. 4
      build/uncompressed/collections/menu.css
  4. 139
      build/uncompressed/elements/button.css
  5. 4
      build/uncompressed/elements/header.css
  6. 12
      build/uncompressed/elements/image.css
  7. 7
      build/uncompressed/elements/label.css
  8. 231
      build/uncompressed/modules/checkbox.css
  9. 16
      build/uncompressed/modules/dimmer.css
  10. 7
      build/uncompressed/modules/reveal.css
  11. 6
      build/uncompressed/modules/search.css
  12. 29
      build/uncompressed/modules/star.css
  13. 64
      build/uncompressed/modules/star.js
  14. 3
      build/uncompressed/views/feed.css
  15. 10
      build/uncompressed/views/list.css
  16. 2
      node/package.json
  17. 81
      node/src/documents/collections/form.html
  18. 25
      node/src/documents/elements/button.html
  19. 2
      node/src/documents/elements/label.html
  20. 36
      node/src/documents/guide/cssguide.html
  21. 2
      node/src/documents/index.html.eco
  22. 42
      node/src/documents/introduction/definitions.html
  23. 8
      node/src/documents/introduction/getting-started.html
  24. 306
      node/src/documents/modules/chat.html
  25. 145
      node/src/documents/modules/checkbox.html
  26. 1
      node/src/documents/modules/dimmer.html
  27. 24
      node/src/documents/modules/form.html
  28. 317
      node/src/documents/modules/rating.html
  29. 117
      node/src/documents/modules/reveal.html
  30. 61
      node/src/documents/modules/shape.html
  31. 2
      node/src/documents/modules/sidebar.html
  32. 8
      node/src/documents/views/feed.html
  33. 4
      node/src/files/components/semantic/collections/menu.css
  34. 139
      node/src/files/components/semantic/elements/button.css
  35. 4
      node/src/files/components/semantic/elements/header.css
  36. 12
      node/src/files/components/semantic/elements/image.css
  37. 7
      node/src/files/components/semantic/elements/label.css
  38. 257
      node/src/files/components/semantic/modules/chatroom.css
  39. 27
      node/src/files/components/semantic/modules/chatroom.js
  40. 231
      node/src/files/components/semantic/modules/checkbox.css
  41. 16
      node/src/files/components/semantic/modules/dimmer.css
  42. 120
      node/src/files/components/semantic/modules/rating.css
  43. 100
      node/src/files/components/semantic/modules/rating.js
  44. 7
      node/src/files/components/semantic/modules/reveal.css
  45. 6
      node/src/files/components/semantic/modules/search.css
  46. 29
      node/src/files/components/semantic/modules/star.css
  47. 64
      node/src/files/components/semantic/modules/star.js
  48. 3
      node/src/files/components/semantic/views/feed.css
  49. 10
      node/src/files/components/semantic/views/list.css
  50. BIN
      node/src/files/images/blue-bg.png
  51. BIN
      node/src/files/images/demo/title.png
  52. 1
      node/src/files/images/teal-bg.png.REMOVED.git-id
  53. 1
      node/src/files/images/tile-bg.png.REMOVED.git-id
  54. 16
      node/src/files/javascript/rating.js
  55. 2
      node/src/files/javascript/semantic.js
  56. 40
      node/src/files/stylesheets/semantic.css
  57. 15
      node/src/layouts/default.html.eco
  58. 4
      src/collections/menu.less
  59. 172
      src/elements/button.less
  60. 4
      src/elements/header.less
  61. 12
      src/elements/image.less
  62. 7
      src/elements/label.less
  63. 337
      src/modules/chat.less
  64. 284
      src/modules/checkbox.less
  65. 16
      src/modules/dimmer.less
  66. 8
      src/modules/reveal.less
  67. 10
      src/modules/search.less
  68. 62
      src/modules/star.less
  69. 3
      src/views/feed.less
  70. 10
      src/views/list.less

64
build/minified/modules/star.js

@ -8,12 +8,12 @@
;(function ($, window, document, undefined) { ;(function ($, window, document, undefined) {
$.fn.starReview = function(parameters) { $.fn.rating = function(parameters) {
var var
$allModules = $(this), $allModules = $(this),
moduleSelector = $allModules.selector || '', moduleSelector = $allModules.selector || '',
settings = $.extend(true, {}, $.fn.starReview.settings, parameters), settings = $.extend(true, {}, $.fn.rating.settings, parameters),
namespace = settings.namespace, namespace = settings.namespace,
className = settings.className, className = settings.className,
@ -35,7 +35,7 @@ $.fn.starReview = function(parameters) {
.each(function() { .each(function() {
var var
$module = $(this), $module = $(this),
$star = $module.find(selector.star), $icon = $module.find(selector.icon),
element = this, element = this,
instance = $module.data(moduleNamespace), instance = $module.data(moduleNamespace),
@ -46,23 +46,14 @@ $.fn.starReview = function(parameters) {
initialize: function() { initialize: function() {
if(settings.rateable) { if(settings.rateable) {
// expandable with states $icon
if($.fn.state !== undefined) {
$module
.state()
;
$star
.state()
;
}
$star
.bind('mouseenter' + eventNamespace, module.event.mouseenter) .bind('mouseenter' + eventNamespace, module.event.mouseenter)
.bind('mouseleave' + eventNamespace, module.event.mouseleave) .bind('mouseleave' + eventNamespace, module.event.mouseleave)
.bind('click' + eventNamespace, module.event.click) .bind('click' + eventNamespace, module.event.click)
; ;
} }
$module $module
.addClass(className.initialize) .addClass(className.active)
; ;
module.instantiate(); module.instantiate();
}, },
@ -73,21 +64,30 @@ $.fn.starReview = function(parameters) {
; ;
}, },
destroy: function() {
$module
.removeData(moduleNamespace)
;
$icon
.off(eventNamespace)
;
},
setRating: function(rating) { setRating: function(rating) {
var var
$activeStar = $star.eq(rating - 1) $activeIcon = $icon.eq(rating - 1)
; ;
$module $module
.removeClass(className.hover) .removeClass(className.hover)
; ;
$star $icon
.removeClass(className.hover) .removeClass(className.hover)
; ;
$activeStar $activeIcon
.nextAll() .nextAll()
.removeClass(className.active) .removeClass(className.active)
; ;
$activeStar $activeIcon
.addClass(className.active) .addClass(className.active)
.prevAll() .prevAll()
.addClass(className.active) .addClass(className.active)
@ -98,31 +98,31 @@ $.fn.starReview = function(parameters) {
event: { event: {
mouseenter: function() { mouseenter: function() {
var var
$activeStar = $(this) $activeIcon = $(this)
; ;
$activeStar $activeIcon
.nextAll() .nextAll()
.removeClass(className.hover) .removeClass(className.hover)
; ;
$module $module
.addClass(className.hover) .addClass(className.hover)
; ;
$activeStar $activeIcon
.addClass(className.hover) .addClass(className.hover)
.prevAll() .prevAll()
.addClass(className.hover) .addClass(className.hover)
; ;
}, },
mouseleave: function() { mouseleave: function() {
$star $icon
.removeClass(className.hover) .removeClass(className.hover)
; ;
}, },
click: function() { click: function() {
var var
$activeStar = $(this) $activeIcon = $(this)
; ;
module.setRating( $star.index($activeStar) + 1); module.setRating( $icon.index($activeIcon) + 1);
} }
}, },
setting: function(name, value) { setting: function(name, value) {
@ -307,28 +307,26 @@ $.fn.starReview = function(parameters) {
; ;
}; };
$.fn.starReview.settings = { $.fn.rating.settings = {
name : 'Star', name : 'Star',
namespace : 'star', namespace : 'icon',
rateable : true, rateable : true,
onRate : function(){}, onRate : function(){},
error: { error: {
method : 'The method you called is not defined' method : 'The method you called is not defined'
}, },
className : { className : {
initialize : 'initialize',
loading : 'loading',
active : 'active', active : 'active',
hover : 'hover', hover : 'hover',
down : 'down' loading : 'loading'
}, },
selector : { selector : {
star : 'i' icon : '.icon'
} }
}; };

64
build/packaged/modules/star.js

@ -8,12 +8,12 @@
;(function ($, window, document, undefined) { ;(function ($, window, document, undefined) {
$.fn.starReview = function(parameters) { $.fn.rating = function(parameters) {
var var
$allModules = $(this), $allModules = $(this),
moduleSelector = $allModules.selector || '', moduleSelector = $allModules.selector || '',
settings = $.extend(true, {}, $.fn.starReview.settings, parameters), settings = $.extend(true, {}, $.fn.rating.settings, parameters),
namespace = settings.namespace, namespace = settings.namespace,
className = settings.className, className = settings.className,
@ -35,7 +35,7 @@ $.fn.starReview = function(parameters) {
.each(function() { .each(function() {
var var
$module = $(this), $module = $(this),
$star = $module.find(selector.star), $icon = $module.find(selector.icon),
element = this, element = this,
instance = $module.data(moduleNamespace), instance = $module.data(moduleNamespace),
@ -46,23 +46,14 @@ $.fn.starReview = function(parameters) {
initialize: function() { initialize: function() {
if(settings.rateable) { if(settings.rateable) {
// expandable with states $icon
if($.fn.state !== undefined) {
$module
.state()
;
$star
.state()
;
}
$star
.bind('mouseenter' + eventNamespace, module.event.mouseenter) .bind('mouseenter' + eventNamespace, module.event.mouseenter)
.bind('mouseleave' + eventNamespace, module.event.mouseleave) .bind('mouseleave' + eventNamespace, module.event.mouseleave)
.bind('click' + eventNamespace, module.event.click) .bind('click' + eventNamespace, module.event.click)
; ;
} }
$module $module
.addClass(className.initialize) .addClass(className.active)
; ;
module.instantiate(); module.instantiate();
}, },
@ -73,21 +64,30 @@ $.fn.starReview = function(parameters) {
; ;
}, },
destroy: function() {
$module
.removeData(moduleNamespace)
;
$icon
.off(eventNamespace)
;
},
setRating: function(rating) { setRating: function(rating) {
var var
$activeStar = $star.eq(rating - 1) $activeIcon = $icon.eq(rating - 1)
; ;
$module $module
.removeClass(className.hover) .removeClass(className.hover)
; ;
$star $icon
.removeClass(className.hover) .removeClass(className.hover)
; ;
$activeStar $activeIcon
.nextAll() .nextAll()
.removeClass(className.active) .removeClass(className.active)
; ;
$activeStar $activeIcon
.addClass(className.active) .addClass(className.active)
.prevAll() .prevAll()
.addClass(className.active) .addClass(className.active)
@ -98,31 +98,31 @@ $.fn.starReview = function(parameters) {
event: { event: {
mouseenter: function() { mouseenter: function() {
var var
$activeStar = $(this) $activeIcon = $(this)
; ;
$activeStar $activeIcon
.nextAll() .nextAll()
.removeClass(className.hover) .removeClass(className.hover)
; ;
$module $module
.addClass(className.hover) .addClass(className.hover)
; ;
$activeStar $activeIcon
.addClass(className.hover) .addClass(className.hover)
.prevAll() .prevAll()
.addClass(className.hover) .addClass(className.hover)
; ;
}, },
mouseleave: function() { mouseleave: function() {
$star $icon
.removeClass(className.hover) .removeClass(className.hover)
; ;
}, },
click: function() { click: function() {
var var
$activeStar = $(this) $activeIcon = $(this)
; ;
module.setRating( $star.index($activeStar) + 1); module.setRating( $icon.index($activeIcon) + 1);
} }
}, },
setting: function(name, value) { setting: function(name, value) {
@ -307,28 +307,26 @@ $.fn.starReview = function(parameters) {
; ;
}; };
$.fn.starReview.settings = { $.fn.rating.settings = {
name : 'Star', name : 'Star',
namespace : 'star', namespace : 'icon',
rateable : true, rateable : true,
onRate : function(){}, onRate : function(){},
error: { error: {
method : 'The method you called is not defined' method : 'The method you called is not defined'
}, },
className : { className : {
initialize : 'initialize',
loading : 'loading',
active : 'active', active : 'active',
hover : 'hover', hover : 'hover',
down : 'down' loading : 'loading'
}, },
selector : { selector : {
star : 'i' icon : '.icon'
} }
}; };

4
build/uncompressed/collections/menu.css

@ -202,9 +202,9 @@
/*-------------- /*--------------
Dropdowns Dropdowns
---------------*/ ---------------*/
.ui.menu .dropdown.item .menu { /*.ui.menu .dropdown.item .menu {
margin: 1px 0px 0px 0px; margin: 1px 0px 0px 0px;
} }*/
.ui.menu .simple.dropdown.item .menu { .ui.menu .simple.dropdown.item .menu {
margin: 0px !important; margin: 0px !important;
} }

139
build/uncompressed/elements/button.css

@ -66,6 +66,48 @@
margin: -0.8em -1.5em; margin: -0.8em -1.5em;
padding: 0.8em 1.5em; padding: 0.8em 1.5em;
} }
/*-------------------
Primary
--------------------*/
.ui.primary.buttons .button,
.ui.primary.button {
background-color: #D95C5C;
color: #FFFFFF;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
}
.ui.primary.buttons .button:hover,
.ui.primary.button:hover,
.ui.primary.buttons .active.button,
.ui.primary.button.active {
background-color: #E75859;
color: #FFFFFF;
}
.ui.primary.buttons .button:active,
.ui.primary.button:active {
background-color: #D24B4C;
color: #FFFFFF;
}
/*-------------------
Secondary
--------------------*/
.ui.secondary.buttons .button,
.ui.secondary.button {
background-color: #00B5AD;
color: #FFFFFF;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
}
.ui.secondary.buttons .button:hover,
.ui.secondary.button:hover,
.ui.secondary.buttons .active.button,
.ui.secondary.button.active {
background-color: #009A93;
color: #FFFFFF;
}
.ui.secondary.buttons .button:active,
.ui.secondary.button:active {
background-color: #00847E;
color: #FFFFFF;
}
/*------------------- /*-------------------
Social Social
--------------------*/ --------------------*/
@ -111,10 +153,29 @@
/******************************* /*******************************
States States
*******************************/ *******************************/
/*--------------
Active
---------------*/
.ui.buttons .active.button,
.ui.active.button {
opacity: 1 !important;
background-color: #B0B0B0;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(0, 0, 0, 0)), to(rgba(255, 255, 255, 0.1)));
background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: -moz-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: -o-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
color: #FFFFFF;
-webkit-box-shadow: 0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset;
-moz-box-shadow: 0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset;
box-shadow: 0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset;
}
/*-------------- /*--------------
Hover Hover
---------------*/ ---------------*/
.ui.button:hover { .ui.button:hover,
.ui.active.button:hover {
opacity: 1 !important; opacity: 1 !important;
background-color: #A4A4A4; background-color: #A4A4A4;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1); text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
@ -127,7 +188,8 @@
/*-------------- /*--------------
Down Down
---------------*/ ---------------*/
.ui.button:active { .ui.button:active,
.ui.active.button:active {
opacity: 1 !important; opacity: 1 !important;
background-color: #8C8C8C; background-color: #8C8C8C;
color: #FFFFFF; color: #FFFFFF;
@ -136,24 +198,6 @@
-moz-box-shadow: 0px 1px 0.2em 0px rgba(0, 0, 0, 0.3) inset; -moz-box-shadow: 0px 1px 0.2em 0px rgba(0, 0, 0, 0.3) inset;
box-shadow: 0px 1px 0.2em 0px rgba(0, 0, 0, 0.3) inset; box-shadow: 0px 1px 0.2em 0px rgba(0, 0, 0, 0.3) inset;
} }
/*--------------
Active
---------------*/
.ui.buttons .active.button,
.ui.active.button {
opacity: 1 !important;
background-color: #B0B0B0;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(0, 0, 0, 0)), to(rgba(255, 255, 255, 0.1)));
background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: -moz-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: -o-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
color: #FFFFFF;
-webkit-box-shadow: 0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset;
-moz-box-shadow: 0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset;
box-shadow: 0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset;
}
/*-------------- /*--------------
Error Error
---------------*/ ---------------*/
@ -395,7 +439,7 @@
color: #999999 !important; color: #999999 !important;
font-weight: normal; font-weight: normal;
text-transform: none; text-transform: none;
text-shadow: none; text-shadow: none !important;
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
@ -408,16 +452,6 @@
-moz-border-radius: 0.2em; -moz-border-radius: 0.2em;
border-radius: 0.2em; border-radius: 0.2em;
} }
.ui.basic.buttons .button {
border: none !important;
border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.ui.basic.buttons .button:first-child {
border-left: none !important;
}
.ui.basic.buttons .button:hover, .ui.basic.buttons .button:hover,
.ui.basic.button:hover { .ui.basic.button:hover {
color: #7F7F7F !important; color: #7F7F7F !important;
@ -437,14 +471,32 @@
.ui.basic.button.active { .ui.basic.button.active {
background-color: rgba(0, 0, 0, 0.05); background-color: rgba(0, 0, 0, 0.05);
color: #7F7F7F; color: #7F7F7F;
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; -webkit-box-shadow: 0px 0px 0px 1px #BDBDBD inset;
-moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; -moz-box-shadow: 0px 0px 0px 1px #BDBDBD inset;
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; box-shadow: 0px 0px 0px 1px #BDBDBD inset;
} }
.ui.basic.buttons .button.active:hover, .ui.basic.buttons .button.active:hover,
.ui.basic.button.active:hover { .ui.basic.button.active:hover {
background-color: rgba(0, 0, 0, 0.1); background-color: rgba(0, 0, 0, 0.1);
} }
/* Basic Group */
.ui.basic.buttons .button {
border: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.ui.basic.buttons .button:hover,
.ui.basic.buttons .button:active {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.ui.basic.buttons .button.active {
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
}
/*-------------- /*--------------
Labeled Icon Labeled Icon
---------------*/ ---------------*/
@ -848,6 +900,25 @@
background-color: #D24B4C; background-color: #D24B4C;
color: #FFFFFF; color: #FFFFFF;
} }
/*--- Orange ---*/
.ui.orange.buttons .button,
.ui.orange.button {
background-color: #E96633;
color: #FFFFFF;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
}
.ui.orange.buttons .button:hover,
.ui.orange.button:hover,
.ui.orange.buttons .active.button,
.ui.orange.button.active {
background-color: #FF7038;
color: #FFFFFF;
}
.ui.orange.buttons .button:active,
.ui.orange.button:active {
background-color: #DA683B;
color: #FFFFFF;
}
/*--- Blue ---*/ /*--- Blue ---*/
.ui.blue.buttons .button, .ui.blue.buttons .button,
.ui.blue.button { .ui.blue.button {

4
build/uncompressed/elements/header.css

@ -21,7 +21,6 @@
font-weight: bold; font-weight: bold;
line-height: 1.33; line-height: 1.33;
} }
.ui.header .ui.sub.header,
.ui.header .sub.header { .ui.header .sub.header {
font-size: 1rem; font-size: 1rem;
font-weight: normal; font-weight: normal;
@ -216,6 +215,9 @@ h5.ui.header {
padding-bottom: 0.2rem; padding-bottom: 0.2rem;
border-bottom: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(0, 0, 0, 0.1);
} }
.ui.dividing.header .sub.header {
padding-bottom: 0.5em;
}
.ui.dividing.header .icon { .ui.dividing.header .icon {
margin-bottom: 0.2em; margin-bottom: 0.2em;
} }

12
build/uncompressed/elements/image.css

@ -56,9 +56,9 @@ img.ui.image {
.ui.circular.images img, .ui.circular.images img,
.ui.circular.image img, .ui.circular.image img,
.ui.circular.image { .ui.circular.image {
-webkit-border-radius: 500em; -webkit-border-radius: 500rem;
-moz-border-radius: 500em; -moz-border-radius: 500rem;
border-radius: 500em; border-radius: 500rem;
} }
/*-------------- /*--------------
Avatar Avatar
@ -71,9 +71,9 @@ img.ui.image {
display: inline-block; display: inline-block;
width: 2em; width: 2em;
height: 2em; height: 2em;
-webkit-border-radius: 500em; -webkit-border-radius: 500rem;
-moz-border-radius: 500em; -moz-border-radius: 500rem;
border-radius: 500em; border-radius: 500rem;
} }
/*------------------- /*-------------------
Floated Floated

7
build/uncompressed/elements/label.css

@ -559,10 +559,9 @@ a.ui.teal.label:hover:before {
padding: 0.5em !important; padding: 0.5em !important;
line-height: 1em; line-height: 1em;
text-align: center; text-align: center;
vertical-align: baseline; -webkit-border-radius: 500rem;
-webkit-border-radius: 500em; -moz-border-radius: 500rem;
-moz-border-radius: 500em; border-radius: 500rem;
border-radius: 500em;
} }
/*------------------- /*-------------------
Pointing Pointing

231
build/uncompressed/modules/checkbox.css

@ -58,10 +58,10 @@
} }
.ui.checkbox .box:after, .ui.checkbox .box:after,
.ui.checkbox label:after { .ui.checkbox label:after {
width: 0.5em; top: 0.3em;
height: 0.2em;
top: 0.25em;
left: 0.2em; left: 0.2em;
width: 0.45em;
height: 0.15em;
} }
/*--- Label ---*/ /*--- Label ---*/
.ui.checkbox + label { .ui.checkbox + label {
@ -132,6 +132,140 @@
-moz-border-radius: 500px; -moz-border-radius: 500px;
border-radius: 500px; border-radius: 500px;
} }
/*--------------
Slider
---------------*/
.ui.slider.checkbox {
width: 3em;
height: 2em;
}
/* Line */
.ui.slider.checkbox:after {
position: absolute;
top: 1em;
left: 0em;
content: '';
width: 100%;
height: 2px;
background-color: rgba(0, 0, 0, 0.1);
}
/* Button */
.ui.slider.checkbox .box,
.ui.slider.checkbox label {
cursor: pointer;
display: block;
position: absolute;
top: 0.25em;
left: 0;
z-index: 1;
width: 1.5em;
height: 1.5em;
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
border-radius: 50rem;
-webkit-transition: left 0.3s ease 0s;
-moz-transition: left 0.3s ease 0s;
-o-transition: left 0.3s ease 0s;
-ms-transition: left 0.3s ease 0s;
transition: left 0.3s ease 0s;
}
/* Button Activation Light */
.ui.slider.checkbox .box:after,
.ui.slider.checkbox label:after {
opacity: 1;
position: absolute;
content: '';
top: 0.375em;
left: 0.375em;
border: none;
width: 0.75em;
height: 0.75em;
background-color: #D95C5C;
border-radius: 50rem;
-webkit-transition: background 0.3s ease 0s;
-moz-transition: background 0.3s ease 0s;
-o-transition: background 0.3s ease 0s;
-ms-transition: background 0.3s ease 0s;
transition: background 0.3s ease 0s;
}
/* Active Slider Toggle */
.ui.slider.checkbox input:checked + .box,
.ui.slider.checkbox input:checked + label {
left: 1.75em;
}
.ui.slider.checkbox input:checked + .box:after,
.ui.slider.checkbox input:checked + label:after {
background-color: #89B84C;
}
/*--------------
Toggle
---------------*/
.ui.toggle.checkbox {
width: 3em;
height: 2em;
}
/* Line */
.ui.toggle.checkbox:after {
cursor: pointer;
display: block;
position: absolute;
content: '';
top: 0.25em;
left: 0em;
z-index: 1;
background-color: #FFFFFF;
width: 100%;
height: 1.5em;
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
border-radius: 50rem;
}
.ui.toggle.checkbox .box,
.ui.toggle.checkbox label {
position: absolute;
top: 0.65em;
left: 0.5em;
-webkit-transition: left 0.3s ease 0s;
-moz-transition: left 0.3s ease 0s;
-o-transition: left 0.3s ease 0s;
-ms-transition: left 0.3s ease 0s;
transition: left 0.3s ease 0s;
background-color: transparent;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
/* Button Activation Light */
.ui.toggle.checkbox .box:after,
.ui.toggle.checkbox label:after {
opacity: 1;
content: '';
position: absolute;
top: 0px;
left: 0px;
z-index: 2;
border: none;
width: 0.75em;
height: 0.75em;
background-color: #D95C5C;
border-radius: 50rem;
-webkit-transition: background 0.3s ease 0s;
-moz-transition: background 0.3s ease 0s;
-o-transition: background 0.3s ease 0s;
-ms-transition: background 0.3s ease 0s;
transition: background 0.3s ease 0s;
}
/* Active toggle Toggle */
.ui.toggle.checkbox input:checked + .box,
.ui.toggle.checkbox input:checked + label {
left: 1.75em;
}
.ui.toggle.checkbox input:checked + .box:after,
.ui.toggle.checkbox input:checked + label:after {
background-color: #89B84C;
}
/*-------------- /*--------------
Sizes Sizes
---------------*/ ---------------*/
@ -162,94 +296,3 @@
.ui.huge.checkbox label { .ui.huge.checkbox label {
font-size: 1.5em; font-size: 1.5em;
} }
/*--------------
Colors
---------------*/
.ui.round.blue.checkbox label:after {
background: -webkit-linear-gradient(top, #016286 0%, #00506e 100%);
background: -moz-linear-gradient(top, #016286 0%, #00506e 100%);
background: -o-linear-gradient(top, #016286 0%, #00506e 100%);
background: -ms-linear-gradient(top, #016286 0%, #00506e 100%);
background: linear-gradient(top, #016286 0%, #00506e 100%);
}
/*--------------
Rounded
---------------*/
/* Alternate Round Style */
.ui.round.checkbox {
width: 20px;
height: 20px;
margin: 0px auto;
background: #FCFFF4;
background: -webkit-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
background: -moz-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
background: -o-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
background: -ms-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
background: linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FCFFF4', endColorstr='#b3bead', GradientType=0);
-webkit-border-radius: 500px;
-moz-border-radius: 500px;
border-radius: 500px;
-webkit-box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
-moz-box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
position: relative;
}
.ui.round.checkbox .box,
.ui.round.checkbox label {
cursor: pointer;
position: absolute;
width: 14px;
height: 14px;
-webkit-border-radius: 500px;
-moz-border-radius: 500px;
border-radius: 500px;
left: 3px;
top: 3px;
-webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5) inset, 0px 1px 0px #ffffff;
-moz-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5) inset, 0px 1px 0px #ffffff;
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5) inset, 0px 1px 0px #ffffff;
background: -webkit-linear-gradient(top, #222222 0%, #4d4d4d 100%);
background: -moz-linear-gradient(top, #222222 0%, #4d4d4d 100%);
background: -o-linear-gradient(top, #222222 0%, #4d4d4d 100%);
background: -ms-linear-gradient(top, #222222 0%, #4d4d4d 100%);
background: linear-gradient(top, #222222 0%, #4d4d4d 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#222222', endColorstr='#4D4D4D', GradientType=0);
}
.ui.round.checkbox .box:after,
.ui.round.checkbox label:after {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: alpha(opacity=0);
opacity: 0;
content: '';
position: absolute;
width: 10px;
height: 10px;
background: #B6B6B6;
background: -webkit-linear-gradient(top, #b6b6b6 0%, #929292 100%);
background: -moz-linear-gradient(top, #b6b6b6 0%, #929292 100%);
background: -o-linear-gradient(top, #b6b6b6 0%, #929292 100%);
background: -ms-linear-gradient(top, #b6b6b6 0%, #929292 100%);
background: linear-gradient(top, #b6b6b6 0%, #929292 100%);
border: none;
-webkit-border-radius: 500px;
-moz-border-radius: 500px;
border-radius: 500px;
top: 2px;
left: 2px;
-webkit-box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
-moz-box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
}
.ui.round.checkbox .box:hover:after,
.ui.round.checkbox label:hover:after {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
filter: alpha(opacity=30);
opacity: 0.3;
}
.ui.round.checkbox input:checked + .box:after,
.ui.round.checkbox input:checked + label:after {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter: alpha(opacity=100);
opacity: 1;
}

16
build/uncompressed/modules/dimmer.css

@ -16,6 +16,7 @@
position: relative; position: relative;
} }
.ui.dimmer { .ui.dimmer {
display: none;
position: absolute; position: absolute;
top: 0em !important; top: 0em !important;
left: 0em !important; left: 0em !important;
@ -52,7 +53,7 @@
z-index: 1000; z-index: 1000;
} }
/* /*
.ui.dimmable.dimmed > :not(.dimmer) { .ui.dimmed.dimmable > :not(.dimmer) {
-webkit-transition: -webkit-transition:
filter 0.5s ease filter 0.5s ease
; ;
@ -99,12 +100,13 @@
/******************************* /*******************************
States States
*******************************/ *******************************/
.ui.dimmable.dimmed > :not(.dimmer) { .ui.dimmed.dimmable > :not(.dimmer) {
-webkit-filter: blur(5px) grayscale(0.7); -webkit-filter: blur(5px) grayscale(0.7);
-moz-filter: blur(5px) grayscale(0.7); -moz-filter: blur(5px) grayscale(0.7);
} }
.ui.dimmable.dimmed > .ui.dimmer, .ui.dimmed.dimmable > .ui.dimmer,
.ui.dimmer.active { .ui.active.dimmer {
display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;
opacity: 1; opacity: 1;
@ -131,7 +133,7 @@
transform-origin: top center; transform-origin: top center;
} }
/* /*
body.ui.dimmable.dimmed > :not(.dimmer){ body.ui.dimmed.dimmable > :not(.dimmer){
-webkit-filter: ~"blur(15px) grayscale(0.7)"; -webkit-filter: ~"blur(15px) grayscale(0.7)";
-moz-filter: ~"blur(15px) grayscale(0.7)"; -moz-filter: ~"blur(15px) grayscale(0.7)";
} }
@ -165,7 +167,7 @@ body.ui.dimmable.dimmed > :not(.dimmer){
z-index: -100; z-index: -100;
background-color: rgba(0, 0, 0, 0); background-color: rgba(0, 0, 0, 0);
} }
.ui.dimmable.dimmed > .ui.simple.dimmer { .ui.dimmed.dimmable > .ui.simple.dimmer {
overflow: visible; overflow: visible;
opacity: 1; opacity: 1;
width: 100%; width: 100%;
@ -176,6 +178,6 @@ body.ui.dimmable.dimmed > :not(.dimmer){
.ui.simple.inverted.dimmer { .ui.simple.inverted.dimmer {
background-color: rgba(255, 255, 255, 0); background-color: rgba(255, 255, 255, 0);
} }
.ui.dimmable.dimmed > .ui.simple.inverted.dimmer { .ui.dimmed.dimmable > .ui.simple.inverted.dimmer {
background-color: rgba(255, 255, 255, 0.85); background-color: rgba(255, 255, 255, 0.85);
} }

7
build/uncompressed/modules/reveal.css

@ -13,8 +13,13 @@
Reveal Reveal
*******************************/ *******************************/
.ui.reveal { .ui.reveal {
display: inline-block;
position: relative !important; position: relative !important;
z-index: 2 !important; z-index: 2 !important;
font-size: 0em !important;
}
.ui.reveal > .content {
font-size: 1em !important;
} }
.ui.reveal > .visible.content { .ui.reveal > .visible.content {
-webkit-transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1) 0.15s; -webkit-transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1) 0.15s;
@ -26,8 +31,6 @@
position: absolute !important; position: absolute !important;
top: 0em !important; top: 0em !important;
left: 0em !important; left: 0em !important;
width: 100% !important;
height: 100% !important;
z-index: 4 !important; z-index: 4 !important;
-webkit-transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1) 0.15s; -webkit-transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1) 0.15s;
-moz-transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1) 0.15s; -moz-transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1) 0.15s;

6
build/uncompressed/modules/search.css

@ -19,9 +19,9 @@
font-weight: normal; font-weight: normal;
} }
.ui.search input { .ui.search input {
-webkit-border-radius: 500em; -webkit-border-radius: 500rem;
-moz-border-radius: 500em; -moz-border-radius: 500rem;
border-radius: 500em; border-radius: 500rem;
} }
/*-------------- /*--------------
Button Button

29
build/uncompressed/modules/star.css

@ -1,15 +1,14 @@
/******************************* /*******************************
Star Rating Star Rating
*******************************/ *******************************/
.star.module { .ui.rating.module {
min-width: 88px; min-width: 88px;
height: 42px; height: 42px;
unicode-bidi: bidi-override; unicode-bidi: bidi-override;
direction: rtl; direction: rtl;
font-size: 26px; font-size: 26px;
} }
.star.module i, .ui.rating.module .icon {
.ui.star {
cursor: default; cursor: default;
float: left; float: left;
padding: 2px 1px; padding: 2px 1px;
@ -19,8 +18,7 @@
color: transparent; color: transparent;
} }
/* Non Selected Star */ /* Non Selected Star */
.star.module i:after, .ui.rating.module .icon:after {
.ui.star:after {
content: "\2605"; content: "\2605";
color: #8C8C8C; color: #8C8C8C;
-webkit-transition: all 0.25s; -webkit-transition: all 0.25s;
@ -29,24 +27,23 @@
-ms-transition: all 0.25s; -ms-transition: all 0.25s;
transition: all 0.25s; transition: all 0.25s;
} }
/*-------------- /*******************************
States States
---------------*/ *******************************/
/* Initialized is now clickable */ /* Icons are clickable */
.star.module.initialize, .ui.active.rating.module .icon {
.star.module.initialize i {
cursor: pointer; cursor: pointer;
} }
/* Current Star Rating */ /* Current Star Rating */
.star.module i.active:after { .ui.rating.module .active.icon:after {
color: #FFCB08; color: #FFCB08;
} }
.star.module.hover i.active:after { /* Hover */
.ui.rating.module.hover .active.icon:after {
opacity: 0.5; opacity: 0.5;
} }
/* Hover */ .ui.rating.module .icon.hover:after,
.star.module i.hover:after, .ui.rating.module .icon.hover.active:after {
.star.module i.hover.active:after {
opacity: 1; opacity: 1;
color: #FFB70A; color: #FFB70A;
text-shadow: 0px 0px 7px #FFCB08; text-shadow: 0px 0px 7px #FFCB08;

64
build/uncompressed/modules/star.js

@ -8,12 +8,12 @@
;(function ($, window, document, undefined) { ;(function ($, window, document, undefined) {
$.fn.starReview = function(parameters) { $.fn.rating = function(parameters) {
var var
$allModules = $(this), $allModules = $(this),
moduleSelector = $allModules.selector || '', moduleSelector = $allModules.selector || '',
settings = $.extend(true, {}, $.fn.starReview.settings, parameters), settings = $.extend(true, {}, $.fn.rating.settings, parameters),
namespace = settings.namespace, namespace = settings.namespace,
className = settings.className, className = settings.className,
@ -35,7 +35,7 @@ $.fn.starReview = function(parameters) {
.each(function() { .each(function() {
var var
$module = $(this), $module = $(this),
$star = $module.find(selector.star), $icon = $module.find(selector.icon),
element = this, element = this,
instance = $module.data(moduleNamespace), instance = $module.data(moduleNamespace),
@ -46,23 +46,14 @@ $.fn.starReview = function(parameters) {
initialize: function() { initialize: function() {
if(settings.rateable) { if(settings.rateable) {
// expandable with states $icon
if($.fn.state !== undefined) {
$module
.state()
;
$star
.state()
;
}
$star
.bind('mouseenter' + eventNamespace, module.event.mouseenter) .bind('mouseenter' + eventNamespace, module.event.mouseenter)
.bind('mouseleave' + eventNamespace, module.event.mouseleave) .bind('mouseleave' + eventNamespace, module.event.mouseleave)
.bind('click' + eventNamespace, module.event.click) .bind('click' + eventNamespace, module.event.click)
; ;
} }
$module $module
.addClass(className.initialize) .addClass(className.active)
; ;
module.instantiate(); module.instantiate();
}, },
@ -73,21 +64,30 @@ $.fn.starReview = function(parameters) {
; ;
}, },
destroy: function() {
$module
.removeData(moduleNamespace)
;
$icon
.off(eventNamespace)
;
},
setRating: function(rating) { setRating: function(rating) {
var var
$activeStar = $star.eq(rating - 1) $activeIcon = $icon.eq(rating - 1)
; ;
$module $module
.removeClass(className.hover) .removeClass(className.hover)
; ;
$star $icon
.removeClass(className.hover) .removeClass(className.hover)
; ;
$activeStar $activeIcon
.nextAll() .nextAll()
.removeClass(className.active) .removeClass(className.active)
; ;
$activeStar $activeIcon
.addClass(className.active) .addClass(className.active)
.prevAll() .prevAll()
.addClass(className.active) .addClass(className.active)
@ -98,31 +98,31 @@ $.fn.starReview = function(parameters) {
event: { event: {
mouseenter: function() { mouseenter: function() {
var var
$activeStar = $(this) $activeIcon = $(this)
; ;
$activeStar $activeIcon
.nextAll() .nextAll()
.removeClass(className.hover) .removeClass(className.hover)
; ;
$module $module
.addClass(className.hover) .addClass(className.hover)
; ;
$activeStar $activeIcon
.addClass(className.hover) .addClass(className.hover)
.prevAll() .prevAll()
.addClass(className.hover) .addClass(className.hover)
; ;
}, },
mouseleave: function() { mouseleave: function() {
$star $icon
.removeClass(className.hover) .removeClass(className.hover)
; ;
}, },
click: function() { click: function() {
var var
$activeStar = $(this) $activeIcon = $(this)
; ;
module.setRating( $star.index($activeStar) + 1); module.setRating( $icon.index($activeIcon) + 1);
} }
}, },
setting: function(name, value) { setting: function(name, value) {
@ -307,28 +307,26 @@ $.fn.starReview = function(parameters) {
; ;
}; };
$.fn.starReview.settings = { $.fn.rating.settings = {
name : 'Star', name : 'Star',
namespace : 'star', namespace : 'icon',
rateable : true, rateable : true,
onRate : function(){}, onRate : function(){},
error: { error: {
method : 'The method you called is not defined' method : 'The method you called is not defined'
}, },
className : { className : {
initialize : 'initialize',
loading : 'loading',
active : 'active', active : 'active',
hover : 'hover', hover : 'hover',
down : 'down' loading : 'loading'
}, },
selector : { selector : {
star : 'i' icon : '.icon'
} }
}; };

3
build/uncompressed/views/feed.css

@ -100,6 +100,9 @@
/******************************* /*******************************
Variations Variations
*******************************/ *******************************/
.ui.small.feed {
font-size: 0.875em;
}
.ui.small.feed .label img { .ui.small.feed .label img {
width: 2.5em; width: 2.5em;
} }

10
build/uncompressed/views/list.css

@ -23,7 +23,7 @@ ul.ui.list ul,
ol.ui.list ol, ol.ui.list ol,
.ui.list .list { .ui.list .list {
margin: 0em; margin: 0em;
padding: 0.5em 0em 0.5em 0.5em; padding: 0.5em 0em 0.5em 1em;
} }
ul.ui.list:first-child, ul.ui.list:first-child,
ol.ui.list:first-child, ol.ui.list:first-child,
@ -173,7 +173,7 @@ ul.ui.list li:before,
.ui.bulleted.list .item:before { .ui.bulleted.list .item:before {
position: absolute; position: absolute;
left: -1em; left: -1em;
content: '·'; content: '';
line-height: 1.2rem; line-height: 1.2rem;
vertical-align: top; vertical-align: top;
} }
@ -229,10 +229,10 @@ ol.ui.list li:before,
ol.ui.list ol, ol.ui.list ol,
.ui.ordered.list .list { .ui.ordered.list .list {
counter-reset: ordered; counter-reset: ordered;
padding-left: 2em; padding-left: 3em;
} }
ol.ui.list ol ol li:before, ol.ui.list ol li:before,
.ui.ordered.list .list .list .item:before { .ui.ordered.list .list .item:before {
left: -2.5em; left: -2.5em;
} }
/* Horizontal Ordered */ /* Horizontal Ordered */

2
node/package.json

@ -4,7 +4,7 @@
"version": 0.1 "version": 0.1
}, },
"dependencies": { "dependencies": {
"docpad": "~6.51.6", "docpad": "~6.52.1",
"docpad-plugin-eco": "~2.0.2", "docpad-plugin-eco": "~2.0.2",
"docpad-plugin-ghpages": "~2.3.0" "docpad-plugin-ghpages": "~2.3.0"
}, },

81
node/src/documents/collections/form.html

@ -12,7 +12,7 @@ type : 'UI Collection'
<h1 class="ui dividing header">Form</h1> <h1 class="ui dividing header">Form</h1>
<p>A form is a collection of user input elements</p> <p>A form is a collection of user input elements</p>
<div class="warning ui message"> <div class="warning ui message">
<b>Looking for form validation?</b> <b>Looking for form validation?</b>
Form input can be validated using the <a href="/modules/form.html">form behavior definition</a> Form input can be validated using the <a href="/modules/form.html">form behavior definition</a>
</div> </div>
</div> </div>
@ -27,10 +27,10 @@ type : 'UI Collection'
</div> </div>
</div> </div>
<h2 class="ui dividing header">Types</h2> <h2 class="ui dividing header">Types</h2>
<div class="example"> <div class="example">
<h4 class="ui header">Form:</h4> <h4 class="ui header">Form:</h4>
<p> <p>
Forms always include fields, and fields always contain form elements. Fields themselves may also include: Forms always include fields, and fields always contain form elements. Fields themselves may also include:
<a href="/elements/input.html">ui inputs</a>, standard form fields, <a href="/elements/labels.html">ui labels</a>, textareas, as well as: <a href="/elements/input.html">ui inputs</a>, standard form fields, <a href="/elements/labels.html">ui labels</a>, textareas, as well as:
<a href="/modules/checkbox.html">checkboxes</a>, and <a href="/elements/message.html">message blocks</a>. <a href="/modules/checkbox.html">checkboxes</a>, and <a href="/elements/message.html">message blocks</a>.
@ -79,7 +79,7 @@ type : 'UI Collection'
</div> </div>
</div> </div>
</div> </div>
<div class="example"> <div class="example">
<h4 class="ui header">Text Area</h4> <h4 class="ui header">Text Area</h4>
<p>A textarea uses the default form element</p> <p>A textarea uses the default form element</p>
@ -90,7 +90,7 @@ type : 'UI Collection'
</div> </div>
</div> </div>
</div> </div>
<div class="example"> <div class="example">
<h4 class="ui header">Checkbox</h4> <h4 class="ui header">Checkbox</h4>
<p><a href="modules/checkbox.html">UI Checkboxes</a> are styled forms of standard form checkboxes.</p> <p><a href="modules/checkbox.html">UI Checkboxes</a> are styled forms of standard form checkboxes.</p>
@ -100,18 +100,25 @@ type : 'UI Collection'
<input type="checkbox" id="uniqueid" /> <input type="checkbox" id="uniqueid" />
<label for="uniqueid"></label> <label for="uniqueid"></label>
</div> </div>
<label>Static Checkbox</label> <label>Checkbox</label>
</div> </div>
<div class="inline field"> <div class="inline field">
<div class="ui checkbox"> <div class="ui slider checkbox">
<input type="checkbox"/>
<label></label>
</div>
<label>Slider</label>
</div>
<div class="inline field">
<div class="ui toggle checkbox">
<input type="checkbox"/> <input type="checkbox"/>
<label></label> <label></label>
</div> </div>
<label>JS Checkbox</label> <label>Toggle</label>
</div> </div>
</div> </div>
</div> </div>
<div class="example"> <div class="example">
<h4 class="ui header">Radio Box</h4> <h4 class="ui header">Radio Box</h4>
<p>Radio boxes are styled forms of standard form radio controls.</p> <p>Radio boxes are styled forms of standard form radio controls.</p>
@ -155,7 +162,7 @@ type : 'UI Collection'
</div> </div>
</div> </div>
</div> </div>
<div class="example"> <div class="example">
<h4 class="ui header">Text Block</h4> <h4 class="ui header">Text Block</h4>
<p>Text blocks have special meaning inside a form tag. Any info, error, or warning message blocks found inside a form are hidden by default.</p> <p>Text blocks have special meaning inside a form tag. Any info, error, or warning message blocks found inside a form are hidden by default.</p>
@ -173,11 +180,11 @@ type : 'UI Collection'
<h2 class="ui dividing header">States</h2> <h2 class="ui dividing header">States</h2>
<h3 class="ui header">Form</h3> <h3 class="ui header">Form</h3>
<div class="example"> <div class="example">
<h4 class="ui header">Loading</h4> <h4 class="ui header">Loading</h4>
<p>If a form is in loading state, it will automatically show a loading indicator:</p> <p>If a form is in loading state, it will automatically show a loading indicator:</p>
<div class="ui loading form segment"> <div class="ui loading form segment">
<div class="two fields"> <div class="two fields">
<div class="field"> <div class="field">
@ -207,7 +214,7 @@ type : 'UI Collection'
<div class="ui blue submit button">Submit</div> <div class="ui blue submit button">Submit</div>
</div> </div>
</div> </div>
<div class="example"> <div class="example">
<h4 class="ui header">Error</h4> <h4 class="ui header">Error</h4>
<p>If a form is in an error state, it will automatically show any error message blocks:</p> <p>If a form is in an error state, it will automatically show any error message blocks:</p>
@ -244,11 +251,11 @@ type : 'UI Collection'
<div class="ui blue submit button">Submit</div> <div class="ui blue submit button">Submit</div>
</div> </div>
</div> </div>
<div class="example"> <div class="example">
<h4 class="ui header">Warning</h4> <h4 class="ui header">Warning</h4>
<p>If a form is in warning state, it will automatically show any warning message block:</p> <p>If a form is in warning state, it will automatically show any warning message block:</p>
<div class="ui warning form segment"> <div class="ui warning form segment">
<div class="ui warning message"> <div class="ui warning message">
<div class="header">Could you check something!</div> <div class="header">Could you check something!</div>
@ -287,13 +294,13 @@ type : 'UI Collection'
<div class="ui blue submit button">Submit</div> <div class="ui blue submit button">Submit</div>
</div> </div>
</div> </div>
<h3 class="ui header">Form Fields</h3> <h3 class="ui header">Form Fields</h3>
<div class="example"> <div class="example">
<h4 class="ui header">Error</h4> <h4 class="ui header">Error</h4>
<p>Individual fields may contain an error state</p> <p>Individual fields may contain an error state</p>
<div class="ui form segment"> <div class="ui form segment">
<div class="two fields"> <div class="two fields">
<div class="field error"> <div class="field error">
@ -307,11 +314,11 @@ type : 'UI Collection'
</div> </div>
</div> </div>
</div> </div>
<div class="example"> <div class="example">
<h4 class="ui header">Disabled</h4> <h4 class="ui header">Disabled</h4>
<p>Individual fields may be disabled or read only</p> <p>Individual fields may be disabled or read only</p>
<div class="ui form segment"> <div class="ui form segment">
<div class="two fields"> <div class="two fields">
<div class="field"> <div class="field">
@ -327,7 +334,7 @@ type : 'UI Collection'
</div> </div>
<h2 class="ui dividing header">Variations</h2> <h2 class="ui dividing header">Variations</h2>
<h3 class="ui header">Forms</h3> <h3 class="ui header">Forms</h3>
<div class="example"> <div class="example">
@ -347,7 +354,7 @@ type : 'UI Collection'
<div class="ui blue submit button">Submit</div> <div class="ui blue submit button">Submit</div>
</div> </div>
</div> </div>
<div class="example"> <div class="example">
<h4 class="ui header">Size</h4> <h4 class="ui header">Size</h4>
<p>A form can also be small or large</p> <p>A form can also be small or large</p>
@ -379,11 +386,11 @@ type : 'UI Collection'
<div class="ui blue submit button">Submit</div> <div class="ui blue submit button">Submit</div>
</div> </div>
</div> </div>
<div class="example"> <div class="example">
<h4 class="ui header">Inverted</h4> <h4 class="ui header">Inverted</h4>
<p>A form on a dark background may have to invert its color scheme</p> <p>A form on a dark background may have to invert its color scheme</p>
<div style="background-color: #333333; padding: 15px;"> <div style="background-color: #333333; padding: 15px;">
<div class="ui inverted form"> <div class="ui inverted form">
<div class="ui info message"> <div class="ui info message">
@ -407,10 +414,10 @@ type : 'UI Collection'
</div> </div>
</div> </div>
</div> </div>
<h3 class="ui header">Fields</h3> <h3 class="ui header">Fields</h3>
<div class="example"> <div class="example">
<h4 class="ui header">Inline</h4> <h4 class="ui header">Inline</h4>
<p>A field can have its label next to instead of above it.</p> <p>A field can have its label next to instead of above it.</p>
@ -421,7 +428,7 @@ type : 'UI Collection'
</div> </div>
</div> </div>
</div> </div>
<div class="example"> <div class="example">
<h4 class="ui header">Date</h4> <h4 class="ui header">Date</h4>
<p>A field can let users know they are for dates</p> <p>A field can let users know they are for dates</p>
@ -432,10 +439,10 @@ type : 'UI Collection'
</div> </div>
</div> </div>
</div> </div>
<h2 class="ui dividing header">Groups</h2> <h2 class="ui dividing header">Groups</h2>
<div class="example"> <div class="example">
<h4 class="ui header">Fields</h4> <h4 class="ui header">Fields</h4>
<p>Fields can exist together side by side</p> <p>Fields can exist together side by side</p>
@ -456,7 +463,7 @@ type : 'UI Collection'
</div> </div>
</div> </div>
</div> </div>
<div class="example"> <div class="example">
<h4 class="ui header">Grouped Fields</h4> <h4 class="ui header">Grouped Fields</h4>
<p>Fields can be grouped to show related choices</p> <p>Fields can be grouped to show related choices</p>
@ -467,28 +474,28 @@ type : 'UI Collection'
<input type="radio" name="fruit" /> <input type="radio" name="fruit" />
<label></label> <label></label>
</div> </div>
<label> Apples</label> <label> Apples</label>
</div> </div>
<div class="field"> <div class="field">
<div class="ui radio checkbox"> <div class="ui radio checkbox">
<input type="radio" name="fruit" /> <input type="radio" name="fruit" />
<label></label> <label></label>
</div> </div>
<label> Oranges</label> <label> Oranges</label>
</div> </div>
<div class="field"> <div class="field">
<div class="ui radio checkbox"> <div class="ui radio checkbox">
<input type="radio" name="fruit" /> <input type="radio" name="fruit" />
<label></label> <label></label>
</div> </div>
<label> Pears</label> <label> Pears</label>
</div> </div>
<div class="field"> <div class="field">
<div class="ui radio checkbox"> <div class="ui radio checkbox">
<input type="radio" name="fruit" /> <input type="radio" name="fruit" />
<label></label> <label></label>
</div> </div>
<label> Grapefruit</label> <label> Grapefruit</label>
</div> </div>
</div> </div>
</div> </div>
@ -512,5 +519,5 @@ type : 'UI Collection'
</div> </div>
</div> </div>
</div> </div>
</div> </div>

25
node/src/documents/elements/button.html

@ -55,6 +55,22 @@ type : 'UI Element'
</div> </div>
</div> </div>
<div class="example">
<h4 class="ui header">Primary</h4>
<p>A button can be formatted to greatly emphasize interaction with a particular button</p>
<div class="ui primary button">
Add to Cart
</div>
</div>
<div class="example">
<h4 class="ui header">Secondary</h4>
<p>A button can be formatted to show slightly emphasis a particular button</p>
<div class="ui secondary button">
Save
</div>
</div>
<div class="example"> <div class="example">
<h4 class="ui header">Social</h4> <h4 class="ui header">Social</h4>
<p>A button can be formatted to link to a social website</p> <p>A button can be formatted to link to a social website</p>
@ -189,7 +205,7 @@ type : 'UI Element'
<i class="icon user"></i> <i class="icon user"></i>
Add Friend Add Friend
</div> </div>
<div class="ui basic teal button"> <div class="ui basic button">
<i class="icon desk globe"></i> <i class="icon desk globe"></i>
Change Language Change Language
</div> </div>
@ -204,6 +220,7 @@ type : 'UI Element'
<a class="ui blue button">Blue Button</a> <a class="ui blue button">Blue Button</a>
<a class="ui purple button">Purple Button</a> <a class="ui purple button">Purple Button</a>
<a class="ui teal button">Teal Button</a> <a class="ui teal button">Teal Button</a>
<a class="ui orange button">Orange Button</a>
</div> </div>
<div class="example"> <div class="example">
@ -253,10 +270,6 @@ type : 'UI Element'
<h3 class="ui dividing header">Group Variations</h3> <h3 class="ui dividing header">Group Variations</h3>
<p>Singular variations can be applied to groups to infer all elements share the same quality</p>
<div class="example"> <div class="example">
<h4 class="ui header">Vertical</h4> <h4 class="ui header">Vertical</h4>
<p>Groups can be formatted to appear vertically</p> <p>Groups can be formatted to appear vertically</p>
@ -326,7 +339,7 @@ type : 'UI Element'
<div class="example"> <div class="example">
<h4 class="ui header">Basic</h4> <h4 class="ui header">Basic</h4>
<p>A button group can be formatted to remove extra formatting</p> <p>A button group can be formatted to remove extra formatting</p>
<div class="ui red tertiary buttons"> <div class="ui basic buttons">
<div class="ui button">One</div> <div class="ui button">One</div>
<div class="ui button">Two</div> <div class="ui button">Two</div>
<div class="ui button">Three</div> <div class="ui button">Three</div>

2
node/src/documents/elements/label.html

@ -52,7 +52,7 @@ type : 'UI Element'
<div class="example"> <div class="example">
<h4 class="ui header">Image</h4> <h4 class="ui header">Image</h4>
<p>A tag can optionally display a detail</p> <p>A tag can optionally display an image</p>
<a class="ui image label"> <a class="ui image label">
<img src="/images/demo/photo2.jpg"> <img src="/images/demo/photo2.jpg">
dog@doggington.com dog@doggington.com

36
node/src/documents/guide/cssguide.html

@ -97,6 +97,38 @@ type : 'UI Guide'
} }
</div> </div>
<h4 class="ui header">Multiple Highlight Colors</h4>
<p>It's fairly commonly known that you can set text selection colors in css for a page, but its less commonly known that you can use multiple highlight colors in a single page.</p>
<div class="code" data-type="css">
/* text selected turns highlighted yellow */
::-webkit-selection {
background-color: #FFFFCC;
color: #555555;
}
::-moz-selection {
background-color: #FFFFCC;
color: #555555;
}
::selection {
background-color: #FFFFCC;
color: #555555;
}
/* headers selected turn red */
h1::-moz-selection,
h2::-moz-selection,
h3::-moz-selection {
background-color: #F1C1C2;
color: #222222;
}
h1::selection,
h2::selection,
h3::selection {
background-color: #F1C1C2;
color: #222222;
}
</div>
<h4 class="ui header">Shading Borders</h4> <h4 class="ui header">Shading Borders</h4>
<p>When you have colored content that needs a border to match its current color, try using a 1 pixel inset box shadow with an RGBA value.</p> <p>When you have colored content that needs a border to match its current color, try using a 1 pixel inset box shadow with an RGBA value.</p>
@ -356,9 +388,9 @@ type : 'UI Guide'
} }
</div> </div>
<h4 class="ui header">No wrappers, no excess markup</h4> <h4 class="ui header">Avoid non-semantic tags, make wrappers groups</h4>
<p>UI elements should be designed to include the minimum footprint of an element. If extra styling is needed, consider using pseudo selectors :after and :before. This allows for the creation of two extra divs inside each div context which can almost always be enough to accomodate extra styling.</p> <p>UI elements should be designed to include the minimum footprint of an element. If extra styling is needed, consider using pseudo selectors :after and :before. This allows for the creation of two extra divs inside each div context which can almost always be enough to accomodate extra styling.</p>
<p>If there is no other option than wrapping content in a containing HTML element, consider using a name that describes the content instead of the word wrapper or container.</p> <p>If there is no other option than wrapping content in a containing HTML element, consider using a singular/plural relationship by having the wrapper describe its contents instead of an arbitrary class name like <code>wrapper</code></p>
<div class="code" data-type="css"> <div class="code" data-type="css">
/* not tops */ /* not tops */
.ui.message .wrapper .title, .ui.message .wrapper .title,

2
node/src/documents/index.html.eco

@ -15,7 +15,7 @@ type : 'Semantic'
<div class="column"> <div class="column">
<h1 class="ui header">Semantic UI</h1> <h1 class="ui header">Semantic UI</h1>
<h2 class="ui header">UI is the vocabulary of the web.</h2> <h2 class="ui header">UI is the vocabulary of the web.</h2>
<p>Semantic empowers designers and developers by creating a shared language for user interfaces.</p> <p>Semantic empowers designers and developers by creating a language for sharing UI.</p>
<a class="ui black huge labeled launch icon button"><i class="icon list layout"></i> View UI</a> <a class="ui black huge labeled launch icon button"><i class="icon list layout"></i> View UI</a>
<a class="ui red huge right labeled icon button" href="introduction.html" class="ui button">Get Started <i class="icon right arrow"></i> </a> <a class="ui red huge right labeled icon button" href="introduction.html" class="ui button">Get Started <i class="icon right arrow"></i> </a>
</div> </div>

42
node/src/documents/introduction/definitions.html

@ -23,27 +23,27 @@ type : 'UI Introduction'
<a class="item">Authoring</a> <a class="item">Authoring</a>
</div> </div>
</div> </div>
<h2 class="ui dividing header">Defining Definitions</h2> <h2 class="ui dividing header">Defining Definitions</h2>
<p>Definitions in semantic are groups of css, fonts, images, and javascript which make up a single element. Unlike other javascript libraries, semantic UI elements are stand-alone and only require their own assets to function correctly.</p> <p>Definitions in semantic are groups of css, fonts, images, and javascript which make up a single element. Unlike other javascript libraries, semantic UI elements are stand-alone and only require their own assets to function correctly.</p>
<p>CSS Definitions avoid conflicts with other elements by descending rules from a common ui namespace. UI namespaces should use a single word class name that represents its function descriptively on a web site. For example, a button will be namespaced in html using the class name "ui button".</p> <p>CSS Definitions avoid conflicts with other elements by descending rules from a common ui namespace. UI namespaces should use a single word class name that represents its function descriptively on a web site. For example, a button will be namespaced in html using the class name "ui button".</p>
<h3>Definition Types</h3> <h3 class="ui header">Definition Types</h3>
<p>Semantic has five different ui definitions. These are useful patterns for describing re-usable parts of a website.</p> <p>Semantic has five different ui definitions. These are useful patterns for describing re-usable parts of a website.</p>
<table class="ui celled table"> <table class="ui celled table segment">
<tr> <tr>
<td class="two wide"><b>Element</b></td> <td class="two wide"><b>Element</b></td>
<td> a basic building block of a website, exists alone or in homogenous groups</td> <td> a basic building block of a website, exists alone or in homogenous groups</td>
</tr> </tr>
<tr> <tr>
<td><b>Collection</b></td> <td><b>Collection</b></td>
<td> a heterogeneous group of several elements which are usually found together</td> <td>a heterogeneous group of several elements which can usually be found together. often pairs with individual elements</td>
</tr> </tr>
<tr> <tr>
<td><b>View</b></td> <td><b>View</b></td>
<td> a way to present common website content</td> <td> a way to present common website content like comments, activity feeds</td>
</tr> </tr>
<tr> <tr>
<td><b>Module</b></td> <td><b>Module</b></td>
@ -60,7 +60,7 @@ type : 'UI Introduction'
<p>UI Elements are page elements which are indivisible. This can be thought of as similar in definition as an "element" in chemistry.</p> <p>UI Elements are page elements which are indivisible. This can be thought of as similar in definition as an "element" in chemistry.</p>
<p>UI elements can have plural definitions when they are known to exist together in groups. Plural variations allow you to only specify qualities once, allowing them to be inferred across all members of a group.</p> <p>UI elements can have plural definitions when they are known to exist together in groups. Plural variations allow you to only specify qualities once, allowing them to be inferred across all members of a group.</p>
<div class="code" data-type="html" data-label="true"> <div class="code" data-type="html" data-label="true">
<div class="large ui buttons"> <div class="large ui buttons">
<div class="ui button">Cancel</div> <div class="ui button">Cancel</div>
@ -68,12 +68,12 @@ type : 'UI Introduction'
</div> </div>
</div> </div>
Examples of UI elements: <h3 class="ui header">Examples of UI elements:</h3>
<table class="ui celled table"> <table class="ui celled table">
<tr> <tr>
<td class="two wide"><b>Button</b></td> <td class="two wide"><b>Button</b></td>
<td> <td>
<div class="ui button">Button</div> <div class="ui labeled teal icon button"><i class="globe icon"></i>Button</div>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -85,32 +85,33 @@ type : 'UI Introduction'
<tr> <tr>
<td><b>Input</b></td> <td><b>Input</b></td>
<td> <td>
<div class="ui input"> <div class="ui icon input">
<input value="input"> <input value="input">
<i class="search icon"></i>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><b>Loader</b></td> <td><b>Loader</b></td>
<td> <td>
<div class="ui active inline loader"></div> <div class="ui active inline loader"></div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><b>Segment</b></td> <td><b>Segment</b></td>
<td> <td>
<div class="ui segment">Segment</div> <div class="ui stacked segment">Segment</div>
</td> </td>
</tr> </tr>
</table> </table>
<h2 class="ui dividing header">UI Collections</h2> <h2 class="ui dividing header">UI Collections</h2>
<p>UI Collections are groups of heteregeneous page elements which are usually found together. Carrying the chemistry metaphor, these can be thought of as molecules.</p> <p>UI Collections are groups of heteregeneous page elements which are usually found together. Carrying the chemistry metaphor, these can be thought of as molecules.</p>
<p>UI collections have a definition of elements that exist, or could exist inside of them. They do not usually require all elements to be found, but they describe a list of the "usual suspects". Unlike elements definitions, collections are not typically useful to define in plural.</p> <p>UI collections have a definition of elements that exist, or could exist inside of them. They do not usually require all elements to be found, but they describe a list of the "usual suspects". Unlike elements definitions, collections are not typically useful to define in plural.</p>
<p>Examples of UI collections:</p> <h3 class="ui header">Examples of UI collections:</h3>
<ul class="ui list"> <ul class="ui list">
<li>Forms</li> <li>Forms</li>
<li>Tables</li> <li>Tables</li>
@ -131,10 +132,10 @@ type : 'UI Introduction'
</ul> </ul>
<h2 class="ui dividing header">UI Views</h2> <h2 class="ui dividing header">UI Views</h2>
<p>UI Views are common ways to structure types of content so that it can be understood more easily. A view's definition in semantic only describes the content which typically occupies the view.</p> <p>UI Views are common ways to structure types of content so that it can be understood more easily. A view's definition in semantic only describes the content which typically occupies the view.</p>
<p>Examples of UI views:</p> <h3 class="ui header">Examples of UI views:</h3>
<ul class="ui list"> <ul class="ui list">
<li>Comment Feed</li> <li>Comment Feed</li>
<li>Activity Feed</li> <li>Activity Feed</li>
@ -155,16 +156,13 @@ type : 'UI Introduction'
<i class="right arrow icon"></i> <i class="right arrow icon"></i>
</a> </a>
<h3 class="ui header">Mostly tag ambivalent</h3>
<p>Semantic is based on class names, instead of tags. This means, except for links, tables and form elements, you can use semantic with tags like &lt;div&gt; &lt;article&gt; &lt;nav&gt; without any difference.</p>
<h3 class="ui header">Context sensitive</h3> <h3 class="ui header">Context sensitive</h3>
<p>In Semantic, variations maintain context based on the element they modify, but keep the same vocabulary between elements. Just like how in English, the adjective 'big' may describe a different scale for a big planet versus a big insect.</p> <p>In Semantic, variations maintain context based on the element they modify, but keep the same vocabulary between elements. Just like how in English, the adjective 'big' may describe a different scale for a big planet versus a big insect.</p>
<p>For example, a form you can have a variation called "inverted". This changes the appearance of form elements to work on dark backgrounds.</p> <p>For example, a form you can have a variation called "inverted". This changes the appearance of form elements to work on dark backgrounds.</p>
<div class="code" data-type="html" data-label="true"> <div class="code" data-type="html" data-label="true">
<div class="ui inverted form"> <div class="ui inverted form">
<div class="field"> <div class="field">
@ -174,8 +172,8 @@ type : 'UI Introduction'
</div> </div>
</div> </div>
<p>The same variation can also be useful in the context of a menu.</p> <p>The same variation can also be useful in the context of a menu although the implementation may be different.</p>
<div class="code" data-type="html" data-label="true"> <div class="code" data-type="html" data-label="true">
<div class="ui inverted menu"> <div class="ui inverted menu">
<div class="item">Section 1</div> <div class="item">Section 1</div>
@ -194,7 +192,7 @@ type : 'UI Introduction'
Next: Element Types Next: Element Types
<i class="right arrow icon"></i> <i class="right arrow icon"></i>
</a> </a>
<!-- <!--
<h3 class="ui header" class="ui header">Known Limitations</h3> <h3 class="ui header" class="ui header">Known Limitations</h3>
<p>Semantic uses the UI namespace to separate element definitions from the content that they define. This means that namespaces might conflict with other definitions if a variation or a type used matches the namespace of another ui definition.</p> <p>Semantic uses the UI namespace to separate element definitions from the content that they define. This means that namespaces might conflict with other definitions if a variation or a type used matches the namespace of another ui definition.</p>

8
node/src/documents/introduction/getting-started.html

@ -38,11 +38,11 @@ type : 'UI Introduction'
<div class="code" data-type="html" data-label="true" data-preview="true"> <div class="code" data-type="html" data-label="true" data-preview="true">
<div class="ui compact menu"> <div class="ui compact menu">
<div class="item">Home</div> <a class="item">Home</a>
<div class="item"> <a class="item">
Inbox Inbox
<div class="ui label">22</div> <div class="ui label">22</div>
</div> </a>
</div> </div>
</div> </div>
@ -52,7 +52,7 @@ type : 'UI Introduction'
<h3 class="ui header">Defining behavior simply</h3> <h3 class="ui header">Defining behavior simply</h3>
<p>Modules define a public API using simple phrases involving a verb and an object the verb is acting on. This means that if you are using another developer's code, you only need to learn it's public api without having to learn the nasty tricks used to make it work.</p> <p>Modules define a public API using simple phrases involving a verb and an object the verb is acting on. When methods are invoked internally those phrases are matched to internal methods.</p>
<div class="code" data-demo="true" data-title="Language in Javascript"> <div class="code" data-demo="true" data-title="Language in Javascript">
$('.dog.image') $('.dog.image')

306
node/src/documents/modules/chat.html

@ -0,0 +1,306 @@
---
layout : 'default'
css : 'chatroom'
title : 'Chatroom'
type : 'UI Module'
---
<link rel="stylesheet" type="text/css" href="/components/semantic/modules/chatroom.css">
<script src="http://js.pusher.com/2.1/pusher.min.js" type="text/javascript"></script>
<script src="/components/semantic/modules/chatroom.js"></script>
<div class="segment">
<div class="container">
<h1 class="ui dividing header">Chatroom <span class="ui red label">Incomplete</span></h1>
<p>A chatroom allows users to communicate to each other.</p>
<div class="ui teal basic labeled icon overview toggle button">
Definition
<i class="book icon"></i>
</div>
<div class="ui black basic download buttons">
<a class="ui button">Download</a>
<div class="ui top right pointing dropdown icon button">
<i class="dropdown icon"></i>
<div class="menu">
<a class="item">Download
<span class="ui small label">ZIP</span>
</a>
<a class="item">View Source</a>
</div>
</div>
</div>
</div>
</div>
<div class="main container">
<div class="peek">
<div class="ui vertical pointing secondary menu">
<a class="active item">Usage</a>
<a class="item">Types</a>
<a class="item">Examples</a>
<a class="item">Settings</a>
</div>
</div>
<h2 class="ui dividing header">Usage</h2>
<h3 class="ui header">Initializing a chat room</h3>
<p>Using chatroom requires an account with <a href="http://www.pusher.com" target="_blank">pusher</a>, a company that provides turn-key web socket access.</p>
<div class="code" data-type="javascript" data-demo="true">
// modify these for your api settings received from pusher
$('.ui.chatroom')
.chatroom({
key : 'f812089c851866cc2f3e',
endpoint: {
authentication : '/chat/authentication',
message : '/chat/send'
}
})
;
</div>
<div class="ui chatroom">
<div class="actions">
<div class="message">
<span class="ui mini inline loader"></span>
Joining chat
</div>
<div class="ui secondary mini right floated icon buttons">
<div class="ui button">
<i class="users icon"></i>
</div>
<div class="ui button">
<i class="full resize icon"></i>
</div>
</div>
</div>
<div class="room">
<div class="container">
<div class="user-list">
<div class="ui small text loader">Loading</div>
</div>
</div>
</div>
<div class="talk">
<div class="avatar">
<img src="/images/demo/avatar.jpg">
</div>
<input type="text" maxlength="200">
<div class="ui send button">
<i class="ui icon comment"></i>
Send
</div>
</div>
</div>
<h2 class="ui dividing header">Settings</h2>
<div class="no example">
<h4 class="ui header">Chatroom Settings</h4>
<p>Chatroom settings modify the chatroom's behavior</p>
<table class="ui celled definition table segment">
<thead>
<th>Setting</th>
<th class="four wide">Default</th>
<th>Description</th>
</thead>
<tbody>
<tr>
<td>key</td>
<td>false</td>
<td>Pusher API key</td>
</tr>
<tr>
<td>key</td>
<td>presence-chat</td>
<td>Channel to use. Pusher requires chatrooms to use channels beginning with presence-</td>
</tr>
<tr>
<td>scrollArea</td>
<td>9999</td>
<td>If a user is this many pixels away from bottom of the page it will automatically scroll when a message is receieved</td>
</tr>
<tr>
<td>customEvents</td>
<td>{}</td>
<td>An object containing custom events and functions to use with pusher</td>
</tr>
<tr>
<td>endpoint</td>
<td>
<div class="code">
{
message: false,
authentication: false
}
</div>
</td>
<td>Endpoints used to communicate authentication and chat messages</td>
</tr>
<tr>
<td>partingMessages</td>
<td>false</td>
<td>Whether to display messages when a user has joined chat</td>
</tr>
<tr>
<td>userCount</td>
<td>true</td>
<td>Whether to display the current logged in user count</td>
</tr>
</tbody>
</table>
<div class="ui horizontal section icon divider"><i class="icon setting"></i></div>
<h4 class="ui header">Callbacks</h4>
<p>Callback settings specify a function to occur after a specific behavior.</p>
<table class="ui celled definition table segment">
<thead>
<th class="four wide">Setting</th>
<th>Context</th>
<th>Description</th>
</thead>
<tbody>
<tr>
<td>onJoin(user)</td>
<td>Chatroom</td>
<td>Called after each user joins a chat room</td>
</tr>
</tbody>
</table>
</div>
<div class="no example">
<h4 class="ui header">DOM Settings</h4>
<p>DOM settings specify how this module should interface with the DOM</p>
<table class="ui celled definition table segment">
<thead>
<th>Setting</th>
<th class="four wide">Default</th>
<th>Description</th>
</thead>
<tbody>
<tr>
<td>namespace</td>
<td>chatroom</td>
<td>Event namespace. Makes sure module teardown does not effect other events attached to an element.</td>
</tr>
<tr>
<td>selector</td>
<td colspan="2">
<div class="code">
selector : {
icon : '.icon'
}
</div>
</td>
</tr>
<tr>
<td>className</td>
<td colspan="2">
<div class="code">
className : {
active : 'active',
hover : 'hover',
loading : 'loading'
},
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="no example">
<h4 class="ui header">Debug Settings</h4>
<p>Debug settings controls debug output to the console</p>
<table class="ui celled definition table segment">
<thead>
<th>Setting</th>
<th class="four wide">Default</th>
<th>Description</th>
</thead>
<tbody>
<tr>
<td>name</td>
<td>Chatroom</td>
<td>Name used in debug logs</td>
</tr>
<tr>
<td>debug</td>
<td>True</td>
<td>Provides standard debug output to console</td>
</tr>
<tr>
<td>performance</td>
<td>True</td>
<td>Provides performance output to console</td>
</tr>
<tr>
<td>verbose</td>
<td>True</td>
<td>Provides ancillary debug output to console</td>
</tr>
<tr>
<td>selector</td>
<td colspan="2">
<div class="code">
selector : {
userCount : '.actions .message',
userListButton : '.actions .list.button',
expandButton : '.actions .expand.button',
room : '.room',
userList : '.room .list',
log : '.room .log',
message : '.room .log .message',
author : '.room log .message .author',
messageInput : '.talk input',
messageButton : '.talk .send.button'
}
</div>
</td>
</tr>
<tr>
<td>className</td>
<td colspan="2">
<div class="code">
className : {
expand : 'expand',
active : 'active',
hover : 'hover',
down : 'down',
loading : 'loading'
}
</div>
</td>
</tr>
<tr>
<td>error</td>
<td colspan="2">
<div class="code">
error: {
method : 'The method you called is not defined',
endpoint : 'Please define a message and authentication endpoint.',
key : 'You must specify a pusher key and channel.',
pusher : 'You must include the Pusher library.'
}
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>

145
node/src/documents/modules/checkbox.html

@ -17,15 +17,15 @@ type : 'UI Module'
<div class="peek"> <div class="peek">
<div class="ui vertical pointing secondary menu"> <div class="ui vertical pointing secondary menu">
<a class="active item">Types</a> <a class="active item">Usage</a>
<a class="item">Types</a>
<a class="item">Variations</a> <a class="item">Variations</a>
<a class="item">Behavior</a> <a class="item">Behavior</a>
<a class="item">Examples</a> <a class="item">Examples</a>
<a class="item">Usage</a>
</div> </div>
</div> </div>
<h2 class="ui dividing header">Types</h2> <h2 class="ui dividing header">Usage</h2>
<div class="example"> <div class="example">
<h4 class="ui header">Check Box</h4> <h4 class="ui header">Check Box</h4>
@ -46,22 +46,45 @@ type : 'UI Module'
<label>Poodle</label> <label>Poodle</label>
</div> </div>
<div class="static example">
<h4 class="ui header">Static Check Box</h4>
<p>A checkbox can also be used without using javascript by creating the check box as a label with a for tag matching the <code>id</code> attribute of the input field.</p>
<div class="ui language label">HTML Only</div>
<div class="code" data-type="html" data-preview="true">
<div class="ui checkbox">
<input type="checkbox" id="unique-id" />
<label class="box" for="unique-id"></label>
</div>
<label for="unique-id">Poodle</label>
</div>
</div>
</div> </div>
<div class="static example">
<h4 class="ui header">Static Check Box</h4> <h2 class="ui dividing header">Types</h2>
<p>A checkbox can function without javascript</p>
<div class="ui language label">HTML Only</div> <div class="example">
<div class="code" data-type="html" data-preview="true"> <h4 class="ui header">Slider</h4>
<div class="ui checkbox"> <p>A checkbox can be formatted to show user selection as a slider</p>
<input type="checkbox" id="unique-id" /> <div class="ui slider checkbox">
<label class="box" for="unique-id"></label> <input type="checkbox" name="walk" />
<label></label>
</div> </div>
<label for="unique-id">Poodle</label> <label> Allow others to see when your dog is on a walk</label>
</div>
<div class="example">
<h4 class="ui header">Toggle</h4>
<p>A checkbox can be formatted to show user selection as a toggle</p>
<div class="ui toggle checkbox">
<input type="checkbox" name="pet" />
<label></label>
</div> </div>
<label> Allow other people to pet my dog</label>
</div> </div>
<h2 class="ui dividing header">Variations</h2>
<div class="example"> <div class="example">
<h4 class="ui header">Radio Box</h4> <h4 class="ui header">Radio Box</h4>
@ -100,16 +123,16 @@ type : 'UI Module'
</div> </div>
</div> </div>
<h2 class="ui dividing header">Variations</h2>
<div class="example"> <div class="example">
<h4 class="ui header">Size</h4> <h4 class="ui header">Size</h4>
<p>A checkbox can be a different size.</p> <p>A checkbox can be a different size.</p>
<h4 class="ui dividing block header"> <div class="ui large checkbox">
<div class="ui large checkbox"> <input type="checkbox" />
<input type="checkbox" /> <label></label>
<label></label> </div>
</div> <label>Add a pro membership</label>
<label>Add a pro membership</label>
</h4>
</div> </div>
<div class="another example"> <div class="another example">
<div class="ui huge checkbox"> <div class="ui huge checkbox">
@ -185,61 +208,50 @@ type : 'UI Module'
<div class="ui toggle button">Toggle</div> <div class="ui toggle button">Toggle</div>
</div> </div>
<br><br> <br><br>
<div class="ui checkbox"> <div class="ui slider checkbox">
<input type="checkbox" /> <input type="checkbox" />
<div class="box"></div> <div class="box"></div>
</div> </div>
<div class="ui checkbox"> <div class="ui slider checkbox">
<input type="checkbox" checked="checked" /> <input type="checkbox" checked="checked" />
<div class="box"></div> <div class="box"></div>
</div> </div>
<div class="ui checkbox"> <div class="ui slider checkbox">
<input type="checkbox" /> <input type="checkbox" />
<div class="box"></div> <div class="box"></div>
</div> </div>
<div class="ui checkbox"> <div class="ui slider checkbox">
<input type="checkbox" checked="checked" /> <input type="checkbox" checked="checked" />
<div class="box"></div> <div class="box"></div>
</div> </div>
<div class="ui checkbox"> <div class="ui slider checkbox">
<input type="checkbox" /> <input type="checkbox" />
<div class="box"></div> <div class="box"></div>
</div> </div>
<div class="ui checkbox"> <div class="ui slider checkbox">
<input type="checkbox" /> <input type="checkbox" />
<div class="box"></div> <div class="box"></div>
</div> </div>
<div class="ui checkbox"> <div class="ui slider checkbox">
<input type="checkbox" checked="checked" /> <input type="checkbox" checked="checked" />
<div class="box"></div> <div class="box"></div>
</div> </div>
<div class="ui checkbox"> <div class="ui slider checkbox">
<input type="checkbox" /> <input type="checkbox" />
<div class="box"></div> <div class="box"></div>
</div> </div>
<div class="ui checkbox"> <div class="ui slider checkbox">
<input type="checkbox" checked="checked" /> <input type="checkbox" checked="checked" />
<div class="box"></div> <div class="box"></div>
</div> </div>
<div class="ui checkbox"> <div class="ui slider checkbox">
<input type="checkbox" /> <input type="checkbox" />
<div class="box"></div> <div class="box"></div>
</div> </div>
</div> </div>
<h2 class="ui dividing header">Usage</h2>
<h3>Initializing</h3>
<h3 class="ui header">Initializing a check box</h3>
<div class="code">
$('.ui.checkbox')
.checkbox()
;
</div>
<h3 class="ui header">Settings</h3> <h3 class="ui header">Settings</h3>
<table class="ui red table segment"> <table class="ui red celled definition table segment">
<thead> <thead>
<th colspan="3">Checkbox Settings</th> <th colspan="3">Checkbox Settings</th>
</thead> </thead>
@ -257,7 +269,7 @@ type : 'UI Module'
</tbody> </tbody>
</table> </table>
<table class="ui teal table segment"> <table class="ui teal celled definition table segment">
<thead> <thead>
<th colspan="3">Callbacks</th> <th colspan="3">Callbacks</th>
</thead> </thead>
@ -280,46 +292,43 @@ type : 'UI Module'
</tbody> </tbody>
</table> </table>
<table class="ui blue table segment"> <h4 class="ui header">DOM Settings</h4>
<p>DOM settings specify how this module should interface with the DOM</p>
<table class="ui celled definition table segment">
<thead> <thead>
<th colspan="3">UI Module Settings</th> <th>Setting</th>
<th class="four wide">Default</th>
<th>Description</th>
</thead> </thead>
<tbody> <tbody>
<tr>
<td>moduleName</td>
<td>Checkbox</td>
<td>Name used in debug logs</td>
</tr>
<tr>
<td>debug</td>
<td>True</td>
<td>Provides standard debug output to console</td>
</tr>
<tr>
<td>performance</td>
<td>False</td>
<td>Provides standard debug output to console</td>
</tr>
<tr>
<td>verbose</td>
<td>False</td>
<td>Provides ancillary debug output to console</td>
</tr>
<tr> <tr>
<td>namespace</td> <td>namespace</td>
<td>checkbox</td> <td>checkbox</td>
<td>Event namespace. Makes sure module teardown does not effect other events attached to an element.</td> <td>Event namespace. Makes sure module teardown does not effect other events attached to an element.</td>
</tr> </tr>
<tr> <tr>
<td>errors</td> <td>selector</td>
<td colspan="2"> <td colspan="2">
<div class="code"> <div class="code">
errors : { selector : {
method : 'The method you called is not defined.' input : 'input',
label : 'label'
} }
</div> </div>
</td> </td>
</tr> </tr>
<tr>
<td>className</td>
<td colspan="2">
<div class="code">
className : {
radio : 'radio'
}
</div>
</td>
</tr>
</tbody> </tbody>
</table> </table>

1
node/src/documents/modules/dimmer.html

@ -50,6 +50,7 @@ type : 'UI Module'
</div> </div>
<div class="ui divider"></div> <div class="ui divider"></div>
<h4 class="ui header">Showing a specific dimmer</h4> <h4 class="ui header">Showing a specific dimmer</h4>
<p>If a dimmer is already included on the page, instead of calling dimmer on the section you would like to dim, you can can invoke behaviors directly on the dimmer.</p>
<div class="code" data-demo="true"> <div class="code" data-demo="true">
// If a dimmer exists on a page, you can make it appear by calling it directly // If a dimmer exists on a page, you can make it appear by calling it directly
$('.page.dimmer:first') $('.page.dimmer:first')

24
node/src/documents/modules/form.html

@ -16,7 +16,7 @@ type : 'UI Behavior'
</div> </div>
</div> </div>
<div class="main container"> <div class="main container">
<div class="peek"> <div class="peek">
<div class="ui vertical pointing secondary menu"> <div class="ui vertical pointing secondary menu">
<a class="item">Usage</a> <a class="item">Usage</a>
@ -25,9 +25,9 @@ type : 'UI Behavior'
</div> </div>
<h2 class="ui dividing header">Usage</h2> <h2 class="ui dividing header">Usage</h2>
<div class="example"> <div class="example">
<h4>Basic Validation</h4> <h3 class="ui header">Basic Validation</h3>
<p>Form validation requires passing in a validation object with the rules required to validate your form.</p> <p>Form validation requires passing in a validation object with the rules required to validate your form.</p>
<!-- <div class="ui green message">If no validation object is specified then the form will validate against the default validation set up for the plugin. See <em>default validation</em> below.</div> --> <!-- <div class="ui green message">If no validation object is specified then the form will validate against the default validation set up for the plugin. See <em>default validation</em> below.</div> -->
<div class="ignore code"> <div class="ignore code">
@ -115,12 +115,12 @@ type : 'UI Behavior'
<div class="ui blue submit button">Submit</div> <div class="ui blue submit button">Submit</div>
</div> </div>
</div> </div>
<div class="example"> <div class="example">
<h4>Validation w/ Message</h4> <h3 class="ui header">Validation w/ Message</h3>
<p>Forms that contain a <a href="elements/message.html">ui message</a> error block will automatically be filled in with form validation information.</p> <p>Forms that contain a <a href="elements/message.html">ui message</a> error block will automatically be filled in with form validation information.</p>
<div class="info message">The template for error messages can be modified by adjusting settings.template.error</div> <div class="info message">The template for error messages can be modified by adjusting settings.template.error</div>
<div class="ui form segment"> <div class="ui form segment">
<p>Let's go ahead and get you signed up.</p> <p>Let's go ahead and get you signed up.</p>
<div class="two fields"> <div class="two fields">
@ -153,7 +153,7 @@ type : 'UI Behavior'
</div> </div>
</div> </div>
<div class="dog example"> <div class="dog example">
<h4>Custom Validation</h4> <h3 class="ui header">Custom Validation</h3>
<p>Custom form validation requires passing in a validation object with the rules required to validate your form.</p> <p>Custom form validation requires passing in a validation object with the rules required to validate your form.</p>
<div class="ui info message"> <div class="ui info message">
<i class="help icon"></i>A validation object includes a list of form elements, and rules to validate each against. Fields are matched by either the id tag, name tag, or data-validate metadata matching the identifier provided in the settings object. To pass parameters to a rule, use bracket notation <i class="help icon"></i>A validation object includes a list of form elements, and rules to validate each against. Fields are matched by either the id tag, name tag, or data-validate metadata matching the identifier provided in the settings object. To pass parameters to a rule, use bracket notation
@ -191,9 +191,9 @@ type : 'UI Behavior'
<div class="ui error message"></div> <div class="ui error message"></div>
</div> </div>
</div> </div>
<div class="inline example"> <div class="inline example">
<h4>Inline Validation</h4> <h3 class="ui header">Inline Validation</h3>
<p>Validation messages can also appear inline. UI Forms automatically format <a href="/elements/label.html">labels</a> with the className prompt. These validation prompts are also set to appear on input change instead of form submission.</p> <p>Validation messages can also appear inline. UI Forms automatically format <a href="/elements/label.html">labels</a> with the className prompt. These validation prompts are also set to appear on input change instead of form submission.</p>
<div class="ui form segment"> <div class="ui form segment">
<p>Let's go ahead and get you signed up.</p> <p>Let's go ahead and get you signed up.</p>
@ -227,7 +227,7 @@ type : 'UI Behavior'
</div> </div>
<h2>Settings</h2> <h2>Settings</h2>
<h3 class="ui header">Defaults</h3> <h3 class="ui header">Defaults</h3>
<table class="ui red table segment"> <table class="ui red table segment">
<thead> <thead>
@ -256,7 +256,7 @@ type : 'UI Behavior'
</tr> </tr>
</tbody> </tbody>
</table> </table>
<table class="ui teal table segment"> <table class="ui teal table segment">
<thead> <thead>
<th colspan="3">Callbacks</th> <th colspan="3">Callbacks</th>
@ -284,7 +284,7 @@ type : 'UI Behavior'
</tr> </tr>
</tbody> </tbody>
</table> </table>
<table class="ui blue table segment"> <table class="ui blue table segment">
<thead> <thead>
<th colspan="3">General Settings</th> <th colspan="3">General Settings</th>

317
node/src/documents/modules/rating.html

@ -0,0 +1,317 @@
---
layout : 'default'
css : 'rating'
title : 'Rating'
type : 'UI Module'
---
<script src="/javascript/rating.js"></script>
<div class="segment">
<div class="container">
<h1 class="ui dividing header">Rating</h1>
<p>A rating allows a user to assess and view the desirability of content.</p>
<div class="ui teal basic labeled icon overview toggle button">
Definition
<i class="book icon"></i>
</div>
<div class="ui black basic download buttons">
<a class="ui button">Download</a>
<div class="ui top right pointing dropdown icon button">
<i class="dropdown icon"></i>
<div class="menu">
<a class="item">Download
<span class="ui small label">ZIP</span>
</a>
<a class="item">View Source</a>
</div>
</div>
</div>
</div>
</div>
<div class="main container">
<div class="peek">
<div class="ui vertical pointing secondary menu">
<a class="active item">Usage</a>
<a class="item">Types</a>
<a class="item">Examples</a>
<a class="item">Settings</a>
</div>
</div>
<h2 class="ui dividing header">Usage</h2>
<h3 class="ui header">Initializing a rating</h3>
<p>To change the range of your rating, simply adjust the number of icons in the initialized html</p>
<div class="ui warning message">
To use any variations besides the basic rating <a href="/elements/icon.html">ui icons</a> must be included to provide the additional icons required.
</div>
<div class="code" data-type="javascript">
$('.ui.rating')
.rating()
;
</div>
<div class="code" data-type="html">
<div class="ui rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
</div>
<h2 class="ui dividing header">Types</h2>
<div class="example">
<h4 class="ui header">Rating</h4>
<p>A basic rating</p>
<div class="ui rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
</div>
<div class="example">
<h4 class="ui header">Star</h4>
<p>A star rating uses a set of star glyphs to show a rating</p>
<div class="ui star rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
</div>
<div class="example">
<h4 class="ui header">Heart</h4>
<p>A heart rating uses a set of heart glyphs to show a rating</p>
<div class="ui heart rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
</div>
<h2 class="ui dividing header">Examples</h2>
<div class="example">
<h4 class="ui header">Setting existing values</h4>
<p>Starting ratings can be set either using metadata values or the setting <code>initialRating</code>.</p>
<div class="ui ignored info message">If a metadata rating is specified it will automatically override any initial rating. This way you can set a default value but also allow it to be overridden.</div>
<div class="ui divided list">
<div class="item">
<img src="/images/demo/avatar2.jpg">
<div class="ui heart rating" data-rating="5">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
<div class="content">
<div class="header">New York Dog Fair</div>
A fun day at the fair
</div>
</div>
<div class="item">
<img src="/images/demo/avatar3.jpg">
<div class="ui heart rating" data-rating="2">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
<div class="content">
<div class="header">Dog Appreciation Day</div>
I night to tell your dog he's great
</div>
</div>
</div>
</div>
<h2 class="ui dividing header">Variations</h2>
<div class="example">
<h4 class="ui header">Size</h4>
<p>A rating can vary in size</p>
<div class="ui small rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
</div>
<div class="another example">
<div class="ui large rating">
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
<i class="icon"></i>
</div>
</div>
<h2 class="ui dividing header">Behavior</h2>
<div class="no example">
<h4 class="ui header">Set Rating</h4>
<p>A rating can be set programatically</p>
<div class="ignore code">
$('.ui.rating')
.rating('set rating', 3)
;
</div>
</div>
<h2 class="ui dividing header">Settings</h2>
<div class="no example">
<h4 class="ui header">Rating Settings</h4>
<p>Rating settings modify the rating's behavior</p>
<table class="ui celled definition table segment">
<thead>
<th>Setting</th>
<th class="four wide">Default</th>
<th>Description</th>
</thead>
<tbody>
<tr>
<td>initialRating</td>
<td>0</td>
<td>A number representing the default rating to apply</td>
</tr>
<tr>
<td>interactive</td>
<td>true</td>
<td>Whether to enable user's ability to rate</td>
</tr>
</tbody>
</table>
<div class="ui horizontal section icon divider"><i class="icon setting"></i></div>
<h4 class="ui header">Callbacks</h4>
<p>Callback settings specify a function to occur after a specific behavior.</p>
<table class="ui celled definition table segment">
<thead>
<th class="four wide">Setting</th>
<th>Context</th>
<th>Description</th>
</thead>
<tbody>
<tr>
<td>onRate(value)</td>
<td>Rating</td>
<td>Is called after user selects a new rating</td>
</tr>
</tbody>
</table>
</div>
<div class="no example">
<h4 class="ui header">DOM Settings</h4>
<p>DOM settings specify how this module should interface with the DOM</p>
<table class="ui celled definition table segment">
<thead>
<th>Setting</th>
<th class="four wide">Default</th>
<th>Description</th>
</thead>
<tbody>
<tr>
<td>namespace</td>
<td>rating</td>
<td>Event namespace. Makes sure module teardown does not effect other events attached to an element.</td>
</tr>
<tr>
<td>selector</td>
<td colspan="2">
<div class="code">
selector : {
icon : '.icon'
}
</div>
</td>
</tr>
<tr>
<td>className</td>
<td colspan="2">
<div class="code">
className : {
active : 'active',
hover : 'hover',
loading : 'loading'
},
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="no example">
<h4 class="ui header">Debug Settings</h4>
<p>Debug settings controls debug output to the console</p>
<table class="ui celled definition table segment">
<thead>
<th>Setting</th>
<th class="four wide">Default</th>
<th>Description</th>
</thead>
<tbody>
<tr>
<td>name</td>
<td>Rating</td>
<td>Name used in debug logs</td>
</tr>
<tr>
<td>debug</td>
<td>True</td>
<td>Provides standard debug output to console</td>
</tr>
<tr>
<td>performance</td>
<td>True</td>
<td>Provides standard debug output to console</td>
</tr>
<tr>
<td>verbose</td>
<td>True</td>
<td>Provides ancillary debug output to console</td>
</tr>
<tr>
<td>error</td>
<td colspan="2">
<div class="code">
error : {
action : 'You called a rating action that was not defined'
}
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>

117
node/src/documents/modules/reveal.html

@ -13,7 +13,7 @@ type : 'UI Module'
</div> </div>
</div> </div>
<div class="main container"> <div class="main container">
<div class="peek"> <div class="peek">
<div class="ui vertical pointing secondary menu"> <div class="ui vertical pointing secondary menu">
<a class="active item">Types</a> <a class="active item">Types</a>
@ -22,107 +22,58 @@ type : 'UI Module'
<a class="item">States</a> <a class="item">States</a>
</div> </div>
</div> </div>
<h2 class="ui dividing header">Types</h2> <h2 class="ui dividing header">Types</h2>
<div class="example"> <div class="example">
<h4 class="ui header">Reveal</h4> <h4 class="ui header">Reveal</h4>
<p>A standard reveal</p> <p>A standard reveal has no special formatting</p>
<div class="ui ignored message"> <div class="ui ignored red message">
A reveal will take no action unless a type of reveal is specified. A reveal will take no action unless a type of reveal is specified.
</div> </div>
<div class="ui circular reveal image"> <div class="ui circular reveal">
<img class="visible content" src="/images/demo/stickfigure.jpg"> <img class="visible content" src="/images/demo/stickfigure.jpg">
<img class="hidden content" src="/images/demo/photo2.jpg"> <img class="hidden content" src="/images/demo/photo2.jpg">
</div> </div>
</div> </div>
<!--
<h2 class="ui dividing header">Types</h2>
<div class="example">
<h4 class="ui header">Slide</h4>
<p>An element can slide revealing content along-side it</p>
<div class="ui slide reveal compact message">
<div class="visible content">
<p>Do you want to check out a call to action just hover your mouse over this text block</p>
<p>It's actually right next to this one</p>
<p>Not obvious or anything</p>
</div>
<div class="hidden content">
<p>Bam another message</p>
<div class="ui teal labeled icon button"><i class="sketchy x icon"></i> Bam here i am</div>
</div>
</div>
</div>
<div class="another example">
<div class="ui green right slide reveal button">
<div class="visible content">Sign up for the newsletter</div>
<div class="hidden content">Thanks!</div>
</div>
</div>
<div class="another example">
<div class="ui slide up reveal compact message">
<div class="visible content">
<p>Do you want to check out a call to action just hover your mouse over this text block</p>
<p>It's actually right next to this one</p>
</div>
<div class="hidden content">
Bam another message
<div class="ui teal labeled icon button"><i class="sketchy x icon"></i> Bam here i am</div>
</div>
</div>
</div>
<div class="another example">
<div class="ui slide down reveal compact message">
<div class="visible content">
<p>Do you want to check out a call to action just hover your mouse over this text block</p>
<p>It's actually right next to this one</p>
</div>
<div class="hidden content">
Bam another message
<div class="ui teal labeled icon button"><i class="sketchy x icon"></i> Bam here i am</div>
</div>
</div>
</div>
-->
<div class="example"> <div class="example">
<h4 class="ui header">Fade</h4> <h4 class="ui header">Fade</h4>
<p>An element can disappear to reveal content below</p> <p>An element can disappear to reveal content below</p>
<div class="ui fade reveal image"> <div class="ui fade reveal">
<img class="visible content" src="/images/demo/invention.jpg"> <img class="visible content" src="/images/demo/invention.jpg">
<img class="hidden content" src="/images/demo/invention2.jpg"> <img class="hidden content" src="/images/demo/title.png">
</div> </div>
</div> </div>
<div class="example"> <div class="example">
<h4 class="ui header">Move</h4> <h4 class="ui header">Move</h4>
<p>An element can move in a direction to reveal content</p> <p>An element can move in a direction to reveal content</p>
<div class="ui move reveal image"> <div class="ui move reveal">
<img class="visible content" src="/images/demo/invention.jpg"> <img class="visible content" src="/images/demo/invention.jpg">
<img class="hidden content" src="/images/demo/invention2.jpg"> <img class="hidden content" src="/images/demo/title.png">
</div> </div>
</div> </div>
<div class="another example"> <div class="another example">
<div class="ui move right reveal image"> <div class="ui move right reveal">
<img class="visible content" src="/images/demo/invention.jpg"> <img class="visible content" src="/images/demo/invention.jpg">
<img class="hidden content" src="/images/demo/invention2.jpg"> <img class="hidden content" src="/images/demo/title.png">
</div> </div>
</div> </div>
<div class="another example"> <div class="another example">
<div class="ui move up reveal image"> <div class="ui move up reveal">
<img class="visible content" src="/images/demo/invention.jpg"> <img class="visible content" src="/images/demo/invention.jpg">
<img class="hidden content" src="/images/demo/invention2.jpg"> <img class="hidden content" src="/images/demo/title.png">
</div> </div>
</div> </div>
<div class="another example"> <div class="another example">
<div class="ui move down reveal image"> <div class="ui move down reveal">
<img class="visible content" src="/images/demo/invention.jpg"> <img class="visible content" src="/images/demo/invention.jpg">
<img class="hidden content" src="/images/demo/invention2.jpg"> <img class="hidden content" src="/images/demo/title.png">
</div> </div>
</div> </div>
<div class="example"> <div class="example">
<h4 class="ui header">Rotate</h4> <h4 class="ui header">Rotate</h4>
<p>An element can rotate to reveal content below</p> <p>An element can rotate to reveal content below</p>
@ -137,39 +88,39 @@ type : 'UI Module'
<img class="hidden content" src="/images/demo/photo2.jpg"> <img class="hidden content" src="/images/demo/photo2.jpg">
</div> </div>
</div> </div>
<h2 class="ui dividing header">Variations</h2> <h2 class="ui dividing header">Variations</h2>
<div class="example"> <div class="example">
<h4 class="ui header">Masked</h4> <h4 class="ui header">Masked</h4>
<p>An element can mask its content so that an element does not escape its parent</p> <p>An element can mask its content so that an element does not escape its parent</p>
<div class="ui circular masked move reveal image"> <div class="ui masked move reveal">
<img class="visible content" src="/images/demo/stickfigure.jpg"> <img class="visible content" src="/images/demo/invention.jpg">
<img class="hidden content" src="/images/demo/photo2.jpg"> <img class="hidden content" src="/images/demo/title.png">
</div> </div>
</div> </div>
<div class="example"> <div class="example">
<h4 class="ui header">Instant</h4> <h4 class="ui header">Instant</h4>
<p>An element can show its content without delay</p> <p>An element can show its content without delay</p>
<div class="ui circular instant move reveal image"> <div class="ui instant masked move reveal">
<img class="visible content" src="/images/demo/stickfigure.jpg"> <img class="visible content" src="/images/demo/invention.jpg">
<img class="hidden content" src="/images/demo/photo2.jpg"> <img class="hidden content" src="/images/demo/title.png">
</div> </div>
</div> </div>
<h2 class="ui dividing header">States</h2> <h2 class="ui dividing header">States</h2>
<div class="example"> <div class="example">
<h4 class="ui header">Disabled</h4> <h4 class="ui header">Disabled</h4>
<p>A disabled reveal will not animate when hovered</p> <p>A disabled reveal will not animate when hovered</p>
<div class="ui circular disabled move reveal image"> <div class="ui circular disabled move reveal">
<img class="visible content" src="/images/demo/stickfigure.jpg"> <img class="visible content" src="/images/demo/stickfigure.jpg">
<img class="hidden content" src="/images/demo/photo2.jpg"> <img class="hidden content" src="/images/demo/photo2.jpg">
</div> </div>
</div> </div>
</div> </div>

61
node/src/documents/modules/shape.html

@ -17,7 +17,7 @@ type : 'UI Module'
</div> </div>
</div> </div>
<div class="main container"> <div class="main container">
<div class="peek"> <div class="peek">
<div class="ui vertical pointing secondary menu"> <div class="ui vertical pointing secondary menu">
<a class="active item">Types</a> <a class="active item">Types</a>
@ -25,17 +25,17 @@ type : 'UI Module'
<a class="item">Getting Started</a> <a class="item">Getting Started</a>
</div> </div>
</div> </div>
<h2 class="ui dividing header">Types</h2> <h2 class="ui dividing header">Types</h2>
<div class="ui info message">The module uses 3D transformations which are currently only supported in modern versions of Chrome, Safari, and Firefox.</div> <div class="ui info message">The module uses 3D transformations which are currently only supported in modern versions of Chrome, Safari, and Firefox.</div>
<div class="shown example"> <div class="shown example">
<h4 class="ui header">Shape</h4> <h4 class="ui header">Shape</h4>
<p>A shape has multiple sides of arbitrary content. Only one is visible</p> <p>A shape has multiple sides of arbitrary content. Only one is visible</p>
<div class="ui shape"> <div class="ui shape">
<div class="sides"> <div class="sides">
<div class="active side">This side is visible.</div> <div class="active side">This side is visible.</div>
@ -44,10 +44,27 @@ type : 'UI Module'
</div> </div>
</div> </div>
</div> </div>
<h2 class="ui dividing header">Examples</h2> <h2 class="ui dividing header">Examples</h2>
<div class="ui clearing divider"></div>
<h3 class="ui header">Interactive</h3>
<div class="demo square ui shape">
<div class="sides">
<div class="active jira side">
<img src="/images/shape/jira.png">
</div>
<div class="heroku side">
<img src="/images/shape/heroku.png">
</div>
<div class="quirky side">
<img src="/images/shape/quirky.png">
</div>
</div>
</div>
<h3 class="ui header">Automatic</h3> <h3 class="ui header">Automatic</h3>
<div class="dog two ui shape"> <div class="dog two ui shape">
<div class="sides"> <div class="sides">
@ -102,7 +119,7 @@ type : 'UI Module'
</div> </div>
</div> </div>
</div> </div>
<div class="dog one ui shape"> <div class="dog one ui shape">
<div class="sides"> <div class="sides">
<div class="active side"> <div class="active side">
@ -156,7 +173,7 @@ type : 'UI Module'
</div> </div>
</div> </div>
</div> </div>
<div class="dog three ui shape"> <div class="dog three ui shape">
<div class="sides"> <div class="sides">
<div class="active side"> <div class="active side">
@ -211,22 +228,6 @@ type : 'UI Module'
</div> </div>
</div> </div>
<div class="ui clearing divider"></div>
<h3 class="ui header">Interactive</h3>
<div class="demo square ui shape">
<div class="sides">
<div class="active jira side">
<img src="/images/shape/jira.png">
</div>
<div class="heroku side">
<img src="/images/shape/heroku.png">
</div>
<div class="quirky side">
<img src="/images/shape/quirky.png">
</div>
</div>
</div>
<h3 class="ui header">Shape</h3> <h3 class="ui header">Shape</h3>
<div class="ui shape buttons"> <div class="ui shape buttons">
@ -258,7 +259,7 @@ type : 'UI Module'
<p>To manually set the next side to appear use a selector or jQuery object</p> <p>To manually set the next side to appear use a selector or jQuery object</p>
<div class="code">$('.shape') <div class="code">$('.shape')
.shape('set nextSide', '.second') .shape('set next side', '.second')
.shape('flip up') .shape('flip up')
;</div> ;</div>
@ -268,7 +269,7 @@ type : 'UI Module'
;</div> ;</div>
<h3 class="ui header">Defaults</h3> <h3 class="ui header">Defaults</h3>
<table class="ui settings table"> <table class="ui celled definition table">
<thead> <thead>
<th colspan="3">Shape Settings</th> <th colspan="3">Shape Settings</th>
</thead> </thead>
@ -311,7 +312,7 @@ type : 'UI Module'
<td>Object containing class names used by module.</td> <td>Object containing class names used by module.</td>
</tr> </tr>
</table> </table>
<table class="ui settings table"> <table class="ui celled definition table">
<thead> <thead>
<th colspan="3">Callbacks</th> <th colspan="3">Callbacks</th>
</thead> </thead>
@ -326,7 +327,7 @@ type : 'UI Module'
<td>Callback after side is changed. This context is new side.</td> <td>Callback after side is changed. This context is new side.</td>
</tr> </tr>
</table> </table>
<table class="ui settings table"> <table class="ui celled definition table">
<thead> <thead>
<th colspan="3">UI Module Settings</th> <th colspan="3">UI Module Settings</th>
</thead> </thead>

2
node/src/documents/modules/sidebar.html

@ -71,7 +71,7 @@ type : 'UI Module'
Fixed position content may have issues changing it's position when a sidebar appears. There are two solutions Fixed position content may have issues changing it's position when a sidebar appears. There are two solutions
<ul class="list"> <ul class="list">
<li>Specify your fixed content without using the css left property <li>Specify your fixed content without using the css left property
<li>Apply styles on the fixed element to adjust its position when the sidebar appears. You can do this by descending from the body tag which receives the class <code>pushed</code> when the view is moved.</li> <li>Apply styles on the fixed element to adjust its position when the sidebar appears. You can do this by descending from the body tag which receives the class <code>(direction) pushed</code> when the view is moved.</li>
</ul> </ul>
</div> </div>
<div class="code" data-label="true" data-type="html"> <div class="code" data-label="true" data-type="html">

8
node/src/documents/views/feed.html

@ -26,9 +26,9 @@ type : 'UI View'
<div class="example"> <div class="example">
<h4>Feed</h4> <h4>Feed</h4>
<p>A standard feed with some optional elements</p> <p>A standard feed with some optional elements</p>
<div class="ui red feed segment"> <div class="ui piled feed segment">
<h2 class="ui header"> <h2 class="ui header">
<i class="icon red circular inverted chat"></i>Recent Activity Recent Activity
</h2> </h2>
<div class="event"> <div class="event">
<div class="label"> <div class="label">
@ -177,7 +177,7 @@ type : 'UI View'
<div class="ui grid"> <div class="ui grid">
<div class="ten wide column"> <div class="ten wide column">
<div class="ui small red feed segment"> <div class="ui small piled feed segment">
<h4 class="ui header">My Activity</h4> <h4 class="ui header">My Activity</h4>
<div class="event"> <div class="event">
<div class="label"> <div class="label">
@ -228,7 +228,7 @@ type : 'UI View'
</div> </div>
</div> </div>
<div class="six wide column"> <div class="six wide column">
<div class="ui small blue feed segment"> <div class="ui small feed segment">
<h4 class="ui header">Followers Activity</h4> <h4 class="ui header">Followers Activity</h4>
<div class="event"> <div class="event">
<div class="content"> <div class="content">

4
node/src/files/components/semantic/collections/menu.css

@ -202,9 +202,9 @@
/*-------------- /*--------------
Dropdowns Dropdowns
---------------*/ ---------------*/
.ui.menu .dropdown.item .menu { /*.ui.menu .dropdown.item .menu {
margin: 1px 0px 0px 0px; margin: 1px 0px 0px 0px;
} }*/
.ui.menu .simple.dropdown.item .menu { .ui.menu .simple.dropdown.item .menu {
margin: 0px !important; margin: 0px !important;
} }

139
node/src/files/components/semantic/elements/button.css

@ -66,6 +66,48 @@
margin: -0.8em -1.5em; margin: -0.8em -1.5em;
padding: 0.8em 1.5em; padding: 0.8em 1.5em;
} }
/*-------------------
Primary
--------------------*/
.ui.primary.buttons .button,
.ui.primary.button {
background-color: #D95C5C;
color: #FFFFFF;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
}
.ui.primary.buttons .button:hover,
.ui.primary.button:hover,
.ui.primary.buttons .active.button,
.ui.primary.button.active {
background-color: #E75859;
color: #FFFFFF;
}
.ui.primary.buttons .button:active,
.ui.primary.button:active {
background-color: #D24B4C;
color: #FFFFFF;
}
/*-------------------
Secondary
--------------------*/
.ui.secondary.buttons .button,
.ui.secondary.button {
background-color: #00B5AD;
color: #FFFFFF;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
}
.ui.secondary.buttons .button:hover,
.ui.secondary.button:hover,
.ui.secondary.buttons .active.button,
.ui.secondary.button.active {
background-color: #009A93;
color: #FFFFFF;
}
.ui.secondary.buttons .button:active,
.ui.secondary.button:active {
background-color: #00847E;
color: #FFFFFF;
}
/*------------------- /*-------------------
Social Social
--------------------*/ --------------------*/
@ -111,10 +153,29 @@
/******************************* /*******************************
States States
*******************************/ *******************************/
/*--------------
Active
---------------*/
.ui.buttons .active.button,
.ui.active.button {
opacity: 1 !important;
background-color: #B0B0B0;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(0, 0, 0, 0)), to(rgba(255, 255, 255, 0.1)));
background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: -moz-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: -o-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
color: #FFFFFF;
-webkit-box-shadow: 0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset;
-moz-box-shadow: 0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset;
box-shadow: 0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset;
}
/*-------------- /*--------------
Hover Hover
---------------*/ ---------------*/
.ui.button:hover { .ui.button:hover,
.ui.active.button:hover {
opacity: 1 !important; opacity: 1 !important;
background-color: #A4A4A4; background-color: #A4A4A4;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1); text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
@ -127,7 +188,8 @@
/*-------------- /*--------------
Down Down
---------------*/ ---------------*/
.ui.button:active { .ui.button:active,
.ui.active.button:active {
opacity: 1 !important; opacity: 1 !important;
background-color: #8C8C8C; background-color: #8C8C8C;
color: #FFFFFF; color: #FFFFFF;
@ -136,24 +198,6 @@
-moz-box-shadow: 0px 1px 0.2em 0px rgba(0, 0, 0, 0.3) inset; -moz-box-shadow: 0px 1px 0.2em 0px rgba(0, 0, 0, 0.3) inset;
box-shadow: 0px 1px 0.2em 0px rgba(0, 0, 0, 0.3) inset; box-shadow: 0px 1px 0.2em 0px rgba(0, 0, 0, 0.3) inset;
} }
/*--------------
Active
---------------*/
.ui.buttons .active.button,
.ui.active.button {
opacity: 1 !important;
background-color: #B0B0B0;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(0, 0, 0, 0)), to(rgba(255, 255, 255, 0.1)));
background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: -moz-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: -o-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
color: #FFFFFF;
-webkit-box-shadow: 0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset;
-moz-box-shadow: 0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset;
box-shadow: 0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset;
}
/*-------------- /*--------------
Error Error
---------------*/ ---------------*/
@ -395,7 +439,7 @@
color: #999999 !important; color: #999999 !important;
font-weight: normal; font-weight: normal;
text-transform: none; text-transform: none;
text-shadow: none; text-shadow: none !important;
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
@ -408,16 +452,6 @@
-moz-border-radius: 0.2em; -moz-border-radius: 0.2em;
border-radius: 0.2em; border-radius: 0.2em;
} }
.ui.basic.buttons .button {
border: none !important;
border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.ui.basic.buttons .button:first-child {
border-left: none !important;
}
.ui.basic.buttons .button:hover, .ui.basic.buttons .button:hover,
.ui.basic.button:hover { .ui.basic.button:hover {
color: #7F7F7F !important; color: #7F7F7F !important;
@ -437,14 +471,32 @@
.ui.basic.button.active { .ui.basic.button.active {
background-color: rgba(0, 0, 0, 0.05); background-color: rgba(0, 0, 0, 0.05);
color: #7F7F7F; color: #7F7F7F;
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; -webkit-box-shadow: 0px 0px 0px 1px #BDBDBD inset;
-moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; -moz-box-shadow: 0px 0px 0px 1px #BDBDBD inset;
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; box-shadow: 0px 0px 0px 1px #BDBDBD inset;
} }
.ui.basic.buttons .button.active:hover, .ui.basic.buttons .button.active:hover,
.ui.basic.button.active:hover { .ui.basic.button.active:hover {
background-color: rgba(0, 0, 0, 0.1); background-color: rgba(0, 0, 0, 0.1);
} }
/* Basic Group */
.ui.basic.buttons .button {
border: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.ui.basic.buttons .button:hover,
.ui.basic.buttons .button:active {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.ui.basic.buttons .button.active {
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
}
/*-------------- /*--------------
Labeled Icon Labeled Icon
---------------*/ ---------------*/
@ -848,6 +900,25 @@
background-color: #D24B4C; background-color: #D24B4C;
color: #FFFFFF; color: #FFFFFF;
} }
/*--- Orange ---*/
.ui.orange.buttons .button,
.ui.orange.button {
background-color: #E96633;
color: #FFFFFF;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
}
.ui.orange.buttons .button:hover,
.ui.orange.button:hover,
.ui.orange.buttons .active.button,
.ui.orange.button.active {
background-color: #FF7038;
color: #FFFFFF;
}
.ui.orange.buttons .button:active,
.ui.orange.button:active {
background-color: #DA683B;
color: #FFFFFF;
}
/*--- Blue ---*/ /*--- Blue ---*/
.ui.blue.buttons .button, .ui.blue.buttons .button,
.ui.blue.button { .ui.blue.button {

4
node/src/files/components/semantic/elements/header.css

@ -21,7 +21,6 @@
font-weight: bold; font-weight: bold;
line-height: 1.33; line-height: 1.33;
} }
.ui.header .ui.sub.header,
.ui.header .sub.header { .ui.header .sub.header {
font-size: 1rem; font-size: 1rem;
font-weight: normal; font-weight: normal;
@ -216,6 +215,9 @@ h5.ui.header {
padding-bottom: 0.2rem; padding-bottom: 0.2rem;
border-bottom: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(0, 0, 0, 0.1);
} }
.ui.dividing.header .sub.header {
padding-bottom: 0.5em;
}
.ui.dividing.header .icon { .ui.dividing.header .icon {
margin-bottom: 0.2em; margin-bottom: 0.2em;
} }

12
node/src/files/components/semantic/elements/image.css

@ -56,9 +56,9 @@ img.ui.image {
.ui.circular.images img, .ui.circular.images img,
.ui.circular.image img, .ui.circular.image img,
.ui.circular.image { .ui.circular.image {
-webkit-border-radius: 500em; -webkit-border-radius: 500rem;
-moz-border-radius: 500em; -moz-border-radius: 500rem;
border-radius: 500em; border-radius: 500rem;
} }
/*-------------- /*--------------
Avatar Avatar
@ -71,9 +71,9 @@ img.ui.image {
display: inline-block; display: inline-block;
width: 2em; width: 2em;
height: 2em; height: 2em;
-webkit-border-radius: 500em; -webkit-border-radius: 500rem;
-moz-border-radius: 500em; -moz-border-radius: 500rem;
border-radius: 500em; border-radius: 500rem;
} }
/*------------------- /*-------------------
Floated Floated

7
node/src/files/components/semantic/elements/label.css

@ -559,10 +559,9 @@ a.ui.teal.label:hover:before {
padding: 0.5em !important; padding: 0.5em !important;
line-height: 1em; line-height: 1em;
text-align: center; text-align: center;
vertical-align: baseline; -webkit-border-radius: 500rem;
-webkit-border-radius: 500em; -moz-border-radius: 500rem;
-moz-border-radius: 500em; border-radius: 500rem;
border-radius: 500em;
} }
/*------------------- /*-------------------
Pointing Pointing

257
node/src/files/components/semantic/modules/chatroom.css

@ -0,0 +1,257 @@
/*******************************
Chat Room
*******************************/
.ui.chatroom {
background-color: #F8F8F8;
width: 330px;
height: 370px;
padding: 0px;
}
.ui.chatroom .room {
position: relative;
overflow: hidden;
height: 286px;
border: 1px solid #999999;
border-top: none;
border-bottom: none;
}
.ui.chatroom .room .loader {
display: none;
margin: -25px 0px 0px -25px;
}
/* Chat Room Actions */
.ui.chatroom .actions {
overflow: hidden;
background-color: #EEEEEE;
padding: 4px;
border: 1px solid rgba(0, 0, 0, 0.1);
-moz-border-radius: 5px 5px 0px 0px;
-webkit-border-radius: 5px 5px 0px 0px;
border-radius: 5px 5px 0px 0px;
}
.ui.chatroom .actions .button {
float: right;
margin-left: 3px;
}
/* Online User Count */
.ui.chatroom .actions .message {
float: left;
margin-left: 6px;
font-size: 11px;
color: #AAAAAA;
text-shadow: 0px -1px 0px rgba(255, 255, 255, 0.8);
line-height: 28px;
}
.ui.chatroom .actions .message .loader {
display: inline-block;
margin-right: 8px;
}
/* Chat Room Text Log */
.ui.chatroom .log {
float: left;
overflow: auto;
overflow-x: hidden;
overflow-y: auto;
}
.ui.chatroom .log .message {
padding: 3px 0px;
border-top: 1px dotted #DADADA;
}
.ui.chatroom .log .message:first-child {
border-top: none;
}
/* status event */
.ui.chatroom .status {
padding: 5px 0px;
color: #AAAAAA;
font-size: 12px;
font-style: italic;
line-height: 1.33;
border-top: 1px dotted #DADADA;
}
.ui.chatroom .log .status:first-child {
border-top: none;
}
.ui.chatroom .log .flag {
float: left;
}
.ui.chatroom .log p {
margin-left: 0px;
}
.ui.chatroom .log .author {
font-weight: bold;
-webkit-transition: color 0.3s ease-out;
-moz-transition: color 0.3s ease-out;
-o-transition: color 0.3s ease-out;
-ms-transition: color 0.3s ease-out;
transition: color 0.3s ease-out;
}
.ui.chatroom .log a.author:hover {
opacity: 0.8;
}
.ui.chatroom .log .message.admin p {
font-weight: bold;
margin: 1px 0px 0px 23px;
}
.ui.chatroom .log .divider {
margin: -1px 0px;
font-size: 11px;
padding: 10px 0px;
border-top: 1px solid #F8F8F8;
border-bottom: 1px solid #F8F8F8;
}
.ui.chatroom .log .divider .rule {
top: 50%;
width: 15%;
}
.ui.chatroom .log .divider .label {
color: #777777;
margin: 0px;
}
/* Chat Room User List */
.ui.chatroom .room .list {
position: relative;
overflow: auto;
overflow-x: hidden;
overflow-y: auto;
float: left;
background-color: #EEEEEE;
border-left: 1px solid #DDDDDD;
}
.ui.chatroom .room .list .user {
display: table;
padding: 3px 7px;
border-bottom: 1px solid #DDDDDD;
}
.ui.chatroom .room .list .user:hover {
background-color: #F8F8F8;
}
.ui.chatroom .room .list .image {
display: table-cell;
vertical-align: middle;
width: 20px;
}
.ui.chatroom .room .list .image img {
width: 20px;
height: 20px;
vertical-align: middle;
}
.ui.chatroom .room .list p {
display: table-cell;
vertical-align: middle;
padding-left: 7px;
padding-right: 14px;
font-size: 11px;
line-height: 1.2;
font-weight: bold;
}
.ui.chatroom .room .list a:hover {
opacity: 0.8;
}
/* User List Loading */
.ui.chatroom.loading .loader {
display: block;
}
/* Chat Room Talk Input */
.ui.chatroom .talk {
border: 1px solid #999999;
border-top: 1px solid rgba(0, 0, 0, 0.1);
padding: 5px 0px 0px;
background-color: #CCCCCC;
background: #ffffff -webkit-linear-gradient(top, #eeeeee 0%, #aaaaaa 100%) repeat;
background: #ffffff -moz-linear-gradient(top, #eeeeee 0%, #aaaaaa 100%) repeat;
background: #ffffff -o-linear-gradient(top, #eeeeee 0%, #aaaaaa 100%) repeat;
background: #ffffff -ms-linear-gradient(top, #eeeeee 0%, #aaaaaa 100%) repeat;
background: #ffffff linear-gradient(top, #eeeeee 0%, #aaaaaa 100%) repeat;
-webkit-box-shadow: 0px 1px 0px #FFFFFF inset;
-moz-box-shadow: 0px 1px 0px #FFFFFF inset;
box-shadow: 0px 1px 0px #FFFFFF inset;
-webkit-border-radius: 0px 0px 5px 5px;
-moz-border-radius: 0px 0px 5px 5px;
border-radius: 0px 0px 5px 5px;
}
.ui.chatroom .talk .avatar,
.ui.chatroom .talk input,
.ui.chatroom .talk .button {
float: left;
}
.ui.chatroom .talk .avatar {
border-top: 1px solid rgba(0, 0, 0, 0.1);
border-left: 1px solid rgba(0, 0, 0, 0.1);
width: 30px;
height: 30px;
margin: 0px 0px 0px 5px;
background-color: #DADADA;
}
.ui.chatroom .talk .avatar img {
display: block;
width: 30px;
height: 30px;
margin-right: 4px;
}
.ui.chatroom .talk input {
border: 1px solid #CCCCCC;
margin: 0px;
width: 196px;
height: 14px;
padding: 8px 5px;
font-size: 12px;
color: #555555;
}
.ui.chatroom .talk input.focus {
border: 1px solid #AAAAAA;
}
.ui.chatroom .send {
width: 80px;
height: 32px;
margin-left: -1px;
padding: 4px 12px;
font-size: 12px;
line-height: 23px;
-webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
border-radius: 0 5px 5px 0;
}
.ui.chatroom .talk .log-in.button {
display: block;
float: none;
margin-top: -6px;
height: 22px;
border-radius: 0px 0px 4px 4px;
}
.ui.chatroom .talk .log-in.button i {
vertical-align: text-top;
}
/* Quirky Flags */
.ui.chatroom .log .team.flag {
width: 18px;
}
/* Chat room Loaded */
.ui.chatroom.loading .loader {
display: block;
}
/* Standard Size */
.ui.chatroom {
width: 330px;
height: 370px;
}
.ui.chatroom .room .container {
width: 3000px;
}
.ui.chatroom .log {
width: 314px;
height: 278px;
padding: 4px 7px;
}
.ui.chatroom .room .list {
width: 124px;
height: 278px;
padding: 4px 0px;
}
.ui.chatroom .room .list .user {
width: 110px;
}
.ui.chatroom .talk {
height: 40px;
}

27
src/modules/chat.js → node/src/files/components/semantic/modules/chatroom.js

@ -8,9 +8,9 @@
;(function ($, window, document, undefined) { ;(function ($, window, document, undefined) {
$.fn.chat = function(key, channelName, parameters) { $.fn.chatroom = function(parameters) {
var var
settings = $.extend(true, {}, $.fn.chat.settings, parameters), settings = $.extend(true, {}, $.fn.chatroom.settings, parameters),
className = settings.className, className = settings.className,
namespace = settings.namespace, namespace = settings.namespace,
@ -68,7 +68,7 @@
if(Pusher === undefined) { if(Pusher === undefined) {
module.error(error.pusher); module.error(error.pusher);
} }
if(key === undefined || channelName === undefined) { if(settings.key === undefined || settings.channelName === undefined) {
module.error(error.key); module.error(error.key);
return false; return false;
} }
@ -78,10 +78,10 @@
} }
// define pusher // define pusher
pusher = new Pusher(key); pusher = new Pusher(settings.key);
Pusher.channel_auth_endpoint = settings.endpoint.authentication; Pusher.channel_auth_endpoint = settings.endpoint.authentication;
channel = pusher.subscribe(channelName); channel = pusher.subscribe(settings.channelName);
channel.bind('pusher:subscription_succeeded', module.user.list.create); channel.bind('pusher:subscription_succeeded', module.user.list.create);
channel.bind('pusher:subscription_error', module.error); channel.bind('pusher:subscription_error', module.error);
@ -291,7 +291,7 @@
url : settings.endpoint.message, url : settings.endpoint.message,
method : 'POST', method : 'POST',
data : { data : {
'chat_message': { 'message': {
content : message, content : message,
timestamp : new Date().getTime() timestamp : new Date().getTime()
} }
@ -484,12 +484,14 @@
return this; return this;
}; };
$.fn.chat.settings = { $.fn.chatroom.settings = {
name : 'Chat', name : 'Chat',
debug : false, debug : false,
namespace : 'chat', namespace : 'chat',
channel : 'present-chat',
onJoin : function(){}, onJoin : function(){},
onMessage : function(){}, onMessage : function(){},
onExpand : function(){}, onExpand : function(){},
@ -499,7 +501,6 @@
partingMessages : false, partingMessages : false,
userCount : true, userCount : true,
randomColor : true, randomColor : true,
speed : 300, speed : 300,
@ -529,11 +530,11 @@
}, },
selector : { selector : {
userCount : '.actions .message', userCount : '.actions .message',
userListButton : '.actions .button.user-list', userListButton : '.actions .list.button',
expandButton : '.actions .button.expand', expandButton : '.actions .expand.button',
room : '.room', room : '.room',
userList : '.room .user-list', userList : '.room .list',
log : '.room .log', log : '.room .log',
message : '.room .log .message', message : '.room .log .message',
author : '.room log .message .author', author : '.room log .message .author',

231
node/src/files/components/semantic/modules/checkbox.css

@ -58,10 +58,10 @@
} }
.ui.checkbox .box:after, .ui.checkbox .box:after,
.ui.checkbox label:after { .ui.checkbox label:after {
width: 0.5em; top: 0.3em;
height: 0.2em;
top: 0.25em;
left: 0.2em; left: 0.2em;
width: 0.45em;
height: 0.15em;
} }
/*--- Label ---*/ /*--- Label ---*/
.ui.checkbox + label { .ui.checkbox + label {
@ -132,6 +132,140 @@
-moz-border-radius: 500px; -moz-border-radius: 500px;
border-radius: 500px; border-radius: 500px;
} }
/*--------------
Slider
---------------*/
.ui.slider.checkbox {
width: 3em;
height: 2em;
}
/* Line */
.ui.slider.checkbox:after {
position: absolute;
top: 1em;
left: 0em;
content: '';
width: 100%;
height: 2px;
background-color: rgba(0, 0, 0, 0.1);
}
/* Button */
.ui.slider.checkbox .box,
.ui.slider.checkbox label {
cursor: pointer;
display: block;
position: absolute;
top: 0.25em;
left: 0;
z-index: 1;
width: 1.5em;
height: 1.5em;
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
border-radius: 50rem;
-webkit-transition: left 0.3s ease 0s;
-moz-transition: left 0.3s ease 0s;
-o-transition: left 0.3s ease 0s;
-ms-transition: left 0.3s ease 0s;
transition: left 0.3s ease 0s;
}
/* Button Activation Light */
.ui.slider.checkbox .box:after,
.ui.slider.checkbox label:after {
opacity: 1;
position: absolute;
content: '';
top: 0.375em;
left: 0.375em;
border: none;
width: 0.75em;
height: 0.75em;
background-color: #D95C5C;
border-radius: 50rem;
-webkit-transition: background 0.3s ease 0s;
-moz-transition: background 0.3s ease 0s;
-o-transition: background 0.3s ease 0s;
-ms-transition: background 0.3s ease 0s;
transition: background 0.3s ease 0s;
}
/* Active Slider Toggle */
.ui.slider.checkbox input:checked + .box,
.ui.slider.checkbox input:checked + label {
left: 1.75em;
}
.ui.slider.checkbox input:checked + .box:after,
.ui.slider.checkbox input:checked + label:after {
background-color: #89B84C;
}
/*--------------
Toggle
---------------*/
.ui.toggle.checkbox {
width: 3em;
height: 2em;
}
/* Line */
.ui.toggle.checkbox:after {
cursor: pointer;
display: block;
position: absolute;
content: '';
top: 0.25em;
left: 0em;
z-index: 1;
background-color: #FFFFFF;
width: 100%;
height: 1.5em;
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
border-radius: 50rem;
}
.ui.toggle.checkbox .box,
.ui.toggle.checkbox label {
position: absolute;
top: 0.65em;
left: 0.5em;
-webkit-transition: left 0.3s ease 0s;
-moz-transition: left 0.3s ease 0s;
-o-transition: left 0.3s ease 0s;
-ms-transition: left 0.3s ease 0s;
transition: left 0.3s ease 0s;
background-color: transparent;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
/* Button Activation Light */
.ui.toggle.checkbox .box:after,
.ui.toggle.checkbox label:after {
opacity: 1;
content: '';
position: absolute;
top: 0px;
left: 0px;
z-index: 2;
border: none;
width: 0.75em;
height: 0.75em;
background-color: #D95C5C;
border-radius: 50rem;
-webkit-transition: background 0.3s ease 0s;
-moz-transition: background 0.3s ease 0s;
-o-transition: background 0.3s ease 0s;
-ms-transition: background 0.3s ease 0s;
transition: background 0.3s ease 0s;
}
/* Active toggle Toggle */
.ui.toggle.checkbox input:checked + .box,
.ui.toggle.checkbox input:checked + label {
left: 1.75em;
}
.ui.toggle.checkbox input:checked + .box:after,
.ui.toggle.checkbox input:checked + label:after {
background-color: #89B84C;
}
/*-------------- /*--------------
Sizes Sizes
---------------*/ ---------------*/
@ -162,94 +296,3 @@
.ui.huge.checkbox label { .ui.huge.checkbox label {
font-size: 1.5em; font-size: 1.5em;
} }
/*--------------
Colors
---------------*/
.ui.round.blue.checkbox label:after {
background: -webkit-linear-gradient(top, #016286 0%, #00506e 100%);
background: -moz-linear-gradient(top, #016286 0%, #00506e 100%);
background: -o-linear-gradient(top, #016286 0%, #00506e 100%);
background: -ms-linear-gradient(top, #016286 0%, #00506e 100%);
background: linear-gradient(top, #016286 0%, #00506e 100%);
}
/*--------------
Rounded
---------------*/
/* Alternate Round Style */
.ui.round.checkbox {
width: 20px;
height: 20px;
margin: 0px auto;
background: #FCFFF4;
background: -webkit-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
background: -moz-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
background: -o-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
background: -ms-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
background: linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FCFFF4', endColorstr='#b3bead', GradientType=0);
-webkit-border-radius: 500px;
-moz-border-radius: 500px;
border-radius: 500px;
-webkit-box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
-moz-box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
position: relative;
}
.ui.round.checkbox .box,
.ui.round.checkbox label {
cursor: pointer;
position: absolute;
width: 14px;
height: 14px;
-webkit-border-radius: 500px;
-moz-border-radius: 500px;
border-radius: 500px;
left: 3px;
top: 3px;
-webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5) inset, 0px 1px 0px #ffffff;
-moz-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5) inset, 0px 1px 0px #ffffff;
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5) inset, 0px 1px 0px #ffffff;
background: -webkit-linear-gradient(top, #222222 0%, #4d4d4d 100%);
background: -moz-linear-gradient(top, #222222 0%, #4d4d4d 100%);
background: -o-linear-gradient(top, #222222 0%, #4d4d4d 100%);
background: -ms-linear-gradient(top, #222222 0%, #4d4d4d 100%);
background: linear-gradient(top, #222222 0%, #4d4d4d 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#222222', endColorstr='#4D4D4D', GradientType=0);
}
.ui.round.checkbox .box:after,
.ui.round.checkbox label:after {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: alpha(opacity=0);
opacity: 0;
content: '';
position: absolute;
width: 10px;
height: 10px;
background: #B6B6B6;
background: -webkit-linear-gradient(top, #b6b6b6 0%, #929292 100%);
background: -moz-linear-gradient(top, #b6b6b6 0%, #929292 100%);
background: -o-linear-gradient(top, #b6b6b6 0%, #929292 100%);
background: -ms-linear-gradient(top, #b6b6b6 0%, #929292 100%);
background: linear-gradient(top, #b6b6b6 0%, #929292 100%);
border: none;
-webkit-border-radius: 500px;
-moz-border-radius: 500px;
border-radius: 500px;
top: 2px;
left: 2px;
-webkit-box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
-moz-box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
}
.ui.round.checkbox .box:hover:after,
.ui.round.checkbox label:hover:after {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
filter: alpha(opacity=30);
opacity: 0.3;
}
.ui.round.checkbox input:checked + .box:after,
.ui.round.checkbox input:checked + label:after {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter: alpha(opacity=100);
opacity: 1;
}

16
node/src/files/components/semantic/modules/dimmer.css

@ -16,6 +16,7 @@
position: relative; position: relative;
} }
.ui.dimmer { .ui.dimmer {
display: none;
position: absolute; position: absolute;
top: 0em !important; top: 0em !important;
left: 0em !important; left: 0em !important;
@ -52,7 +53,7 @@
z-index: 1000; z-index: 1000;
} }
/* /*
.ui.dimmable.dimmed > :not(.dimmer) { .ui.dimmed.dimmable > :not(.dimmer) {
-webkit-transition: -webkit-transition:
filter 0.5s ease filter 0.5s ease
; ;
@ -99,12 +100,13 @@
/******************************* /*******************************
States States
*******************************/ *******************************/
.ui.dimmable.dimmed > :not(.dimmer) { .ui.dimmed.dimmable > :not(.dimmer) {
-webkit-filter: blur(5px) grayscale(0.7); -webkit-filter: blur(5px) grayscale(0.7);
-moz-filter: blur(5px) grayscale(0.7); -moz-filter: blur(5px) grayscale(0.7);
} }
.ui.dimmable.dimmed > .ui.dimmer, .ui.dimmed.dimmable > .ui.dimmer,
.ui.dimmer.active { .ui.active.dimmer {
display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;
opacity: 1; opacity: 1;
@ -131,7 +133,7 @@
transform-origin: top center; transform-origin: top center;
} }
/* /*
body.ui.dimmable.dimmed > :not(.dimmer){ body.ui.dimmed.dimmable > :not(.dimmer){
-webkit-filter: ~"blur(15px) grayscale(0.7)"; -webkit-filter: ~"blur(15px) grayscale(0.7)";
-moz-filter: ~"blur(15px) grayscale(0.7)"; -moz-filter: ~"blur(15px) grayscale(0.7)";
} }
@ -165,7 +167,7 @@ body.ui.dimmable.dimmed > :not(.dimmer){
z-index: -100; z-index: -100;
background-color: rgba(0, 0, 0, 0); background-color: rgba(0, 0, 0, 0);
} }
.ui.dimmable.dimmed > .ui.simple.dimmer { .ui.dimmed.dimmable > .ui.simple.dimmer {
overflow: visible; overflow: visible;
opacity: 1; opacity: 1;
width: 100%; width: 100%;
@ -176,6 +178,6 @@ body.ui.dimmable.dimmed > :not(.dimmer){
.ui.simple.inverted.dimmer { .ui.simple.inverted.dimmer {
background-color: rgba(255, 255, 255, 0); background-color: rgba(255, 255, 255, 0);
} }
.ui.dimmable.dimmed > .ui.simple.inverted.dimmer { .ui.dimmed.dimmable > .ui.simple.inverted.dimmer {
background-color: rgba(255, 255, 255, 0.85); background-color: rgba(255, 255, 255, 0.85);
} }

120
node/src/files/components/semantic/modules/rating.css

@ -0,0 +1,120 @@
/*******************************
Star Rating
*******************************/
.ui.rating {
display: inline-block;
vertical-align: middle;
margin: 0em 0.5em;
}
.ui.rating:first-child {
margin-left: 0em;
}
.ui.rating:last-child {
margin-right: 0em;
}
.ui.rating:after {
display: block;
content: '';
visibility: hidden;
clear: both;
height: 0;
}
/* Icon */
.ui.rating .icon {
cursor: default;
float: left;
margin: 0em;
width: 1em;
height: auto;
padding: 0em;
font-weight: normal;
font-style: normal;
}
.ui.rating .icon:after {
content: "\2605";
color: rgba(0, 0, 0, 0.15);
-webkit-transition: color 0.3s ease,
opacity 0.3s ease
;
-moz-transition: color 0.3s ease,
opacity 0.3s ease
;
-ms-transition: color 0.3s ease,
opacity 0.3s ease
;
-o-transition: color 0.3s ease,
opacity 0.3s ease
;
transition: color 0.3s ease,
opacity 0.3s ease
;
}
/*******************************
Types
*******************************/
/*-------------------
Star
--------------------*/
.ui.star.rating .icon:after {
content: '\e800';
font-family: 'Icons';
}
.ui.star.rating .active.icon:after {
content: '\e801';
font-family: 'Icons';
}
/*-------------------
Heart
--------------------*/
.ui.heart.rating .icon:after {
content: '\2661';
font-family: 'Icons';
}
.ui.heart.rating .active.icon:after {
content: '\2665';
font-family: 'Icons';
color: #EF404A;
}
.ui.heart.rating .hover.icon:after,
.ui.heart.rating .active.hover.icon:after {
color: #FF2733;
}
/*******************************
States
*******************************/
/*-------------------
Active
--------------------*/
/* active rating */
.ui.active.rating .icon {
cursor: pointer;
}
/* active icons */
.ui.rating .active.icon:after {
color: #FFCB08;
}
/*-------------------
Hover
--------------------*/
/* rating */
.ui.rating.hover .active.icon:after {
opacity: 0.5;
}
/* icon */
.ui.rating .icon.hover:after,
.ui.rating .icon.hover.active:after {
opacity: 1;
color: #FFB70A;
}
/*******************************
Variations
*******************************/
.ui.small.rating {
font-size: 1rem;
}
.ui.rating {
font-size: 1.5rem;
}
.ui.large.rating {
font-size: 2rem;
}

100
src/modules/star.js → node/src/files/components/semantic/modules/rating.js

@ -8,15 +8,16 @@
;(function ($, window, document, undefined) { ;(function ($, window, document, undefined) {
$.fn.starReview = function(parameters) { $.fn.rating = function(parameters) {
var var
$allModules = $(this), $allModules = $(this),
moduleSelector = $allModules.selector || '', moduleSelector = $allModules.selector || '',
settings = $.extend(true, {}, $.fn.starReview.settings, parameters), settings = $.extend(true, {}, $.fn.rating.settings, parameters),
namespace = settings.namespace, namespace = settings.namespace,
className = settings.className, className = settings.className,
metadata = settings.metadata,
selector = settings.selector, selector = settings.selector,
error = settings.error, error = settings.error,
@ -35,7 +36,7 @@ $.fn.starReview = function(parameters) {
.each(function() { .each(function() {
var var
$module = $(this), $module = $(this),
$star = $module.find(selector.star), $icon = $module.find(selector.icon),
element = this, element = this,
instance = $module.data(moduleNamespace), instance = $module.data(moduleNamespace),
@ -45,84 +46,98 @@ $.fn.starReview = function(parameters) {
module = { module = {
initialize: function() { initialize: function() {
if(settings.rateable) { module.verbose('Initializing rating module');
// expandable with states if(settings.interactive) {
if($.fn.state !== undefined) { $icon
$module
.state()
;
$star
.state()
;
}
$star
.bind('mouseenter' + eventNamespace, module.event.mouseenter) .bind('mouseenter' + eventNamespace, module.event.mouseenter)
.bind('mouseleave' + eventNamespace, module.event.mouseleave) .bind('mouseleave' + eventNamespace, module.event.mouseleave)
.bind('click' + eventNamespace, module.event.click) .bind('click' + eventNamespace, module.event.click)
; ;
} }
if(settings.initialRating) {
module.debug('Setting initial rating');
module.setRating(settings.initialRating);
}
if( $module.data(metadata.rating) ) {
module.debug('Rating found in metadata');
module.setRating( $module.data(metadata.rating) );
}
$module $module
.addClass(className.initialize) .addClass(className.active)
; ;
module.instantiate(); module.instantiate();
}, },
instantiate: function() { instantiate: function() {
module.verbose('Instantiating module', settings);
$module $module
.data(moduleNamespace, module) .data(moduleNamespace, module)
; ;
}, },
destroy: function() {
$module
.removeData(moduleNamespace)
;
$icon
.off(eventNamespace)
;
},
setRating: function(rating) { setRating: function(rating) {
var var
$activeStar = $star.eq(rating - 1) $activeIcon = $icon.eq(rating - 1)
; ;
module.verbose('Setting current rating to', rating);
$module $module
.removeClass(className.hover) .removeClass(className.hover)
; ;
$star $icon
.removeClass(className.hover) .removeClass(className.hover)
; ;
$activeStar $activeIcon
.nextAll() .nextAll()
.removeClass(className.active) .removeClass(className.active)
; ;
$activeStar $activeIcon
.addClass(className.active) .addClass(className.active)
.prevAll() .prevAll()
.addClass(className.active) .addClass(className.active)
; ;
$.proxy(settings.onRate, $module)(); $.proxy(settings.onRate, element)();
}, },
event: { event: {
mouseenter: function() { mouseenter: function() {
var var
$activeStar = $(this) $activeIcon = $(this)
; ;
$activeStar $activeIcon
.nextAll() .nextAll()
.removeClass(className.hover) .removeClass(className.hover)
; ;
$module $module
.addClass(className.hover) .addClass(className.hover)
; ;
$activeStar $activeIcon
.addClass(className.hover) .addClass(className.hover)
.prevAll() .prevAll()
.addClass(className.hover) .addClass(className.hover)
; ;
}, },
mouseleave: function() { mouseleave: function() {
$star $module
.removeClass(className.hover)
;
$icon
.removeClass(className.hover) .removeClass(className.hover)
; ;
}, },
click: function() { click: function() {
var var
$activeStar = $(this) $activeIcon = $(this)
; ;
module.setRating( $star.index($activeStar) + 1); module.setRating( $icon.index($activeIcon) + 1);
} }
}, },
setting: function(name, value) { setting: function(name, value) {
@ -307,28 +322,35 @@ $.fn.starReview = function(parameters) {
; ;
}; };
$.fn.starReview.settings = { $.fn.rating.settings = {
name : 'Rating',
namespace : 'rating',
name : 'Star', verbose : true,
namespace : 'star', debug : true,
performance : true,
rateable : true, initialRating : 0,
onRate : function(){}, interactive : true,
onRate : function(){},
error : {
method : 'The method you called is not defined'
},
error: { metadata: {
method : 'The method you called is not defined' rating: 'rating'
}, },
className : { className : {
initialize : 'initialize', active : 'active',
loading : 'loading', hover : 'hover',
active : 'active', loading : 'loading'
hover : 'hover',
down : 'down'
}, },
selector : { selector : {
star : 'i' icon : '.icon'
} }
}; };

7
node/src/files/components/semantic/modules/reveal.css

@ -13,8 +13,13 @@
Reveal Reveal
*******************************/ *******************************/
.ui.reveal { .ui.reveal {
display: inline-block;
position: relative !important; position: relative !important;
z-index: 2 !important; z-index: 2 !important;
font-size: 0em !important;
}
.ui.reveal > .content {
font-size: 1em !important;
} }
.ui.reveal > .visible.content { .ui.reveal > .visible.content {
-webkit-transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1) 0.15s; -webkit-transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1) 0.15s;
@ -26,8 +31,6 @@
position: absolute !important; position: absolute !important;
top: 0em !important; top: 0em !important;
left: 0em !important; left: 0em !important;
width: 100% !important;
height: 100% !important;
z-index: 4 !important; z-index: 4 !important;
-webkit-transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1) 0.15s; -webkit-transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1) 0.15s;
-moz-transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1) 0.15s; -moz-transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1) 0.15s;

6
node/src/files/components/semantic/modules/search.css

@ -19,9 +19,9 @@
font-weight: normal; font-weight: normal;
} }
.ui.search input { .ui.search input {
-webkit-border-radius: 500em; -webkit-border-radius: 500rem;
-moz-border-radius: 500em; -moz-border-radius: 500rem;
border-radius: 500em; border-radius: 500rem;
} }
/*-------------- /*--------------
Button Button

29
node/src/files/components/semantic/modules/star.css

@ -1,15 +1,14 @@
/******************************* /*******************************
Star Rating Star Rating
*******************************/ *******************************/
.star.module { .ui.rating.module {
min-width: 88px; min-width: 88px;
height: 42px; height: 42px;
unicode-bidi: bidi-override; unicode-bidi: bidi-override;
direction: rtl; direction: rtl;
font-size: 26px; font-size: 26px;
} }
.star.module i, .ui.rating.module .icon {
.ui.star {
cursor: default; cursor: default;
float: left; float: left;
padding: 2px 1px; padding: 2px 1px;
@ -19,8 +18,7 @@
color: transparent; color: transparent;
} }
/* Non Selected Star */ /* Non Selected Star */
.star.module i:after, .ui.rating.module .icon:after {
.ui.star:after {
content: "\2605"; content: "\2605";
color: #8C8C8C; color: #8C8C8C;
-webkit-transition: all 0.25s; -webkit-transition: all 0.25s;
@ -29,24 +27,23 @@
-ms-transition: all 0.25s; -ms-transition: all 0.25s;
transition: all 0.25s; transition: all 0.25s;
} }
/*-------------- /*******************************
States States
---------------*/ *******************************/
/* Initialized is now clickable */ /* Icons are clickable */
.star.module.initialize, .ui.active.rating.module .icon {
.star.module.initialize i {
cursor: pointer; cursor: pointer;
} }
/* Current Star Rating */ /* Current Star Rating */
.star.module i.active:after { .ui.rating.module .active.icon:after {
color: #FFCB08; color: #FFCB08;
} }
.star.module.hover i.active:after { /* Hover */
.ui.rating.module.hover .active.icon:after {
opacity: 0.5; opacity: 0.5;
} }
/* Hover */ .ui.rating.module .icon.hover:after,
.star.module i.hover:after, .ui.rating.module .icon.hover.active:after {
.star.module i.hover.active:after {
opacity: 1; opacity: 1;
color: #FFB70A; color: #FFB70A;
text-shadow: 0px 0px 7px #FFCB08; text-shadow: 0px 0px 7px #FFCB08;

64
node/src/files/components/semantic/modules/star.js

@ -8,12 +8,12 @@
;(function ($, window, document, undefined) { ;(function ($, window, document, undefined) {
$.fn.starReview = function(parameters) { $.fn.rating = function(parameters) {
var var
$allModules = $(this), $allModules = $(this),
moduleSelector = $allModules.selector || '', moduleSelector = $allModules.selector || '',
settings = $.extend(true, {}, $.fn.starReview.settings, parameters), settings = $.extend(true, {}, $.fn.rating.settings, parameters),
namespace = settings.namespace, namespace = settings.namespace,
className = settings.className, className = settings.className,
@ -35,7 +35,7 @@ $.fn.starReview = function(parameters) {
.each(function() { .each(function() {
var var
$module = $(this), $module = $(this),
$star = $module.find(selector.star), $icon = $module.find(selector.icon),
element = this, element = this,
instance = $module.data(moduleNamespace), instance = $module.data(moduleNamespace),
@ -46,23 +46,14 @@ $.fn.starReview = function(parameters) {
initialize: function() { initialize: function() {
if(settings.rateable) { if(settings.rateable) {
// expandable with states $icon
if($.fn.state !== undefined) {
$module
.state()
;
$star
.state()
;
}
$star
.bind('mouseenter' + eventNamespace, module.event.mouseenter) .bind('mouseenter' + eventNamespace, module.event.mouseenter)
.bind('mouseleave' + eventNamespace, module.event.mouseleave) .bind('mouseleave' + eventNamespace, module.event.mouseleave)
.bind('click' + eventNamespace, module.event.click) .bind('click' + eventNamespace, module.event.click)
; ;
} }
$module $module
.addClass(className.initialize) .addClass(className.active)
; ;
module.instantiate(); module.instantiate();
}, },
@ -73,21 +64,30 @@ $.fn.starReview = function(parameters) {
; ;
}, },
destroy: function() {
$module
.removeData(moduleNamespace)
;
$icon
.off(eventNamespace)
;
},
setRating: function(rating) { setRating: function(rating) {
var var
$activeStar = $star.eq(rating - 1) $activeIcon = $icon.eq(rating - 1)
; ;
$module $module
.removeClass(className.hover) .removeClass(className.hover)
; ;
$star $icon
.removeClass(className.hover) .removeClass(className.hover)
; ;
$activeStar $activeIcon
.nextAll() .nextAll()
.removeClass(className.active) .removeClass(className.active)
; ;
$activeStar $activeIcon
.addClass(className.active) .addClass(className.active)
.prevAll() .prevAll()
.addClass(className.active) .addClass(className.active)
@ -98,31 +98,31 @@ $.fn.starReview = function(parameters) {
event: { event: {
mouseenter: function() { mouseenter: function() {
var var
$activeStar = $(this) $activeIcon = $(this)
; ;
$activeStar $activeIcon
.nextAll() .nextAll()
.removeClass(className.hover) .removeClass(className.hover)
; ;
$module $module
.addClass(className.hover) .addClass(className.hover)
; ;
$activeStar $activeIcon
.addClass(className.hover) .addClass(className.hover)
.prevAll() .prevAll()
.addClass(className.hover) .addClass(className.hover)
; ;
}, },
mouseleave: function() { mouseleave: function() {
$star $icon
.removeClass(className.hover) .removeClass(className.hover)
; ;
}, },
click: function() { click: function() {
var var
$activeStar = $(this) $activeIcon = $(this)
; ;
module.setRating( $star.index($activeStar) + 1); module.setRating( $icon.index($activeIcon) + 1);
} }
}, },
setting: function(name, value) { setting: function(name, value) {
@ -307,28 +307,26 @@ $.fn.starReview = function(parameters) {
; ;
}; };
$.fn.starReview.settings = { $.fn.rating.settings = {
name : 'Star', name : 'Star',
namespace : 'star', namespace : 'icon',
rateable : true, rateable : true,
onRate : function(){}, onRate : function(){},
error: { error: {
method : 'The method you called is not defined' method : 'The method you called is not defined'
}, },
className : { className : {
initialize : 'initialize',
loading : 'loading',
active : 'active', active : 'active',
hover : 'hover', hover : 'hover',
down : 'down' loading : 'loading'
}, },
selector : { selector : {
star : 'i' icon : '.icon'
} }
}; };

3
node/src/files/components/semantic/views/feed.css

@ -100,6 +100,9 @@
/******************************* /*******************************
Variations Variations
*******************************/ *******************************/
.ui.small.feed {
font-size: 0.875em;
}
.ui.small.feed .label img { .ui.small.feed .label img {
width: 2.5em; width: 2.5em;
} }

10
node/src/files/components/semantic/views/list.css

@ -23,7 +23,7 @@ ul.ui.list ul,
ol.ui.list ol, ol.ui.list ol,
.ui.list .list { .ui.list .list {
margin: 0em; margin: 0em;
padding: 0.5em 0em 0.5em 0.5em; padding: 0.5em 0em 0.5em 1em;
} }
ul.ui.list:first-child, ul.ui.list:first-child,
ol.ui.list:first-child, ol.ui.list:first-child,
@ -173,7 +173,7 @@ ul.ui.list li:before,
.ui.bulleted.list .item:before { .ui.bulleted.list .item:before {
position: absolute; position: absolute;
left: -1em; left: -1em;
content: '·'; content: '';
line-height: 1.2rem; line-height: 1.2rem;
vertical-align: top; vertical-align: top;
} }
@ -229,10 +229,10 @@ ol.ui.list li:before,
ol.ui.list ol, ol.ui.list ol,
.ui.ordered.list .list { .ui.ordered.list .list {
counter-reset: ordered; counter-reset: ordered;
padding-left: 2em; padding-left: 3em;
} }
ol.ui.list ol ol li:before, ol.ui.list ol li:before,
.ui.ordered.list .list .list .item:before { .ui.ordered.list .list .item:before {
left: -2.5em; left: -2.5em;
} }
/* Horizontal Ordered */ /* Horizontal Ordered */

BIN
node/src/files/images/blue-bg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
node/src/files/images/demo/title.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

1
node/src/files/images/teal-bg.png.REMOVED.git-id

@ -0,0 +1 @@
9a6c31d42f6ed94672a29cb4c9e2068548232c4e

1
node/src/files/images/tile-bg.png.REMOVED.git-id

@ -0,0 +1 @@
b5e4b5dab16b2525052c7d8267c030afbfe73927

16
node/src/files/javascript/rating.js

@ -0,0 +1,16 @@
semantic.dropdown = {};
// ready event
semantic.dropdown.ready = function() {
$('.ui.rating')
.rating()
;
};
// attach ready event
$(document)
.ready(semantic.dropdown.ready)
;

2
node/src/files/javascript/semantic.js

@ -405,7 +405,7 @@ semantic.ready = function() {
$(this) $(this)
.stop() .stop()
.animate({ .animate({
width: '180px' width: '155px'
}, 300, function() { }, 300, function() {
$(this).find('.text').show(); $(this).find('.text').show();
}) })

40
node/src/files/stylesheets/semantic.css

@ -1,5 +1,5 @@
/******************************* /*******************************
Glue Code Highlighted Colors
*******************************/ *******************************/
::-webkit-selection { ::-webkit-selection {
@ -34,27 +34,8 @@ h3::selection {
background-color: #CCE2FF; background-color: #CCE2FF;
} }
/* Non Web Font (For Demo) /* No license
@font-face {
font-family: 'Neutraface';
src:
url("../fonts/neutraface-book.otf") format('opentype')
;
font-weight: normal;
font-style: normal;
font-size-adjust: 0.448;
}
@font-face {
font-family: 'Neutraface';
src:
url("../fonts/neutraface-bold.otf") format('opentype')
;
font-weight: bold;
font-style: normal;
font-size-adjust: 0.448;
}
*/
@font-face { @font-face {
font-family: 'Neutraface'; font-family: 'Neutraface';
@ -94,6 +75,7 @@ h3::selection {
font-stretch: normal; font-stretch: normal;
} }
*/
@ -107,7 +89,7 @@ body {
} }
body#example { body#example {
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif; font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
background: #FCFCFC url(../images/bg.jpg) repeat; background: #FCFCFC url(../images/bg.jpg) repeat;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
@ -119,6 +101,13 @@ body > .content {
background: #FCFCFC url(../images/bg.jpg) repeat; background: #FCFCFC url(../images/bg.jpg) repeat;
} }
h1,
h2,
h3,
h4,
h5 {
font-family: "Source Sans Pro", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}
/* /*
p, p,
@ -180,9 +169,8 @@ code {
display: inline-block; display: inline-block;
font-family: Courier New; font-family: Courier New;
font-size: 14px; font-size: 14px;
margin: -0.25em 0.25em !important; padding: 0.125em 0.25em;
padding: 0.25em 0.5em; vertical-align: middle;
vertical-align: top;
} }
pre code { pre code {
border: none; border: none;
@ -292,7 +280,7 @@ a:hover {
} }
#example .masthead { #example .masthead {
text-align: center; text-align: center;
background-color: #00B5AD; background: #00B5AD url(/images/tile-bg.png) repeat-x fixed 50% 0%;
padding: 75px 0px 50px; padding: 75px 0px 50px;
color: rgba(255, 255, 255, 0.9); color: rgba(255, 255, 255, 0.9);
margin-bottom: 0px; margin-bottom: 0px;

15
node/src/layouts/default.html.eco

@ -31,7 +31,6 @@
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/image.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/image.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/input.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/input.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/label.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/label.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/list.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/loader.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/loader.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/progress.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/progress.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/segment.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/elements/segment.css">
@ -45,6 +44,7 @@
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/collections/table.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/collections/table.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/views/comment.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/views/comment.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/views/list.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/views/feed.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/views/feed.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/views/item.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/views/item.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/views/statistic.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/views/statistic.css">
@ -54,6 +54,7 @@
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/dropdown.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/dropdown.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/popup.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/popup.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/reveal.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/reveal.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/rating.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/sidebar.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/sidebar.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/shape.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/shape.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/tab.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/tab.css">
@ -62,17 +63,16 @@
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/transition.css"> <link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/transition.css">
<link rel="stylesheet" type="text/css" class="ui" href="/overrides/fonts/sketchy.icons.css"> <link rel="stylesheet" type="text/css" class="ui" href="/overrides/fonts/sketchy.icons.css">
<link rel="stylesheet" type="text/css" href="/stylesheets/library/sidr.css">
<link rel="stylesheet" type="text/css" href="/stylesheets/semantic.css"> <link rel="stylesheet" type="text/css" href="/stylesheets/semantic.css">
<!--
<!-- <link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,900" rel="stylesheet"> <link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,900" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700|Droid+Sans|Raleway:700,600,400' rel='stylesheet' type='text/css'> --> -->
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Open+Sans:300italic,400,300,700' rel='stylesheet' type='text/css'>
<script src="/javascript/library/jquery.js"></script> <script src="/javascript/library/jquery.js"></script>
<script src="/javascript/library/history.js"></script> <script src="/javascript/library/history.js"></script>
<script src="/javascript/library/easing.js"></script> <script src="/javascript/library/easing.js"></script>
<script src="/javascript/library/ace/ace.js"></script> <script src="/javascript/library/ace/ace.js"></script>
<script src="/javascript/library/sidr.js"></script>
<script src="/javascript/library/waypoints.js"></script> <script src="/javascript/library/waypoints.js"></script>
<script src="/components/semantic/modules/behavior/api.js"></script> <script src="/components/semantic/modules/behavior/api.js"></script>
@ -81,8 +81,9 @@
<script src="/components/semantic/modules/dimmer.js"></script> <script src="/components/semantic/modules/dimmer.js"></script>
<script src="/components/semantic/modules/dropdown.js"></script> <script src="/components/semantic/modules/dropdown.js"></script>
<script src="/components/semantic/modules/modal.js"></script> <script src="/components/semantic/modules/modal.js"></script>
<script src="/components/semantic/modules/sidebar.js"></script>
<script src="/components/semantic/modules/popup.js"></script> <script src="/components/semantic/modules/popup.js"></script>
<script src="/components/semantic/modules/rating.js"></script>
<script src="/components/semantic/modules/sidebar.js"></script>
<script src="/components/semantic/modules/tab.js"></script> <script src="/components/semantic/modules/tab.js"></script>
<script src="/components/semantic/modules/transition.js"></script> <script src="/components/semantic/modules/transition.js"></script>

4
src/collections/menu.less

@ -280,9 +280,9 @@
/*-------------- /*--------------
Dropdowns Dropdowns
---------------*/ ---------------*/
.ui.menu .dropdown.item .menu { /*.ui.menu .dropdown.item .menu {
margin: 1px 0px 0px 0px; margin: 1px 0px 0px 0px;
} }*/
.ui.menu .simple.dropdown.item .menu { .ui.menu .simple.dropdown.item .menu {
margin: 0px !important; margin: 0px !important;
} }

172
src/elements/button.less

@ -125,9 +125,54 @@
} }
/*------------------- /*-------------------
Social Primary
--------------------*/
.ui.primary.buttons .button,
.ui.primary.button {
background-color: #D95C5C;
color: #FFFFFF;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
}
.ui.primary.buttons .button:hover,
.ui.primary.button:hover,
.ui.primary.buttons .active.button,
.ui.primary.button.active {
background-color: #E75859;
color: #FFFFFF;
}
.ui.primary.buttons .button:active,
.ui.primary.button:active {
background-color: #D24B4C;
color: #FFFFFF;
}
/*-------------------
Secondary
--------------------*/ --------------------*/
.ui.secondary.buttons .button,
.ui.secondary.button {
background-color: #00B5AD;
color: #FFFFFF;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
}
.ui.secondary.buttons .button:hover,
.ui.secondary.button:hover,
.ui.secondary.buttons .active.button,
.ui.secondary.button.active {
background-color: #009A93;
color: #FFFFFF;
}
.ui.secondary.buttons .button:active,
.ui.secondary.button:active {
background-color: #00847E;
color: #FFFFFF;
}
/*-------------------
Social
--------------------*/
/* Facebook */ /* Facebook */
.ui.facebook.button { .ui.facebook.button {
@ -186,11 +231,42 @@
*******************************/ *******************************/
/*--------------
Active
---------------*/
.ui.buttons .active.button,
.ui.active.button {
opacity: 1 !important;
background-color: #B0B0B0;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(0, 0, 0, 0)), to(rgba(255, 255, 255, 0.1)));
background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: -moz-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: -o-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
color: #FFFFFF;
-webkit-box-shadow:
0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset
;
-moz-box-shadow:
0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset
;
box-shadow:
0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset
;
}
/*-------------- /*--------------
Hover Hover
---------------*/ ---------------*/
.ui.button:hover { .ui.button:hover,
.ui.active.button:hover {
opacity: 1 !important; opacity: 1 !important;
background-color: #A4A4A4; background-color: #A4A4A4;
@ -206,7 +282,8 @@
Down Down
---------------*/ ---------------*/
.ui.button:active { .ui.button:active,
.ui.active.button:active {
opacity: 1 !important; opacity: 1 !important;
background-color: #8C8C8C; background-color: #8C8C8C;
@ -218,35 +295,6 @@
box-shadow: 0px 1px 0.2em 0px rgba(0, 0, 0, 0.3) inset; box-shadow: 0px 1px 0.2em 0px rgba(0, 0, 0, 0.3) inset;
} }
/*--------------
Active
---------------*/
.ui.buttons .active.button,
.ui.active.button {
opacity: 1 !important;
background-color: #B0B0B0;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(0, 0, 0, 0)), to(rgba(255, 255, 255, 0.1)));
background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: -moz-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: -o-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
background-image: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
color: #FFFFFF;
-webkit-box-shadow:
0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset
;
-moz-box-shadow:
0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset
;
box-shadow:
0px 0px 0.3em 0px rgba(0, 0, 0, 0.3) inset
;
}
/*-------------- /*--------------
Error Error
---------------*/ ---------------*/
@ -524,7 +572,7 @@
color: #999999 !important; color: #999999 !important;
font-weight: normal; font-weight: normal;
text-transform: none; text-transform: none;
text-shadow: none; text-shadow: none !important;
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
@ -539,17 +587,6 @@
-moz-border-radius: 0.2em; -moz-border-radius: 0.2em;
border-radius: 0.2em; border-radius: 0.2em;
} }
.ui.basic.buttons .button {
border: none !important;
border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.ui.basic.buttons .button:first-child {
border-left: none !important;
}
.ui.basic.buttons .button:hover, .ui.basic.buttons .button:hover,
.ui.basic.button:hover { .ui.basic.button:hover {
@ -572,15 +609,36 @@
background-color: rgba(0, 0, 0, 0.05); background-color: rgba(0, 0, 0, 0.05);
color: #7F7F7F; color: #7F7F7F;
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; -webkit-box-shadow: 0px 0px 0px 1px #BDBDBD inset;
-moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; -moz-box-shadow: 0px 0px 0px 1px #BDBDBD inset;
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset; box-shadow: 0px 0px 0px 1px #BDBDBD inset;
} }
.ui.basic.buttons .button.active:hover, .ui.basic.buttons .button.active:hover,
.ui.basic.button.active:hover { .ui.basic.button.active:hover {
background-color: rgba(0, 0, 0, 0.1); background-color: rgba(0, 0, 0, 0.1);
} }
/* Basic Group */
.ui.basic.buttons .button {
border: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.ui.basic.buttons .button:hover,
.ui.basic.buttons .button:active {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.ui.basic.buttons .button.active {
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
}
/*-------------- /*--------------
Labeled Icon Labeled Icon
@ -1038,6 +1096,26 @@
color: #FFFFFF; color: #FFFFFF;
} }
/*--- Orange ---*/
.ui.orange.buttons .button,
.ui.orange.button {
background-color: #E96633;
color: #FFFFFF;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
}
.ui.orange.buttons .button:hover,
.ui.orange.button:hover,
.ui.orange.buttons .active.button,
.ui.orange.button.active {
background-color: #FF7038;
color: #FFFFFF;
}
.ui.orange.buttons .button:active,
.ui.orange.button:active {
background-color: #DA683B;
color: #FFFFFF;
}
/*--- Blue ---*/ /*--- Blue ---*/
.ui.blue.buttons .button, .ui.blue.buttons .button,
.ui.blue.button { .ui.blue.button {

4
src/elements/header.less

@ -26,7 +26,6 @@
} }
.ui.header .ui.sub.header,
.ui.header .sub.header { .ui.header .sub.header {
font-size: 1rem; font-size: 1rem;
font-weight: normal; font-weight: normal;
@ -252,6 +251,9 @@ h5.ui.header {
padding-bottom: 0.2rem; padding-bottom: 0.2rem;
border-bottom: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(0, 0, 0, 0.1);
} }
.ui.dividing.header .sub.header {
padding-bottom: 0.5em;
}
.ui.dividing.header .icon { .ui.dividing.header .icon {
margin-bottom: 0.2em; margin-bottom: 0.2em;
} }

12
src/elements/image.less

@ -68,9 +68,9 @@ img.ui.image {
.ui.circular.images img, .ui.circular.images img,
.ui.circular.image img, .ui.circular.image img,
.ui.circular.image { .ui.circular.image {
-webkit-border-radius: 500em; -webkit-border-radius: 500rem;
-moz-border-radius: 500em; -moz-border-radius: 500rem;
border-radius: 500em; border-radius: 500rem;
} }
/*-------------- /*--------------
@ -88,9 +88,9 @@ img.ui.image {
width: 2em; width: 2em;
height: 2em; height: 2em;
-webkit-border-radius: 500em; -webkit-border-radius: 500rem;
-moz-border-radius: 500em; -moz-border-radius: 500rem;
border-radius: 500em; border-radius: 500rem;
} }

7
src/elements/label.less

@ -674,11 +674,10 @@ a.ui.teal.label:hover:before {
line-height: 1em; line-height: 1em;
text-align: center; text-align: center;
vertical-align: baseline;
-webkit-border-radius: 500em; -webkit-border-radius: 500rem;
-moz-border-radius: 500em; -moz-border-radius: 500rem;
border-radius: 500em; border-radius: 500rem;
} }
/*------------------- /*-------------------

337
src/modules/chat.less

@ -1,337 +0,0 @@
/*******************************
Chat Room
*******************************/
.ui.chat {
background-color: #F8F8F8;
width: 330px;
height: 370px;
padding: 0px;
}
.ui.chat .room {
position: relative;
overflow: hidden;
height: 286px;
border: 1px solid #999999;
border-top: none;
border-bottom: none;
}
.ui.chat .room .throbber {
display: none;
margin: -25px 0px 0px -25px;
}
/* Chat Room Actions */
.ui.chat .actions {
overflow: hidden;
background-color: #EEEEEE;
padding: 4px;
border: 1px solid #BBBBBB;
-moz-border-radius: 5px 5px 0px 0px;
-webkit-border-radius: 5px 5px 0px 0px;
border-radius: 5px 5px 0px 0px;
}
.ui.chat .actions .button {
float: right;
margin-left: 3px;
}
/* Online User Count */
.ui.chat .actions .message {
float: left;
margin-left: 6px;
font-size: 11px;
color: #AAAAAA;
text-shadow: 0px -1px 0px rgba(255, 255, 255, 0.8);
line-height: 28px;
}
.ui.chat .actions .message .throbber {
display: inline-block;
margin-right: 8px;
vertical-align: middle;
vertical-align: text-bottom;
}
/* Chat Room Text Log */
.ui.chat .log {
float: left;
overflow: auto;
overflow-x: hidden;
overflow-y: auto;
}
.ui.chat .log .message {
padding: 3px 0px;
border-top: 1px dotted #DADADA;
}
.ui.chat .log .message:first-child {
border-top: none;
}
/* status event */
.ui.chat .status {
padding: 5px 0px;
color: #AAAAAA;
font-size: 12px;
font-style: italic;
line-height: 1.33;
border-top: 1px dotted #DADADA;
}
.ui.chat .log .status:first-child {
border-top: none;
}
.ui.chat .log .flag {
float: left;
}
.ui.chat .log p {
margin-left: 0px;
}
.ui.chat .log .author {
font-weight: bold;
-webkit-transition: color 0.3s ease-out;
-moz-transition: color 0.3s ease-out;
-o-transition: color 0.3s ease-out;
-ms-transition: color 0.3s ease-out;
transition: color 0.3s ease-out;
}
.ui.chat .log a.author:hover {
opacity: 0.8;
}
.ui.chat .log .message.admin p {
font-weight: bold;
margin: 1px 0px 0px 23px;
}
.ui.chat .log .divider {
margin: -1px 0px;
font-size: 11px;
padding: 10px 0px;
border-top: 1px solid #F8F8F8;
border-bottom: 1px solid #F8F8F8;
}
.ui.chat .log .divider .rule {
top: 50%;
width: 15%;
}
.ui.chat .log .divider .label {
color: #777777;
margin: 0px;
}
/* Chat Room User List */
.ui.chat .room .user-list {
position: relative;
overflow: auto;
overflow-x: hidden;
overflow-y: auto;
float: left;
background-color: #EEEEEE;
border-left: 1px solid #DDDDDD;
}
.ui.chat .room .user-list .user {
display: table;
padding: 3px 7px;
border-bottom: 1px solid #DDDDDD;
}
.ui.chat .room .user-list .user:hover {
background-color: #F8F8F8;
}
.ui.chat .room .user-list .image {
display: table-cell;
vertical-align: middle;
width: 20px;
}
.ui.chat .room .user-list .image img {
width: 20px;
height: 20px;
vertical-align: middle;
}
.ui.chat .room .user-list p {
display: table-cell;
vertical-align: middle;
padding-left: 7px;
padding-right: 14px;
font-size: 11px;
line-height: 1.2;
font-weight: bold;
}
.ui.chat .room .user-list a:hover {
opacity: 0.8;
}
/* User List Loading */
.ui.chat.loading .throbber {
display: block;
}
/* Chat Room Talk Input */
.ui.chat .talk {
border: 1px solid #999999;
border-top: 1px solid #BBBBBB;
padding: 5px 0px 0px;
background-color: #CCCCCC;
background: #FFFFFF -webkit-linear-gradient(top , #EEEEEE 0%, #AAAAAA 100%) repeat;
background: #FFFFFF -moz-linear-gradient(top , #EEEEEE 0%, #AAAAAA 100%) repeat;
background: #FFFFFF -o-linear-gradient(top , #EEEEEE 0%, #AAAAAA 100%) repeat;
background: #FFFFFF -ms-linear-gradient(top , #EEEEEE 0%, #AAAAAA 100%) repeat;
background: #FFFFFF linear-gradient(top , #EEEEEE 0%, #AAAAAA 100%) repeat;
-webkit-box-shadow: 0px 1px 0px #FFFFFF inset;
-moz-box-shadow: 0px 1px 0px #FFFFFF inset;
box-shadow: 0px 1px 0px #FFFFFF inset;
-webkit-border-radius: 0px 0px 5px 5px;
-moz-border-radius: 0px 0px 5px 5px;
border-radius: 0px 0px 5px 5px;
}
.ui.chat .talk .avatar,
.ui.chat .talk input,
.ui.chat .talk .button {
float: left;
}
.ui.chat .talk .avatar {
border-top: 1px solid #BBBBBB;
border-left: 1px solid #BBBBBB;
width: 30px;
height: 30px;
margin: 0px 0px 0px 5px;
background-color: #DADADA;
}
.ui.chat .talk .avatar img {
display: block;
width: 30px;
height: 30px;
margin-right: 4px;
}
.ui.chat .talk input {
border: 1px solid #CCCCCC;
margin: 0px;
width: 196px;
height: 14px;
padding: 8px 5px;
font-size: 12px;
color: #555555;
}
.ui.chat .talk input.focus {
border: 1px solid #AAAAAA;
}
.ui.chat .send {
margin-left: -2px;
width: 54px;
height: 22px;
line-height: 23px;
font-size: 12px;
padding: 4px 12px;
-moz-box-shadow: -2px 0 2px -2px rgba(0, 0, 0, 0.3);
-webkit-box-shadow: -2px 0 2px -2px rgba(0, 0, 0, 0.3);
box-shadow: -2px 0 2px -2px rgba(0, 0, 0, 0.3);
border-radius: 0px 5px 5px 0px;
}
.ui.chat .talk .log-in.button {
display: block;
float: none;
margin-top: -6px;
height: 22px;
border-radius: 0px 0px 4px 4px;
}
.ui.chat .talk .log-in.button i {
vertical-align: text-top;
}
/* Quirky Flags */
.ui.chat .log .team.flag {
width: 18px;
}
/* Chat room Loaded */
.ui.chat.loading .throbber {
display: block;
}
/* Standard Size */
.ui.chat {
width: 330px;
height: 370px;
}
.ui.chat .room .container {
width: 3000px;
}
.ui.chat .log {
width: 314px;
height: 278px;
padding: 4px 7px;
}
.ui.chat .room .user-list {
width: 124px;
height: 278px;
padding: 4px 0px;
}
.ui.chat .room .user-list .user {
width: 110px;
}
.ui.chat .talk {
height: 40px;
}
/* Full Width (Based off 960) */
/*
.ui.chat.expand {
width: 665px;
height: 368px;
}
.ui.chat.expand .room {
width: 663px;
height: 283px;
}
.ui.chat.expand .room .user-list,
.ui.chat.expand .room .log {
height: 275px;
}
.ui.chat.expand .room .log {
width: 650px;
}
.ui.chat.expand .talk input {
width: 530px;
}
.ui.chat.expand .send {
width: 50px;
}
.ui.chat.massive {
width: 960px;
height: 415px;
}
.ui.chat.massive .room {
width: 958px;
height: 330px;
}
.ui.chat.massive .room .user-list,
.ui.chat.massive .room .log {
height: 321px;
}
.ui.chat.massive .room .log {
width: 944px;
}
.ui.chat.massive .talk input {
width: 830px;
}
.ui.chat.massive .send {
width: 50px;
}
*/

284
src/modules/checkbox.less

@ -84,10 +84,10 @@
} }
.ui.checkbox .box:after, .ui.checkbox .box:after,
.ui.checkbox label:after { .ui.checkbox label:after {
width: 0.5em; top: 0.3em;
height: 0.2em;
top: 0.25em;
left: 0.2em; left: 0.2em;
width: 0.45em;
height: 0.15em;
} }
/*--- Label ---*/ /*--- Label ---*/
@ -178,151 +178,201 @@
} }
/*-------------- /*--------------
Sizes Slider
---------------*/ ---------------*/
.ui.checkbox { .ui.slider.checkbox {
width: 1em; width: 3em;
height: 1em; height: 2em;
}
.ui.checkbox,
.ui.checkbox .box,
.ui.checkbox label {
font-size: 1em;
} }
/* Line */
.ui.slider.checkbox:after {
position: absolute;
top: 1em;
left: 0em;
content: '';
.ui.large.checkbox { width: 100%;
width: 1.25em; height: 2px;
height: 1.25em; background-color: rgba(0, 0, 0, 0.1);
}
.ui.large.checkbox,
.ui.large.checkbox .box,
.ui.large.checkbox label {
font-size: 1.25em;
} }
.ui.huge.checkbox { /* Button */
.ui.slider.checkbox .box,
.ui.slider.checkbox label {
cursor: pointer;
display: block;
position: absolute;
top: 0.25em;
left: 0;
z-index: 1;
width: 1.5em; width: 1.5em;
height: 1.5em; height: 1.5em;
}
.ui.huge.checkbox,
.ui.huge.checkbox .box,
.ui.huge.checkbox label {
font-size: 1.5em;
}
/*-------------- -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
Colors -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
---------------*/ box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
border-radius: 50rem;
.ui.round.blue.checkbox label:after { -webkit-transition: left 0.3s ease 0s;
background: -webkit-linear-gradient(top, #016286 0%, #00506E 100%); -moz-transition: left 0.3s ease 0s;
background: -moz-linear-gradient(top, #016286 0%, #00506E 100%); -o-transition: left 0.3s ease 0s;
background: -o-linear-gradient(top, #016286 0%, #00506E 100%); -ms-transition: left 0.3s ease 0s;
background: -ms-linear-gradient(top, #016286 0%, #00506E 100%); transition: left 0.3s ease 0s;
background: linear-gradient(top, #016286 0%, #00506E 100%);
} }
/* Button Activation Light */
.ui.slider.checkbox .box:after,
.ui.slider.checkbox label:after {
opacity: 1;
/*-------------- position: absolute;
Rounded content: '';
---------------*/ top: 0.375em;
left: 0.375em;
/* Alternate Round Style */ border: none;
.ui.round.checkbox { width: 0.75em;
width: 20px; height: 0.75em;
height: 20px;
margin: 0px auto;
background-color: #D95C5C;
background: #FCFFF4; border-radius: 50rem;
background: -webkit-linear-gradient(top, #FCFFF4 0%, #dfe5d7 40%, #b3bead 100%);
background: -moz-linear-gradient(top, #FCFFF4 0%, #dfe5d7 40%, #b3bead 100%);
background: -o-linear-gradient(top, #FCFFF4 0%, #dfe5d7 40%, #b3bead 100%);
background: -ms-linear-gradient(top, #FCFFF4 0%, #dfe5d7 40%, #b3bead 100%);
background: linear-gradient(top, #FCFFF4 0%, #dfe5d7 40%, #b3bead 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FCFFF4', endColorstr='#b3bead',GradientType=0 );
-webkit-border-radius: 500px; -webkit-transition: background 0.3s ease 0s;
-moz-border-radius: 500px; -moz-transition: background 0.3s ease 0s;
border-radius: 500px; -o-transition: background 0.3s ease 0s;
-ms-transition: background 0.3s ease 0s;
transition: background 0.3s ease 0s;
}
-webkit-box-shadow: inset 0px 1px 1px white, 0px 1px 3px rgba(0,0,0,0.5); /* Active Slider Toggle */
-moz-box-shadow: inset 0px 1px 1px white, 0px 1px 3px rgba(0,0,0,0.5); .ui.slider.checkbox input:checked + .box,
box-shadow: inset 0px 1px 1px white, 0px 1px 3px rgba(0,0,0,0.5); .ui.slider.checkbox input:checked + label {
position: relative; left: 1.75em;
} }
.ui.slider.checkbox input:checked + .box:after,
.ui.slider.checkbox input:checked + label:after {
background-color: #89B84C;
}
/*--------------
Toggle
---------------*/
.ui.round.checkbox .box, .ui.toggle.checkbox {
.ui.round.checkbox label { width: 3em;
height: 2em;
}
/* Line */
.ui.toggle.checkbox:after {
cursor: pointer; cursor: pointer;
display: block;
position: absolute; position: absolute;
width: 14px; content: '';
height: 14px; top: 0.25em;
left: 0em;
z-index: 1;
-webkit-border-radius: 500px; background-color: #FFFFFF;
-moz-border-radius: 500px; width: 100%;
border-radius: 500px; height: 1.5em;
left: 3px;
top: 3px;
-webkit-box-shadow: -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
0px 1px 1px rgba(0, 0, 0, 0.5) inset, -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
0px 1px 0px rgba(255,255,255,1) box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
;
-moz-box-shadow:
0px 1px 1px rgba(0, 0, 0, 0.5) inset,
0px 1px 0px rgba(255,255,255,1)
;
box-shadow:
0px 1px 1px rgba(0, 0, 0, 0.5) inset,
0px 1px 0px rgba(255,255,255,1)
;
background: -webkit-linear-gradient(top, #222222 0%, #4D4D4D 100%); border-radius: 50rem;
background: -moz-linear-gradient(top, #222222 0%, #4D4D4D 100%); }
background: -o-linear-gradient(top, #222222 0%, #4D4D4D 100%); .ui.toggle.checkbox .box,
background: -ms-linear-gradient(top, #222222 0%, #4D4D4D 100%); .ui.toggle.checkbox label {
background: linear-gradient(top, #222222 0%, #4D4D4D 100%); position: absolute;
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#222222', endColorstr='#4D4D4D',GradientType=0 ); top: 0.65em;
left: 0.5em;
-webkit-transition: left 0.3s ease 0s;
-moz-transition: left 0.3s ease 0s;
-o-transition: left 0.3s ease 0s;
-ms-transition: left 0.3s ease 0s;
transition: left 0.3s ease 0s;
background-color: transparent;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
} }
/* Button Activation Light */
.ui.toggle.checkbox .box:after,
.ui.toggle.checkbox label:after {
opacity: 1;
.ui.round.checkbox .box:after,
.ui.round.checkbox label:after {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: alpha(opacity=0);
opacity: 0;
content: ''; content: '';
position: absolute; position: absolute;
width: 10px; top: 0px;
height: 10px; left: 0px;
background: #B6B6B6; z-index: 2;
background: -webkit-linear-gradient(top, #B6B6B6 0%, #929292 100%);
background: -moz-linear-gradient(top, #B6B6B6 0%, #929292 100%);
background: -o-linear-gradient(top, #B6B6B6 0%, #929292 100%);
background: -ms-linear-gradient(top, #B6B6B6 0%, #929292 100%);
background: linear-gradient(top, #B6B6B6 0%, #929292 100%);
border: none; border: none;
-webkit-border-radius: 500px; width: 0.75em;
-moz-border-radius: 500px; height: 0.75em;
border-radius: 500px;
top: 2px;
left: 2px;
-webkit-box-shadow: inset 0px 1px 1px white, 0px 1px 3px rgba(0,0,0,0.5); background-color: #D95C5C;
-moz-box-shadow: inset 0px 1px 1px white, 0px 1px 3px rgba(0,0,0,0.5);
box-shadow: inset 0px 1px 1px white, 0px 1px 3px rgba(0,0,0,0.5); border-radius: 50rem;
-webkit-transition: background 0.3s ease 0s;
-moz-transition: background 0.3s ease 0s;
-o-transition: background 0.3s ease 0s;
-ms-transition: background 0.3s ease 0s;
transition: background 0.3s ease 0s;
} }
.ui.round.checkbox .box:hover:after,
.ui.round.checkbox label:hover:after { /* Active toggle Toggle */
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; .ui.toggle.checkbox input:checked + .box,
filter: alpha(opacity=30); .ui.toggle.checkbox input:checked + label {
opacity: 0.3; left: 1.75em;
} }
.ui.round.checkbox input:checked + .box:after, .ui.toggle.checkbox input:checked + .box:after,
.ui.round.checkbox input:checked + label:after { .ui.toggle.checkbox input:checked + label:after {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; background-color: #89B84C;
filter: alpha(opacity=100);
opacity: 1;
} }
/*--------------
Sizes
---------------*/
.ui.checkbox {
width: 1em;
height: 1em;
}
.ui.checkbox,
.ui.checkbox .box,
.ui.checkbox label {
font-size: 1em;
}
.ui.large.checkbox {
width: 1.25em;
height: 1.25em;
}
.ui.large.checkbox,
.ui.large.checkbox .box,
.ui.large.checkbox label {
font-size: 1.25em;
}
.ui.huge.checkbox {
width: 1.5em;
height: 1.5em;
}
.ui.huge.checkbox,
.ui.huge.checkbox .box,
.ui.huge.checkbox label {
font-size: 1.5em;
}

16
src/modules/dimmer.less

@ -20,6 +20,7 @@
} }
.ui.dimmer { .ui.dimmer {
display: none;
position: absolute; position: absolute;
top: 0em !important; top: 0em !important;
left: 0em !important; left: 0em !important;
@ -76,7 +77,7 @@
} }
/* /*
.ui.dimmable.dimmed > :not(.dimmer) { .ui.dimmed.dimmable > :not(.dimmer) {
-webkit-transition: -webkit-transition:
filter 0.5s ease filter 0.5s ease
; ;
@ -131,13 +132,14 @@
States States
*******************************/ *******************************/
.ui.dimmable.dimmed > :not(.dimmer) { .ui.dimmed.dimmable > :not(.dimmer) {
-webkit-filter: ~"blur(5px) grayscale(0.7)"; -webkit-filter: ~"blur(5px) grayscale(0.7)";
-moz-filter: ~"blur(5px) grayscale(0.7)"; -moz-filter: ~"blur(5px) grayscale(0.7)";
} }
.ui.dimmable.dimmed > .ui.dimmer, .ui.dimmed.dimmable > .ui.dimmer,
.ui.dimmer.active { .ui.active.dimmer {
display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;
opacity: 1; opacity: 1;
@ -171,7 +173,7 @@
transform-origin: top center; transform-origin: top center;
} }
/* /*
body.ui.dimmable.dimmed > :not(.dimmer){ body.ui.dimmed.dimmable > :not(.dimmer){
-webkit-filter: ~"blur(15px) grayscale(0.7)"; -webkit-filter: ~"blur(15px) grayscale(0.7)";
-moz-filter: ~"blur(15px) grayscale(0.7)"; -moz-filter: ~"blur(15px) grayscale(0.7)";
} }
@ -211,7 +213,7 @@ body.ui.dimmable.dimmed > :not(.dimmer){
z-index: -100; z-index: -100;
background-color: rgba(0, 0, 0, 0); background-color: rgba(0, 0, 0, 0);
} }
.ui.dimmable.dimmed > .ui.simple.dimmer { .ui.dimmed.dimmable > .ui.simple.dimmer {
overflow: visible; overflow: visible;
opacity: 1; opacity: 1;
width: 100%; width: 100%;
@ -223,6 +225,6 @@ body.ui.dimmable.dimmed > :not(.dimmer){
.ui.simple.inverted.dimmer { .ui.simple.inverted.dimmer {
background-color: rgba(255, 255, 255, 0); background-color: rgba(255, 255, 255, 0);
} }
.ui.dimmable.dimmed > .ui.simple.inverted.dimmer { .ui.dimmed.dimmable > .ui.simple.inverted.dimmer {
background-color: rgba(255, 255, 255, 0.85) background-color: rgba(255, 255, 255, 0.85)
} }

8
src/modules/reveal.less

@ -16,8 +16,14 @@
*******************************/ *******************************/
.ui.reveal { .ui.reveal {
display: inline-block;
position: relative !important; position: relative !important;
z-index: 2 !important; z-index: 2 !important;
font-size: 0em !important;
}
.ui.reveal > .content {
font-size: 1em !important;
} }
.ui.reveal > .visible.content { .ui.reveal > .visible.content {
@ -39,8 +45,6 @@
position: absolute !important; position: absolute !important;
top: 0em !important; top: 0em !important;
left: 0em !important; left: 0em !important;
width: 100% !important;
height: 100% !important;
z-index: 4 !important; z-index: 4 !important;
-webkit-transition: -webkit-transition:
all 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s all 0.8s cubic-bezier(0.175, 0.885, 0.320, 1) 0.15s

10
src/modules/search.less

@ -24,9 +24,9 @@
} }
.ui.search input { .ui.search input {
-webkit-border-radius: 500em; -webkit-border-radius: 500rem;
-moz-border-radius: 500em; -moz-border-radius: 500rem;
border-radius: 500em; border-radius: 500rem;
} }
/*-------------- /*--------------
@ -58,7 +58,7 @@
z-index: 999; z-index: 999;
top: 100%; top: 100%;
left: 0px; left: 0px;
overflow: hidden; overflow: hidden;
background-color: #FFFFFF; background-color: #FFFFFF;
@ -192,7 +192,7 @@
height: 2em; height: 2em;
line-height: 2em; line-height: 2em;
color: rgba(0, 0, 0, 0.6); color: rgba(0, 0, 0, 0.6);
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
} }

62
src/modules/star.less

@ -1,62 +0,0 @@
/*******************************
Star Rating
*******************************/
.star.module {
min-width: 88px;
height: 42px;
unicode-bidi: bidi-override;
direction: rtl;
font-size: 26px;
}
.star.module i,
.ui.star {
cursor: default;
float: left;
padding: 2px 1px;
font-style: normal;
font-weight: normal;
content: "\2605";
color: transparent;
}
/* Non Selected Star */
.star.module i:after,
.ui.star:after {
content: "\2605";
color: #8C8C8C;
-webkit-transition: all 0.25s;
-moz-transition: all 0.25s;
-o-transition: all 0.25s;
-ms-transition: all 0.25s;
transition: all 0.25s;
}
/*--------------
States
---------------*/
/* Initialized is now clickable */
.star.module.initialize,
.star.module.initialize i {
cursor: pointer;
}
/* Current Star Rating */
.star.module i.active:after {
color: #FFCB08;
}
.star.module.hover i.active:after {
opacity: 0.5;
}
/* Hover */
.star.module i.hover:after,
.star.module i.hover.active:after {
opacity: 1;
color: #FFB70A;
text-shadow: 0px 0px 7px #FFCB08;
}

3
src/views/feed.less

@ -125,6 +125,9 @@
Variations Variations
*******************************/ *******************************/
.ui.small.feed {
font-size: 0.875em;
}
.ui.small.feed .label img { .ui.small.feed .label img {
width: 2.5em; width: 2.5em;
} }

10
src/views/list.less

@ -25,7 +25,7 @@ ul.ui.list ul,
ol.ui.list ol, ol.ui.list ol,
.ui.list .list { .ui.list .list {
margin: 0em; margin: 0em;
padding: 0.5em 0em 0.5em 0.5em; padding: 0.5em 0em 0.5em 1em;
} }
ul.ui.list:first-child, ul.ui.list:first-child,
@ -229,7 +229,7 @@ ul.ui.list li:before,
.ui.bulleted.list .item:before { .ui.bulleted.list .item:before {
position: absolute; position: absolute;
left: -1em; left: -1em;
content: '·'; content: '';
line-height: 1.2rem; line-height: 1.2rem;
vertical-align: top; vertical-align: top;
@ -293,11 +293,11 @@ ol.ui.list li:before,
ol.ui.list ol, ol.ui.list ol,
.ui.ordered.list .list { .ui.ordered.list .list {
counter-reset: ordered; counter-reset: ordered;
padding-left: 2em; padding-left: 3em;
} }
ol.ui.list ol ol li:before, ol.ui.list ol li:before,
.ui.ordered.list .list .list .item:before { .ui.ordered.list .list .item:before {
left: -2.5em; left: -2.5em;
} }

Loading…
Cancel
Save