Browse Source

Removes previous changes for modal detachable to segment/dimmer. Fixed transition error message to make more sense

pull/524/head
jlukic 10 years ago
parent
commit
9b2afb7dac
4 changed files with 6 additions and 10 deletions
  1. 4
      src/elements/segment.less
  2. 4
      src/modules/dimmer.js
  3. 6
      src/modules/dimmer.less
  4. 2
      src/modules/transition.js

4
src/elements/segment.less

@ -128,10 +128,6 @@
margin-bottom: 0em; margin-bottom: 0em;
} }
/* Bound to segment size*/
.ui.segment > .ui.dimmer {
position:absolute;
}
/******************************* /*******************************
Types Types

4
src/modules/dimmer.js

@ -155,7 +155,7 @@ $.fn.dimmer = function(parameters) {
: function(){} : function(){}
; ;
module.set.dimmed(); module.set.dimmed();
if(settings.useCSS && $.fn.transition !== undefined && $module.transition('is supported')) {
if(settings.useCSS && $.fn.transition !== undefined && $dimmer.transition('is supported')) {
$dimmer $dimmer
.transition({ .transition({
animation : settings.transition + ' in', animation : settings.transition + ' in',
@ -190,7 +190,7 @@ $.fn.dimmer = function(parameters) {
? callback ? callback
: function(){} : function(){}
; ;
if(settings.useCSS && $.fn.transition !== undefined && $module.transition('is supported')) {
if(settings.useCSS && $.fn.transition !== undefined && $dimmer.transition('is supported')) {
module.verbose('Hiding dimmer with css'); module.verbose('Hiding dimmer with css');
$dimmer $dimmer
.transition({ .transition({

6
src/modules/dimmer.less

@ -111,10 +111,10 @@
.ui.scrolling.page.dimmer { .ui.scrolling.page.dimmer {
position: absolute; position: absolute;
} }
/*
/* Blurred Background
body.ui.dimmed.dimmable > :not(.dimmer){ body.ui.dimmed.dimmable > :not(.dimmer){
-webkit-filter: ~"blur(15px) grayscale(0.7)";
-moz-filter: ~"blur(15px) grayscale(0.7)";
filter: ~"blur(15px) grayscale(0.7)";
} }
*/ */

2
src/modules/transition.js

@ -800,7 +800,7 @@ $.fn.transition.settings = {
// possible errors // possible errors
error: { error: {
noAnimation : 'There is no css animation matching the one you specified.', noAnimation : 'There is no css animation matching the one you specified.',
repeated : 'You specified the same animation to occur again while it was already occurring, preventing repeated animation',
repeated : 'That animation is already occurring, cancelling repeated animation',
method : 'The method you called is not defined', method : 'The method you called is not defined',
support : 'This browser does not support CSS animations' support : 'This browser does not support CSS animations'
} }

Loading…
Cancel
Save