From 8f3bffeeb2eac466da64bf4df3a6fce95fa12821 Mon Sep 17 00:00:00 2001 From: jlukic Date: Tue, 3 Mar 2015 18:08:44 -0500 Subject: [PATCH] Initial commit blank container element --- dist/components/accordion.js | 2 +- dist/components/accordion.min.js | 2 +- dist/components/checkbox.js | 2 +- dist/components/checkbox.min.js | 2 +- dist/components/container.css | 39 ++++++++++++++++ dist/components/container.min.css | 10 +++++ dist/components/dimmer.js | 44 ++++++++++++++++-- dist/components/dimmer.min.js | 4 +- dist/components/dropdown.js | 13 +++--- dist/components/form.js | 2 +- dist/components/form.min.js | 2 +- dist/components/site.js | 2 +- dist/components/site.min.js | 2 +- dist/semantic.css | 32 ++++++++++++- dist/semantic.min.css | 2 +- src/_site/elements/container.overrides | 3 ++ src/_site/elements/container.variables | 3 ++ src/definitions/elements/container.less | 45 +++++++++++++++++++ src/theme.config.example | 12 +---- .../default/elements/container.overrides | 3 ++ .../default/elements/container.variables | 13 ++++++ tasks/build.js | 2 +- tasks/config/defaults.js | 1 + tasks/config/project/tasks.js | 11 +++++ tasks/watch.js | 2 +- 25 files changed, 221 insertions(+), 34 deletions(-) create mode 100644 dist/components/container.css create mode 100644 dist/components/container.min.css create mode 100644 src/_site/elements/container.overrides create mode 100644 src/_site/elements/container.variables create mode 100644 src/definitions/elements/container.less create mode 100644 src/themes/default/elements/container.overrides create mode 100644 src/themes/default/elements/container.variables diff --git a/dist/components/accordion.js b/dist/components/accordion.js index 44b0f99b9..10a7546bd 100644 --- a/dist/components/accordion.js +++ b/dist/components/accordion.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.10.4 - Accordion + * # Semantic UI 1.11.0 - Accordion * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/accordion.min.js b/dist/components/accordion.min.js index cf806f9f4..3fad53794 100644 --- a/dist/components/accordion.min.js +++ b/dist/components/accordion.min.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.10.4 - Accordion + * # Semantic UI 1.11.0 - Accordion * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/checkbox.js b/dist/components/checkbox.js index 16c347415..4e4e26e3f 100644 --- a/dist/components/checkbox.js +++ b/dist/components/checkbox.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.10.4 - Checkbox + * # Semantic UI 1.11.0 - Checkbox * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/checkbox.min.js b/dist/components/checkbox.min.js index cb52ff8f3..6fbdf1d45 100644 --- a/dist/components/checkbox.min.js +++ b/dist/components/checkbox.min.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.10.4 - Checkbox + * # Semantic UI 1.11.0 - Checkbox * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/container.css b/dist/components/container.css new file mode 100644 index 000000000..fba7f5e37 --- /dev/null +++ b/dist/components/container.css @@ -0,0 +1,39 @@ +/*! + * # Semantic UI 1.11.0 - Container + * http://github.com/semantic-org/semantic-ui/ + * + * + * Copyright 2014 Contributorss + * Released under the MIT license + * http://opensource.org/licenses/MIT + * + */ + + +/******************************* + Container +*******************************/ + + +/*------------------- + Animated +--------------------*/ + + + +/******************************* + Types +*******************************/ + + + +/******************************* + Theme Overrides +*******************************/ + + + +/******************************* + Site Overrides +*******************************/ + diff --git a/dist/components/container.min.css b/dist/components/container.min.css new file mode 100644 index 000000000..28cacb023 --- /dev/null +++ b/dist/components/container.min.css @@ -0,0 +1,10 @@ +/*! + * # Semantic UI 1.11.0 - Container + * http://github.com/semantic-org/semantic-ui/ + * + * + * Copyright 2014 Contributorss + * Released under the MIT license + * http://opensource.org/licenses/MIT + * + */ \ No newline at end of file diff --git a/dist/components/dimmer.js b/dist/components/dimmer.js index dc6928881..3d4af60d5 100644 --- a/dist/components/dimmer.js +++ b/dist/components/dimmer.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.10.4 - Dimmer + * # Semantic UI 1.11.0 - Dimmer * http://github.com/semantic-org/semantic-ui/ * * @@ -215,6 +215,9 @@ $.fn.dimmer = function(parameters) { : function(){} ; if(settings.useCSS && $.fn.transition !== undefined && $dimmer.transition('is supported')) { + if(settings.opacity !== 'auto') { + module.set.opacity(); + } $dimmer .transition({ animation : settings.transition + ' in', @@ -234,6 +237,9 @@ $.fn.dimmer = function(parameters) { else { module.verbose('Showing dimmer animation with javascript'); module.set.dimmed(); + if(settings.opacity == 'auto') { + settings.opacity = 0.8; + } $dimmer .stop() .css({ @@ -241,7 +247,7 @@ $.fn.dimmer = function(parameters) { width : '100%', height : '100%' }) - .fadeTo(module.get.duration(), 1, function() { + .fadeTo(module.get.duration(), settings.opacity, function() { $dimmer.removeAttr('style'); module.set.active(); callback(); @@ -361,6 +367,23 @@ $.fn.dimmer = function(parameters) { }, set: { + opacity: function(opacity) { + var + opacity = settings.opacity || opacity, + color = $dimmer.css('background-color'), + colorArray = color.split(','), + isRGBA = (colorArray && colorArray.length == 4) + ; + if(isRGBA) { + colorArray[3] = opacity + ')'; + color = colorArray.join(','); + } + else { + color = 'rgba(0, 0, 0, ' + opacity + ')'; + } + module.debug('Setting opacity to', opacity); + $dimmer.css('background-color', color); + }, active: function() { $dimmer.addClass(className.active); }, @@ -583,13 +606,28 @@ $.fn.dimmer.settings = { verbose : true, performance : true, + // name to distinguish between multiple dimmers in context dimmerName : false, + + // whether to add a variation type variation : false, + + // whether to bind close events closable : 'auto', - transition : 'fade', + + // whether to use css animations useCSS : true, + + // css animation to use + transition : 'fade', + + // event to bind to on : false, + // overriding opacity value + opacity : 'auto', + + // transition durations duration : { show : 500, hide : 500 diff --git a/dist/components/dimmer.min.js b/dist/components/dimmer.min.js index 3a7b334cd..a5b880fc1 100644 --- a/dist/components/dimmer.min.js +++ b/dist/components/dimmer.min.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.10.4 - Dimmer + * # Semantic UI 1.11.0 - Dimmer * http://github.com/semantic-org/semantic-ui/ * * @@ -8,4 +8,4 @@ * http://opensource.org/licenses/MIT * */ -!function(e,i,n,t){"use strict";e.fn.dimmer=function(i){var o,a=e(this),r=(new Date).getTime(),m=[],s=arguments[0],d="string"==typeof s,c=[].slice.call(arguments,1);return a.each(function(){var u,l,f,g=e.isPlainObject(i)?e.extend(!0,{},e.fn.dimmer.settings,i):e.extend({},e.fn.dimmer.settings),h=g.selector,p=g.namespace,b=g.className,v=g.error,C="."+p,w="module-"+p,y=a.selector||"",S="ontouchstart"in n.documentElement?"touchstart":"click",D=e(this),T=this,N=D.data(w);f={preinitialize:function(){f.is.dimmer()?(l=D.parent(),u=D):(l=D,u=f.has.dimmer()?g.dimmerName?l.children(h.dimmer).filter("."+g.dimmerName):l.children(h.dimmer):f.create())},initialize:function(){f.debug("Initializing dimmer",g),"hover"==g.on?l.on("mouseenter"+C,f.show).on("mouseleave"+C,f.hide):"click"==g.on&&l.on(S+C,f.toggle),f.is.page()&&(f.debug("Setting as a page dimmer",l),f.set.pageDimmer()),f.is.closable()&&(f.verbose("Adding dimmer close event",u),u.on(S+C,f.event.click)),f.set.dimmable(),f.instantiate()},instantiate:function(){f.verbose("Storing instance of module",f),N=f,D.data(w,N)},destroy:function(){f.verbose("Destroying previous module",u),D.removeData(w),l.off(C),u.off(C)},event:{click:function(i){f.verbose("Determining if event occured on dimmer",i),(0===u.find(i.target).length||e(i.target).is(h.content))&&(f.hide(),i.stopImmediatePropagation())}},addContent:function(i){var n=e(i);f.debug("Add content to dimmer",n),n.parent()[0]!==u[0]&&n.detach().appendTo(u)},create:function(){var i=e(g.template.dimmer());return g.variation&&(f.debug("Creating dimmer with variation",g.variation),i.addClass(b.variation)),g.dimmerName&&(f.debug("Creating named dimmer",g.dimmerName),i.addClass(g.dimmerName)),i.appendTo(l),i},show:function(i){i=e.isFunction(i)?i:function(){},f.debug("Showing dimmer",u,g),f.is.dimmed()&&!f.is.animating()||!f.is.enabled()?f.debug("Dimmer is already shown or disabled"):(f.animate.show(i),g.onShow.call(T),g.onChange.call(T))},hide:function(i){i=e.isFunction(i)?i:function(){},f.is.dimmed()||f.is.animating()?(f.debug("Hiding dimmer",u),f.animate.hide(i),g.onHide.call(T),g.onChange.call(T)):f.debug("Dimmer is not visible")},toggle:function(){f.verbose("Toggling dimmer visibility",u),f.is.dimmed()?f.hide():f.show()},animate:{show:function(i){i=e.isFunction(i)?i:function(){},g.useCSS&&e.fn.transition!==t&&u.transition("is supported")?u.transition({animation:g.transition+" in",queue:!1,duration:f.get.duration(),useFailSafe:!0,onStart:function(){f.set.dimmed()},onComplete:function(){f.set.active(),i()}}):(f.verbose("Showing dimmer animation with javascript"),f.set.dimmed(),u.stop().css({opacity:0,width:"100%",height:"100%"}).fadeTo(f.get.duration(),1,function(){u.removeAttr("style"),f.set.active(),i()}))},hide:function(i){i=e.isFunction(i)?i:function(){},g.useCSS&&e.fn.transition!==t&&u.transition("is supported")?(f.verbose("Hiding dimmer with css"),u.transition({animation:g.transition+" out",queue:!1,duration:f.get.duration(),useFailSafe:!0,onStart:function(){f.remove.dimmed()},onComplete:function(){f.remove.active(),i()}})):(f.verbose("Hiding dimmer with javascript"),f.remove.dimmed(),u.stop().fadeOut(f.get.duration(),function(){f.remove.active(),u.removeAttr("style"),i()}))}},get:{dimmer:function(){return u},duration:function(){return"object"==typeof g.duration?f.is.active()?g.duration.hide:g.duration.show:g.duration}},has:{dimmer:function(){return g.dimmerName?D.children(h.dimmer).filter("."+g.dimmerName).length>0:D.children(h.dimmer).length>0}},is:{active:function(){return u.hasClass(b.active)},animating:function(){return u.is(":animated")||u.hasClass(b.animating)},closable:function(){return"auto"==g.closable?"hover"==g.on?!1:!0:g.closable},dimmer:function(){return D.is(h.dimmer)},dimmable:function(){return D.is(h.dimmable)},dimmed:function(){return l.hasClass(b.dimmed)},disabled:function(){return l.hasClass(b.disabled)},enabled:function(){return!f.is.disabled()},page:function(){return l.is("body")},pageDimmer:function(){return u.hasClass(b.pageDimmer)}},can:{show:function(){return!u.hasClass(b.disabled)}},set:{active:function(){u.addClass(b.active)},dimmable:function(){l.addClass(b.dimmable)},dimmed:function(){l.addClass(b.dimmed)},pageDimmer:function(){u.addClass(b.pageDimmer)},disabled:function(){u.addClass(b.disabled)}},remove:{active:function(){u.removeClass(b.active)},dimmed:function(){l.removeClass(b.dimmed)},disabled:function(){u.removeClass(b.disabled)}},setting:function(i,n){if(f.debug("Changing setting",i,n),e.isPlainObject(i))e.extend(!0,g,i);else{if(n===t)return g[i];g[i]=n}},internal:function(i,n){if(e.isPlainObject(i))e.extend(!0,f,i);else{if(n===t)return f[i];f[i]=n}},debug:function(){g.debug&&(g.performance?f.performance.log(arguments):(f.debug=Function.prototype.bind.call(console.info,console,g.name+":"),f.debug.apply(console,arguments)))},verbose:function(){g.verbose&&g.debug&&(g.performance?f.performance.log(arguments):(f.verbose=Function.prototype.bind.call(console.info,console,g.name+":"),f.verbose.apply(console,arguments)))},error:function(){f.error=Function.prototype.bind.call(console.error,console,g.name+":"),f.error.apply(console,arguments)},performance:{log:function(e){var i,n,t;g.performance&&(i=(new Date).getTime(),t=r||i,n=i-t,r=i,m.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:T,"Execution Time":n})),clearTimeout(f.performance.timer),f.performance.timer=setTimeout(f.performance.display,100)},display:function(){var i=g.name+":",n=0;r=!1,clearTimeout(f.performance.timer),e.each(m,function(e,i){n+=i["Execution Time"]}),i+=" "+n+"ms",y&&(i+=" '"+y+"'"),a.length>1&&(i+=" ("+a.length+")"),(console.group!==t||console.table!==t)&&m.length>0&&(console.groupCollapsed(i),console.table?console.table(m):e.each(m,function(e,i){console.log(i.Name+": "+i["Execution Time"]+"ms")}),console.groupEnd()),m=[]}},invoke:function(i,n,a){var r,m,s,d=N;return n=n||c,a=T||a,"string"==typeof i&&d!==t&&(i=i.split(/[\. ]/),r=i.length-1,e.each(i,function(n,o){var a=n!=r?o+i[n+1].charAt(0).toUpperCase()+i[n+1].slice(1):i;if(e.isPlainObject(d[a])&&n!=r)d=d[a];else{if(d[a]!==t)return m=d[a],!1;if(!e.isPlainObject(d[o])||n==r)return d[o]!==t?(m=d[o],!1):(f.error(v.method,i),!1);d=d[o]}})),e.isFunction(m)?s=m.apply(a,n):m!==t&&(s=m),e.isArray(o)?o.push(s):o!==t?o=[o,s]:s!==t&&(o=s),m}},f.preinitialize(),d?(N===t&&f.initialize(),f.invoke(s)):(N!==t&&N.invoke("destroy"),f.initialize())}),o!==t?o:this},e.fn.dimmer.settings={name:"Dimmer",namespace:"dimmer",debug:!1,verbose:!0,performance:!0,dimmerName:!1,variation:!1,closable:"auto",transition:"fade",useCSS:!0,on:!1,duration:{show:500,hide:500},onChange:function(){},onShow:function(){},onHide:function(){},error:{method:"The method you called is not defined."},selector:{dimmable:".dimmable",dimmer:".ui.dimmer",content:".ui.dimmer > .content, .ui.dimmer > .content > .center"},template:{dimmer:function(){return e("
").attr("class","ui dimmer")}},className:{active:"active",animating:"animating",dimmable:"dimmable",dimmed:"dimmed",disabled:"disabled",hide:"hide",pageDimmer:"page",show:"show"}}}(jQuery,window,document); \ No newline at end of file +!function(e,i,n,t){"use strict";e.fn.dimmer=function(i){var o,a=e(this),r=(new Date).getTime(),m=[],s=arguments[0],d="string"==typeof s,c=[].slice.call(arguments,1);return a.each(function(){var u,l,f,g=e.isPlainObject(i)?e.extend(!0,{},e.fn.dimmer.settings,i):e.extend({},e.fn.dimmer.settings),p=g.selector,h=g.namespace,b=g.className,v=g.error,y="."+h,C="module-"+h,w=a.selector||"",S="ontouchstart"in n.documentElement?"touchstart":"click",D=e(this),T=this,N=D.data(C);f={preinitialize:function(){f.is.dimmer()?(l=D.parent(),u=D):(l=D,u=f.has.dimmer()?g.dimmerName?l.children(p.dimmer).filter("."+g.dimmerName):l.children(p.dimmer):f.create())},initialize:function(){f.debug("Initializing dimmer",g),"hover"==g.on?l.on("mouseenter"+y,f.show).on("mouseleave"+y,f.hide):"click"==g.on&&l.on(S+y,f.toggle),f.is.page()&&(f.debug("Setting as a page dimmer",l),f.set.pageDimmer()),f.is.closable()&&(f.verbose("Adding dimmer close event",u),u.on(S+y,f.event.click)),f.set.dimmable(),f.instantiate()},instantiate:function(){f.verbose("Storing instance of module",f),N=f,D.data(C,N)},destroy:function(){f.verbose("Destroying previous module",u),D.removeData(C),l.off(y),u.off(y)},event:{click:function(i){f.verbose("Determining if event occured on dimmer",i),(0===u.find(i.target).length||e(i.target).is(p.content))&&(f.hide(),i.stopImmediatePropagation())}},addContent:function(i){var n=e(i);f.debug("Add content to dimmer",n),n.parent()[0]!==u[0]&&n.detach().appendTo(u)},create:function(){var i=e(g.template.dimmer());return g.variation&&(f.debug("Creating dimmer with variation",g.variation),i.addClass(b.variation)),g.dimmerName&&(f.debug("Creating named dimmer",g.dimmerName),i.addClass(g.dimmerName)),i.appendTo(l),i},show:function(i){i=e.isFunction(i)?i:function(){},f.debug("Showing dimmer",u,g),f.is.dimmed()&&!f.is.animating()||!f.is.enabled()?f.debug("Dimmer is already shown or disabled"):(f.animate.show(i),g.onShow.call(T),g.onChange.call(T))},hide:function(i){i=e.isFunction(i)?i:function(){},f.is.dimmed()||f.is.animating()?(f.debug("Hiding dimmer",u),f.animate.hide(i),g.onHide.call(T),g.onChange.call(T)):f.debug("Dimmer is not visible")},toggle:function(){f.verbose("Toggling dimmer visibility",u),f.is.dimmed()?f.hide():f.show()},animate:{show:function(i){i=e.isFunction(i)?i:function(){},g.useCSS&&e.fn.transition!==t&&u.transition("is supported")?("auto"!==g.opacity&&f.set.opacity(),u.transition({animation:g.transition+" in",queue:!1,duration:f.get.duration(),useFailSafe:!0,onStart:function(){f.set.dimmed()},onComplete:function(){f.set.active(),i()}})):(f.verbose("Showing dimmer animation with javascript"),f.set.dimmed(),"auto"==g.opacity&&(g.opacity=.8),u.stop().css({opacity:0,width:"100%",height:"100%"}).fadeTo(f.get.duration(),g.opacity,function(){u.removeAttr("style"),f.set.active(),i()}))},hide:function(i){i=e.isFunction(i)?i:function(){},g.useCSS&&e.fn.transition!==t&&u.transition("is supported")?(f.verbose("Hiding dimmer with css"),u.transition({animation:g.transition+" out",queue:!1,duration:f.get.duration(),useFailSafe:!0,onStart:function(){f.remove.dimmed()},onComplete:function(){f.remove.active(),i()}})):(f.verbose("Hiding dimmer with javascript"),f.remove.dimmed(),u.stop().fadeOut(f.get.duration(),function(){f.remove.active(),u.removeAttr("style"),i()}))}},get:{dimmer:function(){return u},duration:function(){return"object"==typeof g.duration?f.is.active()?g.duration.hide:g.duration.show:g.duration}},has:{dimmer:function(){return g.dimmerName?D.children(p.dimmer).filter("."+g.dimmerName).length>0:D.children(p.dimmer).length>0}},is:{active:function(){return u.hasClass(b.active)},animating:function(){return u.is(":animated")||u.hasClass(b.animating)},closable:function(){return"auto"==g.closable?"hover"==g.on?!1:!0:g.closable},dimmer:function(){return D.is(p.dimmer)},dimmable:function(){return D.is(p.dimmable)},dimmed:function(){return l.hasClass(b.dimmed)},disabled:function(){return l.hasClass(b.disabled)},enabled:function(){return!f.is.disabled()},page:function(){return l.is("body")},pageDimmer:function(){return u.hasClass(b.pageDimmer)}},can:{show:function(){return!u.hasClass(b.disabled)}},set:{opacity:function(e){var e=g.opacity||e,i=u.css("background-color"),n=i.split(","),t=n&&4==n.length;t?(n[3]=e+")",i=n.join(",")):i="rgba(0, 0, 0, "+e+")",f.debug("Setting opacity to",e),u.css("background-color",i)},active:function(){u.addClass(b.active)},dimmable:function(){l.addClass(b.dimmable)},dimmed:function(){l.addClass(b.dimmed)},pageDimmer:function(){u.addClass(b.pageDimmer)},disabled:function(){u.addClass(b.disabled)}},remove:{active:function(){u.removeClass(b.active)},dimmed:function(){l.removeClass(b.dimmed)},disabled:function(){u.removeClass(b.disabled)}},setting:function(i,n){if(f.debug("Changing setting",i,n),e.isPlainObject(i))e.extend(!0,g,i);else{if(n===t)return g[i];g[i]=n}},internal:function(i,n){if(e.isPlainObject(i))e.extend(!0,f,i);else{if(n===t)return f[i];f[i]=n}},debug:function(){g.debug&&(g.performance?f.performance.log(arguments):(f.debug=Function.prototype.bind.call(console.info,console,g.name+":"),f.debug.apply(console,arguments)))},verbose:function(){g.verbose&&g.debug&&(g.performance?f.performance.log(arguments):(f.verbose=Function.prototype.bind.call(console.info,console,g.name+":"),f.verbose.apply(console,arguments)))},error:function(){f.error=Function.prototype.bind.call(console.error,console,g.name+":"),f.error.apply(console,arguments)},performance:{log:function(e){var i,n,t;g.performance&&(i=(new Date).getTime(),t=r||i,n=i-t,r=i,m.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:T,"Execution Time":n})),clearTimeout(f.performance.timer),f.performance.timer=setTimeout(f.performance.display,100)},display:function(){var i=g.name+":",n=0;r=!1,clearTimeout(f.performance.timer),e.each(m,function(e,i){n+=i["Execution Time"]}),i+=" "+n+"ms",w&&(i+=" '"+w+"'"),a.length>1&&(i+=" ("+a.length+")"),(console.group!==t||console.table!==t)&&m.length>0&&(console.groupCollapsed(i),console.table?console.table(m):e.each(m,function(e,i){console.log(i.Name+": "+i["Execution Time"]+"ms")}),console.groupEnd()),m=[]}},invoke:function(i,n,a){var r,m,s,d=N;return n=n||c,a=T||a,"string"==typeof i&&d!==t&&(i=i.split(/[\. ]/),r=i.length-1,e.each(i,function(n,o){var a=n!=r?o+i[n+1].charAt(0).toUpperCase()+i[n+1].slice(1):i;if(e.isPlainObject(d[a])&&n!=r)d=d[a];else{if(d[a]!==t)return m=d[a],!1;if(!e.isPlainObject(d[o])||n==r)return d[o]!==t?(m=d[o],!1):(f.error(v.method,i),!1);d=d[o]}})),e.isFunction(m)?s=m.apply(a,n):m!==t&&(s=m),e.isArray(o)?o.push(s):o!==t?o=[o,s]:s!==t&&(o=s),m}},f.preinitialize(),d?(N===t&&f.initialize(),f.invoke(s)):(N!==t&&N.invoke("destroy"),f.initialize())}),o!==t?o:this},e.fn.dimmer.settings={name:"Dimmer",namespace:"dimmer",debug:!1,verbose:!0,performance:!0,dimmerName:!1,variation:!1,closable:"auto",useCSS:!0,transition:"fade",on:!1,opacity:"auto",duration:{show:500,hide:500},onChange:function(){},onShow:function(){},onHide:function(){},error:{method:"The method you called is not defined."},selector:{dimmable:".dimmable",dimmer:".ui.dimmer",content:".ui.dimmer > .content, .ui.dimmer > .content > .center"},template:{dimmer:function(){return e("
").attr("class","ui dimmer")}},className:{active:"active",animating:"animating",dimmable:"dimmable",dimmed:"dimmed",disabled:"disabled",hide:"hide",pageDimmer:"page",show:"show"}}}(jQuery,window,document); \ No newline at end of file diff --git a/dist/components/dropdown.js b/dist/components/dropdown.js index bd9cd626a..b8c60761f 100644 --- a/dist/components/dropdown.js +++ b/dist/components/dropdown.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.10.4 - Dropdown + * # Semantic UI 1.11.0 - Dropdown * http://github.com/semantic-org/semantic-ui/ * * @@ -141,9 +141,9 @@ $.fn.dropdown = function(parameters) { create: { id: function() { - module.verbose('Creating unique id for element'); - id = module.get.uniqueID(); + id = (Math.random().toString(16) + '000000000').substr(2,8); elementNamespace = '.' + id; + module.verbose('Creating unique id for element', id); } }, @@ -456,6 +456,7 @@ $.fn.dropdown = function(parameters) { ; if(hasSelected) { module.event.item.click.call($selectedItem); + module.remove.filteredItem(); } }, @@ -822,6 +823,9 @@ $.fn.dropdown = function(parameters) { }, get: { + id: function() { + return id; + }, text: function() { return $text.text(); }, @@ -969,9 +973,6 @@ $.fn.dropdown = function(parameters) { value = module.get.text(); } return $selectedItem || false; - }, - uniqueID: function() { - return (Math.random().toString(16) + '000000000').substr(2,8); } }, diff --git a/dist/components/form.js b/dist/components/form.js index 92a3a3158..50a67f20d 100644 --- a/dist/components/form.js +++ b/dist/components/form.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.10.4 - Form Validation + * # Semantic UI 1.11.0 - Form Validation * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/form.min.js b/dist/components/form.min.js index 18e36ed8d..33e81c02d 100644 --- a/dist/components/form.min.js +++ b/dist/components/form.min.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.10.4 - Form Validation + * # Semantic UI 1.11.0 - Form Validation * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/site.js b/dist/components/site.js index 98f297a10..7c3b1a68b 100644 --- a/dist/components/site.js +++ b/dist/components/site.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.10.4 - Site + * # Semantic UI 1.11.0 - Site * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/site.min.js b/dist/components/site.min.js index 2840f8ca3..a98798df9 100644 --- a/dist/components/site.min.js +++ b/dist/components/site.min.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 1.10.4 - Site + * # Semantic UI 1.11.0 - Site * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/semantic.css b/dist/semantic.css index aec32ba10..092ee938b 100755 --- a/dist/semantic.css +++ b/dist/semantic.css @@ -1,5 +1,5 @@ /* - * # Semantic UI - 1.10.4 + * # Semantic UI - 1.11.0 * https://github.com/Semantic-Org/Semantic-UI * http://www.semantic-ui.com/ * @@ -3368,6 +3368,36 @@ input::selection { Theme Overrides *******************************/ +/******************************* + Site Overrides +*******************************/ +/*! + * # Semantic UI 1.11.0 - Container + * http://github.com/semantic-org/semantic-ui/ + * + * + * Copyright 2014 Contributorss + * Released under the MIT license + * http://opensource.org/licenses/MIT + * + */ + +/******************************* + Container +*******************************/ + +/*------------------- + Animated +--------------------*/ + +/******************************* + Types +*******************************/ + +/******************************* + Theme Overrides +*******************************/ + /******************************* Site Overrides *******************************/ diff --git a/dist/semantic.min.css b/dist/semantic.min.css index 598c3479e..2ce341d03 100755 --- a/dist/semantic.min.css +++ b/dist/semantic.min.css @@ -1,5 +1,5 @@ /* - * # Semantic UI - 1.10.4 + * # Semantic UI - 1.11.0 * https://github.com/Semantic-Org/Semantic-UI * http://www.semantic-ui.com/ * diff --git a/src/_site/elements/container.overrides b/src/_site/elements/container.overrides new file mode 100644 index 000000000..cba59efe6 --- /dev/null +++ b/src/_site/elements/container.overrides @@ -0,0 +1,3 @@ +/******************************* + Site Overrides +*******************************/ diff --git a/src/_site/elements/container.variables b/src/_site/elements/container.variables new file mode 100644 index 000000000..6f085f935 --- /dev/null +++ b/src/_site/elements/container.variables @@ -0,0 +1,3 @@ +/******************************* + User Variable Overrides +*******************************/ diff --git a/src/definitions/elements/container.less b/src/definitions/elements/container.less new file mode 100644 index 000000000..00c5797b8 --- /dev/null +++ b/src/definitions/elements/container.less @@ -0,0 +1,45 @@ +/*! + * # Semantic UI - Container + * http://github.com/semantic-org/semantic-ui/ + * + * + * Copyright 2014 Contributorss + * Released under the MIT license + * http://opensource.org/licenses/MIT + * + */ + +/******************************* + Theme +*******************************/ + +@type : 'element'; +@element : 'container'; + +@import (multiple) '../../theme.config'; + +& { + +/******************************* + Container +*******************************/ + +/*------------------- + Animated +--------------------*/ + +.ui.container { + +} + + +/******************************* + Types +*******************************/ + + + + +.loadUIOverrides(); + +} diff --git a/src/theme.config.example b/src/theme.config.example index 7288ebdf1..b5e9ef647 100644 --- a/src/theme.config.example +++ b/src/theme.config.example @@ -23,6 +23,7 @@ /* Elements */ @button : 'default'; +@container : 'default'; @divider : 'default'; @flag : 'default'; @header : 'default'; @@ -82,17 +83,6 @@ @siteFolder : 'site/'; -/******************************* - Folders -*******************************/ - -/* Path to theme packages */ -@themesFolder : 'themes/'; - -/* Path to site override folder */ -@siteFolder : 'site/'; - - /******************************* Import Theme *******************************/ diff --git a/src/themes/default/elements/container.overrides b/src/themes/default/elements/container.overrides new file mode 100644 index 000000000..14fb0da12 --- /dev/null +++ b/src/themes/default/elements/container.overrides @@ -0,0 +1,3 @@ +/******************************* + Theme Overrides +*******************************/ diff --git a/src/themes/default/elements/container.variables b/src/themes/default/elements/container.variables new file mode 100644 index 000000000..dc3ad976d --- /dev/null +++ b/src/themes/default/elements/container.variables @@ -0,0 +1,13 @@ +/******************************* + Container +*******************************/ + +/*------------------- + Element +--------------------*/ + + + +/*------------------- + Types +--------------------*/ diff --git a/tasks/build.js b/tasks/build.js index cb5e0fdbd..4def7c9b5 100644 --- a/tasks/build.js +++ b/tasks/build.js @@ -66,7 +66,7 @@ module.exports = function(callback) { // unified css stream stream = gulp.src(source.definitions + '/**/' + globs.components + '.less') - .pipe(plumber()) + .pipe(plumber(settings.plumber.less)) .pipe(less(settings.less)) .pipe(autoprefixer(settings.prefix)) .pipe(replace(comments.variables.in, comments.variables.out)) diff --git a/tasks/config/defaults.js b/tasks/config/defaults.js index 8a6988fc1..3954cc5c5 100644 --- a/tasks/config/defaults.js +++ b/tasks/config/defaults.js @@ -49,6 +49,7 @@ module.exports = { // elements 'button', + 'container', 'divider', 'flag', 'header', diff --git a/tasks/config/project/tasks.js b/tasks/config/project/tasks.js index ed64ac879..a404fd99c 100644 --- a/tasks/config/project/tasks.js +++ b/tasks/config/project/tasks.js @@ -1,4 +1,5 @@ var + console = require('better-console'), config = require('../user'), release = require('./release') ; @@ -76,6 +77,16 @@ module.exports = { url : release.url }, + plumber: { + less: { + errorHandler: function(error) { + if(error.filename.match(/theme.less/)) { + console.error('Looks like your theme.config is out of date. You will need to add new elements from theme.config.example'); + } + } + } + }, + /* What Browsers to Prefix */ prefix: { browsers: [ diff --git a/tasks/watch.js b/tasks/watch.js index 098cdc161..05239aed0 100644 --- a/tasks/watch.js +++ b/tasks/watch.js @@ -134,7 +134,7 @@ module.exports = function(callback) { // unified css stream stream = gulp.src(lessPath) - .pipe(plumber()) + .pipe(plumber(settings.plumber.less)) .pipe(less(settings.less)) .pipe(replace(comments.variables.in, comments.variables.out)) .pipe(replace(comments.license.in, comments.license.out))