Browse Source

fixes rating padding

pull/80/merge
jlukic 11 years ago
parent
commit
80d83b579a
16 changed files with 143 additions and 55 deletions
  1. 8
      RELEASE NOTES.md
  2. 32
      build/less/modules/rating.less
  3. 2
      build/minified/modules/accordion.min.js
  4. 2
      build/minified/modules/rating.min.css
  5. 2
      build/packaged/css/semantic.min.css
  6. 2
      build/packaged/javascript/semantic.min.js
  7. 32
      build/uncompressed/modules/rating.css
  8. 14
      node/src/documents/modules/rating.html.eco
  9. 32
      node/src/files/build/less/modules/rating.less
  10. 2
      node/src/files/build/minified/modules/accordion.min.js
  11. 2
      node/src/files/build/minified/modules/rating.min.css
  12. 2
      node/src/files/build/packaged/css/semantic.min.css
  13. 2
      node/src/files/build/packaged/javascript/semantic.min.js
  14. BIN
      node/src/files/build/semantic.zip
  15. 32
      node/src/files/build/uncompressed/modules/rating.css
  16. 32
      src/modules/rating.less

8
RELEASE NOTES.md

@ -6,6 +6,14 @@ Version 0.11 Sep 26, 2013
New New
-Adds dropdown icon sexiness to accordions, now with rotating pointing arrows -Adds dropdown icon sexiness to accordions, now with rotating pointing arrows
Fixes
-Rating icon missing font content with icon font update
-Padding on side of rating
Updates
-Accordion settings documentation
-Rating settings documentation
Version 0.1 - Sep 25, 2013 Version 0.1 - Sep 25, 2013
New New

32
build/less/modules/rating.less

