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>
  .home-button-container {
.home-button-container {
    display: grid;
  display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-template-columns: repeat(4, 1fr);
    justify-content: center;
  gap: 20px;
    gap: 20px;
  padding: 10px;
    padding: 10px;
  box-sizing: border-box;
    box-sizing: border-box;
  font-family: "Noto Sans", sans-serif;
    font-family: "Noto Sans", sans-serif;
}
   }
 
.home-button-item {
  position: relative;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 12px;
  background: #fff;
  will-change: transform;
  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;
  font-family: "Noto Sans", sans-serif;
   max-width: 280px;
  width: 100%;
  margin: 0 auto;
}
 
.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;
  text-decoration: none;
  color: inherit;
}


  .home-button-item {
.home-button-image {
    position: relative;
  width: 100%;
    overflow: hidden;
  aspect-ratio: 16/9;
    border: 1px solid #bbb;
  display: block;
    border-radius: 12px;
  margin: 0;
    background: #fff;
  padding: 0;
    will-change: transform;
}
    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;
    font-family: "Noto Sans", sans-serif;
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
  }


  .home-button-item:hover {
.home-button-image img {
    transform: translateY(-3px);
  width: 100%;
    border-color: #007bff;
  height: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  }
  display: block;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transition: filter 0.3s ease;
}


  .home-button-item a {
.home-button-item:hover .home-button-image img {
    display: block;
  filter: brightness(1.1);
    text-decoration: none;
}
    color: inherit;
  }


  .home-button-image {
.home-button-title {
    width: 100%;
  font-family: "Noto Sans", sans-serif;
    aspect-ratio: 16/9;
  font-weight: bold;
    display: block;
  font-size: clamp(1.2em, 5vw, 1.3em);
    margin: 0;
  background: #fff;
    padding: 0;
  color: #0645AD;
   }
  margin: 0;
  padding: 12px 5px 10px;
  position: relative;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
   box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  word-break: break-word;
}


  .home-button-image img {
.home-button-item:hover .home-button-title {
    width: 100%;
  background-color: #f9f9f9;
    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-item.disabled {
    filter: brightness(1.1);
  opacity: 0.4;
  }
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
  border-color: #bbb !important;
}


  .home-button-title {
.home-button-item.disabled .home-button-title {
    font-family: "Noto Sans", sans-serif;
  color: #aaa;
    font-weight: bold;
}
    font-size: clamp(1.2em, 5vw, 1.3em);
    background: #fff;
    color: #0645AD;
    margin: 0;
    padding: 12px 5px 10px;
    position: relative;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    word-break: break-word;
  }


  .home-button-item:hover .home-button-title {
/* 4 colunas até 1280px */
     background-color: #f9f9f9;
@media (max-width: 1280px) {
  .home-button-container {
     grid-template-columns: repeat(3, 1fr);
   }
   }
}


   .home-button-item.disabled {
/* 3 colunas até 900px */
     opacity: 0.4;
@media (max-width: 900px) {
    pointer-events: none;
   .home-button-container {
    transform: none !important;
     grid-template-columns: repeat(2, 1fr);
    box-shadow: none !important;
    border-color: #bbb !important;
   }
   }
}


   .home-button-item.disabled .home-button-title {
/* 2 colunas até 600px */
     color: #aaa;
@media (max-width: 600px) {
   .home-button-container {
     grid-template-columns: 1fr;
   }
   }
}
</style>
</style>

Edição das 19h57min 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;
 grid-template-columns: repeat(4, 1fr);
 gap: 20px;
 padding: 10px;
 box-sizing: border-box;
 font-family: "Noto Sans", sans-serif;

}

.home-button-item {

 position: relative;
 overflow: hidden;
 border: 1px solid #bbb;
 border-radius: 12px;
 background: #fff;
 will-change: transform;
 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;
 font-family: "Noto Sans", sans-serif;
 max-width: 280px;
 width: 100%;
 margin: 0 auto;

}

.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;
 text-decoration: none;
 color: inherit;

}

.home-button-image {

 width: 100%;
 aspect-ratio: 16/9;
 display: block;
 margin: 0;
 padding: 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(1.2em, 5vw, 1.3em);
 background: #fff;
 color: #0645AD;
 margin: 0;
 padding: 12px 5px 10px;
 position: relative;
 text-transform: uppercase;
 text-align: center;
 text-decoration: none;
 transition: background-color 0.2s ease;
 box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
 word-break: break-word;

}

.home-button-item:hover .home-button-title {

 background-color: #f9f9f9;

}

.home-button-item.disabled {

 opacity: 0.4;
 pointer-events: none;
 transform: none !important;
 box-shadow: none !important;
 border-color: #bbb !important;

}

.home-button-item.disabled .home-button-title {

 color: #aaa;

}

/* 4 colunas até 1280px */ @media (max-width: 1280px) {

 .home-button-container {
   grid-template-columns: repeat(3, 1fr);
 }

}

/* 3 colunas até 900px */ @media (max-width: 900px) {

 .home-button-container {
   grid-template-columns: repeat(2, 1fr);
 }

}

/* 2 colunas até 600px */ @media (max-width: 600px) {

 .home-button-container {
   grid-template-columns: 1fr;
 }

} </style>