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

De Wiki Gla
Ir para navegação Ir para pesquisar
Linha 82: Linha 82:


<style>
<style>
/* MENU – sempre 4 colunas até 1280px, depois 3, 2 e 1 coluna */
  .home-button-container {
.home-button-container {
    display: grid;
  display: grid;
    /* 4 colunas de até 280px, centralizadas */
  /* 4 colunas fixas de até 280px cada */
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  grid-template-columns: repeat(4, minmax(0, 280px));
    justify-content: center;
  justify-content: center;   /* centraliza o conjunto de botões */
    gap: 20px;
  gap: 20px;
    padding: 10px;
  padding: 10px;
    box-sizing: border-box;
  box-sizing: border-box;
    font-family: "Noto Sans", sans-serif;
  margin: 0 auto;            /* garante que o grid não estique além dos 4 botões */
    margin: 0 auto;
  font-family: "Noto Sans", sans-serif;
  }
}


.home-button-item {
  .home-button-item {
  position: relative;
    position: relative;
  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, border-color 0.2s ease-out;
              box-shadow 0.2s ease-out,
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
              border-color 0.2s ease-out;
    box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    width: 100%;
  box-sizing: border-box;
    max-width: 280px;
  width: 100%;               /* preenche a coluna até os 280px máximos */
    margin: 0 auto;
  max-width: 280px;         /* não fica maior que isso */
    display: flex;
  margin: 0 auto;           /* centraliza dentro de cada coluna */
    flex-direction: column;
  font-family: "Noto Sans", sans-serif;
  }
}


.home-button-item:hover {
  .home-button-item:hover {
  transform: translateY(-3px);
    transform: translateY(-3px);
  border-color: #007bff;
    border-color: #007bff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
  }


/* imagens e títulos permanecem iguais */
  .home-button-item a {
/* … (o resto do your CSS: links, imagens e titles) … */
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
  }


/* 3 colunas até 1280px */
  .home-button-image {
@media (max-width: 1280px) {
    width: 100%;
   .home-button-container {
    aspect-ratio: 16/9;
     grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
     max-width: none;
    flex-shrink: 0;
  }
 
  .home-button-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    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;
   }
   }
}


/* 2 colunas até 900px */
  /* Quebra para 3 colunas em telas até 1280px */
@media (max-width: 900px) {
  @media (max-width: 1280px) {
  .home-button-container {
    .home-button-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-columns: repeat(3, minmax(240px, 1fr));
    }
   }
   }
}


/* 1 coluna até 600px */
  /* 2 colunas até 900px */
@media (max-width: 600px) {
  @media (max-width: 900px) {
  .home-button-container {
    .home-button-container {
    grid-template-columns: 1fr;
      grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
   }
   }
}


  /* 1 coluna até 600px */
  @media (max-width: 600px) {
    .home-button-container {
      grid-template-columns: 1fr;
    }
  }
</style>
</style>

Edição das 20h01min de 9 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;
   /* 4 colunas de até 280px, centralizadas */
   grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
   justify-content: center;
   gap: 20px;
   padding: 10px;
   box-sizing: border-box;
   font-family: "Noto Sans", sans-serif;
   margin: 0 auto;
 }
 .home-button-item {
   position: relative;
   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;
   width: 100%;
   max-width: 280px;
   margin: 0 auto;
   display: flex;
   flex-direction: column;
 }
 .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;
   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;
 }
 /* Quebra para 3 colunas em telas até 1280px */
 @media (max-width: 1280px) {
   .home-button-container {
     grid-template-columns: repeat(3, minmax(240px, 1fr));
   }
 }
 /* 2 colunas até 900px */
 @media (max-width: 900px) {
   .home-button-container {
     grid-template-columns: repeat(2, minmax(240px, 1fr));
   }
 }
 /* 1 coluna até 600px */
 @media (max-width: 600px) {
   .home-button-container {
     grid-template-columns: 1fr;
   }
 }

</style>