From 10218571004ea9c5fdd91b2aec5fa0a7b1de4c2d Mon Sep 17 00:00:00 2001 From: Mohammad Younes Date: Sat, 28 Dec 2013 00:03:17 +0200 Subject: [PATCH] Keeping Modal in place --- src/elements/segment.less | 5 +++++ src/modules/dimmer.less | 2 +- src/modules/modal.js | 1 - 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/elements/segment.less b/src/elements/segment.less index 8cbecda69..2a8f31ab1 100755 --- a/src/elements/segment.less +++ b/src/elements/segment.less @@ -128,6 +128,11 @@ margin-bottom: 0em; } +/* Bound to segment size*/ +.ui.segment > .ui.dimmer { + position:absolute; +} + /******************************* Types *******************************/ diff --git a/src/modules/dimmer.less b/src/modules/dimmer.less index df1df9c1a..1f2c6052b 100755 --- a/src/modules/dimmer.less +++ b/src/modules/dimmer.less @@ -19,7 +19,7 @@ .ui.dimmer { display: none; - position: absolute; + position: fixed; top: 0em !important; left: 0em !important; diff --git a/src/modules/modal.js b/src/modules/modal.js index 3df3c1b6b..3cf0f7dbf 100755 --- a/src/modules/modal.js +++ b/src/modules/modal.js @@ -77,7 +77,6 @@ $.fn.modal = function(parameters) { hide : settings.duration * 1.1 } }) - .dimmer('add content', $module) ; $dimmer = $dimmable .dimmer('get dimmer')