Mudanças entre as edições de "Widget:Teste"
Ir para navegação
Ir para pesquisar
| Linha 79: | Linha 79: | ||
.home-button-container { | .home-button-container { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(4, 1fr); | grid-template-columns: repeat(4, 1fr); /* 4 colunas; ajuste conforme necessário */ | ||
gap: 10px; | gap: 10px; | ||
padding: 10px; | padding: 10px; | ||
| Linha 91: | Linha 91: | ||
border-radius: 8px; | border-radius: 8px; | ||
background: #fff; | background: #fff; | ||
transition: box-shadow 0.3s ease, border-color 0.3s ease; | transition: box-shadow 0.3s ease, border-color 0.3s ease; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
| Linha 101: | Linha 100: | ||
} | } | ||
.home-button-item a { | .home-button-item a { | ||
display: block; | display: block; | ||
| Linha 108: | Linha 106: | ||
} | } | ||
.home-button-image { | .home-button-image { | ||
width: 100%; | width: 100%; | ||
aspect-ratio: 16/9; | aspect-ratio: 16/9; /* Ajuste para tornar o card mais baixo */ | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
| Linha 120: | Linha 117: | ||
object-fit: cover; | object-fit: cover; | ||
display: block; | display: block; | ||
transition: transform 0.3s ease, filter 0.3s ease; | transition: transform 0.3s ease, filter 0.3s ease; | ||
} | } | ||
.home-button-item:hover .home-button-image img { | .home-button-item:hover .home-button-image img { | ||
transform: scale(1.02); | transform: scale(1.02); | ||
| Linha 130: | Linha 125: | ||
} | } | ||
.home-button-title { | .home-button-title { | ||
font-weight: bold; | font-weight: bold; | ||
| Linha 142: | Linha 136: | ||
border-top: 1px solid #ddd; | border-top: 1px solid #ddd; | ||
text-align: center; | text-align: center; | ||
transition: background-color 0.3s ease; | transition: background-color 0.3s ease, transform 0.3s ease; | ||
transform: translateY(0); | |||
} | } | ||
.home-button-item:hover .home-button-title { | .home-button-item:hover .home-button-title { | ||
background-color: #f9f9f9; | background-color: #f9f9f9; | ||
transform: translateY(-2px); /* Leve deslocamento no hover */ | |||
} | } | ||
/* | /* RESPONSIVIDADE: 2 colunas abaixo de 1280px */ | ||
@media (max-width: 1280px) { | @media (max-width: 1280px) { | ||
.home-button-container { | .home-button-container { | ||
Edição das 18h55min de 28 de março de 2025
<style> .home-button-container {
display: grid; grid-template-columns: repeat(4, 1fr); /* 4 colunas; ajuste conforme necessário */ gap: 10px; padding: 10px; box-sizing: border-box;
}
.home-button-item {
position: relative; overflow: hidden; border: 1px solid #ddd; border-radius: 8px; background: #fff; transition: box-shadow 0.3s ease, border-color 0.3s ease; box-sizing: border-box;
}
.home-button-item:hover {
border-color: #007bff; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.home-button-item a {
display: block; text-decoration: none; color: inherit;
}
.home-button-image {
width: 100%; aspect-ratio: 16/9; /* Ajuste para tornar o card mais baixo */ overflow: hidden;
}
.home-button-image img {
width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease, filter 0.3s ease;
}
.home-button-item:hover .home-button-image img {
transform: scale(1.02); filter: brightness(1.1);
}
.home-button-title {
font-weight: bold; font-size: 1.1em; background: #fff; color: #000; margin: 0; padding: 10px 5px; position: relative; text-transform: uppercase; border-top: 1px solid #ddd; text-align: center; transition: background-color 0.3s ease, transform 0.3s ease; transform: translateY(0);
}
.home-button-item:hover .home-button-title {
background-color: #f9f9f9; transform: translateY(-2px); /* Leve deslocamento no hover */
}
/* RESPONSIVIDADE: 2 colunas abaixo de 1280px */ @media (max-width: 1280px) {
.home-button-container {
grid-template-columns: repeat(2, 1fr);
}
} </style>