Browse Source

adds max width to carousel

Former-commit-id: f0de8ed59d
Former-commit-id: 42c0b3a5ec
pull/258/head
Jack Lukic 11 years ago
parent
commit
34d5cfd64f
15 changed files with 30 additions and 9 deletions
  1. 3
      build/minified/modules/accordion.js
  2. 2
      build/minified/modules/accordion.min.css
  3. 2
      build/minified/modules/accordion.min.js
  4. 2
      build/minified/modules/dimmer.min.js
  5. 2
      build/minified/modules/form.min.js
  6. 3
      build/packaged/modules/accordion.js
  7. 2
      build/packaged/semantic.min.css.REMOVED.git-id
  8. 2
      build/packaged/semantic.min.js.REMOVED.git-id
  9. 2
      build/uncompressed/modules/accordion.css
  10. 3
      build/uncompressed/modules/accordion.js
  11. 6
      node/src/documents/modules/accordion.html
  12. 2
      node/src/files/components/semantic/modules/accordion.css
  13. 3
      node/src/files/components/semantic/modules/accordion.js
  14. 3
      src/modules/accordion.js
  15. 2
      src/modules/accordion.less

3
build/minified/modules/accordion.js

@ -129,6 +129,9 @@ $.fn.accordion = function(parameters) {
;
$activeContent
.stop()
.children()
.removeAttr('style')
.end()
.slideDown(settings.speed, settings.easing, function() {
$activeContent
.addClass(className.active)

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

@ -1 +1 @@
.ui.accordion{overflow:hidden;font-size:1rem;border-radius:.3125em;background-color:#FFF;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.1);-moz-box-shadow:0 0 0 1px rgba(0,0,0,.1);box-shadow:0 0 0 1px rgba(0,0,0,.1)}.ui.accordion .title{cursor:pointer;padding:.75em 1em;font-weight:700;color:rgba(0,0,0,.6);border-top:1px solid rgba(0,0,0,.05);-webkit-transition:background-color .2s ease-out;-moz-transition:background-color .2s ease-out;-o-transition:background-color .2s ease-out;-ms-transition:background-color .2s ease-out;transition:background-color .2s ease-out}.ui.accordion .title:first-child{border-top:0}.ui.accordion .content{display:none;padding:1.3em 1em}.ui.accordion .title:hover,.ui.accordion .title.active{color:rgba(0,0,0,.8)}.ui.accordion .title.active{background-color:rgba(0,0,0,.1);color:rgba(0,0,0,.8)}.ui.accordion .content.active{display:block}
.ui.accordion{width:600px;max-width:100%;overflow:hidden;font-size:1rem;border-radius:.3125em;background-color:#FFF;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.1);-moz-box-shadow:0 0 0 1px rgba(0,0,0,.1);box-shadow:0 0 0 1px rgba(0,0,0,.1)}.ui.accordion .title{cursor:pointer;padding:.75em 1em;font-weight:700;color:rgba(0,0,0,.6);border-top:1px solid rgba(0,0,0,.05);-webkit-transition:background-color .2s ease-out;-moz-transition:background-color .2s ease-out;-o-transition:background-color .2s ease-out;-ms-transition:background-color .2s ease-out;transition:background-color .2s ease-out}.ui.accordion .title:first-child{border-top:0}.ui.accordion .content{display:none;padding:1.3em 1em}.ui.accordion .title:hover,.ui.accordion .title.active{color:rgba(0,0,0,.8)}.ui.accordion .title.active{background-color:rgba(0,0,0,.1);color:rgba(0,0,0,.8)}.ui.accordion .content.active{display:block}

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

@ -1 +1 @@
(function(e,n,o,t){e.fn.accordion=function(n){var o,i=e(this),c=e.isPlainObject(n)?e.extend(!0,{},e.fn.accordion.settings,n):e.fn.accordion.settings,a=("."+c.namespace,"module-"+c.namespace,i.selector||""),s=(new Date).getTime(),r=[],l=arguments[0],u="string"==typeof l,d=[].slice.call(arguments,1);return i.each(function(){var n,i=e(this),m=i.find(c.selector.title),p=(i.find(c.selector.icon),i.find(c.selector.content)),g=(i.selector||"",this),f=i.data("module-"+c.namespace),v=c.className,b=(c.metadata,c.namespace),h=(c.animation,c.errors);n={initialize:function(){n.debug("Initializing accordion with bound events",i),m.on("click",n.event.click),i.data("module",n)},destroy:function(){n.debug("Destroying previous accordion for",i),i.off(b)},event:{click:function(){var o=e(this),t=m.index(o),i=o.next(p).hasClass(v.active);n.verbose("Accordion title clicked",o),i?c.collapsible?n.close(t):n.debug("Cannot close accordion content collapsing is disabled"):n.open(t)}},open:function(o){var t=m.eq(o),i=t.next(p),a=m.filter("."+v.active),s=a.next(m),r=a.size()>0;n.debug("Opening accordion content",t),c.exclusive&&r&&(a.removeClass(v.active),s.stop().children().animate({opacity:0},c.speed).end().slideUp(c.speed,c.easing,function(){s.removeClass(v.active).removeAttr("style").children().removeAttr("style")})),t.addClass(v.active),i.stop().slideDown(c.speed,c.easing,function(){i.addClass(v.active).removeAttr("style"),e.proxy(c.onOpen,i)(),e.proxy(c.onChange,i)()})},close:function(o){var t=m.eq(o),i=t.next(p);n.debug("Closing accordion content",t),t.removeClass(v.active),i.removeClass(v.active).show().stop().slideUp(c.speed,c.easing,function(){i.removeAttr("style"),e.proxy(c.onClose,i)(),e.proxy(c.onChange,i)()})},setting:function(o,i){return n.debug("Changing setting",o,i),i===t?c[o]:(e.isPlainObject(o)?e.extend(!0,c,o):c[o]=i,t)},internal:function(o,i){return n.debug("Changing internal",o,i),i===t?n[o]:(e.isPlainObject(o)?e.extend(!0,n,o):n[o]=i,t)},debug:function(){c.debug&&(c.performance?n.performance.log(arguments):n.debug=Function.prototype.bind.call(console.info,console,c.moduleName+":"))},verbose:function(){c.verbose&&c.debug&&(c.performance?n.performance.log(arguments):n.verbose=Function.prototype.bind.call(console.info,console,c.moduleName+":"))},error:function(){n.error=Function.prototype.bind.call(console.log,console,c.moduleName+":")},performance:{log:function(e){var o,t,i;c.performance&&(o=(new Date).getTime(),i=s||o,t=o-i,s=o,r.push({Element:g,Name:e[0],Arguments:e[1]||"","Execution Time":t})),clearTimeout(n.performance.timer),n.performance.timer=setTimeout(n.performance.display,100)},display:function(){var n=c.moduleName+":",o=0;s=!1,e.each(r,function(e,n){o+=n["Execution Time"]}),n+=" "+o+"ms",a&&(n+=" '"+a+"'"),(console.group!==t||console.table!==t)&&r.length>0&&(console.groupCollapsed(n),console.table?console.table(r):e.each(r,function(e,n){console.log(n.Name+": "+n["Execution Time"]+"ms")}),console.groupEnd()),r=[]}},invoke:function(o,i,c){var a,s;return i=i||d,c=g||c,"string"==typeof o&&f!==t&&(o=o.split("."),a=o.length-1,e.each(o,function(o,i){return e.isPlainObject(f[i])&&o!=a?(f=f[i],!0):f[i]!==t?(s=f[i],!0):(n.error(h.method),!1)})),e.isFunction(s)?(f.verbose("Executing invoked function",s),s.apply(c,i)):s||!1}},u?(f===t&&n.initialize(),o=n.invoke(l)):(f!==t&&n.destroy(),n.initialize())}),o?o:this},e.fn.accordion.settings={moduleName:"Accordion",debug:!0,verbose:!0,performance:!1,exclusive:!0,collapsible:!0,onOpen:function(){},onClose:function(){},onChange:function(){},errors:{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(e,n,o,t){e.fn.accordion=function(n){var o,i=e(this),c=e.isPlainObject(n)?e.extend(!0,{},e.fn.accordion.settings,n):e.fn.accordion.settings,a=("."+c.namespace,"module-"+c.namespace,i.selector||""),s=(new Date).getTime(),r=[],l=arguments[0],d="string"==typeof l,u=[].slice.call(arguments,1);return i.each(function(){var n,i=e(this),m=i.find(c.selector.title),p=(i.find(c.selector.icon),i.find(c.selector.content)),g=(i.selector||"",this),f=i.data("module-"+c.namespace),v=c.className,b=(c.metadata,c.namespace),h=(c.animation,c.errors);n={initialize:function(){n.debug("Initializing accordion with bound events",i),m.on("click",n.event.click),i.data("module",n)},destroy:function(){n.debug("Destroying previous accordion for",i),i.off(b)},event:{click:function(){var o=e(this),t=m.index(o),i=o.next(p).hasClass(v.active);n.verbose("Accordion title clicked",o),i?c.collapsible?n.close(t):n.debug("Cannot close accordion content collapsing is disabled"):n.open(t)}},open:function(o){var t=m.eq(o),i=t.next(p),a=m.filter("."+v.active),s=a.next(m),r=a.size()>0;n.debug("Opening accordion content",t),c.exclusive&&r&&(a.removeClass(v.active),s.stop().children().animate({opacity:0},c.speed).end().slideUp(c.speed,c.easing,function(){s.removeClass(v.active).removeAttr("style").children().removeAttr("style")})),t.addClass(v.active),i.stop().children().removeAttr("style").end().slideDown(c.speed,c.easing,function(){i.addClass(v.active).removeAttr("style"),e.proxy(c.onOpen,i)(),e.proxy(c.onChange,i)()})},close:function(o){var t=m.eq(o),i=t.next(p);n.debug("Closing accordion content",t),t.removeClass(v.active),i.removeClass(v.active).show().stop().slideUp(c.speed,c.easing,function(){i.removeAttr("style"),e.proxy(c.onClose,i)(),e.proxy(c.onChange,i)()})},setting:function(o,i){return n.debug("Changing setting",o,i),i===t?c[o]:(e.isPlainObject(o)?e.extend(!0,c,o):c[o]=i,t)},internal:function(o,i){return n.debug("Changing internal",o,i),i===t?n[o]:(e.isPlainObject(o)?e.extend(!0,n,o):n[o]=i,t)},debug:function(){c.debug&&(c.performance?n.performance.log(arguments):n.debug=Function.prototype.bind.call(console.info,console,c.moduleName+":"))},verbose:function(){c.verbose&&c.debug&&(c.performance?n.performance.log(arguments):n.verbose=Function.prototype.bind.call(console.info,console,c.moduleName+":"))},error:function(){n.error=Function.prototype.bind.call(console.log,console,c.moduleName+":")},performance:{log:function(e){var o,t,i;c.performance&&(o=(new Date).getTime(),i=s||o,t=o-i,s=o,r.push({Element:g,Name:e[0],Arguments:e[1]||"","Execution Time":t})),clearTimeout(n.performance.timer),n.performance.timer=setTimeout(n.performance.display,100)},display:function(){var n=c.moduleName+":",o=0;s=!1,e.each(r,function(e,n){o+=n["Execution Time"]}),n+=" "+o+"ms",a&&(n+=" '"+a+"'"),(console.group!==t||console.table!==t)&&r.length>0&&(console.groupCollapsed(n),console.table?console.table(r):e.each(r,function(e,n){console.log(n.Name+": "+n["Execution Time"]+"ms")}),console.groupEnd()),r=[]}},invoke:function(o,i,c){var a,s;return i=i||u,c=g||c,"string"==typeof o&&f!==t&&(o=o.split("."),a=o.length-1,e.each(o,function(o,i){return e.isPlainObject(f[i])&&o!=a?(f=f[i],!0):f[i]!==t?(s=f[i],!0):(n.error(h.method),!1)})),e.isFunction(s)?(f.verbose("Executing invoked function",s),s.apply(c,i)):s||!1}},d?(f===t&&n.initialize(),o=n.invoke(l)):(f!==t&&n.destroy(),n.initialize())}),o?o:this},e.fn.accordion.settings={moduleName:"Accordion",debug:!0,verbose:!0,performance:!1,exclusive:!0,collapsible:!0,onOpen:function(){},onClose:function(){},onChange:function(){},errors:{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);

2
build/minified/modules/dimmer.min.js
File diff suppressed because it is too large
View File

2
build/minified/modules/form.min.js
File diff suppressed because it is too large
View File

3
build/packaged/modules/accordion.js

@ -129,6 +129,9 @@ $.fn.accordion = function(parameters) {
;
$activeContent
.stop()
.children()
.removeAttr('style')
.end()
.slideDown(settings.speed, settings.easing, function() {
$activeContent
.addClass(className.active)

2
build/packaged/semantic.min.css.REMOVED.git-id

@ -1 +1 @@
7ebb53b371f136b0d0f2253048a19c1e4108aabd
daaf96a1130365f7a1e23ba079216e18799c0a18

2
build/packaged/semantic.min.js.REMOVED.git-id

@ -1 +1 @@
239a182ea4d5b614ddb1da271d8219eddfb49cc3
da2af991dc16a25e0436a62d15480eca8da91f5c

2
build/uncompressed/modules/accordion.css

@ -13,6 +13,8 @@
Button
*******************************/
.ui.accordion {
width: 600px;
max-width: 100%;
overflow: hidden;
font-size: 1rem;
border-radius: 0.3125em;

3
build/uncompressed/modules/accordion.js

@ -129,6 +129,9 @@ $.fn.accordion = function(parameters) {
;
$activeContent
.stop()
.children()
.removeAttr('style')
.end()
.slideDown(settings.speed, settings.easing, function() {
$activeContent
.addClass(className.active)

6
node/src/documents/modules/accordion.html

@ -33,15 +33,15 @@ type : 'UI Module'
<h4 class="ui header">Accordion</h4>
<p>A standard accordion</p>
<div class="ui accordion">
<div class="active title"><i class="icon sketchy question"></i> What is a dog?</div>
<div class="active title">What is a dog?</div>
<div class="active content">
<p>A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world.</p>
</div>
<div class="title"><i class="icon sketchy question"></i> What kinds of dogs are there?</div>
<div class="title">What kinds of dogs are there?</div>
<div class="content">
<p>There are many breeds of dogs. Each breed varies in size and temperament. Owners often select a breed of dog that they find to be compatible with their own lifestyle and desires from a companion.</p>
</div>
<div class="title"><i class="icon sketchy question"></i> How do you acquire a dog?</div>
<div class="title">How do you acquire a dog?</div>
<div class="content">
<p>Three common ways for a prospective owner to acquire a dog is from pet shops, private owners, or shelters.</p>
<p>A pet shop may be the most convenient way to buy a dog. Buying a dog from a private owner allows you to assess the pedigree and upbringing of your dog before choosing to take it home. Lastly, finding your dog from a shelter, helps give a good home to a dog who may not find one so readily.</p>

2
node/src/files/components/semantic/modules/accordion.css

@ -13,6 +13,8 @@
Button
*******************************/
.ui.accordion {
width: 600px;
max-width: 100%;
overflow: hidden;
font-size: 1rem;
border-radius: 0.3125em;

3
node/src/files/components/semantic/modules/accordion.js

@ -129,6 +129,9 @@ $.fn.accordion = function(parameters) {
;
$activeContent
.stop()
.children()
.removeAttr('style')
.end()
.slideDown(settings.speed, settings.easing, function() {
$activeContent
.addClass(className.active)

3
src/modules/accordion.js

@ -129,6 +129,9 @@ $.fn.accordion = function(parameters) {
;
$activeContent
.stop()
.children()
.removeAttr('style')
.end()
.slideDown(settings.speed, settings.easing, function() {
$activeContent
.addClass(className.active)

2
src/modules/accordion.less

@ -16,6 +16,8 @@
*******************************/
.ui.accordion {
width: 600px;
max-width: 100%;
overflow: hidden;
font-size: 1rem;

Loading…
Cancel
Save