Mudanças entre as edições de "Widget:MainPageMenu"

De Wiki Gla
Ir para navegação Ir para pesquisar
m (www)
Etiqueta: Reversão manual
m
 
(9 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 82: Linha 82:


<style>
<style>
  .home-button-container {
    .home-button-container {
    display: grid;
        display: grid;
    /* deixa o grid “inteligente”: quantos cards de ≥240px couberem, cada um cresce até preencher igualmente o espaço */
        grid-template-columns: repeat(4, 1fr);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    gap: 20px;
        padding: 10px;
    padding: 10px;
        box-sizing: border-box;
    box-sizing: border-box;
        font-family: "Noto Sans", sans-serif;
    width: 100%;
    }
    font-family: "Noto Sans", sans-serif;
  }


  .home-button-item {
    .home-button-item {
    position: relative;
        width: 100%;
    display: flex;
        display: flex;
    flex-direction: column;
        flex-direction: column;
    overflow: hidden;
        overflow: hidden;
    border: 1px solid #bbb;
        border: 1px solid #bbb;
    border-radius: 12px;
        border-radius: 12px;
    background: #fff;
        background: #fff;
    transition: transform 0.2s ease-out,
        transition: transform 0.2s ease-out,
                box-shadow 0.2s ease-out,
            box-shadow 0.2s ease-out,
                border-color 0.2s ease-out;
            border-color 0.2s ease-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
        box-sizing: border-box;
    }


     /* garante que cada card nunca passe de sua coluna */
     .home-button-item:hover {
    width: 100%;
        transform: translateY(-3px);
    max-width: none;
        border-color: #007bff;
    margin: 0 auto;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  }
    }


  .home-button-item:hover {
    .home-button-item a {
    transform: translateY(-3px);
        display: block;
    border-color: #007bff;
        color: inherit;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
        text-decoration: none;
  }
        height: 100%;
    }


  .home-button-item a {
    .home-button-image {
    display: block;
        width: 100%;
    color: inherit;
        aspect-ratio: 16/9;
    text-decoration: none;
        overflow: hidden;
    height: 100%;
        flex-shrink: 0;
  }
    }


  .home-button-image {
    .home-button-image img {
    width: 100%;
        width: 100%;
    aspect-ratio: 16/9;
        height: 100%;
    overflow: hidden;
        object-fit: cover;
    flex-shrink: 0;
        display: block;
  }
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        transition: filter 0.3s ease;
    }


  .home-button-image img {
    .home-button-item:hover .home-button-image img {
    width: 100%;
        filter: brightness(1.1);
    height: 100%;
     }
    object-fit: cover;
    display: block;
     border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transition: filter 0.3s ease;
  }


  .home-button-item:hover .home-button-image img {
    .home-button-title {
    filter: brightness(1.1);
        font-family: "Noto Sans", sans-serif;
  }
        font-weight: bold;
        font-size: clamp(1em, 4vw, 1.2em);
        text-align: center;
        text-transform: uppercase;
        padding: 10px;
        background: #fff;
        color: #0645AD;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
        flex-shrink: 0;
    }


  .home-button-title {
    .home-button-item.disabled {
    font-family: "Noto Sans", sans-serif;
        opacity: 0.4;
    font-weight: bold;
        pointer-events: none;
    font-size: clamp(1em, 4vw, 1.2em);
        border-color: #bbb;
    text-align: center;
        box-shadow: none;
    text-transform: uppercase;
     }
    padding: 10px;
    background: #fff;
    color: #0645AD;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
     flex-shrink: 0;
  }


  .home-button-item.disabled {
    @media screen and (max-width: 1024px) {
     opacity: 0.4;
        .home-button-container {
    pointer-events: none;
            grid-template-columns: repeat(2, 1fr);
    border-color: #bbb;
        }
    box-shadow: none;
    }
  }
 
    @media screen and (max-width: 600px) {
        .home-button-container {
            grid-template-columns: 1fr;
        }
     }
 
    @media screen and (max-width: 1280px) {
        .home-button-container {
            grid-template-columns: repeat(3, 1fr);
        }
 
        .home-button-item {
            justify-self: stretch;
        }
 
        .home-button-item:nth-child(7),
        .home-button-item:nth-child(8) {
            grid-column: span 1;
            place-self: center;
        }
    }
</style>
</style>

Edição atual tal como às 14h04min de 30 de junho de 2025

       <a href="/index.php/Personagens">
Personagens
       </a>
       <a href="/index.php/Missões">
Missões
       </a>
       <a href="/index.php/Itens">
Itens
       </a>
       <a href="/index.php/Bosses">
Bosses
       </a>
       <a href="/index.php/Wanted_Pirates">
Wanted Pirates
       </a>
       <a href="/index.php/Baús">
Baús
       </a>
       <a href="/index.php/Passe de Batalha">
Passe de Batalha
       </a>
       <a href="/index.php/Sistema_de_Boost">
Sistema de Boost
       </a>

<style>

   .home-button-container {
       display: grid;
       grid-template-columns: repeat(4, 1fr);
       gap: 20px;
       padding: 10px;
       box-sizing: border-box;
       font-family: "Noto Sans", sans-serif;
   }
   .home-button-item {
       width: 100%;
       display: flex;
       flex-direction: column;
       overflow: hidden;
       border: 1px solid #bbb;
       border-radius: 12px;
       background: #fff;
       transition: transform 0.2s ease-out,
           box-shadow 0.2s ease-out,
           border-color 0.2s ease-out;
       box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
       box-sizing: border-box;
   }
   .home-button-item:hover {
       transform: translateY(-3px);
       border-color: #007bff;
       box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
   }
   .home-button-item a {
       display: block;
       color: inherit;
       text-decoration: none;
       height: 100%;
   }
   .home-button-image {
       width: 100%;
       aspect-ratio: 16/9;
       overflow: hidden;
       flex-shrink: 0;
   }
   .home-button-image img {
       width: 100%;
       height: 100%;
       object-fit: cover;
       display: block;
       border-top-left-radius: 12px;
       border-top-right-radius: 12px;
       transition: filter 0.3s ease;
   }
   .home-button-item:hover .home-button-image img {
       filter: brightness(1.1);
   }
   .home-button-title {
       font-family: "Noto Sans", sans-serif;
       font-weight: bold;
       font-size: clamp(1em, 4vw, 1.2em);
       text-align: center;
       text-transform: uppercase;
       padding: 10px;
       background: #fff;
       color: #0645AD;
       box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
       flex-shrink: 0;
   }
   .home-button-item.disabled {
       opacity: 0.4;
       pointer-events: none;
       border-color: #bbb;
       box-shadow: none;
   }
   @media screen and (max-width: 1024px) {
       .home-button-container {
           grid-template-columns: repeat(2, 1fr);
       }
   }
   @media screen and (max-width: 600px) {
       .home-button-container {
           grid-template-columns: 1fr;
       }
   }
   @media screen and (max-width: 1280px) {
       .home-button-container {
           grid-template-columns: repeat(3, 1fr);
       }
       .home-button-item {
           justify-self: stretch;
       }
       .home-button-item:nth-child(7),
       .home-button-item:nth-child(8) {
           grid-column: span 1;
           place-self: center;
       }
   }

</style>