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: Reverted
No edit summary
Tag: Reverted
Line 240: Line 240:
     line-height: 1.2;
     line-height: 1.2;
     margin-top: 4px;
     margin-top: 4px;
  }
}
.minigame-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.minigame-card {
  width: 18%;
  min-width: 120px;
  max-width: 150px;
  text-align: center;
  color: #E0C882;
  font-weight: 600;
  text-shadow: 0 0 3px rgba(139, 111, 53, 0.5);
}
.minigame-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
}
.minigame-card img:hover {
  transform: scale(1.1);
}
.minigame-card span {
  display: inline-block;
  font-size: 14px;
  line-height: 1.2;
  margin-top: 4px;
  word-break: break-word;
}
@media (max-width: 768px) {
  .minigame-card {
    width: 45%;
  }
  .minigame-card span {
    font-size: 12px;
  }
  .minigame-card img {
    width: 85px;
    height: 85px;
   }
   }
}
}

Revision as of 12:46, 15 May 2025

/* CSS placed here will be applied to all skins */

/* Script Infobox settings */
.infobox {
    width: 210px; /* Fixed width for both mobile and desktop */
    float: right;
    margin: 0 0 1em 1em;
    background: #333;
    color: #fff;
    padding: 1px;
}

/* Center infobox on mobile */
@media (max-width: 767px) {
    .infobox {
        float: none;
        margin: 0 auto 1em auto;
    }
}

/* Center the image and table */
.center-content {
    text-align: center;
    padding-top: 5px; /* You can adjust this padding as needed */
}

/* Ensure the parameters table is also centered */
.infobox table {
    width: 100%; /* Makes sure the table takes the full width of the infobox */
}

/* Discord Styling */
#discord-link-below-logo {
    margin-top: 5px;
    line-height: 0;
}

#discord-link-below-logo img {
    vertical-align: middle;
}

.vector-header-start {
    display: flex;
    flex-direction: column; /* Forces children (logo, then Discord link) to stack vertically */
    align-items: flex-start; /* Aligns items to the left */
}

/* Base table styling */
.hover-table {
    font-family: 'Arial', sans-serif; /* Fallback; ideally use a custom font below */
}

/* Header styling */
.hover-table caption {
    font-size: 32px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #8B6F35;
    padding-bottom: 15px;
}

/* Cell styling */
.hover-table td {
    transition: all 0.3s ease;
    padding: 10px;
}

/* Text styling for links */
.hover-table td a {
    font-size: 18px;
    color: #E0C882;
    font-weight: 600;
    text-shadow: 0 0 3px rgba(139, 111, 53, 0.5);
    text-decoration: none; /* Removes underline for a cleaner look */
}

/* Hover effect for the whole cell */
.hover-table td:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(224, 200, 130, 0.7);
    border-radius: 5px;
    background-color: rgba(224, 200, 130, 0.1);
}

/* Optional: Brighten text on hover */
.hover-table td:hover a {
    color: #FFD700; /* Slightly brighter gold for emphasis */
    text-shadow: 0 0 5px rgba(139, 111, 53, 0.8);
}

/* Fix image sizing and hover effect for Main Page icons */
.hover-table img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.2s ease-in-out;
}

.hover-table img:hover {
    transform: scale(1.1);
}

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

.icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hover effect on the wrapper */
.icon-wrapper:hover {
    transform: scale(1.1);
}

/* Name text under icons */
.hover-table td span {
    display: inline-block;
    max-width: 100%;
    text-align: center;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Responsive adjustments */
@media (max-width: 768px) {
    .hover-table td span {
        font-size: 11px;
        white-space: normal; /* allow wrapping if needed */
        word-break: break-word;
        line-height: 1.2;
    }

    .hover-table img {
        width: 80px;
        height: 80px;
    }

    .hover-table td {
        display: inline-block;
        width: 50%; /* 2 columns per row */
        box-sizing: border-box;
        text-align: center;
        vertical-align: top;
        padding: 6px;
    }

    .hover-table tr {
        display: block;
    }
}

/* Hide template spacer on mobile */
@media screen and (max-width: 768px) {
    .desktop-only-spacer {
        display: none !important;
    }
}

@media (max-width: 768px) {
  .hover-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hover-table tr {
    display: contents; /* Ensures <td> children are treated as flex items */
  }

  .hover-table td {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%; /* Two columns per row */
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
  }

  .hover-table img {
    width: 80px;
    height: 80px;
  }

  .hover-table td span {
    font-size: 11px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
    margin-top: 4px;
  }
}

@media (max-width: 768px) {
  /* Force entire table into flex grid layout */
  .hover-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 0;
    border: none;
  }

  .hover-table tr {
    display: contents; /* Prevent <tr> from enforcing row breaks */
  }

  .hover-table td {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 45%;
    padding: 10px;
    box-sizing: border-box;
    border: none;
  }

  .hover-table img {
    width: 80px;
    height: 80px;
  }

  .hover-table td span {
    font-size: 11px;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    line-height: 1.2;
    margin-top: 4px;
  }
}

.minigame-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.minigame-card {
  width: 18%;
  min-width: 120px;
  max-width: 150px;
  text-align: center;
  color: #E0C882;
  font-weight: 600;
  text-shadow: 0 0 3px rgba(139, 111, 53, 0.5);
}

.minigame-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
}

.minigame-card img:hover {
  transform: scale(1.1);
}

.minigame-card span {
  display: inline-block;
  font-size: 14px;
  line-height: 1.2;
  margin-top: 4px;
  word-break: break-word;
}

@media (max-width: 768px) {
  .minigame-card {
    width: 45%;
  }

  .minigame-card span {
    font-size: 12px;
  }

  .minigame-card img {
    width: 85px;
    height: 85px;
  }
}