Mudanças entre as edições de "Widget:MainPageMenu"
Ir para navegação
Ir para pesquisar
Etiqueta: Revertido |
|||
| Linha 84: | Linha 84: | ||
.home-button-container { | .home-button-container { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); | grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); | ||
/* troca center por space-between ou space-evenly */ | |||
justify-content: space-between; | |||
/* justify-content: space-evenly; /* se preferir espaços iguais entre e nas bordas */ | |||
gap: 20px; | gap: 20px; | ||
padding: 10px; | padding: 10px; | ||
| Linha 104: | Linha 106: | ||
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; | ||
width: 100%; | width: 100%; | ||
max-width: | max-width: 280px; | ||
margin: 0 auto; | margin: 0 auto; | ||
} | } | ||
| Linha 116: | Linha 116: | ||
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); | ||
} | } | ||
.home-button-item a { | .home-button-item a { | ||
display: block; | display: block; | ||
text-decoration: none; | |||
color: inherit; | color: inherit; | ||
height: 100%; | height: 100%; | ||
} | } | ||
| Linha 138: | Linha 138: | ||
object-fit: cover; | object-fit: cover; | ||
display: block; | display: block; | ||
transition: filter 0.3s ease; | transition: filter 0.3s ease; | ||
} | } | ||
| Linha 156: | Linha 154: | ||
background: #fff; | background: #fff; | ||
color: #0645AD; | color: #0645AD; | ||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); | box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); | ||
flex-shrink: 0; | flex-shrink: 0; | ||
} | } | ||
Edição das 20h15min de 9 de junho de 2025
<style>
.home-button-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
/* troca center por space-between ou space-evenly */
justify-content: space-between;
/* justify-content: space-evenly; /* se preferir espaços iguais entre e nas bordas */
gap: 20px;
padding: 10px;
box-sizing: border-box;
width: 100%;
font-family: "Noto Sans", sans-serif;
}
.home-button-item {
position: relative;
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;
width: 100%;
max-width: 280px;
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;
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;
}
</style>