Jump to content

MediaWiki:Common.css: Difference between revisions

From Wimbum Vault
No edit summary
No edit summary
Line 43: Line 43:
}
}


/* Dropdown menu */
/* Hide icons and extra visuals on mobile */
#mw-mobile-main-menu {
@media (max-width: 768px) {
   display: none;
   .icons,
   flex-direction: column;
   .landing-buttons,
   position: absolute;
   .links,
   top: 50px;
   .tagline,
   left: 10px;
   h1,
  background-color: #f9f9f9;
   .lang-switch {
  border: 1px solid #ddd;
    display: none !important;
   box-shadow: 0 2px 6px rgba(0,0,0,0.15);
   }
  width: 180px;
  z-index: 999;
}
 
#mw-mobile-main-menu a {
  padding: 12px;
  border-bottom: 1px solid #eee;
  color: #333;
  text-decoration: none;
   font-size: 14px;
}
 
#mw-mobile-main-menu a:hover {
  background-color: #eee;
}


/* Show hamburger only on mobile */
  .search-box input {
@media (max-width: 768px) {
    width: 90% !important;
  #mw-hamburger-btn {
    margin-top: 20px;
    display: block;
   }
   }
}


@media (max-width: 768px) {
   .account-menu {
   #hamburger-menu {
    position: absolute;
     font-family: Arial, sans-serif;
    top: 10px;
    right: 10px;
     font-size: 14px;
    font-weight: 300;
   }
   }


   #mobile-menu a {
   .account-menu a {
    display: inline-block;
    margin: 0 4px;
    text-decoration: none;
     color: #333;
     color: #333;
    text-decoration: none;
   }
   }


   #mobile-menu a:hover {
   .container {
     background-color: #eee;
     padding: 1rem;
   }
   }
}
}

Revision as of 22:23, 23 April 2025


/* Resize sidebar logo on desktop */
@media screen and (min-width: 768px) {
    #p-logo {
        background-size: contain !important;
        background-repeat: no-repeat;
        background-position: center;
        max-width: 120px;
        height: 60px;
        margin: 10px auto;
    }

    #p-logo a {
        display: block;
        height: 60px;
    }

    #p-logo a img {
        max-height: 60px;
        width: auto;
        display: block;
        margin: 0 auto;
    }
}

/* Resize logo in the top left corner for desktop view */
#p-logo a {
    background-size: contain !important;
    height: 120px !important;  /* Increased from 60px */
    width: 200px !important;   /* Increased from 100px */
}

/* Hamburger button */
#mw-hamburger-btn {
  display: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
}

/* Hide icons and extra visuals on mobile */
@media (max-width: 768px) {
  .icons,
  .landing-buttons,
  .links,
  .tagline,
  h1,
  .lang-switch {
    display: none !important;
  }

  .search-box input {
    width: 90% !important;
    margin-top: 20px;
  }

  .account-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
    font-weight: 300;
  }

  .account-menu a {
    display: inline-block;
    margin: 0 4px;
    text-decoration: none;
    color: #333;
  }

  .container {
    padding: 1rem;
  }
}