Mudanças entre as edições de "Widget:Teste"
Ir para navegação
Ir para pesquisar
m |
m |
||
| Linha 3: | Linha 3: | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: | gap: 10px; | ||
padding: | padding: 12px 0; | ||
justify-content: center; | |||
} | } | ||
| Linha 12: | Linha 13: | ||
border-radius: 8px; | border-radius: 8px; | ||
text-align: center; | text-align: center; | ||
padding: | padding: 12px 10px; | ||
width: | width: 120px; | ||
min-width: 120px; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | align-items: center; | ||
gap: | gap: 4px; | ||
transition: transform 0.15s, box-shadow 0.15s; | transition: transform 0.15s, box-shadow 0.15s; | ||
color: inherit; | color: inherit; | ||
| Linha 26: | Linha 27: | ||
.island-card:hover { | .island-card:hover { | ||
transform: translateY(- | transform: translateY(-2px); | ||
box-shadow: rgba(0, 0, 0, 0.35) 0px | box-shadow: rgba(0, 0, 0, 0.35) 0px 4px 12px; | ||
} | } | ||
| Linha 35: | Linha 36: | ||
.island-card .island-img img { | .island-card .island-img img { | ||
width: | width: 100px; | ||
height: | height: 100px; | ||
object-fit: contain; | object-fit: contain; | ||
pointer-events: none; | pointer-events: none; | ||
| Linha 42: | Linha 43: | ||
.island-card .island-name { | .island-card .island-name { | ||
font-size: | font-size: 0.9em; | ||
font-weight: bold; | font-weight: bold; | ||
color: #000; | color: #000; | ||
pointer-events: none; | pointer-events: none; | ||
line-height: 1.2; | |||
word-break: break-word; | |||
} | } | ||
.island-card .island-chests { | .island-card .island-chests { | ||
display: flex; | display: flex; | ||
align-items: flex-end; | |||
justify-content: center; | |||
gap: 8px; | |||
pointer-events: none; | |||
} | |||
.island-card .island-chest-group { | |||
position: relative; | |||
display: inline-flex; | |||
flex-direction: column; | |||
align-items: center; | align-items: center; | ||
} | } | ||
.island-card .island-chest-group img { | |||
width: 32px; | |||
height: 32px; | |||
object-fit: contain; | |||
display: block; | |||
} | |||
/* Estilo da quantidade (igual itemdata.css) */ | |||
.island-card .island-chest-count { | |||
position: absolute; | |||
bottom: -10px; | |||
left: 50%; | |||
transform: translateX(-50%); | |||
font-size: 12px; | |||
font-weight: bold; | |||
color: #fff; | |||
background: rgba(0, 0, 0, 0.75); | |||
padding: 1px 4px; | |||
border-radius: 4px; | |||
line-height: 1; | |||
white-space: nowrap; | |||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); | |||
z-index: 10; | |||
} | } | ||
@media (max-width: 600px) { | @media (max-width: 600px) { | ||
.island-card { | .island-card { | ||
width: | width: 100px; | ||
min-width: 100px; | |||
padding: 10px 8px; | |||
} | } | ||
.island-card .island-img img { | .island-card .island-img img { | ||
width: | width: 80px; | ||
height: | height: 80px; | ||
} | |||
.island-card .island-name { | |||
font-size: 0.85em; | |||
} | |||
.island-card .island-chest-group img { | |||
width: 28px; | |||
height: 28px; | |||
} | } | ||
.island-card .island-chest-count { | |||
.island-card { | font-size: 11px; | ||
bottom: -8px; | |||
} | } | ||
} | } | ||
Edição das 22h44min de 12 de março de 2026
<style>
.island-grid {
display: flex;
flex-wrap: wrap;
gap: 10px;
padding: 12px 0;
justify-content: center;
}
.island-card {
background: #eeeded;
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 10px;
border-radius: 8px;
text-align: center;
padding: 12px 10px;
width: 120px;
min-width: 120px;
box-sizing: border-box;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
transition: transform 0.15s, box-shadow 0.15s;
color: inherit;
cursor: pointer;
}
.island-card:hover {
transform: translateY(-2px);
box-shadow: rgba(0, 0, 0, 0.35) 0px 4px 12px;
}
.island-card:visited {
color: inherit;
}
.island-card .island-img img {
width: 100px;
height: 100px;
object-fit: contain;
pointer-events: none;
}
.island-card .island-name {
font-size: 0.9em;
font-weight: bold;
color: #000;
pointer-events: none;
line-height: 1.2;
word-break: break-word;
}
.island-card .island-chests {
display: flex;
align-items: flex-end;
justify-content: center;
gap: 8px;
pointer-events: none;
}
.island-card .island-chest-group {
position: relative;
display: inline-flex;
flex-direction: column;
align-items: center;
}
.island-card .island-chest-group img {
width: 32px;
height: 32px;
object-fit: contain;
display: block;
}
/* Estilo da quantidade (igual itemdata.css) */
.island-card .island-chest-count {
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
font-size: 12px;
font-weight: bold;
color: #fff;
background: rgba(0, 0, 0, 0.75);
padding: 1px 4px;
border-radius: 4px;
line-height: 1;
white-space: nowrap;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
z-index: 10;
}
@media (max-width: 600px) {
.island-card {
width: 100px;
min-width: 100px;
padding: 10px 8px;
}
.island-card .island-img img {
width: 80px;
height: 80px;
}
.island-card .island-name {
font-size: 0.85em;
}
.island-card .island-chest-group img {
width: 28px;
height: 28px;
}
.island-card .island-chest-count {
font-size: 11px;
bottom: -8px;
}
}
</style> <script>
(function () {
function initClickable() {
document.querySelectorAll('.island-card[data-href]').forEach(function (el) {
if (el._icClick) return;
el._icClick = true;
el.addEventListener('click', function () {
var href = el.getAttribute('data-href');
if (href) window.location.href = href;
});
el.addEventListener('keydown', function (e) {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
var href = el.getAttribute('data-href');
if (href) window.location.href = href;
}
});
});
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', initClickable);
} else {
initClickable();
}
})();
</script>