Mudanças entre as edições de "Widget:MainPageMenu"
Ir para navegação
Ir para pesquisar
| Linha 93: | Linha 93: | ||
position: relative; | position: relative; | ||
overflow: hidden; | overflow: hidden; | ||
border: | border: 1px solid #ddd; | ||
border- | border-radius: 8px; | ||
background: #fff; | |||
will-change: transform; | |||
transition: box-shadow 0.2s ease, | transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
.home-button-item:hover { | .home-button-item:hover { | ||
transform: translateY(- | transform: translateY(-3px); | ||
box-shadow: 0 4px | border-color: #007bff; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); | |||
} | } | ||
| Linha 111: | Linha 111: | ||
text-decoration: none; | text-decoration: none; | ||
color: inherit; | color: inherit; | ||
} | } | ||
| Linha 128: | Linha 126: | ||
object-fit: cover; | object-fit: cover; | ||
display: block; | display: block; | ||
border-top-left-radius: | border-top-left-radius: 8px; | ||
border-top-right-radius: | border-top-right-radius: 8px; | ||
transition: filter 0. | transition: filter 0.3s ease; | ||
} | |||
.home-button-item:hover .home-button-image img { | |||
filter: brightness(1.1); | |||
} | } | ||
.home-button-title { | .home-button-title { | ||
font-family: | font-family: sans-serif; | ||
font-weight: | font-weight: bold; | ||
font-size: 1. | font-size: clamp(1.2em, 5vw, 1.3em); | ||
background: # | background: #fff; | ||
color: # | color: #0645AD; | ||
margin: 0; | margin: 0; | ||
padding: | padding: 10px 5px; | ||
position: relative; | |||
text-transform: uppercase; | |||
border-top: 1px solid #ddd; | |||
text-align: center; | text-align: center; | ||
text- | text-decoration: none; | ||
transition: background-color 0.2s ease; | transition: background-color 0.2s ease; | ||
box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1); | |||
} | |||
.home-button-item:hover .home-button-title { | |||
background-color: #f9f9f9; | |||
} | } | ||
.home-button-item.disabled { | .home-button-item.disabled { | ||
opacity: 0. | opacity: 0.5; | ||
pointer-events: none; | pointer-events: none; | ||
transform: none !important; | |||
box-shadow: none !important; | |||
border-color: #ddd !important; | |||
} | } | ||
Edição das 14h25min de 6 de maio de 2025
<style> .home-button-container {
display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 10px; box-sizing: border-box;
}
.home-button-item {
position: relative; overflow: hidden; border: 1px solid #ddd; border-radius: 8px; background: #fff; will-change: transform; transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out; box-sizing: border-box;
}
.home-button-item:hover {
transform: translateY(-3px); border-color: #007bff; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.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: 8px; border-top-right-radius: 8px; transition: filter 0.3s ease;
}
.home-button-item:hover .home-button-image img {
filter: brightness(1.1);
}
.home-button-title {
font-family: sans-serif; font-weight: bold; font-size: clamp(1.2em, 5vw, 1.3em); background: #fff; color: #0645AD; margin: 0; padding: 10px 5px; position: relative; text-transform: uppercase; border-top: 1px solid #ddd; text-align: center; text-decoration: none; transition: background-color 0.2s ease; box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
}
.home-button-item:hover .home-button-title {
background-color: #f9f9f9;
}
.home-button-item.disabled {
opacity: 0.5; pointer-events: none; transform: none !important; box-shadow: none !important; border-color: #ddd !important;
}
.home-button-item.disabled .home-button-title {
color: #999;
}
@media (max-width: 1280px) {
.home-button-container {
grid-template-columns: repeat(2, 1fr);
}
} </style>