Difference between revisions of "MediaWiki:Common.css"

From XilePK - Ragnarok Online Server
Jump to navigation Jump to search
Line 33: Line 33:
 
     opacity: 0;
 
     opacity: 0;
 
     visibility: hidden;
 
     visibility: hidden;
    pointer-events: none;
 
 
}
 
}
  
Line 65: Line 64:
 
     flex-direction: column;
 
     flex-direction: column;
 
     min-width: 150px;
 
     min-width: 150px;
     flex: 0 0 auto;
+
     width: fit-content;
 
}
 
}
  
Line 77: Line 76:
 
     overflow: hidden;
 
     overflow: hidden;
 
     width: 100%;
 
     width: 100%;
    height: var(--custom-height, 150px);
 
 
}
 
}
  
.npc-image-container {
+
.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);
 
     width: var(--custom-width, 150px);
 
     height: var(--custom-height, 150px);
 
     height: var(--custom-height, 150px);
Line 89: Line 96:
 
}
 
}
  
.npc-image-container img {
+
.npc-image-frame img {
 
     max-width: 100%;
 
     max-width: 100%;
 
     max-height: 100%;
 
     max-height: 100%;
Line 96: Line 103:
 
}
 
}
  
.tile-halves:hover .npc-image-container img {
+
.tile-halves:hover .npc-image-frame img {
 
     transform: scale(1.05);
 
     transform: scale(1.05);
 
}
 
}
Line 105: Line 112:
 
     text-align: center;
 
     text-align: center;
 
     border-top: 1px solid #e4eaee;
 
     border-top: 1px solid #e4eaee;
 +
    width: 100%;
 +
    box-sizing: border-box;
 
}
 
}
  
Line 119: Line 128:
 
}
 
}
  
/* ========== RESPONSIVE FIXES ========== */
+
/* ========== ESPECÍFICO PARA IMAGENS CLICÁVEIS ========== */
.tile-top.tile-image a {
+
.tile-image .warp-copy {
     display: contents;
+
     display: flex;
 +
    justify-content: center;
 +
    align-items: center;
 +
    width: 100%;
 +
    height: 100%;
 
}
 
}
  
.tile-top.tile-image .warp-copy::after {
+
.tile-image .warp-copy::after {
 
     bottom: -25px;
 
     bottom: -25px;
 
     top: auto !important;
 
     top: auto !important;
 +
}
 +
 +
/* ========== AJUSTES DE TAMANHO ========== */
 +
.tile-halves {
 +
    --custom-width: 150px;
 +
    --custom-height: 150px;
 
}
 
}

Revision as of 16:45, 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;
}

.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;
}