MediaWiki:Common.css
Jump to navigation
Jump to search
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* ========== ESTILOS GERAIS ========== */
a {
text-underline-offset: 0px;
}
.external {
background: none !important;
padding-right: 0 !important;
}
/* ========== WAR COPY ========== */
.warp-copy {
color: #0066cc;
cursor: pointer;
text-decoration: underline dotted #0066cc;
text-underline-offset: 2px;
position: relative;
display: inline-block;
}
.warp-copy::after {
content: "Copy";
position: absolute;
left: 50%;
transform: translateX(-50%);
background-color: #333;
color: white;
padding: 2px 6px;
border-radius: 3px;
font-size: 12px;
white-space: nowrap;
z-index: 10;
opacity: 0;
visibility: hidden;
}
.warp-copy:not(img)::after {
bottom: calc(100% + 5px);
}
.warp-copy:hover::after {
opacity: 1;
visibility: visible;
}
.warp-copy.copied::after {
content: "Copied!" !important;
background-color: #4CAF50 !important;
}
/* ========== NPC CONTAINER ========== */
.mainpage-contents.tile-row {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-bottom: 1em;
}
.contents-equipment.tile-halves {
border: 1px solid #e4eaee;
background: #fff;
box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.1);
display: flex;
flex-direction: column;
min-width: 150px;
width: fit-content;
}
/* ========== IMAGE CONTAINER ========== */
.tile-top.tile-image {
background-color: #949eaa;
display: flex;
justify-content: center;
align-items: center;
padding: 0;
overflow: hidden;
width: 100%;
}
.npc-image-wrapper {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.npc-image-frame {
width: var(--custom-width, 150px);
height: var(--custom-height, 150px);
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
.npc-image-frame img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
transition: transform 0.3s ease;
}
.tile-halves:hover .npc-image-frame img {
transform: scale(1.05);
}
/* ========== BOTTOM SECTION ========== */
.tile-bottom {
padding: 1rem;
text-align: center;
border-top: 1px solid #e4eaee;
width: 100%;
box-sizing: border-box;
}
.tile-bottom h2 {
font-size: 1.4em;
margin: 0 0 0.4em;
}
.npc-subtitle {
font-size: 0.8em;
color: #666;
font-style: italic;
line-height: 1.2;
}
/* ========== ESPECÍFICO PARA IMAGENS CLICÁVEIS ========== */
.tile-image .warp-copy {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.tile-image .warp-copy::after {
bottom: -25px;
top: auto !important;
}
/* ========== AJUSTES DE TAMANHO ========== */
.tile-halves {
--custom-width: 150px;
--custom-height: 150px;
}