Browse Source

Rebuild dist

pull/2616/merge
jlukic 10 years ago
parent
commit
6b70683d92
10 changed files with 63 additions and 69 deletions
  1. 18
      dist/components/button.css
  2. 2
      dist/components/button.min.css
  3. 25
      dist/components/sticky.js
  4. 2
      dist/components/sticky.min.js
  5. 15
      dist/components/visibility.js
  6. 2
      dist/components/visibility.min.js
  7. 19
      dist/semantic.css
  8. 40
      dist/semantic.js
  9. 2
      dist/semantic.min.css
  10. 7
      dist/semantic.min.js

18
dist/components/button.css

@ -1033,22 +1033,12 @@
--------------------*/ --------------------*/
.ui.fluid.buttons, .ui.fluid.buttons,
.ui.button.fluid {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
.ui.fluid.button {
width: 100%; width: 100%;
} }
.ui.fluid.button {
display: block;
}
.ui.two.buttons { .ui.two.buttons {
width: 100%; width: 100%;
} }

2
dist/components/button.min.css
File diff suppressed because it is too large
View File

25
dist/components/sticky.js

@ -237,8 +237,7 @@ $.fn.sticky = function(parameters) {
}, },
context = { context = {
offset : $context.offset(), offset : $context.offset(),
height : $context.outerHeight(),
bottomPadding : parseInt($context.css('padding-bottom'), 10)
height : $context.outerHeight()
}, },
container = { container = {
height: $container.outerHeight() height: $container.outerHeight()
@ -260,8 +259,7 @@ $.fn.sticky = function(parameters) {
context: { context: {
top : context.offset.top, top : context.offset.top,
height : context.height, height : context.height,
bottomPadding : context.bottomPadding,
bottom : context.offset.top + context.height - context.bottomPadding
bottom : context.offset.top + context.height
} }
}; };
module.set.containerSize(); module.set.containerSize();
@ -457,8 +455,14 @@ $.fn.sticky = function(parameters) {
} }
else if(scroll.top > element.top) { else if(scroll.top > element.top) {
module.debug('Element passed, fixing element to page'); module.debug('Element passed, fixing element to page');
module.fixTop();
if( (element.height + scroll.top - elementScroll) > context.bottom ) {
module.bindBottom();
}
else {
module.fixTop();
}
} }
} }
else if( module.is.fixed() ) { else if( module.is.fixed() ) {
@ -475,6 +479,8 @@ $.fn.sticky = function(parameters) {
// scroll element if larger than screen // scroll element if larger than screen
else if(doesntFit) { else if(doesntFit) {
module.set.scroll(elementScroll); module.set.scroll(elementScroll);
module.save.lastScroll(scroll.top);
module.save.elementScroll(elementScroll);
} }
} }
@ -494,6 +500,8 @@ $.fn.sticky = function(parameters) {
// scroll element if larger than screen // scroll element if larger than screen
else if(doesntFit) { else if(doesntFit) {
module.set.scroll(elementScroll); module.set.scroll(elementScroll);
module.save.lastScroll(scroll.top);
module.save.elementScroll(elementScroll);
} }
} }
@ -513,10 +521,6 @@ $.fn.sticky = function(parameters) {
} }
} }
} }
// save current scroll for next run
module.save.lastScroll(scroll.top);
module.save.elementScroll(elementScroll);
}, },
bindTop: function() { bindTop: function() {
@ -542,8 +546,7 @@ $.fn.sticky = function(parameters) {
$module $module
.css({ .css({
left : '', left : '',
top : '',
marginBottom : module.cache.context.bottomPadding
top : ''
}) })
.removeClass(className.fixed) .removeClass(className.fixed)
.removeClass(className.top) .removeClass(className.top)

2
dist/components/sticky.min.js
File diff suppressed because it is too large
View File

15
dist/components/visibility.js

@ -1137,9 +1137,18 @@ $.fn.visibility.settings = {
// whether to use mutation observers to follow changes // whether to use mutation observers to follow changes
observeChanges : true, observeChanges : true,
// check position immediately on init
initialCheck : true,
// whether to refresh calculations after all page images load // whether to refresh calculations after all page images load
refreshOnLoad : true, refreshOnLoad : true,
// whether to refresh calculations after page resize event
refreshOnResize : true,
// should call callbacks on refresh event (resize, etc)
checkOnRefresh : true,
// callback should only occur one time // callback should only occur one time
once : true, once : true,
@ -1155,9 +1164,6 @@ $.fn.visibility.settings = {
// scroll context for visibility checks // scroll context for visibility checks
context : window, context : window,
// check position immediately on init
initialCheck : true,
// visibility check delay in ms (defaults to animationFrame) // visibility check delay in ms (defaults to animationFrame)
throttle : false, throttle : false,
@ -1171,9 +1177,6 @@ $.fn.visibility.settings = {
// array of callbacks for percentage // array of callbacks for percentage
onPassed : {}, onPassed : {},
// should call callbacks on refresh event (resize, etc)
checkOnRefresh : true,
// standard callbacks // standard callbacks
onOnScreen : false, onOnScreen : false,
onOffScreen : false, onOffScreen : false,

2
dist/components/visibility.min.js
File diff suppressed because it is too large
View File

19
dist/semantic.css

@ -1826,23 +1826,14 @@ input::selection {
--------------------*/ --------------------*/
.ui.fluid.buttons, .ui.fluid.buttons,
.ui.button.fluid {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
.ui.fluid.button {
width: 100%; width: 100%;
} }
.ui.fluid.button {
display: block;
}
.ui.two.buttons { .ui.two.buttons {
width: 100%; width: 100%;
} }

40
dist/semantic.js

@ -15131,8 +15131,7 @@ $.fn.sticky = function(parameters) {
}, },
context = { context = {
offset : $context.offset(), offset : $context.offset(),
height : $context.outerHeight(),
bottomPadding : parseInt($context.css('padding-bottom'), 10)
height : $context.outerHeight()
}, },
container = { container = {
height: $container.outerHeight() height: $container.outerHeight()
@ -15154,8 +15153,7 @@ $.fn.sticky = function(parameters) {
context: { context: {
top : context.offset.top, top : context.offset.top,
height : context.height, height : context.height,
bottomPadding : context.bottomPadding,
bottom : context.offset.top + context.height - context.bottomPadding
bottom : context.offset.top + context.height
} }
}; };
module.set.containerSize(); module.set.containerSize();
@ -15351,8 +15349,14 @@ $.fn.sticky = function(parameters) {
} }
else if(scroll.top > element.top) { else if(scroll.top > element.top) {
module.debug('Element passed, fixing element to page'); module.debug('Element passed, fixing element to page');
module.fixTop();
if( (element.height + scroll.top - elementScroll) > context.bottom ) {
module.bindBottom();
}
else {
module.fixTop();
}
} }
} }
else if( module.is.fixed() ) { else if( module.is.fixed() ) {
@ -15369,6 +15373,8 @@ $.fn.sticky = function(parameters) {
// scroll element if larger than screen // scroll element if larger than screen
else if(doesntFit) { else if(doesntFit) {
module.set.scroll(elementScroll); module.set.scroll(elementScroll);
module.save.lastScroll(scroll.top);
module.save.elementScroll(elementScroll);
} }
} }
@ -15388,6 +15394,8 @@ $.fn.sticky = function(parameters) {
// scroll element if larger than screen // scroll element if larger than screen
else if(doesntFit) { else if(doesntFit) {
module.set.scroll(elementScroll); module.set.scroll(elementScroll);
module.save.lastScroll(scroll.top);
module.save.elementScroll(elementScroll);
} }
} }
@ -15407,10 +15415,6 @@ $.fn.sticky = function(parameters) {
} }
} }
} }
// save current scroll for next run
module.save.lastScroll(scroll.top);
module.save.elementScroll(elementScroll);
}, },
bindTop: function() { bindTop: function() {
@ -15436,8 +15440,7 @@ $.fn.sticky = function(parameters) {
$module $module
.css({ .css({
left : '', left : '',
top : '',
marginBottom : module.cache.context.bottomPadding
top : ''
}) })
.removeClass(className.fixed) .removeClass(className.fixed)
.removeClass(className.top) .removeClass(className.top)
@ -20657,9 +20660,18 @@ $.fn.visibility.settings = {
// whether to use mutation observers to follow changes // whether to use mutation observers to follow changes
observeChanges : true, observeChanges : true,
// check position immediately on init
initialCheck : true,
// whether to refresh calculations after all page images load // whether to refresh calculations after all page images load
refreshOnLoad : true, refreshOnLoad : true,
// whether to refresh calculations after page resize event
refreshOnResize : true,
// should call callbacks on refresh event (resize, etc)
checkOnRefresh : true,
// callback should only occur one time // callback should only occur one time
once : true, once : true,
@ -20675,9 +20687,6 @@ $.fn.visibility.settings = {
// scroll context for visibility checks // scroll context for visibility checks
context : window, context : window,
// check position immediately on init
initialCheck : true,
// visibility check delay in ms (defaults to animationFrame) // visibility check delay in ms (defaults to animationFrame)
throttle : false, throttle : false,
@ -20691,9 +20700,6 @@ $.fn.visibility.settings = {
// array of callbacks for percentage // array of callbacks for percentage
onPassed : {}, onPassed : {},
// should call callbacks on refresh event (resize, etc)
checkOnRefresh : true,
// standard callbacks // standard callbacks
onOnScreen : false, onOnScreen : false,
onOffScreen : false, onOffScreen : false,

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

7
dist/semantic.min.js
File diff suppressed because it is too large
View File

Loading…
Cancel
Save