Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
Tag: Manual revert
No edit summary
Tag: Manual revert
 
(23 intermediate revisions by the same user not shown)
Line 87: Line 87:
}
}


/* Style for collapsed sections */
/* Fix image sizing and hover effect for Main Page icons */
/* Ensure no unwanted spacing on the first accordion */
.hover-table img {
.accordion-section:first-child {
    width: 100px;
     margin-top: 0 !important;
    height: 100px;
    object-fit: contain;
     transition: transform 0.2s ease-in-out;
}
}


.hover-table img:hover {
    transform: scale(1.1);
}
/* Mobile Responsive adjustments */
@media (max-width: 768px) {
  .hover-table td {
    display: inline-block;
    width: 45%;
    box-sizing: border-box;
    text-align: center;
    vertical-align: top;
    padding: 10px;
  }
  .hover-table tr {
    display: block;
  }
}


.accordion-section {
/* Uniform icon sizing and hover fix */
     margin: 0;
.icon-wrapper {
     padding: 0;
     width: 100px;
    height: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
     transition: transform 0.2s ease-in-out;
}
}


/* Header styling (collapsed by default) */
.icon-wrapper img {
.accordion-header {
    background-color: #222; /* Dark background */
    color: #ccc; /* Lighter text */
    font-weight: normal;
    padding: 15px;
    border: 1px solid #444;
    cursor: pointer;
    display: block;
     width: 100%;
     width: 100%;
     box-sizing: border-box;
     height: 100%;
     margin-bottom: 0;
     object-fit: contain;
}
}


/* Header when expanded */
/* Hover effect on the wrapper */
.accordion-section.expanded .accordion-header {
.icon-wrapper:hover {
     background-color: #333; /* Slightly lighter dark */
     transform: scale(1.1);
    color: #fff; /* White text */
    font-weight: bold;
    border: 1px solid #00cc00;
}
}


/* Content styling */
.hover-table td span {
.accordion-content {
     white-space: nowrap;
     border: 1px solid #444;
     display: inline-block;
     padding: 10px;
     max-width: 100%;
     background-color: #111; /* Dark background */
     font-size: 15px; /* or scale down just a bit */
     color: #ddd; /* Lighter text */
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
}
}


/* Ensure no extra spacing between sections */
/* Hide template spacer on mobile */
.accordion-section + .accordion-section {
@media screen and (max-width: 768px) {
     margin-top: 5px;
  .desktop-only-spacer {
     display: none !important;
  }
}
}