Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
| Line 9: | Line 9: | ||
} | } | ||
| − | /* ========== WAR COPY | + | /* ========== WAR COPY ========== */ |
.warp-copy { | .warp-copy { | ||
color: #0066cc; | color: #0066cc; | ||
| Line 19: | Line 19: | ||
} | } | ||
| − | |||
.warp-copy::after { | .warp-copy::after { | ||
content: "Copy"; | content: "Copy"; | ||
position: absolute; | position: absolute; | ||
left: 50%; | left: 50%; | ||
| + | transform: translateX(-50%); | ||
background-color: #333; | background-color: #333; | ||
color: white; | color: white; | ||
| Line 34: | Line 34: | ||
visibility: hidden; | visibility: hidden; | ||
pointer-events: none; | pointer-events: none; | ||
| − | |||
} | } | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
.warp-copy:not(img)::after { | .warp-copy:not(img)::after { | ||
bottom: calc(100% + 5px); | bottom: calc(100% + 5px); | ||
} | } | ||
| − | + | .warp-copy:hover::after { | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | .warp-copy:hover::after | ||
| − | |||
opacity: 1; | opacity: 1; | ||
visibility: visible; | visibility: visible; | ||
} | } | ||
| − | |||
.warp-copy.copied::after { | .warp-copy.copied::after { | ||
content: "Copied!" !important; | content: "Copied!" !important; | ||
background-color: #4CAF50 !important; | background-color: #4CAF50 !important; | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
| − | /* ========== | + | /* ========== NPC CONTAINER ========== */ |
| − | .tile-row { | + | .mainpage-contents.tile-row { |
display: flex; | display: flex; | ||
| − | flex- | + | flex-wrap: wrap; |
| + | gap: 15px; | ||
margin-bottom: 1em; | margin-bottom: 1em; | ||
| − | |||
} | } | ||
| − | .tile-halves { | + | .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; | display: flex; | ||
| − | flex- | + | flex-direction: column; |
| − | |||
| − | |||
| − | |||
| − | |||
min-width: 150px; | min-width: 150px; | ||
| − | + | flex: 0 0 auto; | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
| + | /* ========== IMAGE CONTAINER ========== */ | ||
.tile-top.tile-image { | .tile-top.tile-image { | ||
| + | background-color: #949eaa; | ||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
align-items: center; | align-items: center; | ||
| − | + | padding: 0; | |
overflow: hidden; | overflow: hidden; | ||
| + | width: 100%; | ||
| + | height: var(--custom-height, 150px); | ||
} | } | ||
| − | + | .npc-image-container { | |
| − | . | ||
width: var(--custom-width, 150px); | width: var(--custom-width, 150px); | ||
height: var(--custom-height, 150px); | height: var(--custom-height, 150px); | ||
| Line 142: | Line 89: | ||
} | } | ||
| − | . | + | .npc-image-container img { |
max-width: 100%; | max-width: 100%; | ||
max-height: 100%; | max-height: 100%; | ||
| − | |||
| − | |||
object-fit: contain; | object-fit: contain; | ||
transition: transform 0.3s ease; | transition: transform 0.3s ease; | ||
} | } | ||
| + | .tile-halves:hover .npc-image-container img { | ||
| + | transform: scale(1.05); | ||
| + | } | ||
| + | |||
| + | /* ========== BOTTOM SECTION ========== */ | ||
.tile-bottom { | .tile-bottom { | ||
| − | + | padding: 1rem; | |
| + | text-align: center; | ||
border-top: 1px solid #e4eaee; | border-top: 1px solid #e4eaee; | ||
| − | |||
| − | |||
} | } | ||
| − | .tile-bottom | + | .tile-bottom h2 { |
| − | + | font-size: 1.4em; | |
| − | margin: 0 | + | margin: 0 0 0.4em; |
| − | |||
} | } | ||
| Line 167: | Line 115: | ||
font-size: 0.8em; | font-size: 0.8em; | ||
color: #666; | color: #666; | ||
| − | |||
| − | |||
font-style: italic; | font-style: italic; | ||
line-height: 1.2; | line-height: 1.2; | ||
} | } | ||
| − | /* | + | /* ========== RESPONSIVE FIXES ========== */ |
| − | .tile- | + | .tile-top.tile-image a { |
| − | + | display: contents; | |
} | } | ||
| − | + | .tile-top.tile-image .warp-copy::after { | |
| − | .tile- | + | bottom: -25px; |
| − | + | top: auto !important; | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
Revision as of 16:39, 8 May 2025
/* ========== 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;
pointer-events: none;
}
.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;
flex: 0 0 auto;
}
/* ========== IMAGE CONTAINER ========== */
.tile-top.tile-image {
background-color: #949eaa;
display: flex;
justify-content: center;
align-items: center;
padding: 0;
overflow: hidden;
width: 100%;
height: var(--custom-height, 150px);
}
.npc-image-container {
width: var(--custom-width, 150px);
height: var(--custom-height, 150px);
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
.npc-image-container img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
transition: transform 0.3s ease;
}
.tile-halves:hover .npc-image-container img {
transform: scale(1.05);
}
/* ========== BOTTOM SECTION ========== */
.tile-bottom {
padding: 1rem;
text-align: center;
border-top: 1px solid #e4eaee;
}
.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;
}
/* ========== RESPONSIVE FIXES ========== */
.tile-top.tile-image a {
display: contents;
}
.tile-top.tile-image .warp-copy::after {
bottom: -25px;
top: auto !important;
}