Mudanças entre as edições de "Widget:MainPageMenu"
Ir para navegação
Ir para pesquisar
Etiqueta: Desfazer |
Etiqueta: Revertido |
||
| Linha 93: | Linha 93: | ||
position: relative; | position: relative; | ||
overflow: hidden; | overflow: hidden; | ||
border: 1px solid | border: 1px solid #333; | ||
border-radius: 12px; | border-radius: 12px; | ||
background: # | background-color: #1a1a1a; | ||
will-change: transform; | will-change: transform; | ||
transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 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 1px 3px rgba(0,0,0,0. | box-shadow: 0 1px 3px rgba(0,0,0,0.08); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | |||
@media (prefers-color-scheme: light) { | |||
.home-button-item { | |||
border: 1px solid #ccc; | |||
background-color: #fff; | |||
} | |||
} | } | ||
| Linha 140: | Linha 147: | ||
font-weight: bold; | font-weight: bold; | ||
font-size: clamp(1.2em, 5vw, 1.3em); | font-size: clamp(1.2em, 5vw, 1.3em); | ||
background: # | background: #1a1a1a; | ||
color: # | color: #3392FF; | ||
margin: 0; | margin: 0; | ||
padding: 12px 5px 10px; | padding: 12px 5px 10px; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
text-align: center; | text-align: center; | ||
text-decoration: none; | text-decoration: none; | ||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); | |||
height: 3.5em; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
overflow: hidden; | |||
} | |||
@media (prefers-color-scheme: light) { | |||
.home-button-title { | |||
background: #fff; | |||
color: #0645AD; | |||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); | |||
} | |||
} | } | ||
.home-button-item:hover .home-button-title { | .home-button-item:hover .home-button-title { | ||
background-color: #f9f9f9; | background-color: #181818; | ||
} | |||
@media (prefers-color-scheme: light) { | |||
.home-button-item:hover .home-button-title { | |||
background-color: #f9f9f9; | |||
} | |||
} | } | ||
| Linha 168: | Linha 192: | ||
} | } | ||
@media (max-width: | @media (max-width: 1400px) { | ||
.home-button-container { | |||
grid-template-columns: repeat(3, 1fr); | |||
} | |||
} | |||
@media (max-width: 900px) { | |||
.home-button-container { | .home-button-container { | ||
grid-template-columns: repeat(2, 1fr); | grid-template-columns: repeat(2, 1fr); | ||
} | |||
} | |||
@media (max-width: 600px) { | |||
.home-button-container { | |||
grid-template-columns: 1fr; | |||
} | } | ||
} | } | ||
</style> | </style> | ||
Edição das 22h44min de 29 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 #333; border-radius: 12px; background-color: #1a1a1a; 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;
}
@media (prefers-color-scheme: light) {
.home-button-item {
border: 1px solid #ccc;
background-color: #fff;
}
}
.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: sans-serif; font-weight: bold; font-size: clamp(1.2em, 5vw, 1.3em); background: #1a1a1a; color: #3392FF; margin: 0; padding: 12px 5px 10px; text-transform: uppercase; text-align: center; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); height: 3.5em; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
@media (prefers-color-scheme: light) {
.home-button-title {
background: #fff;
color: #0645AD;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
}
.home-button-item:hover .home-button-title {
background-color: #181818;
}
@media (prefers-color-scheme: light) {
.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: rgba(0, 0, 0, 0.08) !important;
}
.home-button-item.disabled .home-button-title {
color: #aaa;
}
@media (max-width: 1400px) {
.home-button-container {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 900px) {
.home-button-container {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 600px) {
.home-button-container {
grid-template-columns: 1fr;
}
} </style>