Pwirth has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/152290

Change subject: Improved TopMenuBarCustomizer styles
......................................................................

Improved TopMenuBarCustomizer styles

Change-Id: If7b8af5f241ed07c9fbe68514d8e1ffcc9cc60f1
---
M TopMenuBarCustomizer/resources/bluespice.TopMenuBarCustomizer.css
M TopMenuBarCustomizer/resources/bluespice.TopMenuBarCustomizer.js
2 files changed, 9 insertions(+), 16 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions 
refs/changes/90/152290/1

diff --git a/TopMenuBarCustomizer/resources/bluespice.TopMenuBarCustomizer.css 
b/TopMenuBarCustomizer/resources/bluespice.TopMenuBarCustomizer.css
index 09e3a98..b10b7a2 100644
--- a/TopMenuBarCustomizer/resources/bluespice.TopMenuBarCustomizer.css
+++ b/TopMenuBarCustomizer/resources/bluespice.TopMenuBarCustomizer.css
@@ -11,18 +11,7 @@
  * @license    http://www.gnu.org/copyleft/gpl.html GNU Public License v2 or 
later
  * @filesource
  */
-.bs-apps-child.level-3 {
-       left: 130px;
-       top: 0px;
-}
-.bs-apps-child.level-4 {
-       left: 130px;
-       top: 0px;
-}
-.bs-apps-child.level-5 {
-       left: 130px;
-       top: 0px;
-}
+
 #bs-apps ul.bs-apps-child li {
        float: none;
 }
diff --git a/TopMenuBarCustomizer/resources/bluespice.TopMenuBarCustomizer.js 
b/TopMenuBarCustomizer/resources/bluespice.TopMenuBarCustomizer.js
index dc83d00..532a823 100644
--- a/TopMenuBarCustomizer/resources/bluespice.TopMenuBarCustomizer.js
+++ b/TopMenuBarCustomizer/resources/bluespice.TopMenuBarCustomizer.js
@@ -11,18 +11,22 @@
 
 $(document).ready(function(){
        $('.menu-item-container').hover( function(){
-                       
$(this).siblings('ul.bs-apps-child').stop(true,true).slideDown('fast');
+                       if( !$(this).hasClass('level-1') ) {
+                               $(this).next('ul').css('top', 
($(this).position().top) + 'px');
+                               $(this).next('ul').css('left', 
($(this).position().left + $(this).outerWidth()) + 'px');
+                       }
+                       $(this).next('ul').stop(true,true).fadeIn('fast');
                },
                function(){
-                       
$(this).siblings('ul.bs-apps-child').stop(true,true).delay(100).slideUp('fast');
+                       
$(this).siblings('ul.bs-apps-child').stop(true,true).delay(100).fadeOut('fast');
                }
        );
 
        $('ul.bs-apps-child').hover( function(){
-                       $(this).stop(true,true).slideDown('fast');
+                       $(this).stop(true,true).fadeIn('fast');
                },
                function(){
-                       $(this).stop(true,true).delay(100).slideUp('fast');
+                       $(this).stop(true,true).delay(100).fadeOut('fast');
                }
        );
 });
\ No newline at end of file

-- 
To view, visit https://gerrit.wikimedia.org/r/152290
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If7b8af5f241ed07c9fbe68514d8e1ffcc9cc60f1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Pwirth <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to