27 changed files with 754 additions and 1618 deletions
Split View
Diff Options
-
2build/minified/collections/grid.min.css
-
394build/minified/modules/dimmer.js
-
1build/minified/modules/dimmer.min.css
-
2build/minified/modules/dimmer.min.js
-
2build/minified/modules/dropdown.js
-
2build/minified/modules/dropdown.min.js
-
2build/minified/modules/tab.min.js
-
2build/minified/modules/video.min.js
-
394build/packaged/modules/dimmer.js
-
2build/packaged/modules/dropdown.js
-
2build/packaged/semantic.min.css
-
8build/packaged/semantic.min.js
-
4build/uncompressed/collections/grid.css
-
84build/uncompressed/modules/dimmer.css
-
394build/uncompressed/modules/dimmer.js
-
2build/uncompressed/modules/dropdown.js
-
31node/src/documents/modules/dimmer.html
-
4node/src/files/components/semantic/collections/grid.css
-
84node/src/files/components/semantic/modules/dimmer.css
-
394node/src/files/components/semantic/modules/dimmer.js
-
2node/src/files/components/semantic/modules/dropdown.js
-
44node/src/files/javascript/dimmer.js
-
1node/src/layouts/default.html.eco
-
4src/collections/grid.less
-
394src/modules/dimmer.js
-
115src/modules/dimmer.less
-
2src/modules/dropdown.js
2
build/minified/collections/grid.min.css
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1 @@ |
|||
.ui.dimmer{display:none;position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;opacity:0;line-height:1;-webkit-transition:background-color .5s ease;-moz-transition:background-color .5s ease;-o-transition:background-color .5s ease;-ms-transition:background-color .5s ease;transition:background-color .5s ease;z-index:100}body>.ui.dimmer{position:fixed}.ui.dimmer.active{opacity:.85;display:block}.ui.disabled.dimmer{display:none!important}.ui.page.dimmer{position:fixed}.ui.inverted.dimmer{background-color:#FFF}.ui.simple.dimmer{display:block;overflow:hidden;opacity:1;height:0;width:0;background-color:rgba(0,0,0,0)}.dimmed>.ui.simple.dimmer{overflow:visible;opacity:1;width:100%;height:100%;background-color:rgba(0,0,0,.85)}.ui.simple.inverted.dimmer{background-color:rgba(255,255,255,0)}.dimmed>.ui.simple.inverted.dimmer{background-color:rgba(255,255,255,.85)} |
2
build/minified/modules/dimmer.min.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
2
build/minified/modules/dropdown.min.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
2
build/minified/modules/tab.min.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +1 @@ |
|||
(function(e,t,n,o){e.fn.video=function(t){var n,i=e.extend(!0,{},e.fn.video.settings,t),a=arguments||!1;return e(this).each(function(){var r,s=e(this),c=s.find(i.selector.placeholder),l=s.find(i.selector.playButton),u=s.find(i.selector.embed),d=s.data("module-"+i.namespace),m="string"==typeof t,f=i.namespace,p=i.metadata,g=i.className;r={initialize:function(){r.debug("Initializing video"),c.off(".video").on("click."+f,r.play),l.off(".video").on("click."+f,r.play),s.data("module-"+f,r)},change:function(e,t){r.debug("Changing video to ",t),s.data(p.source,e).data(p.flv,t),i.onChange()},reset:function(){r.debug("Clearing video embed and showing placeholder"),s.removeClass(g.active),u.html(" "),c.show(),i.onReset()},play:function(){r.debug("Playing video");var e=s.data(p.source),t=s.data(p.flv);u.html(r.generate.html(e,t)),s.addClass(g.active),i.onPlay()},generate:{html:function(e,t){r.debug("Generating embed html");var n,o="auto"==i.width?s.width():i.width,a="auto"==i.height?s.height():i.height;return"vimeo"==e?n='<iframe src="http://player.vimeo.com/video/'+t+"?="+r.generate.url(e)+'"'+' width="'+o+'" height="'+a+'"'+' frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>':"youtube"==e&&(n='<iframe src="http://www.youtube.com/embed/'+t+"?="+r.generate.url(e)+'"'+' width="'+o+'" height="'+a+'"'+' frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'),n},url:function(e){var t=i.api?1:0,n=i.autoplay?1:0,o=i.hd?1:0,a=i.showUI?1:0,r=i.showUI?0:1,s="";return"vimeo"==e?(s="api="+t+"&title="+a+"&byline="+a+"&portrait="+a+"&autoplay="+n,i.color&&(s+="&color="+i.color)):"youtube"==e&&(s="enablejsapi="+t+"&autoplay="+n+"&autohide="+r+"&hq="+o+"&modestbranding=1",i.color&&(s+="&color="+i.color)),s}},debug:function(e,t){i.debug&&(t!==o?console.info(i.moduleName+": "+e,t):console.info(i.moduleName+": "+e))},error:function(e){console.warn(i.moduleName+": "+e)},invoke:function(t,n,a){var s;return a=a||Array.prototype.slice.call(arguments,2),"string"==typeof t&&d!==o&&(t=t.split("."),e.each(t,function(t,n){return e.isPlainObject(d[n])?(d=d[n],!0):e.isFunction(d[n])?(s=d[n],!0):(r.error(i.errors.method),!1)})),e.isFunction(s)?s.apply(n,a):s}},m?n=r.invoke(a[0],this,Array.prototype.slice.call(a,1)):(d&&r.destroy(),r.initialize())}),n!==o?n:this},e.fn.videoPlaylist=function(t,n){var o=e(this),i=e(t),a=i.find(".embed iframe"),r=e.extend({},e.fn.videoPlaylist.settings,n,!0);o.each(function(){var t=e(this),n=r.metadata,a=r.namespace,s=r.className,c={initialize:function(){t.on("click."+a,c.changeVideo)},changeVideo:function(){var a=t.data(n.flv)||!1,c=t.data(n.source)||!1,l=t.data(n.placeholder)||!1;if(a&&c){if(i.data(n.source,c).data(n.flv,a),r.showPlaceholder)i.removeClass(s.active).find(e.fn.video.selector.placeholder).attr("src",l);else try{i.video("play")}catch(u){console.warn("Video Playlist Module: "+r.error.init)}o.removeClass(s.active),t.addClass(s.active)}}};c.initialize()}),r.playFirst&&(o.eq(0).trigger("click"),a.size()>0&&a.attr("src",a.attr("src").replace("autoplay=1","autoplay=0")))},e.fn.video.settings={moduleName:"Video",namespace:"video",debug:!1,metadata:{source:"source",flv:"flv"},onPlay:function(){},onReset:function(){},onChange:function(){},play:function(){},pause:function(){},stop:function(){},width:"auto",height:"auto",autoplay:!1,color:"#442359",hd:!0,showUI:!1,api:!0,errors:{method:"The method you called is not defined"},className:{active:"active"},selector:{embed:".embed",placeholder:".placeholder",playButton:".play"}},e.fn.videoPlaylist.settings={moduleName:"Video Playlist",namespace:"videoPlaylist",source:"vimeo",showPlaceholder:!1,playFirst:!0,metadata:{flv:"flv",source:"source",placeholder:"placeholder"},errors:{init:"The video player you specified was not yet initialized"},className:{active:"active"}}})(jQuery,window,document); |
|||
(function(e,t,n,o){e.fn.video=function(t){var n,i=e.extend(!0,{},e.fn.video.settings,t),a=arguments||!1;return e(this).each(function(){var r,s=e(this),l=s.find(i.selector.placeholder),c=s.find(i.selector.playButton),u=s.find(i.selector.embed),d=s.data("module-"+i.namespace),m="string"==typeof t,f=i.namespace,p=i.metadata,g=i.className;r={initialize:function(){r.debug("Initializing video"),l.off(".video").on("click."+f,r.play),c.off(".video").on("click."+f,r.play),s.data("module-"+f,r)},change:function(e,t){r.debug("Changing video to ",t),s.data(p.source,e).data(p.flv,t),i.onChange()},reset:function(){r.debug("Clearing video embed and showing placeholder"),s.removeClass(g.active),u.html(" "),l.show(),i.onReset()},play:function(){r.debug("Playing video");var e=s.data(p.source),t=s.data(p.flv);u.html(r.generate.html(e,t)),s.addClass(g.active),i.onPlay()},generate:{html:function(e,t){r.debug("Generating embed html");var n,o="auto"==i.width?s.width():i.width,a="auto"==i.height?s.height():i.height;return"vimeo"==e?n='<iframe src="http://player.vimeo.com/video/'+t+"?="+r.generate.url(e)+'"'+' width="'+o+'" height="'+a+'"'+' frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>':"youtube"==e&&(n='<iframe src="http://www.youtube.com/embed/'+t+"?="+r.generate.url(e)+'"'+' width="'+o+'" height="'+a+'"'+' frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'),n},url:function(e){var t=i.api?1:0,n=i.autoplay?1:0,o=i.hd?1:0,a=i.showUI?1:0,r=i.showUI?0:1,s="";return"vimeo"==e?(s="api="+t+"&title="+a+"&byline="+a+"&portrait="+a+"&autoplay="+n,i.color&&(s+="&color="+i.color)):"youtube"==e&&(s="enablejsapi="+t+"&autoplay="+n+"&autohide="+r+"&hq="+o+"&modestbranding=1",i.color&&(s+="&color="+i.color)),s}},debug:function(e,t){i.debug&&(t!==o?console.info(i.moduleName+": "+e,t):console.info(i.moduleName+": "+e))},error:function(e){console.warn(i.moduleName+": "+e)},invoke:function(t,n,a){var s;return a=a||Array.prototype.slice.call(arguments,2),"string"==typeof t&&d!==o&&(t=t.split("."),e.each(t,function(t,n){return e.isPlainObject(d[n])?(d=d[n],!0):e.isFunction(d[n])?(s=d[n],!0):(r.error(i.errors.method),!1)})),e.isFunction(s)?s.apply(n,a):s}},m?n=r.invoke(a[0],this,Array.prototype.slice.call(a,1)):(d&&r.destroy(),r.initialize())}),n!==o?n:this},e.fn.videoPlaylist=function(t,n){var o=e(this),i=e(t),a=i.find(".embed iframe"),r=e.extend({},e.fn.videoPlaylist.settings,n,!0);o.each(function(){var t=e(this),n=r.metadata,a=r.namespace,s=r.className,l={initialize:function(){t.on("click."+a,l.changeVideo)},changeVideo:function(){var a=t.data(n.flv)||!1,l=t.data(n.source)||!1,c=t.data(n.placeholder)||!1;if(a&&l){if(i.data(n.source,l).data(n.flv,a),r.showPlaceholder)i.removeClass(s.active).find(e.fn.video.selector.placeholder).attr("src",c);else try{i.video("play")}catch(u){console.warn("Video Playlist Module: "+r.error.init)}o.removeClass(s.active),t.addClass(s.active)}}};l.initialize()}),r.playFirst&&(o.eq(0).trigger("click"),a.size()>0&&a.attr("src",a.attr("src").replace("autoplay=1","autoplay=0")))},e.fn.video.settings={moduleName:"Video",namespace:"video",debug:!1,metadata:{source:"source",flv:"flv"},onPlay:function(){},onReset:function(){},onChange:function(){},play:function(){},pause:function(){},stop:function(){},width:"auto",height:"auto",autoplay:!1,color:"#442359",hd:!0,showUI:!1,api:!0,errors:{method:"The method you called is not defined"},className:{active:"active"},selector:{embed:".embed",placeholder:".placeholder",playButton:".play"}},e.fn.videoPlaylist.settings={moduleName:"Video Playlist",namespace:"videoPlaylist",source:"vimeo",showPlaceholder:!1,playFirst:!0,metadata:{flv:"flv",source:"source",placeholder:"placeholder"},errors:{init:"The video player you specified was not yet initialized"},className:{active:"active"}}})(jQuery,window,document); |
2
build/packaged/semantic.min.css
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
8
build/packaged/semantic.min.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,84 @@ |
|||
/* |
|||
* # Semantic Dimmer |
|||
* http://github.com/quirkyinc/semantic |
|||
* |
|||
* |
|||
* Copyright 2013 Contributors |
|||
* Released under the MIT license |
|||
* http://opensource.org/licenses/MIT |
|||
* |
|||
* Released: April 17 2013 |
|||
*/ |
|||
/******************************* |
|||
Dimmer |
|||
*******************************/ |
|||
.ui.dimmer { |
|||
display: none; |
|||
position: absolute; |
|||
top: 0em; |
|||
left: 0em; |
|||
width: 100%; |
|||
height: 100%; |
|||
background-color: #000000; |
|||
opacity: 0; |
|||
line-height: 1; |
|||
-webkit-transition: background-color 0.5s ease; |
|||
-moz-transition: background-color 0.5s ease; |
|||
-o-transition: background-color 0.5s ease; |
|||
-ms-transition: background-color 0.5s ease; |
|||
transition: background-color 0.5s ease; |
|||
z-index: 100; |
|||
} |
|||
body > .ui.dimmer { |
|||
position: fixed; |
|||
} |
|||
/******************************* |
|||
States |
|||
*******************************/ |
|||
.ui.dimmer.active { |
|||
opacity: 0.85; |
|||
display: block; |
|||
} |
|||
.ui.disabled.dimmer { |
|||
display: none !important; |
|||
} |
|||
/******************************* |
|||
Variations |
|||
*******************************/ |
|||
/*-------------- |
|||
Page |
|||
---------------*/ |
|||
.ui.page.dimmer { |
|||
position: fixed; |
|||
} |
|||
/*-------------- |
|||
Inverted |
|||
---------------*/ |
|||
.ui.inverted.dimmer { |
|||
background-color: #FFFFFF; |
|||
} |
|||
/*-------------- |
|||
Simple |
|||
---------------*/ |
|||
/* Displays without javascript */ |
|||
.ui.simple.dimmer { |
|||
display: block; |
|||
overflow: hidden; |
|||
opacity: 1; |
|||
height: 0px; |
|||
width: 0px; |
|||
background-color: rgba(0, 0, 0, 0); |
|||
} |
|||
.dimmed > .ui.simple.dimmer { |
|||
overflow: visible; |
|||
opacity: 1; |
|||
width: 100%; |
|||
height: 100%; |
|||
background-color: rgba(0, 0, 0, 0.85); |
|||
} |
|||
.ui.simple.inverted.dimmer { |
|||
background-color: rgba(255, 255, 255, 0); |
|||
} |
|||
.dimmed > .ui.simple.inverted.dimmer { |
|||
background-color: rgba(255, 255, 255, 0.85); |
|||
} |
@ -0,0 +1,84 @@ |
|||
/* |
|||
* # Semantic Dimmer |
|||
* http://github.com/quirkyinc/semantic |
|||
* |
|||
* |
|||
* Copyright 2013 Contributors |
|||
* Released under the MIT license |
|||
* http://opensource.org/licenses/MIT |
|||
* |
|||
* Released: April 17 2013 |
|||
*/ |
|||
/******************************* |
|||
Dimmer |
|||
*******************************/ |
|||
.ui.dimmer { |
|||
display: none; |
|||
position: absolute; |
|||
top: 0em; |
|||
left: 0em; |
|||
width: 100%; |
|||
height: 100%; |
|||
background-color: #000000; |
|||
opacity: 0; |
|||
line-height: 1; |
|||
-webkit-transition: background-color 0.5s ease; |
|||
-moz-transition: background-color 0.5s ease; |
|||
-o-transition: background-color 0.5s ease; |
|||
-ms-transition: background-color 0.5s ease; |
|||
transition: background-color 0.5s ease; |
|||
z-index: 100; |
|||
} |
|||
body > .ui.dimmer { |
|||
position: fixed; |
|||
} |
|||
/******************************* |
|||
States |
|||
*******************************/ |
|||
.ui.dimmer.active { |
|||
opacity: 0.85; |
|||
display: block; |
|||
} |
|||
.ui.disabled.dimmer { |
|||
display: none !important; |
|||
} |
|||
/******************************* |
|||
Variations |
|||
*******************************/ |
|||
/*-------------- |
|||
Page |
|||
---------------*/ |
|||
.ui.page.dimmer { |
|||
position: fixed; |
|||
} |
|||
/*-------------- |
|||
Inverted |
|||
---------------*/ |
|||
.ui.inverted.dimmer { |
|||
background-color: #FFFFFF; |
|||
} |
|||
/*-------------- |
|||
Simple |
|||
---------------*/ |
|||
/* Displays without javascript */ |
|||
.ui.simple.dimmer { |
|||
display: block; |
|||
overflow: hidden; |
|||
opacity: 1; |
|||
height: 0px; |
|||
width: 0px; |
|||
background-color: rgba(0, 0, 0, 0); |
|||
} |
|||
.dimmed > .ui.simple.dimmer { |
|||
overflow: visible; |
|||
opacity: 1; |
|||
width: 100%; |
|||
height: 100%; |
|||
background-color: rgba(0, 0, 0, 0.85); |
|||
} |
|||
.ui.simple.inverted.dimmer { |
|||
background-color: rgba(255, 255, 255, 0); |
|||
} |
|||
.dimmed > .ui.simple.inverted.dimmer { |
|||
background-color: rgba(255, 255, 255, 0.85); |
|||
} |
@ -0,0 +1,44 @@ |
|||
semantic.dimmer = {}; |
|||
|
|||
// ready event
|
|||
semantic.dimmer.ready = function() { |
|||
|
|||
// selector cache
|
|||
var |
|||
$examples = $('.example'), |
|||
$showButton = $examples.find('.show.button'), |
|||
$hideButton = $examples.find('.hide.button'), |
|||
// alias
|
|||
handler |
|||
; |
|||
|
|||
// event handlers
|
|||
handler = { |
|||
show: function() { |
|||
console.log($(this).closest('.example')); |
|||
$(this) |
|||
.closest('.example') |
|||
.dimmer('show') |
|||
; |
|||
}, |
|||
hide: function() { |
|||
$(this) |
|||
.closest('.example') |
|||
.dimmer('hide') |
|||
; |
|||
} |
|||
}; |
|||
|
|||
$showButton |
|||
.on('click', handler.show) |
|||
; |
|||
$hideButton |
|||
.on('click', handler.hide) |
|||
; |
|||
}; |
|||
|
|||
|
|||
// attach ready event
|
|||
$(document) |
|||
.ready(semantic.dimmer.ready) |
|||
; |
@ -0,0 +1,115 @@ |
|||
/* |
|||
* # Semantic Dimmer |
|||
* http://github.com/quirkyinc/semantic |
|||
* |
|||
* |
|||
* Copyright 2013 Contributors |
|||
* Released under the MIT license |
|||
* http://opensource.org/licenses/MIT |
|||
* |
|||
* Released: April 17 2013 |
|||
*/ |
|||
|
|||
|
|||
/******************************* |
|||
Dimmer |
|||
*******************************/ |
|||
|
|||
.ui.dimmer { |
|||
display: none; |
|||
position: absolute; |
|||
top: 0em; |
|||
left: 0em; |
|||
|
|||
width: 100%; |
|||
height: 100%; |
|||
|
|||
background-color: #000000; |
|||
opacity: 0; |
|||
line-height: 1; |
|||
|
|||
-webkit-transition: |
|||
background-color 0.5s ease |
|||
; |
|||
-moz-transition: |
|||
background-color 0.5s ease |
|||
; |
|||
-o-transition: |
|||
background-color 0.5s ease |
|||
; |
|||
-ms-transition: |
|||
background-color 0.5s ease |
|||
; |
|||
transition: |
|||
background-color 0.5s ease |
|||
; |
|||
z-index: 100; |
|||
} |
|||
|
|||
body > .ui.dimmer { |
|||
position: fixed; |
|||
} |
|||
|
|||
|
|||
/******************************* |
|||
States |
|||
*******************************/ |
|||
|
|||
.ui.dimmer.active { |
|||
opacity: 0.85; |
|||
display: block; |
|||
} |
|||
|
|||
.ui.disabled.dimmer { |
|||
display: none !important; |
|||
} |
|||
|
|||
|
|||
/******************************* |
|||
Variations |
|||
*******************************/ |
|||
|
|||
|
|||
/*-------------- |
|||
Page |
|||
---------------*/ |
|||
.ui.page.dimmer { |
|||
position: fixed; |
|||
} |
|||
|
|||
/*-------------- |
|||
Inverted |
|||
---------------*/ |
|||
|
|||
.ui.inverted.dimmer { |
|||
background-color: #FFFFFF; |
|||
} |
|||
|
|||
/*-------------- |
|||
Simple |
|||
---------------*/ |
|||
/* Displays without javascript */ |
|||
|
|||
.ui.simple.dimmer { |
|||
display: block; |
|||
overflow: hidden; |
|||
opacity: 1; |
|||
height: 0px; |
|||
width: 0px; |
|||
background-color: rgba(0, 0, 0, 0); |
|||
} |
|||
.dimmed > .ui.simple.dimmer { |
|||
overflow: visible; |
|||
opacity: 1; |
|||
width: 100%; |
|||
height: 100%; |
|||
background-color: rgba(0, 0, 0, 0.85); |
|||
} |
|||
|
|||
.ui.simple.inverted.dimmer { |
|||
background-color: rgba(255, 255, 255, 0); |
|||
} |
|||
.dimmed > .ui.simple.inverted.dimmer { |
|||
background-color: rgba(255, 255, 255, 0.85) |
|||
} |
|||
|
Write
Preview
Loading…
Cancel
Save