Mudanças entre as edições de "Predefinição:ItemButton/styles.css"
Ir para navegação
Ir para pesquisar
| Linha 47: | Linha 47: | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
justify-content: | justify-content: center; | ||
margin-top: 20px; | margin-top: 20px; | ||
gap: 25px; /* Espaço entre os itens */ | gap: 25px; /* Espaço entre os itens */ | ||
Edição das 21h11min de 15 de outubro de 2025
/* -------------------------------------------------------------------------- */
/* 1. ESTRUTURA GERAL (Aplicadas no seu código principal) */
/* -------------------------------------------------------------------------- */
/* Define o layout principal de duas colunas (Flex Container) */
.container-principal {
max-width: 1000px;
margin: 0 auto;
padding: 0 10px;
display: flex;
flex-wrap: wrap;
gap: 20px;
width: 100%;
box-sizing: border-box;
}
/* Define a estrutura de cada coluna (Left/Right) */
.coluna-flex {
flex: 1;
min-width: 45%;
display: flex;
flex-direction: column;
}
/* Estilo da caixa de categoria (Sombra, Borda, Fundo Branco) */
.caixa-categoria {
border: 1px solid #e0e0e0;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
overflow: hidden;
margin-bottom: 20px;
background: #fff;
width: 100%;
}
/* Estilo do cabeçalho da categoria (A cor de fundo será definida no wikitexto) */
.titulo-categoria {
text-align: center;
font-size: 1.4em;
font-weight: 600;
color: white;
padding: 12px 15px;
}
/* Container interno que alinha os itens (Flex para todas as larguras) */
.itens-linha {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-top: 20px;
gap: 25px; /* Espaço entre os itens */
}
/* -------------------------------------------------------------------------- */
/* 2. ITEM INDIVIDUAL (USADO NA PREDEFINIÇÃO:ITEMBUTTON) */
/* -------------------------------------------------------------------------- */
/* LARGURAS DAS CÉLULAS */
.item-celula { /* Padrão: 4 Colunas (Equipamentos) */
width: 25%;
box-sizing: border-box;
margin-bottom: 20px;
}
.item-celula-33 { /* 3 Colunas (Navegação) */
width: 33.33%;
box-sizing: border-box;
margin-bottom: 20px;
}
.item-celula-50 { /* 2 Colunas (Valiosos, Consumíveis) */
width: 50%;
box-sizing: border-box;
margin-bottom: 20px;
}
/* O CARTÃO/BOTÃO PRINCIPAL */
.item-botao {
display: block;
text-align: center;
text-decoration: none;
color: #333;
/* Estilos Visuais: Borda 3D, Raio, Sombra */
margin-top: 5px;
margin-bottom: 20px;
padding: 2px;
border-radius: 30px;
border: 17px inset black;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
transition: transform 0.2s, box-shadow 0.2s;
}
/* Efeito Hover */
.item-botao:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}