Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | |||
− | |||
/* ========== ESTILOS GERAIS ========== */ | /* ========== ESTILOS GERAIS ========== */ | ||
a { | a { | ||
Line 62: | Line 60: | ||
border-color: #333 transparent transparent transparent; | border-color: #333 transparent transparent transparent; | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
/* Tooltip PARA IMAGENS */ | /* Tooltip PARA IMAGENS */ | ||
Line 90: | Line 80: | ||
} | } | ||
− | /* Feedback de copiado | + | /* Feedback de copiado */ |
.warp-copy.copied::after { | .warp-copy.copied::after { | ||
content: "Copied!" !important; | content: "Copied!" !important; | ||
Line 103: | Line 93: | ||
} | } | ||
− | /* ========== ESTILOS | + | /* ========== ESTILOS PARA NPCs ========== */ |
.tile-row { | .tile-row { | ||
display: flex; | display: flex; | ||
flex-flow: row wrap; | flex-flow: row wrap; | ||
margin-bottom: 1em; | margin-bottom: 1em; | ||
+ | gap: 15px; | ||
} | } | ||
.tile-halves { | .tile-halves { | ||
display: flex; | display: flex; | ||
− | flex-flow: | + | flex-flow: column; |
border: 1px solid #e4eaee; | border: 1px solid #e4eaee; | ||
background: #ffffff; | background: #ffffff; | ||
box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1); | box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1); | ||
position: relative; | position: relative; | ||
+ | min-width: 150px; | ||
+ | max-width: 100%; | ||
} | } | ||
Line 128: | Line 121: | ||
.tile-top { | .tile-top { | ||
width: 100%; | width: 100%; | ||
− | padding: | + | padding: 0; |
} | } | ||
.tile-top.tile-image { | .tile-top.tile-image { | ||
display: flex; | display: flex; | ||
+ | justify-content: center; | ||
align-items: center; | align-items: center; | ||
− | |||
background-color: #949eaa; | background-color: #949eaa; | ||
− | overflow: | + | overflow: hidden; |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | /* Container para GIFs | + | /* Container para GIFs */ |
.gif-container { | .gif-container { | ||
− | |||
width: var(--custom-width, 150px); | width: var(--custom-width, 150px); | ||
height: var(--custom-height, 150px); | height: var(--custom-height, 150px); | ||
− | |||
− | |||
− | |||
− | |||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
align-items: center; | align-items: center; | ||
+ | overflow: hidden; | ||
} | } | ||
− | + | .gif-container img { | |
− | .gif-container img | + | max-width: 100%; |
− | max-width: | + | max-height: 100%; |
− | max-height: | ||
width: auto; | width: auto; | ||
height: auto; | height: auto; | ||
object-fit: contain; | object-fit: contain; | ||
− | |||
transition: transform 0.3s ease; | transition: transform 0.3s ease; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Line 202: | Line 159: | ||
.tile-bottom.link-button { | .tile-bottom.link-button { | ||
− | |||
padding: 0; | padding: 0; | ||
− | |||
margin: 0 auto; | margin: 0 auto; | ||
− | + | text-align: center; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Line 234: | Line 173: | ||
} | } | ||
− | + | /* Efeito hover */ | |
− | + | .tile-halves:hover img { | |
− | + | transform: scale(1.05); | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Line 252: | Line 182: | ||
color: #000080; | color: #000080; | ||
font-weight: bold; | font-weight: bold; | ||
− | |||
− | |||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
− | + | /* Classes para dimensionamento manual (opcional) */ | |
− | |||
− | |||
− | |||
− | |||
− | /* Classes para dimensionamento manual */ | ||
.npc-image-small { | .npc-image-small { | ||
− | + | --custom-width: 150px !important; | |
+ | --custom-height: 150px !important; | ||
} | } | ||
.npc-image-medium { | .npc-image-medium { | ||
− | + | --custom-width: 200px !important; | |
+ | --custom-height: 200px !important; | ||
} | } | ||
.npc-image-large { | .npc-image-large { | ||
− | + | --custom-width: 250px !important; | |
− | + | --custom-height: 250px !important; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } |
Revision as of 16:32, 8 May 2025
/* ========== ESTILOS GERAIS ========== */ a { text-underline-offset: 0px; } .external { background: none !important; padding-right: 0 !important; } /* ========== WAR COPY (TEXTO E IMAGENS) ========== */ .warp-copy { color: #0066cc; cursor: pointer; text-decoration: underline dotted #0066cc; text-underline-offset: 2px; position: relative; display: inline-block; } /* Tooltip padrão */ .warp-copy::after { content: "Copy"; position: absolute; left: 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; pointer-events: none; transform: translateX(-50%); } /* Seta do tooltip */ .warp-copy::before { content: ""; position: absolute; left: 50%; border-width: 4px; border-style: solid; z-index: 10; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%); } /* Tooltip PARA TEXTO */ .warp-copy:not(img)::after { bottom: calc(100% + 5px); } .warp-copy:not(img)::before { bottom: calc(100% + 1px); border-color: #333 transparent transparent transparent; } /* Tooltip PARA IMAGENS */ .tile-top.tile-image .warp-copy::after { bottom: -25px; top: auto !important; } .tile-top.tile-image .warp-copy::before { bottom: -18px; top: auto !important; border-color: #333 transparent transparent transparent !important; } /* Estados de hover */ .warp-copy:hover::after, .warp-copy:hover::before { opacity: 1; visibility: visible; } /* Feedback de copiado */ .warp-copy.copied::after { content: "Copied!" !important; background-color: #4CAF50 !important; opacity: 1 !important; visibility: visible !important; } .warp-copy.copied { color: #4CAF50 !important; text-decoration: underline dotted #4CAF50 !important; } /* ========== ESTILOS PARA NPCs ========== */ .tile-row { display: flex; flex-flow: row wrap; margin-bottom: 1em; gap: 15px; } .tile-halves { display: flex; flex-flow: column; border: 1px solid #e4eaee; background: #ffffff; box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1); position: relative; min-width: 150px; max-width: 100%; } .tile-halves h2 { font-size: 1.4em; font-weight: bold; border: none; margin: 0 0 0.4em; } .tile-top { width: 100%; padding: 0; } .tile-top.tile-image { display: flex; justify-content: center; align-items: center; background-color: #949eaa; overflow: hidden; } /* Container para GIFs */ .gif-container { width: var(--custom-width, 150px); height: var(--custom-height, 150px); display: flex; justify-content: center; align-items: center; overflow: hidden; } .gif-container img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform 0.3s ease; } .tile-bottom { background: #ffffff; border-top: 1px solid #e4eaee; width: 100%; padding: 1rem 1.5rem 0.6rem; } .tile-bottom.link-button { padding: 0; margin: 0 auto; text-align: center; } .npc-subtitle { font-size: 0.8em; color: #666; margin-top: -5px; text-align: center; font-style: italic; line-height: 1.2; } /* Efeito hover */ .tile-halves:hover img { transform: scale(1.05); } /* Título do NPC */ .tile-bottom.link-button h2 .warp-copy { color: #000080; font-weight: bold; text-decoration: none; } /* Classes para dimensionamento manual (opcional) */ .npc-image-small { --custom-width: 150px !important; --custom-height: 150px !important; } .npc-image-medium { --custom-width: 200px !important; --custom-height: 200px !important; } .npc-image-large { --custom-width: 250px !important; --custom-height: 250px !important; }