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

64
build/packaged/modules/star.js

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

4
build/uncompressed/collections/menu.css

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

139
build/uncompressed/elements/button.css

@ -66,6 +66,48 @@
margin: -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
--------------------*/
@ -111,10 +153,29 @@
/*******************************
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
---------------*/
.ui.button:hover {
.ui.button:hover,
.ui.active.button:hover {
opacity: 1 !important;
background-color: #A4A4A4;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
@ -127,7 +188,8 @@
/*--------------
Down
---------------*/
.ui.button:active {
.ui.button:active,
.ui.active.button:active {
opacity: 1 !important;
background-color: #8C8C8C;
color: #FFFFFF;
@ -136,24 +198,6 @@
-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;
}
/*--------------
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
---------------*/
@ -395,7 +439,7 @@
color: #999999 !important;
font-weight: normal;
text-transform: none;
text-shadow: none;
text-shadow: none !important;
-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;
@ -408,16 +452,6 @@
-moz-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.button:hover {
color: #7F7F7F !important;
@ -437,14 +471,32 @@
.ui.basic.button.active {
background-color: rgba(0, 0, 0, 0.05);
color: #7F7F7F;
-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;
-webkit-box-shadow: 0px 0px 0px 1px #BDBDBD inset;
-moz-box-shadow: 0px 0px 0px 1px #BDBDBD inset;
box-shadow: 0px 0px 0px 1px #BDBDBD inset;
}
.ui.basic.buttons .button.active:hover,
.ui.basic.button.active:hover {
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
---------------*/
@ -848,6 +900,25 @@
background-color: #D24B4C;
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 ---*/
.ui.blue.buttons .button,
.ui.blue.button {

4
build/uncompressed/elements/header.css

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

12
build/uncompressed/elements/image.css

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

7
build/uncompressed/elements/label.css

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

231
build/uncompressed/modules/checkbox.css

@ -58,10 +58,10 @@
}
.ui.checkbox .box:after,
.ui.checkbox label:after {
width: 0.5em;
height: 0.2em;
top: 0.25em;
top: 0.3em;
left: 0.2em;
width: 0.45em;
height: 0.15em;
}
/*--- Label ---*/
.ui.checkbox + label {
@ -132,6 +132,140 @@
-moz-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
---------------*/
@ -162,94 +296,3 @@
.ui.huge.checkbox label {
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;
}
.ui.dimmer {
display: none;
position: absolute;
top: 0em !important;
left: 0em !important;
@ -52,7 +53,7 @@
z-index: 1000;
}
/*
.ui.dimmable.dimmed > :not(.dimmer) {
.ui.dimmed.dimmable > :not(.dimmer) {
-webkit-transition:
filter 0.5s ease
;
@ -99,12 +100,13 @@
/*******************************
States
*******************************/
.ui.dimmable.dimmed > :not(.dimmer) {
.ui.dimmed.dimmable > :not(.dimmer) {
-webkit-filter: blur(5px) grayscale(0.7);
-moz-filter: blur(5px) grayscale(0.7);
}
.ui.dimmable.dimmed > .ui.dimmer,
.ui.dimmer.active {
.ui.dimmed.dimmable > .ui.dimmer,
.ui.active.dimmer {
display: block;
width: 100%;
height: 100%;
opacity: 1;
@ -131,7 +133,7 @@
transform-origin: top center;
}
/*
body.ui.dimmable.dimmed > :not(.dimmer){
body.ui.dimmed.dimmable > :not(.dimmer){
-webkit-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;
background-color: rgba(0, 0, 0, 0);
}
.ui.dimmable.dimmed > .ui.simple.dimmer {
.ui.dimmed.dimmable > .ui.simple.dimmer {
overflow: visible;
opacity: 1;
width: 100%;
@ -176,6 +178,6 @@ body.ui.dimmable.dimmed > :not(.dimmer){
.ui.simple.inverted.dimmer {
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);
}

7
build/uncompressed/modules/reveal.css

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

6
build/uncompressed/modules/search.css

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

29
build/uncompressed/modules/star.css

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

64
build/uncompressed/modules/star.js

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

3
build/uncompressed/views/feed.css

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

10
build/uncompressed/views/list.css

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

2
node/package.json

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

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

@ -100,14 +100,21 @@ type : 'UI Collection'
<input type="checkbox" id="uniqueid" />
<label for="uniqueid"></label>
</div>
<label>Static Checkbox</label>
<label>Checkbox</label>
</div>
<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"/>
<label></label>
</div>
<label>JS Checkbox</label>
<label>Toggle</label>
</div>
</div>
</div>

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

@ -55,6 +55,22 @@ type : 'UI Element'
</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">
<h4 class="ui header">Social</h4>
<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>
Add Friend
</div>
<div class="ui basic teal button">
<div class="ui basic button">
<i class="icon desk globe"></i>
Change Language
</div>
@ -204,6 +220,7 @@ type : 'UI Element'
<a class="ui blue button">Blue Button</a>
<a class="ui purple button">Purple Button</a>
<a class="ui teal button">Teal Button</a>
<a class="ui orange button">Orange Button</a>
</div>
<div class="example">
@ -253,10 +270,6 @@ type : 'UI Element'
<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">
<h4 class="ui header">Vertical</h4>
<p>Groups can be formatted to appear vertically</p>
@ -326,7 +339,7 @@ type : 'UI Element'
<div class="example">
<h4 class="ui header">Basic</h4>
<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">Two</div>
<div class="ui button">Three</div>

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

@ -52,7 +52,7 @@ type : 'UI Element'
<div class="example">
<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">
<img src="/images/demo/photo2.jpg">
dog@doggington.com

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

@ -97,6 +97,38 @@ type : 'UI Guide'
}
</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>
<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>
<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>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">
/* not tops */
.ui.message .wrapper .title,

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

@ -15,7 +15,7 @@ type : 'Semantic'
<div class="column">
<h1 class="ui header">Semantic UI</h1>
<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 red huge right labeled icon button" href="introduction.html" class="ui button">Get Started <i class="icon right arrow"></i> </a>
</div>

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

@ -30,20 +30,20 @@ type : 'UI Introduction'
<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>
<table class="ui celled table">
<table class="ui celled table segment">
<tr>
<td class="two wide"><b>Element</b></td>
<td> a basic building block of a website, exists alone or in homogenous groups</td>
</tr>
<tr>
<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>
<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>
<td><b>Module</b></td>
@ -68,12 +68,12 @@ type : 'UI Introduction'
</div>
</div>
Examples of UI elements:
<h3 class="ui header">Examples of UI elements:</h3>
<table class="ui celled table">
<tr>
<td class="two wide"><b>Button</b></td>
<td>
<div class="ui button">Button</div>
<div class="ui labeled teal icon button"><i class="globe icon"></i>Button</div>
</td>
</tr>
<tr>
@ -85,8 +85,9 @@ type : 'UI Introduction'
<tr>
<td><b>Input</b></td>
<td>
<div class="ui input">
<div class="ui icon input">
<input value="input">
<i class="search icon"></i>
</div>
</td>
</tr>
@ -99,7 +100,7 @@ type : 'UI Introduction'
<tr>
<td><b>Segment</b></td>
<td>
<div class="ui segment">Segment</div>
<div class="ui stacked segment">Segment</div>
</td>
</tr>
</table>
@ -110,7 +111,7 @@ type : 'UI Introduction'
<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">
<li>Forms</li>
<li>Tables</li>
@ -134,7 +135,7 @@ type : 'UI Introduction'
<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">
<li>Comment Feed</li>
<li>Activity Feed</li>
@ -155,9 +156,6 @@ type : 'UI Introduction'
<i class="right arrow icon"></i>
</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>
@ -174,7 +172,7 @@ type : 'UI Introduction'
</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="ui inverted menu">

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="ui compact menu">
<div class="item">Home</div>
<div class="item">
<a class="item">Home</a>
<a class="item">
Inbox
<div class="ui label">22</div>
</div>
</a>
</div>
</div>
@ -52,7 +52,7 @@ type : 'UI Introduction'
<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">
$('.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="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">Behavior</a>
<a class="item">Examples</a>
<a class="item">Usage</a>
</div>
</div>
<h2 class="ui dividing header">Types</h2>
<h2 class="ui dividing header">Usage</h2>
<div class="example">
<h4 class="ui header">Check Box</h4>
@ -46,22 +46,45 @@ type : 'UI Module'
<label>Poodle</label>
</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 class="static example">
<h4 class="ui header">Static Check Box</h4>
<p>A checkbox can function without javascript</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>
<h2 class="ui dividing header">Types</h2>
<div class="example">
<h4 class="ui header">Slider</h4>
<p>A checkbox can be formatted to show user selection as a slider</p>
<div class="ui slider checkbox">
<input type="checkbox" name="walk" />
<label></label>
</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>
<label> Allow other people to pet my dog</label>
</div>
<h2 class="ui dividing header">Variations</h2>
<div class="example">
<h4 class="ui header">Radio Box</h4>
@ -100,16 +123,16 @@ type : 'UI Module'
</div>
</div>
<h2 class="ui dividing header">Variations</h2>
<div class="example">
<h4 class="ui header">Size</h4>
<p>A checkbox can be a different size.</p>
<h4 class="ui dividing block header">
<div class="ui large checkbox">
<input type="checkbox" />
<label></label>
</div>
<label>Add a pro membership</label>
</h4>
<div class="ui large checkbox">
<input type="checkbox" />
<label></label>
</div>
<label>Add a pro membership</label>
</div>
<div class="another example">
<div class="ui huge checkbox">
@ -185,61 +208,50 @@ type : 'UI Module'
<div class="ui toggle button">Toggle</div>
</div>
<br><br>
<div class="ui checkbox">
<div class="ui slider checkbox">
<input type="checkbox" />
<div class="box"></div>
</div>
<div class="ui checkbox">
<div class="ui slider checkbox">
<input type="checkbox" checked="checked" />
<div class="box"></div>
</div>
<div class="ui checkbox">
<div class="ui slider checkbox">
<input type="checkbox" />
<div class="box"></div>
</div>
<div class="ui checkbox">
<div class="ui slider checkbox">
<input type="checkbox" checked="checked" />
<div class="box"></div>
</div>
<div class="ui checkbox">
<div class="ui slider checkbox">
<input type="checkbox" />
<div class="box"></div>
</div>
<div class="ui checkbox">
<div class="ui slider checkbox">
<input type="checkbox" />
<div class="box"></div>
</div>
<div class="ui checkbox">
<div class="ui slider checkbox">
<input type="checkbox" checked="checked" />
<div class="box"></div>
</div>
<div class="ui checkbox">
<div class="ui slider checkbox">
<input type="checkbox" />
<div class="box"></div>
</div>
<div class="ui checkbox">
<div class="ui slider checkbox">
<input type="checkbox" checked="checked" />
<div class="box"></div>
</div>
<div class="ui checkbox">
<div class="ui slider checkbox">
<input type="checkbox" />
<div class="box"></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>
<table class="ui red table segment">
<table class="ui red celled definition table segment">
<thead>
<th colspan="3">Checkbox Settings</th>
</thead>
@ -257,7 +269,7 @@ type : 'UI Module'
</tbody>
</table>
<table class="ui teal table segment">
<table class="ui teal celled definition table segment">
<thead>
<th colspan="3">Callbacks</th>
</thead>
@ -280,46 +292,43 @@ type : 'UI Module'
</tbody>
</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>
<th colspan="3">UI Module Settings</th>
<th>Setting</th>
<th class="four wide">Default</th>
<th>Description</th>
</thead>
<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>
<td>namespace</td>
<td>checkbox</td>
<td>Event namespace. Makes sure module teardown does not effect other events attached to an element.</td>
</tr>
<tr>
<td>errors</td>
<td>selector</td>
<td colspan="2">
<div class="code">
errors : {
method : 'The method you called is not defined.'
selector : {
input : 'input',
label : 'label'
}
</div>
</td>
</tr>
<tr>
<td>className</td>
<td colspan="2">
<div class="code">
className : {
radio : 'radio'
}
</div>
</td>
</tr>
</tbody>
</table>

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

@ -50,6 +50,7 @@ type : 'UI Module'
</div>
<div class="ui divider"></div>
<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">
// If a dimmer exists on a page, you can make it appear by calling it directly
$('.page.dimmer:first')

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

@ -27,7 +27,7 @@ type : 'UI Behavior'
<h2 class="ui dividing header">Usage</h2>
<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>
<!-- <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">
@ -117,7 +117,7 @@ type : 'UI Behavior'
</div>
<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>
<div class="info message">The template for error messages can be modified by adjusting settings.template.error</div>
@ -153,7 +153,7 @@ type : 'UI Behavior'
</div>
</div>
<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>
<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
@ -193,7 +193,7 @@ type : 'UI Behavior'
</div>
<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>
<div class="ui form segment">
<p>Let's go ahead and get you signed up.</p>

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>

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

@ -27,99 +27,50 @@ type : 'UI Module'
<div class="example">
<h4 class="ui header">Reveal</h4>
<p>A standard reveal</p>
<div class="ui ignored message">
<p>A standard reveal has no special formatting</p>
<div class="ui ignored red message">
A reveal will take no action unless a type of reveal is specified.
</div>
<div class="ui circular reveal image">
<div class="ui circular reveal">
<img class="visible content" src="/images/demo/stickfigure.jpg">
<img class="hidden content" src="/images/demo/photo2.jpg">
</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">
<h4 class="ui header">Fade</h4>
<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="hidden content" src="/images/demo/invention2.jpg">
<img class="hidden content" src="/images/demo/title.png">
</div>
</div>
<div class="example">
<h4 class="ui header">Move</h4>
<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="hidden content" src="/images/demo/invention2.jpg">
<img class="hidden content" src="/images/demo/title.png">
</div>
</div>
<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="hidden content" src="/images/demo/invention2.jpg">
<img class="hidden content" src="/images/demo/title.png">
</div>
</div>
<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="hidden content" src="/images/demo/invention2.jpg">
<img class="hidden content" src="/images/demo/title.png">
</div>
</div>
<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="hidden content" src="/images/demo/invention2.jpg">
<img class="hidden content" src="/images/demo/title.png">
</div>
</div>
@ -143,18 +94,18 @@ type : 'UI Module'
<div class="example">
<h4 class="ui header">Masked</h4>
<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">
<img class="visible content" src="/images/demo/stickfigure.jpg">
<img class="hidden content" src="/images/demo/photo2.jpg">
<div class="ui masked move reveal">
<img class="visible content" src="/images/demo/invention.jpg">
<img class="hidden content" src="/images/demo/title.png">
</div>
</div>
<div class="example">
<h4 class="ui header">Instant</h4>
<p>An element can show its content without delay</p>
<div class="ui circular instant move reveal image">
<img class="visible content" src="/images/demo/stickfigure.jpg">
<img class="hidden content" src="/images/demo/photo2.jpg">
<div class="ui instant masked move reveal">
<img class="visible content" src="/images/demo/invention.jpg">
<img class="hidden content" src="/images/demo/title.png">
</div>
</div>
@ -164,7 +115,7 @@ type : 'UI Module'
<div class="example">
<h4 class="ui header">Disabled</h4>
<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="hidden content" src="/images/demo/photo2.jpg">
</div>

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

@ -48,6 +48,23 @@ type : 'UI Module'
<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>
<div class="dog two ui shape">
<div class="sides">
@ -211,22 +228,6 @@ type : 'UI Module'
</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>
<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>
<div class="code">$('.shape')
.shape('set nextSide', '.second')
.shape('set next side', '.second')
.shape('flip up')
;</div>
@ -268,7 +269,7 @@ type : 'UI Module'
;</div>
<h3 class="ui header">Defaults</h3>
<table class="ui settings table">
<table class="ui celled definition table">
<thead>
<th colspan="3">Shape Settings</th>
</thead>
@ -311,7 +312,7 @@ type : 'UI Module'
<td>Object containing class names used by module.</td>
</tr>
</table>
<table class="ui settings table">
<table class="ui celled definition table">
<thead>
<th colspan="3">Callbacks</th>
</thead>
@ -326,7 +327,7 @@ type : 'UI Module'
<td>Callback after side is changed. This context is new side.</td>
</tr>
</table>
<table class="ui settings table">
<table class="ui celled definition table">
<thead>
<th colspan="3">UI Module Settings</th>
</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
<ul class="list">
<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>
</div>
<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">
<h4>Feed</h4>
<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">
<i class="icon red circular inverted chat"></i>Recent Activity
Recent Activity
</h2>
<div class="event">
<div class="label">
@ -177,7 +177,7 @@ type : 'UI View'
<div class="ui grid">
<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>
<div class="event">
<div class="label">
@ -228,7 +228,7 @@ type : 'UI View'
</div>
</div>
<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>
<div class="event">
<div class="content">

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

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

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

@ -66,6 +66,48 @@
margin: -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
--------------------*/
@ -111,10 +153,29 @@
/*******************************
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
---------------*/
.ui.button:hover {
.ui.button:hover,
.ui.active.button:hover {
opacity: 1 !important;
background-color: #A4A4A4;
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
@ -127,7 +188,8 @@
/*--------------
Down
---------------*/
.ui.button:active {
.ui.button:active,
.ui.active.button:active {
opacity: 1 !important;
background-color: #8C8C8C;
color: #FFFFFF;
@ -136,24 +198,6 @@
-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;
}
/*--------------
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
---------------*/
@ -395,7 +439,7 @@
color: #999999 !important;
font-weight: normal;
text-transform: none;
text-shadow: none;
text-shadow: none !important;
-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;
@ -408,16 +452,6 @@
-moz-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.button:hover {
color: #7F7F7F !important;
@ -437,14 +471,32 @@
.ui.basic.button.active {
background-color: rgba(0, 0, 0, 0.05);
color: #7F7F7F;
-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;
-webkit-box-shadow: 0px 0px 0px 1px #BDBDBD inset;
-moz-box-shadow: 0px 0px 0px 1px #BDBDBD inset;
box-shadow: 0px 0px 0px 1px #BDBDBD inset;
}
.ui.basic.buttons .button.active:hover,
.ui.basic.button.active:hover {
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
---------------*/
@ -848,6 +900,25 @@
background-color: #D24B4C;
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 ---*/
.ui.blue.buttons .button,
.ui.blue.button {

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

@ -21,7 +21,6 @@
font-weight: bold;
line-height: 1.33;
}
.ui.header .ui.sub.header,
.ui.header .sub.header {
font-size: 1rem;
font-weight: normal;
@ -216,6 +215,9 @@ h5.ui.header {
padding-bottom: 0.2rem;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.ui.dividing.header .sub.header {
padding-bottom: 0.5em;
}
.ui.dividing.header .icon {
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.image img,
.ui.circular.image {
-webkit-border-radius: 500em;
-moz-border-radius: 500em;
border-radius: 500em;
-webkit-border-radius: 500rem;
-moz-border-radius: 500rem;
border-radius: 500rem;
}
/*--------------
Avatar
@ -71,9 +71,9 @@ img.ui.image {
display: inline-block;
width: 2em;
height: 2em;
-webkit-border-radius: 500em;
-moz-border-radius: 500em;
border-radius: 500em;
-webkit-border-radius: 500rem;
-moz-border-radius: 500rem;
border-radius: 500rem;
}
/*-------------------
Floated

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

@ -559,10 +559,9 @@ a.ui.teal.label:hover:before {
padding: 0.5em !important;
line-height: 1em;
text-align: center;
vertical-align: baseline;
-webkit-border-radius: 500em;
-moz-border-radius: 500em;
border-radius: 500em;
-webkit-border-radius: 500rem;
-moz-border-radius: 500rem;
border-radius: 500rem;
}
/*-------------------
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) {
$.fn.chat = function(key, channelName, parameters) {
$.fn.chatroom = function(parameters) {
var
settings = $.extend(true, {}, $.fn.chat.settings, parameters),
settings = $.extend(true, {}, $.fn.chatroom.settings, parameters),
className = settings.className,
namespace = settings.namespace,
@ -68,7 +68,7 @@
if(Pusher === undefined) {
module.error(error.pusher);
}
if(key === undefined || channelName === undefined) {
if(settings.key === undefined || settings.channelName === undefined) {
module.error(error.key);
return false;
}
@ -78,10 +78,10 @@
}
// define pusher
pusher = new Pusher(key);
pusher = new Pusher(settings.key);
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_error', module.error);
@ -291,7 +291,7 @@
url : settings.endpoint.message,
method : 'POST',
data : {
'chat_message': {
'message': {
content : message,
timestamp : new Date().getTime()
}
@ -484,12 +484,14 @@
return this;
};
$.fn.chat.settings = {
$.fn.chatroom.settings = {
name : 'Chat',
name : 'Chat',
debug : false,
namespace : 'chat',
channel : 'present-chat',
onJoin : function(){},
onMessage : function(){},
onExpand : function(){},
@ -499,7 +501,6 @@
partingMessages : false,
userCount : true,
randomColor : true,
speed : 300,
@ -529,11 +530,11 @@
},
selector : {
userCount : '.actions .message',
userListButton : '.actions .button.user-list',
expandButton : '.actions .button.expand',
userCount : '.actions .message',
userListButton : '.actions .list.button',
expandButton : '.actions .expand.button',
room : '.room',
userList : '.room .user-list',
userList : '.room .list',
log : '.room .log',
message : '.room .log .message',
author : '.room log .message .author',

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

@ -58,10 +58,10 @@
}
.ui.checkbox .box:after,
.ui.checkbox label:after {
width: 0.5em;
height: 0.2em;
top: 0.25em;
top: 0.3em;
left: 0.2em;
width: 0.45em;
height: 0.15em;
}
/*--- Label ---*/
.ui.checkbox + label {
@ -132,6 +132,140 @@
-moz-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
---------------*/
@ -162,94 +296,3 @@
.ui.huge.checkbox label {
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;
}
.ui.dimmer {
display: none;
position: absolute;
top: 0em !important;
left: 0em !important;
@ -52,7 +53,7 @@
z-index: 1000;
}
/*
.ui.dimmable.dimmed > :not(.dimmer) {
.ui.dimmed.dimmable > :not(.dimmer) {
-webkit-transition:
filter 0.5s ease
;
@ -99,12 +100,13 @@
/*******************************
States
*******************************/
.ui.dimmable.dimmed > :not(.dimmer) {
.ui.dimmed.dimmable > :not(.dimmer) {
-webkit-filter: blur(5px) grayscale(0.7);
-moz-filter: blur(5px) grayscale(0.7);
}
.ui.dimmable.dimmed > .ui.dimmer,
.ui.dimmer.active {
.ui.dimmed.dimmable > .ui.dimmer,
.ui.active.dimmer {
display: block;
width: 100%;
height: 100%;
opacity: 1;
@ -131,7 +133,7 @@
transform-origin: top center;
}
/*
body.ui.dimmable.dimmed > :not(.dimmer){
body.ui.dimmed.dimmable > :not(.dimmer){
-webkit-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;
background-color: rgba(0, 0, 0, 0);
}
.ui.dimmable.dimmed > .ui.simple.dimmer {
.ui.dimmed.dimmable > .ui.simple.dimmer {
overflow: visible;
opacity: 1;
width: 100%;
@ -176,6 +178,6 @@ body.ui.dimmable.dimmed > :not(.dimmer){
.ui.simple.inverted.dimmer {
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);
}

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

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

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

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

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

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

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

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

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

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

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

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

@ -23,7 +23,7 @@ ul.ui.list ul,
ol.ui.list ol,
.ui.list .list {
margin: 0em;
padding: 0.5em 0em 0.5em 0.5em;
padding: 0.5em 0em 0.5em 1em;
}
ul.ui.list:first-child,
ol.ui.list:first-child,
@ -173,7 +173,7 @@ ul.ui.list li:before,
.ui.bulleted.list .item:before {
position: absolute;
left: -1em;
content: '·';
content: '';
line-height: 1.2rem;
vertical-align: top;
}
@ -229,10 +229,10 @@ ol.ui.list li:before,
ol.ui.list ol,
.ui.ordered.list .list {
counter-reset: ordered;
padding-left: 2em;
padding-left: 3em;
}
ol.ui.list ol ol li:before,
.ui.ordered.list .list .list .item:before {
ol.ui.list ol li:before,
.ui.ordered.list .list .item:before {
left: -2.5em;
}
/* 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)
.stop()
.animate({
width: '180px'
width: '155px'
}, 300, function() {
$(this).find('.text').show();
})

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

@ -1,5 +1,5 @@
/*******************************
Glue Code
Highlighted Colors
*******************************/
::-webkit-selection {
@ -34,27 +34,8 @@ h3::selection {
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-family: 'Neutraface';
@ -94,6 +75,7 @@ h3::selection {
font-stretch: normal;
}
*/
@ -107,7 +89,7 @@ body {
}
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;
margin: 0px;
padding: 0px;
@ -119,6 +101,13 @@ body > .content {
background: #FCFCFC url(../images/bg.jpg) repeat;
}
h1,
h2,
h3,
h4,
h5 {
font-family: "Source Sans Pro", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}
/*
p,
@ -180,9 +169,8 @@ code {
display: inline-block;
font-family: Courier New;
font-size: 14px;
margin: -0.25em 0.25em !important;
padding: 0.25em 0.5em;
vertical-align: top;
padding: 0.125em 0.25em;
vertical-align: middle;
}
pre code {
border: none;
@ -292,7 +280,7 @@ a:hover {
}
#example .masthead {
text-align: center;
background-color: #00B5AD;
background: #00B5AD url(/images/tile-bg.png) repeat-x fixed 50% 0%;
padding: 75px 0px 50px;
color: rgba(255, 255, 255, 0.9);
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/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/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/progress.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/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/item.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/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/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/shape.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="/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 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=Lato:300,400,700,900" rel="stylesheet">
-->
<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/history.js"></script>
<script src="/javascript/library/easing.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="/components/semantic/modules/behavior/api.js"></script>
@ -81,8 +81,9 @@
<script src="/components/semantic/modules/dimmer.js"></script>
<script src="/components/semantic/modules/dropdown.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/rating.js"></script>
<script src="/components/semantic/modules/sidebar.js"></script>
<script src="/components/semantic/modules/tab.js"></script>
<script src="/components/semantic/modules/transition.js"></script>

4
src/collections/menu.less

@ -280,9 +280,9 @@
/*--------------
Dropdowns
---------------*/
.ui.menu .dropdown.item .menu {
/*.ui.menu .dropdown.item .menu {
margin: 1px 0px 0px 0px;
}
}*/
.ui.menu .simple.dropdown.item .menu {
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 */
.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
---------------*/
.ui.button:hover {
.ui.button:hover,
.ui.active.button:hover {
opacity: 1 !important;
background-color: #A4A4A4;
@ -206,7 +282,8 @@
Down
---------------*/
.ui.button:active {
.ui.button:active,
.ui.active.button:active {
opacity: 1 !important;
background-color: #8C8C8C;
@ -218,35 +295,6 @@
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
---------------*/
@ -524,7 +572,7 @@
color: #999999 !important;
font-weight: normal;
text-transform: none;
text-shadow: none;
text-shadow: none !important;
-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;
@ -539,17 +587,6 @@
-moz-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.button:hover {
@ -572,15 +609,36 @@
background-color: rgba(0, 0, 0, 0.05);
color: #7F7F7F;
-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;
-webkit-box-shadow: 0px 0px 0px 1px #BDBDBD inset;
-moz-box-shadow: 0px 0px 0px 1px #BDBDBD inset;
box-shadow: 0px 0px 0px 1px #BDBDBD inset;
}
.ui.basic.buttons .button.active:hover,
.ui.basic.button.active:hover {
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
@ -1038,6 +1096,26 @@
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 ---*/
.ui.blue.buttons .button,
.ui.blue.button {

4
src/elements/header.less

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

12
src/elements/image.less

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

7
src/elements/label.less

@ -674,11 +674,10 @@ a.ui.teal.label:hover:before {
line-height: 1em;
text-align: center;
vertical-align: baseline;
-webkit-border-radius: 500em;
-moz-border-radius: 500em;
border-radius: 500em;
-webkit-border-radius: 500rem;
-moz-border-radius: 500rem;
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 label:after {
width: 0.5em;
height: 0.2em;
top: 0.25em;
top: 0.3em;
left: 0.2em;
width: 0.45em;
height: 0.15em;
}
/*--- Label ---*/
@ -178,151 +178,201 @@
}
/*--------------
Sizes
Slider
---------------*/
.ui.checkbox {
width: 1em;
height: 1em;
}
.ui.checkbox,
.ui.checkbox .box,
.ui.checkbox label {
font-size: 1em;
.ui.slider.checkbox {
width: 3em;
height: 2em;
}
/* Line */
.ui.slider.checkbox:after {
position: absolute;
top: 1em;
left: 0em;
content: '';
.ui.large.checkbox {
width: 1.25em;
height: 1.25em;
}
.ui.large.checkbox,
.ui.large.checkbox .box,
.ui.large.checkbox label {
font-size: 1.25em;
width: 100%;
height: 2px;
background-color: rgba(0, 0, 0, 0.1);
}
.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;
height: 1.5em;
}
.ui.huge.checkbox,
.ui.huge.checkbox .box,
.ui.huge.checkbox label {
font-size: 1.5em;
}
/*--------------
Colors
---------------*/
-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.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%);
-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;
/*--------------
Rounded
---------------*/
position: absolute;
content: '';
top: 0.375em;
left: 0.375em;
/* Alternate Round Style */
.ui.round.checkbox {
width: 20px;
height: 20px;
margin: 0px auto;
border: none;
width: 0.75em;
height: 0.75em;
background-color: #D95C5C;
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 );
border-radius: 50rem;
-webkit-border-radius: 500px;
-moz-border-radius: 500px;
border-radius: 500px;
-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;
}
-webkit-box-shadow: inset 0px 1px 1px white, 0px 1px 3px rgba(0,0,0,0.5);
-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);
position: relative;
/* 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.round.checkbox .box,
.ui.round.checkbox label {
.ui.toggle.checkbox {
width: 3em;
height: 2em;
}
/* Line */
.ui.toggle.checkbox:after {
cursor: pointer;
display: block;
position: absolute;
width: 14px;
height: 14px;
content: '';
top: 0.25em;
left: 0em;
z-index: 1;
-webkit-border-radius: 500px;
-moz-border-radius: 500px;
border-radius: 500px;
left: 3px;
top: 3px;
background-color: #FFFFFF;
width: 100%;
height: 1.5em;
-webkit-box-shadow:
0px 1px 1px rgba(0, 0, 0, 0.5) inset,
0px 1px 0px rgba(255,255,255,1)
;
-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)
;
-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;
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 );
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;
.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%);
top: 0px;
left: 0px;
z-index: 2;
border: none;
-webkit-border-radius: 500px;
-moz-border-radius: 500px;
border-radius: 500px;
top: 2px;
left: 2px;
width: 0.75em;
height: 0.75em;
-webkit-box-shadow: inset 0px 1px 1px white, 0px 1px 3px rgba(0,0,0,0.5);
-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);
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;
}
.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;
/* Active toggle Toggle */
.ui.toggle.checkbox input:checked + .box,
.ui.toggle.checkbox input:checked + label {
left: 1.75em;
}
.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;
.ui.toggle.checkbox input:checked + .box:after,
.ui.toggle.checkbox input:checked + label:after {
background-color: #89B84C;
}
/*--------------
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 {
display: none;
position: absolute;
top: 0em !important;
left: 0em !important;
@ -76,7 +77,7 @@
}
/*
.ui.dimmable.dimmed > :not(.dimmer) {
.ui.dimmed.dimmable > :not(.dimmer) {
-webkit-transition:
filter 0.5s ease
;
@ -131,13 +132,14 @@
States
*******************************/
.ui.dimmable.dimmed > :not(.dimmer) {
.ui.dimmed.dimmable > :not(.dimmer) {
-webkit-filter: ~"blur(5px) grayscale(0.7)";
-moz-filter: ~"blur(5px) grayscale(0.7)";
}
.ui.dimmable.dimmed > .ui.dimmer,
.ui.dimmer.active {
.ui.dimmed.dimmable > .ui.dimmer,
.ui.active.dimmer {
display: block;
width: 100%;
height: 100%;
opacity: 1;
@ -171,7 +173,7 @@
transform-origin: top center;
}
/*
body.ui.dimmable.dimmed > :not(.dimmer){
body.ui.dimmed.dimmable > :not(.dimmer){
-webkit-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;
background-color: rgba(0, 0, 0, 0);
}
.ui.dimmable.dimmed > .ui.simple.dimmer {
.ui.dimmed.dimmable > .ui.simple.dimmer {
overflow: visible;
opacity: 1;
width: 100%;
@ -223,6 +225,6 @@ body.ui.dimmable.dimmed > :not(.dimmer){
.ui.simple.inverted.dimmer {
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)
}

8
src/modules/reveal.less

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

6
src/modules/search.less

@ -24,9 +24,9 @@
}
.ui.search input {
-webkit-border-radius: 500em;
-moz-border-radius: 500em;
border-radius: 500em;
-webkit-border-radius: 500rem;
-moz-border-radius: 500rem;
border-radius: 500rem;
}
/*--------------

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
*******************************/
.ui.small.feed {
font-size: 0.875em;
}
.ui.small.feed .label img {
width: 2.5em;
}

10
src/views/list.less

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

Loading…
Cancel
Save