Difference between revisions of "Template:Aalto-Helsinki"

Line 12: Line 12:
 
     });
 
     });
  
var posLeft = activeElement.position().left;
+
  var posLeft = activeElement.position().left;
var elementWidth = activeElement.width();
+
  var elementWidth = activeElement.width();
posLeft = posLeft + elementWidth/2 -6;
+
  posLeft = posLeft + elementWidth/2 -6;
if (activeElement.hasClass('has-sub')) {
+
  if (activeElement.hasClass('has-sub')) {
posLeft -= 6;
+
    posLeft -= 6;
}
+
  }
+
 
$("#dropdown>ul>li").hover(function() {
+
  $("#dropdown>ul>li").hover(function() {
 
         element = $(this);
 
         element = $(this);
 
         var w = element.width();
 
         var w = element.width();
 
         if ($(this).hasClass('has-sub'))
 
         if ($(this).hasClass('has-sub'))
 
         {
 
         {
        leftPos = element.position().left + w/2 - 12;
+
          leftPos = element.position().left + w/2 - 12;
 
         }
 
         }
 
         else {
 
         else {
        leftPos = element.position().left + w/2 - 6;
+
          leftPos = element.position().left + w/2 - 6;
 
         };
 
         };
 
       });
 
       });
  
$('#dropdown>ul').prepend('<li id="menu-button"><a>Menu</a></li>');
+
  $('#dropdown>ul').prepend('<li id="menu-button"><a>Menu</a></li>');
$( "#menu-button" ).click(function(){
+
  $( "#menu-button" ).click(function(){
    if ($(this).parent().hasClass('open')) {
+
        if ($(this).parent().hasClass('open')) {
    $(this).parent().removeClass('open');
+
          $(this).parent().removeClass('open');
    }
+
        }
    else {
+
        else {
    $(this).parent().addClass('open');
+
          $(this).parent().addClass('open');
    }
+
        }
    });
+
      });
  
 
// ROTATING PORIFI
 
// ROTATING PORIFI
Line 119: Line 119:
 
/***************************************************** DEFAULT WIKI SETTINGS  ****************************************************/
 
/***************************************************** DEFAULT WIKI SETTINGS  ****************************************************/
  
/* Clear the default wiki settings */
+
  /* Clear the default wiki settings */
  
#home_logo, #sideMenu { display:none; }
+
  #home_logo, #sideMenu { display:none; }
#sideMenu, #top_title, .patrollink  {display:none;}
+
  #sideMenu, #top_title, .patrollink  {display:none;}
#content { width:100%; padding:0px;  margin-top:-7px; margin-left:0px;}
+
  #content { width:100%; padding:0px;  margin-top:-7px; margin-left:0px;}
body {background-color:white; }
+
  body {background-color:white; }
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
+
  #bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
  
 
/* OUR OWN CSS BEGINS */
 
/* OUR OWN CSS BEGINS */
Line 1,184: Line 1,184:
 
     position: relative;
 
     position: relative;
 
     height: 100%;
 
     height: 100%;
     min-width: 380px;
+
     min-width: 360px;
 
     text-align: center;
 
     text-align: center;
 
     background-color: white;
 
     background-color: white;
Line 1,193: Line 1,193:
 
   header, body {
 
   header, body {
 
     height: 100%;
 
     height: 100%;
     min-height: 500px; /* So that the bottom bar does not go over the picture on a small screen */
+
     min-height: 600px; /* So that the bottom bar does not go over the picture on a small screen */
 
     margin: 0 0 0px;
 
     margin: 0 0 0px;
 
     padding: 0;
 
     padding: 0;
Line 1,322: Line 1,322:
  
 
   footer .footer-social ul li a {
 
   footer .footer-social ul li a {
     font-size: 12px !important;
+
     font-size: 10px !important;
 
   }
 
   }
  

Revision as of 12:01, 25 October 2017

Aalto-Helsinki