@ -16,10 +16,7 @@
.ui.rating { .ui.rating {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
margin: 0em 0.5em;
}
.ui.rating:first-child {
margin-left: 0em;
margin: 0em 0.5em 0em 0em;
} }
.ui.rating:last-child { .ui.rating:last-child {
margin-right: 0em; margin-right: 0em;
@ -80,13 +77,20 @@
Star Star
--------------------*/ --------------------*/
.ui.star.rating .icon {
width: 1em;
margin-right: 0.1em;
}
.ui.star.rating .icon:last-child {
margin: 0em;
}
.ui.star.rating .icon:after { .ui.star.rating .icon:after {
content: '\e800';
content: '\f006';
font-family: 'Icons'; font-family: 'Icons';
} }
.ui.star.rating .active.icon:after { .ui.star.rating .active.icon:after {
content: '\e801';
content: '\f005';
font-family: 'Icons'; font-family: 'Icons';
} }
@ -95,13 +99,20 @@
Heart Heart
--------------------*/ --------------------*/
.ui.heart.rating .icon {
width: 1em;
margin-right: 0.1em;
}
.ui.heart.rating .icon:last-child {
margin: 0em;
}
.ui.heart.rating .icon:after { .ui.heart.rating .icon:after {
content: '\2661';
content: '\f08a';
font-family: 'Icons'; font-family: 'Icons';
} }
.ui.heart.rating .active.icon:after { .ui.heart.rating .active.icon:after {
content: '\2665';
content: '\f004';
font-family: 'Icons'; font-family: 'Icons';
color: #EF404A; color: #EF404A;
} }
@ -151,9 +162,12 @@
Variations Variations
*******************************/ *******************************/
.ui.small.rating {
.ui.mini.rating {
font-size: 1rem; font-size: 1rem;
} }
.ui.small.rating {
font-size: 1.25rem;
}
.ui.rating { .ui.rating {
font-size: 1.5rem; font-size: 1.5rem;
} }

2
build/minified/modules/accordion.min.js

@ -1 +1 @@
!function(a,b,c,d){a.fn.accordion=function(b){var c,e=a(this),f=a.isPlainObject(b)?a.extend(!0,{},a.fn.accordion.settings,b):a.fn.accordion.settings,g=f.className,h=f.namespace,i=f.selector,j=f.error,k="."+h,l="module-"+h,m=e.selector||"",n=(new Date).getTime(),o=[],p=arguments[0],q="string"==typeof p,r=[].slice.call(arguments,1);return e.each(function(){var b,h=a(this),s=h.find(i.title),t=(h.find(i.icon),h.find(i.content)),u=this,v=h.data(l);b={initialize:function(){b.debug("Initializing accordion with bound events",h),s.on("click"+k,b.event.click),b.instantiate()},instantiate:function(){h.data(l,b)},destroy:function(){b.debug("Destroying previous accordion for",h),h.removeData(l),s.off(k)},event:{click:function(){b.verbose("Title clicked",this);var c=a(this),d=s.index(c);b.toggle(d)},resetStyle:function(){b.verbose("Resetting styles on element",this),a(this).removeAttr("style").children().removeAttr("style")}},toggle:function(a){b.debug("Toggling content content at index",a);var c=s.eq(a),d=c.next(t),e=d.is(":visible");e?f.collapsible?b.close(a):b.debug("Cannot close accordion content collapsing is disabled"):b.open(a)},open:function(c){var d=s.eq(c),e=d.next(t),h=s.filter("."+g.active),i=h.next(s),j=h.size()>0;e.is(":animated")||(b.debug("Opening accordion content",d),f.exclusive&&j&&(h.removeClass(g.active),i.stop().children().animate({opacity:0},f.speed,b.event.resetStyle).end().slideUp(f.speed,f.easing,function(){i.removeClass(g.active).removeAttr("style").children().removeAttr("style")})),d.addClass(g.active),e.stop().children().removeAttr("style").end().slideDown(f.speed,f.easing,function(){e.addClass(g.active).removeAttr("style"),a.proxy(f.onOpen,e)(),a.proxy(f.onChange,e)()}))},close:function(c){var d=s.eq(c),e=d.next(t);b.debug("Closing accordion content",d),d.removeClass(g.active),e.removeClass(g.active).show().stop().children().animate({opacity:0},f.speed,b.event.resetStyle).end().slideUp(f.speed,f.easing,function(){e.removeAttr("style"),a.proxy(f.onClose,e)(),a.proxy(f.onChange,e)()})},setting:function(c,e){return b.debug("Changing setting",c,e),e===d?f[c]:(a.isPlainObject(c)?a.extend(!0,f,c):f[c]=e,void 0)},internal:function(c,e){return b.debug("Changing internal",c,e),e===d?b[c]:(a.isPlainObject(c)?a.extend(!0,b,c):b[c]=e,void 0)},debug:function(){f.debug&&(f.performance?b.performance.log(arguments):(b.debug=Function.prototype.bind.call(console.info,console,f.name+":"),b.debug.apply(console,arguments)))},verbose:function(){f.verbose&&f.debug&&(f.performance?b.performance.log(arguments):(b.verbose=Function.prototype.bind.call(console.info,console,f.name+":"),b.verbose.apply(console,arguments)))},error:function(){b.error=Function.prototype.bind.call(console.error,console,f.name+":"),b.error.apply(console,arguments)},performance:{log:function(a){var c,d,e;f.performance&&(c=(new Date).getTime(),e=n||c,d=c-e,n=c,o.push({Element:u,Name:a[0],Arguments:[].slice.call(a,1)||"","Execution Time":d})),clearTimeout(b.performance.timer),b.performance.timer=setTimeout(b.performance.display,100)},display:function(){var c=f.name+":",g=0;n=!1,clearTimeout(b.performance.timer),a.each(o,function(a,b){g+=b["Execution Time"]}),c+=" "+g+"ms",m&&(c+=" '"+m+"'"),e.size()>1&&(c+=" ("+e.size()+")"),(console.group!==d||console.table!==d)&&o.length>0&&(console.groupCollapsed(c),console.table?console.table(o):a.each(o,function(a,b){console.log(b.Name+": "+b["Execution Time"]+"ms")}),console.groupEnd()),o=[]}},invoke:function(e,f,g){var h,i,k;return f=f||r,g=u||g,"string"==typeof e&&v!==d&&(e=e.split(/[\. ]/),h=e.length-1,a.each(e,function(c,f){var g=c!=h?f+e[c+1].charAt(0).toUpperCase()+e[c+1].slice(1):e;if(a.isPlainObject(v[f])&&c!=h)v=v[f];else{if(!a.isPlainObject(v[g])||c==h)return v[f]!==d?(i=v[f],!1):v[g]!==d?(i=v[g],!1):(b.error(j.method),!1);v=v[g]}})),a.isFunction(i)?k=i.apply(g,f):i!==d&&(k=i),a.isArray(c)?c.push(k):"string"==typeof c?c=[c,k]:k!==d&&(c=k),i}},q?(v===d&&b.initialize(),b.invoke(p)):(v!==d&&b.destroy(),b.initialize())}),c!==d?c:this},a.fn.accordion.settings={name:"Accordion",namespace:"accordion",debug:!0,verbose:!0,performance:!0,exclusive:!0,collapsible:!0,onOpen:function(){},onClose:function(){},onChange:function(){},error:{method:"The method you called is not defined"},className:{active:"active",hover:"hover"},selector:{title:".title",icon:".icon",content:".content"},speed:500,easing:"easeInOutQuint"}}(jQuery,window,document);
!function(a,b,c,d){a.fn.accordion=function(b){var c,e=a(this),f=a.isPlainObject(b)?a.extend(!0,{},a.fn.accordion.settings,b):a.fn.accordion.settings,g=f.className,h=f.namespace,i=f.selector,j=f.error,k="."+h,l="module-"+h,m=e.selector||"",n=(new Date).getTime(),o=[],p=arguments[0],q="string"==typeof p,r=[].slice.call(arguments,1);return e.each(function(){var b,h=a(this),s=h.find(i.title),t=h.find(i.content),u=this,v=h.data(l);b={initialize:function(){b.debug("Initializing accordion with bound events",h),s.on("click"+k,b.event.click),b.instantiate()},instantiate:function(){h.data(l,b)},destroy:function(){b.debug("Destroying previous accordion for",h),h.removeData(l),s.off(k)},event:{click:function(){b.verbose("Title clicked",this);var c=a(this),d=s.index(c);b.toggle(d)},resetStyle:function(){b.verbose("Resetting styles on element",this),a(this).removeAttr("style").children().removeAttr("style")}},toggle:function(a){b.debug("Toggling content content at index",a);var c=s.eq(a),d=c.next(t),e=d.is(":visible");e?f.collapsible?b.close(a):b.debug("Cannot close accordion content collapsing is disabled"):b.open(a)},open:function(c){var d=s.eq(c),e=d.next(t),h=s.filter("."+g.active),i=h.next(s),j=h.size()>0;e.is(":animated")||(b.debug("Opening accordion content",d),f.exclusive&&j&&(h.removeClass(g.active),i.stop().children().animate({opacity:0},f.duration,b.event.resetStyle).end().slideUp(f.duration,f.easing,function(){i.removeClass(g.active).removeAttr("style").children().removeAttr("style")})),d.addClass(g.active),e.stop().children().removeAttr("style").end().slideDown(f.duration,f.easing,function(){e.addClass(g.active).removeAttr("style"),a.proxy(f.onOpen,e)(),a.proxy(f.onChange,e)()}))},close:function(c){var d=s.eq(c),e=d.next(t);b.debug("Closing accordion content",d),d.removeClass(g.active),e.removeClass(g.active).show().stop().children().animate({opacity:0},f.duration,b.event.resetStyle).end().slideUp(f.duration,f.easing,function(){e.removeAttr("style"),a.proxy(f.onClose,e)(),a.proxy(f.onChange,e)()})},setting:function(c,e){return b.debug("Changing setting",c,e),e===d?f[c]:(a.isPlainObject(c)?a.extend(!0,f,c):f[c]=e,void 0)},internal:function(c,e){return b.debug("Changing internal",c,e),e===d?b[c]:(a.isPlainObject(c)?a.extend(!0,b,c):b[c]=e,void 0)},debug:function(){f.debug&&(f.performance?b.performance.log(arguments):(b.debug=Function.prototype.bind.call(console.info,console,f.name+":"),b.debug.apply(console,arguments)))},verbose:function(){f.verbose&&f.debug&&(f.performance?b.performance.log(arguments):(b.verbose=Function.prototype.bind.call(console.info,console,f.name+":"),b.verbose.apply(console,arguments)))},error:function(){b.error=Function.prototype.bind.call(console.error,console,f.name+":"),b.error.apply(console,arguments)},performance:{log:function(a){var c,d,e;f.performance&&(c=(new Date).getTime(),e=n||c,d=c-e,n=c,o.push({Element:u,Name:a[0],Arguments:[].slice.call(a,1)||"","Execution Time":d})),clearTimeout(b.performance.timer),b.performance.timer=setTimeout(b.performance.display,100)},display:function(){var c=f.name+":",g=0;n=!1,clearTimeout(b.performance.timer),a.each(o,function(a,b){g+=b["Execution Time"]}),c+=" "+g+"ms",m&&(c+=" '"+m+"'"),e.size()>1&&(c+=" ("+e.size()+")"),(console.group!==d||console.table!==d)&&o.length>0&&(console.groupCollapsed(c),console.table?console.table(o):a.each(o,function(a,b){console.log(b.Name+": "+b["Execution Time"]+"ms")}),console.groupEnd()),o=[]}},invoke:function(e,f,g){var h,i,k;return f=f||r,g=u||g,"string"==typeof e&&v!==d&&(e=e.split(/[\. ]/),h=e.length-1,a.each(e,function(c,f){var g=c!=h?f+e[c+1].charAt(0).toUpperCase()+e[c+1].slice(1):e;if(a.isPlainObject(v[f])&&c!=h)v=v[f];else{if(!a.isPlainObject(v[g])||c==h)return v[f]!==d?(i=v[f],!1):v[g]!==d?(i=v[g],!1):(b.error(j.method),!1);v=v[g]}})),a.isFunction(i)?k=i.apply(g,f):i!==d&&(k=i),a.isArray(c)?c.push(k):"string"==typeof c?c=[c,k]:k!==d&&(c=k),i}},q?(v===d&&b.initialize(),b.invoke(p)):(v!==d&&b.destroy(),b.initialize())}),c!==d?c:this},a.fn.accordion.settings={name:"Accordion",namespace:"accordion",debug:!0,verbose:!0,performance:!0,exclusive:!0,collapsible:!0,duration:300,easing:"linear",onOpen:function(){},onClose:function(){},onChange:function(){},error:{method:"The method you called is not defined"},className:{active:"active"},selector:{title:".title",content:".content"}}}(jQuery,window,document);

2
build/minified/modules/rating.min.css

@ -1 +1 @@
.ui.rating{display:inline-block;vertical-align:middle;margin:0 .5em}.ui.rating:first-child{margin-left:0}.ui.rating:last-child{margin-right:0}.ui.rating:after{display:block;content:'';visibility:hidden;clear:both;height:0}.ui.rating .icon{cursor:default;float:left;margin:0;width:1em;height:auto;padding:0;font-weight:400;font-style:normal}.ui.rating .icon:after{content:"\2605";color:rgba(0,0,0,.15);-webkit-transition:color .3s ease,opacity .3s ease;-moz-transition:color .3s ease,opacity .3s ease;-ms-transition:color .3s ease,opacity .3s ease;-o-transition:color .3s ease,opacity .3s ease;transition:color .3s ease,opacity .3s ease}.ui.star.rating .icon:after{content:'\e800';font-family:Icons}.ui.star.rating .active.icon:after{content:'\e801';font-family:Icons}.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}.ui.active.rating .icon{cursor:pointer}.ui.rating .active.icon:after{color:#FFCB08}.ui.rating.hover .active.icon:after{opacity:.5}.ui.rating .icon.hover:after,.ui.rating .icon.hover.active:after{opacity:1;color:#FFB70A}.ui.small.rating{font-size:1rem}.ui.rating{font-size:1.5rem}.ui.large.rating{font-size:2rem}
.ui.rating{display:inline-block;vertical-align:middle;margin:0 .5em 0 0}.ui.rating:last-child{margin-right:0}.ui.rating:after{display:block;content:'';visibility:hidden;clear:both;height:0}.ui.rating .icon{cursor:default;float:left;margin:0;width:1em;height:auto;padding:0;font-weight:400;font-style:normal}.ui.rating .icon:after{content:"\2605";color:rgba(0,0,0,.15);-webkit-transition:color .3s ease,opacity .3s ease;-moz-transition:color .3s ease,opacity .3s ease;-ms-transition:color .3s ease,opacity .3s ease;-o-transition:color .3s ease,opacity .3s ease;transition:color .3s ease,opacity .3s ease}.ui.star.rating .icon{width:1em;margin-right:.1em}.ui.star.rating .icon:last-child{margin:0}.ui.star.rating .icon:after{content:'\f006';font-family:Icons}.ui.star.rating .active.icon:after{content:'\f005';font-family:Icons}.ui.heart.rating .icon{width:1em;margin-right:.1em}.ui.heart.rating .icon:last-child{margin:0}.ui.heart.rating .icon:after{content:'\f08a';font-family:Icons}.ui.heart.rating .active.icon:after{content:'\f004';font-family:Icons;color:#EF404A}.ui.heart.rating .hover.icon:after,.ui.heart.rating .active.hover.icon:after{color:#FF2733}.ui.active.rating .icon{cursor:pointer}.ui.rating .active.icon:after{color:#FFCB08}.ui.rating.hover .active.icon:after{opacity:.5}.ui.rating .icon.hover:after,.ui.rating .icon.hover.active:after{opacity:1;color:#FFB70A}.ui.mini.rating{font-size:1rem}.ui.small.rating{font-size:1.25rem}.ui.rating{font-size:1.5rem}.ui.large.rating{font-size:2rem}

2
build/packaged/css/semantic.min.css
File diff suppressed because it is too large
View File

2
build/packaged/javascript/semantic.min.js
File diff suppressed because it is too large
View File

32
build/uncompressed/modules/rating.css

@ -14,10 +14,7 @@
.ui.rating { .ui.rating {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
margin: 0em 0.5em;
}
.ui.rating:first-child {
margin-left: 0em;
margin: 0em 0.5em 0em 0em;
} }
.ui.rating:last-child { .ui.rating:last-child {
margin-right: 0em; margin-right: 0em;
@ -65,23 +62,37 @@
/*------------------- /*-------------------
Star Star
--------------------*/ --------------------*/
.ui.star.rating .icon {
width: 1em;
margin-right: 0.1em;
}
.ui.star.rating .icon:last-child {
margin: 0em;
}
.ui.star.rating .icon:after { .ui.star.rating .icon:after {
content: '\e800';
content: '\f006';
font-family: 'Icons'; font-family: 'Icons';
} }
.ui.star.rating .active.icon:after { .ui.star.rating .active.icon:after {
content: '\e801';
content: '\f005';
font-family: 'Icons'; font-family: 'Icons';
} }
/*------------------- /*-------------------
Heart Heart
--------------------*/ --------------------*/
.ui.heart.rating .icon {
width: 1em;
margin-right: 0.1em;
}
.ui.heart.rating .icon:last-child {
margin: 0em;
}
.ui.heart.rating .icon:after { .ui.heart.rating .icon:after {
content: '\2661';
content: '\f08a';
font-family: 'Icons'; font-family: 'Icons';
} }
.ui.heart.rating .active.icon:after { .ui.heart.rating .active.icon:after {
content: '\2665';
content: '\f004';
font-family: 'Icons'; font-family: 'Icons';
color: #EF404A; color: #EF404A;
} }
@ -119,9 +130,12 @@
/******************************* /*******************************
Variations Variations
*******************************/ *******************************/
.ui.small.rating {
.ui.mini.rating {
font-size: 1rem; font-size: 1rem;
} }
.ui.small.rating {
font-size: 1.25rem;
}
.ui.rating { .ui.rating {
font-size: 1.5rem; font-size: 1.5rem;
} }

14
node/src/documents/modules/rating.html.eco

@ -63,6 +63,7 @@ type : 'UI Module'
<div class="example"> <div class="example">
<h4 class="ui header">Star</h4> <h4 class="ui header">Star</h4>
<p>A rating can use a set of star icons</p> <p>A rating can use a set of star icons</p>
<div class="ui info message">Star and heart rating types require the inclusion of semantic <a href="/elements/icon.html">ui icons</a></div>
<div class="ui star rating"> <div class="ui star rating">
<i class="icon"></i> <i class="icon"></i>
<i class="icon"></i> <i class="icon"></i>
@ -127,7 +128,7 @@ type : 'UI Module'
<div class="example"> <div class="example">
<h4 class="ui header">Size</h4> <h4 class="ui header">Size</h4>
<p>A rating can vary in size</p> <p>A rating can vary in size</p>
<div class="ui small rating">
<div class="ui mini star rating">
<i class="icon"></i> <i class="icon"></i>
<i class="icon"></i> <i class="icon"></i>
<i class="icon"></i> <i class="icon"></i>
@ -136,7 +137,16 @@ type : 'UI Module'
</div> </div>
</div> </div>
<div class="another example"> <div class="another example">
<div class="ui large rating">
<div class="ui small 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="another example">
<div class="ui large star rating">
<i class="icon"></i> <i class="icon"></i>
<i class="icon"></i> <i class="icon"></i>
<i class="icon"></i> <i class="icon"></i>

32
node/src/files/build/less/modules/rating.less

@ -16,10 +16,7 @@
.ui.rating { .ui.rating {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
margin: 0em 0.5em;
}
.ui.rating:first-child {
margin-left: 0em;
margin: 0em 0.5em 0em 0em;
} }
.ui.rating:last-child { .ui.rating:last-child {
margin-right: 0em; margin-right: 0em;
@ -80,13 +77,20 @@
Star Star
--------------------*/ --------------------*/
.ui.star.rating .icon {
width: 1em;
margin-right: 0.1em;
}
.ui.star.rating .icon:last-child {
margin: 0em;
}
.ui.star.rating .icon:after { .ui.star.rating .icon:after {
content: '\e800';
content: '\f006';
font-family: 'Icons'; font-family: 'Icons';
} }
.ui.star.rating .active.icon:after { .ui.star.rating .active.icon:after {
content: '\e801';
content: '\f005';
font-family: 'Icons'; font-family: 'Icons';
} }
@ -95,13 +99,20 @@
Heart Heart
--------------------*/ --------------------*/
.ui.heart.rating .icon {
width: 1em;
margin-right: 0.1em;
}
.ui.heart.rating .icon:last-child {
margin: 0em;
}
.ui.heart.rating .icon:after { .ui.heart.rating .icon:after {
content: '\2661';
content: '\f08a';
font-family: 'Icons'; font-family: 'Icons';
} }
.ui.heart.rating .active.icon:after { .ui.heart.rating .active.icon:after {
content: '\2665';
content: '\f004';
font-family: 'Icons'; font-family: 'Icons';
color: #EF404A; color: #EF404A;
} }
@ -151,9 +162,12 @@
Variations Variations
*******************************/ *******************************/
.ui.small.rating {
.ui.mini.rating {
font-size: 1rem; font-size: 1rem;
} }
.ui.small.rating {
font-size: 1.25rem;
}
.ui.rating { .ui.rating {
font-size: 1.5rem; font-size: 1.5rem;
} }

2
node/src/files/build/minified/modules/accordion.min.js

@ -1 +1 @@
!function(a,b,c,d){a.fn.accordion=function(b){var c,e=a(this),f=a.isPlainObject(b)?a.extend(!0,{},a.fn.accordion.settings,b):a.fn.accordion.settings,g=f.className,h=f.namespace,i=f.selector,j=f.error,k="."+h,l="module-"+h,m=e.selector||"",n=(new Date).getTime(),o=[],p=arguments[0],q="string"==typeof p,r=[].slice.call(arguments,1);return e.each(function(){var b,h=a(this),s=h.find(i.title),t=(h.find(i.icon),h.find(i.content)),u=this,v=h.data(l);b={initialize:function(){b.debug("Initializing accordion with bound events",h),s.on("click"+k,b.event.click),b.instantiate()},instantiate:function(){h.data(l,b)},destroy:function(){b.debug("Destroying previous accordion for",h),h.removeData(l),s.off(k)},event:{click:function(){b.verbose("Title clicked",this);var c=a(this),d=s.index(c);b.toggle(d)},resetStyle:function(){b.verbose("Resetting styles on element",this),a(this).removeAttr("style").children().removeAttr("style")}},toggle:function(a){b.debug("Toggling content content at index",a);var c=s.eq(a),d=c.next(t),e=d.is(":visible");e?f.collapsible?b.close(a):b.debug("Cannot close accordion content collapsing is disabled"):b.open(a)},open:function(c){var d=s.eq(c),e=d.next(t),h=s.filter("."+g.active),i=h.next(s),j=h.size()>0;e.is(":animated")||(b.debug("Opening accordion content",d),f.exclusive&&j&&(h.removeClass(g.active),i.stop().children().animate({opacity:0},f.speed,b.event.resetStyle).end().slideUp(f.speed,f.easing,function(){i.removeClass(g.active).removeAttr("style").children().removeAttr("style")})),d.addClass(g.active),e.stop().children().removeAttr("style").end().slideDown(f.speed,f.easing,function(){e.addClass(g.active).removeAttr("style"),a.proxy(f.onOpen,e)(),a.proxy(f.onChange,e)()}))},close:function(c){var d=s.eq(c),e=d.next(t);b.debug("Closing accordion content",d),d.removeClass(g.active),e.removeClass(g.active).show().stop().children().animate({opacity:0},f.speed,b.event.resetStyle).end().slideUp(f.speed,f.easing,function(){e.removeAttr("style"),a.proxy(f.onClose,e)(),a.proxy(f.onChange,e)()})},setting:function(c,e){return b.debug("Changing setting",c,e),e===d?f[c]:(a.isPlainObject(c)?a.extend(!0,f,c):f[c]=e,void 0)},internal:function(c,e){return b.debug("Changing internal",c,e),e===d?b[c]:(a.isPlainObject(c)?a.extend(!0,b,c):b[c]=e,void 0)},debug:function(){f.debug&&(f.performance?b.performance.log(arguments):(b.debug=Function.prototype.bind.call(console.info,console,f.name+":"),b.debug.apply(console,arguments)))},verbose:function(){f.verbose&&f.debug&&(f.performance?b.performance.log(arguments):(b.verbose=Function.prototype.bind.call(console.info,console,f.name+":"),b.verbose.apply(console,arguments)))},error:function(){b.error=Function.prototype.bind.call(console.error,console,f.name+":"),b.error.apply(console,arguments)},performance:{log:function(a){var c,d,e;f.performance&&(c=(new Date).getTime(),e=n||c,d=c-e,n=c,o.push({Element:u,Name:a[0],Arguments:[].slice.call(a,1)||"","Execution Time":d})),clearTimeout(b.performance.timer),b.performance.timer=setTimeout(b.performance.display,100)},display:function(){var c=f.name+":",g=0;n=!1,clearTimeout(b.performance.timer),a.each(o,function(a,b){g+=b["Execution Time"]}),c+=" "+g+"ms",m&&(c+=" '"+m+"'"),e.size()>1&&(c+=" ("+e.size()+")"),(console.group!==d||console.table!==d)&&o.length>0&&(console.groupCollapsed(c),console.table?console.table(o):a.each(o,function(a,b){console.log(b.Name+": "+b["Execution Time"]+"ms")}),console.groupEnd()),o=[]}},invoke:function(e,f,g){var h,i,k;return f=f||r,g=u||g,"string"==typeof e&&v!==d&&(e=e.split(/[\. ]/),h=e.length-1,a.each(e,function(c,f){var g=c!=h?f+e[c+1].charAt(0).toUpperCase()+e[c+1].slice(1):e;if(a.isPlainObject(v[f])&&c!=h)v=v[f];else{if(!a.isPlainObject(v[g])||c==h)return v[f]!==d?(i=v[f],!1):v[g]!==d?(i=v[g],!1):(b.error(j.method),!1);v=v[g]}})),a.isFunction(i)?k=i.apply(g,f):i!==d&&(k=i),a.isArray(c)?c.push(k):"string"==typeof c?c=[c,k]:k!==d&&(c=k),i}},q?(v===d&&b.initialize(),b.invoke(p)):(v!==d&&b.destroy(),b.initialize())}),c!==d?c:this},a.fn.accordion.settings={name:"Accordion",namespace:"accordion",debug:!0,verbose:!0,performance:!0,exclusive:!0,collapsible:!0,onOpen:function(){},onClose:function(){},onChange:function(){},error:{method:"The method you called is not defined"},className:{active:"active",hover:"hover"},selector:{title:".title",icon:".icon",content:".content"},speed:500,easing:"easeInOutQuint"}}(jQuery,window,document);
!function(a,b,c,d){a.fn.accordion=function(b){var c,e=a(this),f=a.isPlainObject(b)?a.extend(!0,{},a.fn.accordion.settings,b):a.fn.accordion.settings,g=f.className,h=f.namespace,i=f.selector,j=f.error,k="."+h,l="module-"+h,m=e.selector||"",n=(new Date).getTime(),o=[],p=arguments[0],q="string"==typeof p,r=[].slice.call(arguments,1);return e.each(function(){var b,h=a(this),s=h.find(i.title),t=h.find(i.content),u=this,v=h.data(l);b={initialize:function(){b.debug("Initializing accordion with bound events",h),s.on("click"+k,b.event.click),b.instantiate()},instantiate:function(){h.data(l,b)},destroy:function(){b.debug("Destroying previous accordion for",h),h.removeData(l),s.off(k)},event:{click:function(){b.verbose("Title clicked",this);var c=a(this),d=s.index(c);b.toggle(d)},resetStyle:function(){b.verbose("Resetting styles on element",this),a(this).removeAttr("style").children().removeAttr("style")}},toggle:function(a){b.debug("Toggling content content at index",a);var c=s.eq(a),d=c.next(t),e=d.is(":visible");e?f.collapsible?b.close(a):b.debug("Cannot close accordion content collapsing is disabled"):b.open(a)},open:function(c){var d=s.eq(c),e=d.next(t),h=s.filter("."+g.active),i=h.next(s),j=h.size()>0;e.is(":animated")||(b.debug("Opening accordion content",d),f.exclusive&&j&&(h.removeClass(g.active),i.stop().children().animate({opacity:0},f.duration,b.event.resetStyle).end().slideUp(f.duration,f.easing,function(){i.removeClass(g.active).removeAttr("style").children().removeAttr("style")})),d.addClass(g.active),e.stop().children().removeAttr("style").end().slideDown(f.duration,f.easing,function(){e.addClass(g.active).removeAttr("style"),a.proxy(f.onOpen,e)(),a.proxy(f.onChange,e)()}))},close:function(c){var d=s.eq(c),e=d.next(t);b.debug("Closing accordion content",d),d.removeClass(g.active),e.removeClass(g.active).show().stop().children().animate({opacity:0},f.duration,b.event.resetStyle).end().slideUp(f.duration,f.easing,function(){e.removeAttr("style"),a.proxy(f.onClose,e)(),a.proxy(f.onChange,e)()})},setting:function(c,e){return b.debug("Changing setting",c,e),e===d?f[c]:(a.isPlainObject(c)?a.extend(!0,f,c):f[c]=e,void 0)},internal:function(c,e){return b.debug("Changing internal",c,e),e===d?b[c]:(a.isPlainObject(c)?a.extend(!0,b,c):b[c]=e,void 0)},debug:function(){f.debug&&(f.performance?b.performance.log(arguments):(b.debug=Function.prototype.bind.call(console.info,console,f.name+":"),b.debug.apply(console,arguments)))},verbose:function(){f.verbose&&f.debug&&(f.performance?b.performance.log(arguments):(b.verbose=Function.prototype.bind.call(console.info,console,f.name+":"),b.verbose.apply(console,arguments)))},error:function(){b.error=Function.prototype.bind.call(console.error,console,f.name+":"),b.error.apply(console,arguments)},performance:{log:function(a){var c,d,e;f.performance&&(c=(new Date).getTime(),e=n||c,d=c-e,n=c,o.push({Element:u,Name:a[0],Arguments:[].slice.call(a,1)||"","Execution Time":d})),clearTimeout(b.performance.timer),b.performance.timer=setTimeout(b.performance.display,100)},display:function(){var c=f.name+":",g=0;n=!1,clearTimeout(b.performance.timer),a.each(o,function(a,b){g+=b["Execution Time"]}),c+=" "+g+"ms",m&&(c+=" '"+m+"'"),e.size()>1&&(c+=" ("+e.size()+")"),(console.group!==d||console.table!==d)&&o.length>0&&(console.groupCollapsed(c),console.table?console.table(o):a.each(o,function(a,b){console.log(b.Name+": "+b["Execution Time"]+"ms")}),console.groupEnd()),o=[]}},invoke:function(e,f,g){var h,i,k;return f=f||r,g=u||g,"string"==typeof e&&v!==d&&(e=e.split(/[\. ]/),h=e.length-1,a.each(e,function(c,f){var g=c!=h?f+e[c+1].charAt(0).toUpperCase()+e[c+1].slice(1):e;if(a.isPlainObject(v[f])&&c!=h)v=v[f];else{if(!a.isPlainObject(v[g])||c==h)return v[f]!==d?(i=v[f],!1):v[g]!==d?(i=v[g],!1):(b.error(j.method),!1);v=v[g]}})),a.isFunction(i)?k=i.apply(g,f):i!==d&&(k=i),a.isArray(c)?c.push(k):"string"==typeof c?c=[c,k]:k!==d&&(c=k),i}},q?(v===d&&b.initialize(),b.invoke(p)):(v!==d&&b.destroy(),b.initialize())}),c!==d?c:this},a.fn.accordion.settings={name:"Accordion",namespace:"accordion",debug:!0,verbose:!0,performance:!0,exclusive:!0,collapsible:!0,duration:300,easing:"linear",onOpen:function(){},onClose:function(){},onChange:function(){},error:{method:"The method you called is not defined"},className:{active:"active"},selector:{title:".title",content:".content"}}}(jQuery,window,document);

2
node/src/files/build/minified/modules/rating.min.css

@ -1 +1 @@
.ui.rating{display:inline-block;vertical-align:middle;margin:0 .5em}.ui.rating:first-child{margin-left:0}.ui.rating:last-child{margin-right:0}.ui.rating:after{display:block;content:'';visibility:hidden;clear:both;height:0}.ui.rating .icon{cursor:default;float:left;margin:0;width:1em;height:auto;padding:0;font-weight:400;font-style:normal}.ui.rating .icon:after{content:"\2605";color:rgba(0,0,0,.15);-webkit-transition:color .3s ease,opacity .3s ease;-moz-transition:color .3s ease,opacity .3s ease;-ms-transition:color .3s ease,opacity .3s ease;-o-transition:color .3s ease,opacity .3s ease;transition:color .3s ease,opacity .3s ease}.ui.star.rating .icon:after{content:'\e800';font-family:Icons}.ui.star.rating .active.icon:after{content:'\e801';font-family:Icons}.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}.ui.active.rating .icon{cursor:pointer}.ui.rating .active.icon:after{color:#FFCB08}.ui.rating.hover .active.icon:after{opacity:.5}.ui.rating .icon.hover:after,.ui.rating .icon.hover.active:after{opacity:1;color:#FFB70A}.ui.small.rating{font-size:1rem}.ui.rating{font-size:1.5rem}.ui.large.rating{font-size:2rem}
.ui.rating{display:inline-block;vertical-align:middle;margin:0 .5em 0 0}.ui.rating:last-child{margin-right:0}.ui.rating:after{display:block;content:'';visibility:hidden;clear:both;height:0}.ui.rating .icon{cursor:default;float:left;margin:0;width:1em;height:auto;padding:0;font-weight:400;font-style:normal}.ui.rating .icon:after{content:"\2605";color:rgba(0,0,0,.15);-webkit-transition:color .3s ease,opacity .3s ease;-moz-transition:color .3s ease,opacity .3s ease;-ms-transition:color .3s ease,opacity .3s ease;-o-transition:color .3s ease,opacity .3s ease;transition:color .3s ease,opacity .3s ease}.ui.star.rating .icon{width:1em;margin-right:.1em}.ui.star.rating .icon:last-child{margin:0}.ui.star.rating .icon:after{content:'\f006';font-family:Icons}.ui.star.rating .active.icon:after{content:'\f005';font-family:Icons}.ui.heart.rating .icon{width:1em;margin-right:.1em}.ui.heart.rating .icon:last-child{margin:0}.ui.heart.rating .icon:after{content:'\f08a';font-family:Icons}.ui.heart.rating .active.icon:after{content:'\f004';font-family:Icons;color:#EF404A}.ui.heart.rating .hover.icon:after,.ui.heart.rating .active.hover.icon:after{color:#FF2733}.ui.active.rating .icon{cursor:pointer}.ui.rating .active.icon:after{color:#FFCB08}.ui.rating.hover .active.icon:after{opacity:.5}.ui.rating .icon.hover:after,.ui.rating .icon.hover.active:after{opacity:1;color:#FFB70A}.ui.mini.rating{font-size:1rem}.ui.small.rating{font-size:1.25rem}.ui.rating{font-size:1.5rem}.ui.large.rating{font-size:2rem}

2
node/src/files/build/packaged/css/semantic.min.css
File diff suppressed because it is too large
View File

2
node/src/files/build/packaged/javascript/semantic.min.js
File diff suppressed because it is too large
View File

BIN
node/src/files/build/semantic.zip

32
node/src/files/build/uncompressed/modules/rating.css

@ -14,10 +14,7 @@
.ui.rating { .ui.rating {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
margin: 0em 0.5em;
}
.ui.rating:first-child {
margin-left: 0em;
margin: 0em 0.5em 0em 0em;
} }
.ui.rating:last-child { .ui.rating:last-child {
margin-right: 0em; margin-right: 0em;
@ -65,23 +62,37 @@
/*------------------- /*-------------------
Star Star
--------------------*/ --------------------*/
.ui.star.rating .icon {
width: 1em;
margin-right: 0.1em;
}
.ui.star.rating .icon:last-child {
margin: 0em;
}
.ui.star.rating .icon:after { .ui.star.rating .icon:after {
content: '\e800';
content: '\f006';
font-family: 'Icons'; font-family: 'Icons';
} }
.ui.star.rating .active.icon:after { .ui.star.rating .active.icon:after {
content: '\e801';
content: '\f005';
font-family: 'Icons'; font-family: 'Icons';
} }
/*------------------- /*-------------------
Heart Heart
--------------------*/ --------------------*/
.ui.heart.rating .icon {
width: 1em;
margin-right: 0.1em;
}
.ui.heart.rating .icon:last-child {
margin: 0em;
}
.ui.heart.rating .icon:after { .ui.heart.rating .icon:after {
content: '\2661';
content: '\f08a';
font-family: 'Icons'; font-family: 'Icons';
} }
.ui.heart.rating .active.icon:after { .ui.heart.rating .active.icon:after {
content: '\2665';
content: '\f004';
font-family: 'Icons'; font-family: 'Icons';
color: #EF404A; color: #EF404A;
} }
@ -119,9 +130,12 @@
/******************************* /*******************************
Variations Variations
*******************************/ *******************************/
.ui.small.rating {
.ui.mini.rating {
font-size: 1rem; font-size: 1rem;
} }
.ui.small.rating {
font-size: 1.25rem;
}
.ui.rating { .ui.rating {
font-size: 1.5rem; font-size: 1.5rem;
} }

32
src/modules/rating.less

@ -16,10 +16,7 @@
.ui.rating { .ui.rating {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
margin: 0em 0.5em;
}
.ui.rating:first-child {
margin-left: 0em;
margin: 0em 0.5em 0em 0em;
} }
.ui.rating:last-child { .ui.rating:last-child {
margin-right: 0em; margin-right: 0em;
@ -80,13 +77,20 @@
Star Star
--------------------*/ --------------------*/
.ui.star.rating .icon {
width: 1em;
margin-right: 0.1em;
}
.ui.star.rating .icon:last-child {
margin: 0em;
}
.ui.star.rating .icon:after { .ui.star.rating .icon:after {
content: '\e800';
content: '\f006';
font-family: 'Icons'; font-family: 'Icons';
} }
.ui.star.rating .active.icon:after { .ui.star.rating .active.icon:after {
content: '\e801';
content: '\f005';
font-family: 'Icons'; font-family: 'Icons';
} }
@ -95,13 +99,20 @@
Heart Heart
--------------------*/ --------------------*/
.ui.heart.rating .icon {
width: 1em;
margin-right: 0.1em;
}
.ui.heart.rating .icon:last-child {
margin: 0em;
}
.ui.heart.rating .icon:after { .ui.heart.rating .icon:after {
content: '\2661';
content: '\f08a';
font-family: 'Icons'; font-family: 'Icons';
} }
.ui.heart.rating .active.icon:after { .ui.heart.rating .active.icon:after {
content: '\2665';
content: '\f004';
font-family: 'Icons'; font-family: 'Icons';
color: #EF404A; color: #EF404A;
} }
@ -151,9 +162,12 @@
Variations Variations
*******************************/ *******************************/
.ui.small.rating {
.ui.mini.rating {
font-size: 1rem; font-size: 1rem;
} }
.ui.small.rating {
font-size: 1.25rem;
}
.ui.rating { .ui.rating {
font-size: 1.5rem; font-size: 1.5rem;
} }

Loading…
Cancel
Save