Mudanças entre as edições de "Widget:WeeklyBosses"
Ir para navegação
Ir para pesquisar
m |
m |
||
| Linha 1: | Linha 1: | ||
<style> | <style> | ||
.weekly-bosses { | .weekly-bosses { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
| Linha 21: | Linha 20: | ||
font-weight: 600; | font-weight: 600; | ||
font-size: 14px; | font-size: 14px; | ||
cursor: pointer; | cursor: pointer; | ||
transition: all 0.2s ease; | transition: all 0.2s ease; | ||
} | |||
.weekly-bosses__btn a { | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
gap: 8px; | |||
color: inherit; | |||
text-decoration: none; | |||
} | } | ||
| Linha 32: | Linha 39: | ||
} | } | ||
.weekly-bosses__btn:focus- | .weekly-bosses__btn:focus-within { | ||
outline: 2px solid #e67e22; | outline: 2px solid #e67e22; | ||
outline-offset: 2px; | outline-offset: 2px; | ||
} | } | ||
.weekly- | .weekly-bosses__btn img { | ||
width: 48px; | width: 48px; | ||
height: 48px; | height: 48px; | ||
| Linha 56: | Linha 63: | ||
} | } | ||
</style> | </style> | ||
<div class="weekly-bosses__btn" data-background="{$background}"> | |||
<a href="{$link}"> | |||
{if $icon}<img src="/wiki/Special:FilePath/{$icon}" alt="{$name}" />{/if} | |||
<span>{$name}</span> | |||
</a> | |||
</div> | |||
<script> | |||
(function () { | |||
document.querySelectorAll(".weekly-bosses__btn[data-background]").forEach(function (el) { | |||
el.style.background = el.getAttribute("data-background") || "#2a3544"; | |||
}); | |||
})(); | |||
</script> | |||
Edição das 03h24min de 22 de fevereiro de 2026
<style>
.weekly-bosses {
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: center;
padding: 16px 0;
}
.weekly-bosses__btn {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 16px 20px;
min-width: 120px;
border: 1px solid #e67e22;
border-radius: 12px;
color: #e67e22;
font-weight: 600;
font-size: 14px;
cursor: pointer;
transition: all 0.2s ease;
}
.weekly-bosses__btn a {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
color: inherit;
text-decoration: none;
}
.weekly-bosses__btn:hover {
border-color: #f39c12;
color: #f39c12;
transform: translateY(-2px);
}
.weekly-bosses__btn:focus-within {
outline: 2px solid #e67e22;
outline-offset: 2px;
}
.weekly-bosses__btn img {
width: 48px;
height: 48px;
object-fit: contain;
image-rendering: pixelated;
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
}
@media (max-width: 600px) {
.weekly-bosses {
flex-direction: column;
}
.weekly-bosses__btn {
width: 100%;
}
}
</style>
<a href="{$link}">
{if $icon}<img src="/wiki/Special:FilePath/{$icon}" alt="{$name}" />{/if}
{$name}
</a>
<script>
(function () {
document.querySelectorAll(".weekly-bosses__btn[data-background]").forEach(function (el) {
el.style.background = el.getAttribute("data-background") || "#2a3544";
});
})();
</script>