Jump to content

MediaWiki:Common.css: Difference between revisions

From Wimbum Vault
No edit summary
No edit summary
Line 1: Line 1:
#hamburger-menu {
    display: none;
}


/* Resize sidebar logo on desktop */
@media (max-width: 768px) {
@media screen and (min-width: 768px) {
     #hamburger-menu {
     #p-logo {
         display: inline-block;
         background-size: contain !important;
        background-repeat: no-repeat;
        background-position: center;
        max-width: 120px;
        height: 60px;
        margin: 10px auto;
     }
     }
 
     .vector-main-menu {
     #p-logo a {
         display: none;
         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 */
}
/* === CLEAN UP MOBILE VIEW === */
@media (max-width: 768px) {
  /* Hide unwanted items on mobile */
  .icons,
  .landing-buttons,
  .links,
  .tagline,
  h1,
  .lang-switch {
    display: none !important;
  }
  /* Make search box cleaner */
  .search-box input {
    width: 90% !important;
    margin-top: 20px;
  }
  /* Position the login/account menu nicely */
  .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;
  }
}
}

Revision as of 07:58, 27 April 2025

#hamburger-menu {
    display: none;
}

@media (max-width: 768px) {
    #hamburger-menu {
        display: inline-block;
    }
    .vector-main-menu {
        display: none;
    }
}