Difference between revisions of "MediaWiki:Common.css"

From XilePK - Ragnarok Online Server
Jump to navigation Jump to search
Line 9: Line 9:
 
}
 
}
  
/* ========== WAR COPY (TEXTO E IMAGENS) ========== */
+
/* ========== WAR COPY ========== */
 
.warp-copy {
 
.warp-copy {
 
     color: #0066cc;
 
     color: #0066cc;
Line 19: Line 19:
 
}
 
}
  
/* Tooltip padrão */
 
 
.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;
    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 {
 
.warp-copy:not(img)::after {
 
     bottom: calc(100% + 5px);
 
     bottom: calc(100% + 5px);
 
}
 
}
  
.warp-copy:not(img)::before {
+
.warp-copy:hover::after {
    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;
 
     opacity: 1;
 
     visibility: visible;
 
     visibility: visible;
 
}
 
}
  
/* Feedback de copiado */
 
 
.warp-copy.copied::after {
 
.warp-copy.copied::after {
 
     content: "Copied!" !important;
 
     content: "Copied!" !important;
 
     background-color: #4CAF50 !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 ========== */
+
/* ========== NPC CONTAINER ========== */
.tile-row {
+
.mainpage-contents.tile-row {
 
     display: flex;
 
     display: flex;
     flex-flow: row wrap;
+
     flex-wrap: wrap;
 +
    gap: 15px;
 
     margin-bottom: 1em;
 
     margin-bottom: 1em;
    gap: 15px;
 
 
}
 
}
  
.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-flow: column;
+
     flex-direction: 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;
 
     min-width: 150px;
     max-width: 100%;
+
     flex: 0 0 auto;
}
 
 
 
.tile-halves h2 {
 
    font-size: 1.4em;
 
    font-weight: bold;
 
    border: none;
 
    margin: 0 0 0.4em;
 
}
 
 
 
.tile-top {
 
    width: 100%;
 
    padding: 0;
 
 
}
 
}
  
 +
/* ========== 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;
     background-color: #949eaa;
+
     padding: 0;
 
     overflow: hidden;
 
     overflow: hidden;
 +
    width: 100%;
 +
    height: var(--custom-height, 150px);
 
}
 
}
  
/* Container para GIFs */
+
.npc-image-container {
.gif-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:
 
}
 
}
  
.gif-container img {
+
.npc-image-container img {
 
     max-width: 100%;
 
     max-width: 100%;
 
     max-height: 100%;
 
     max-height: 100%;
    width: auto;
 
    height: auto;
 
 
     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 {
     background: #ffffff;
+
     padding: 1rem;
 +
    text-align: center;
 
     border-top: 1px solid #e4eaee;
 
     border-top: 1px solid #e4eaee;
    width: 100%;
 
    padding: 1rem 1.5rem 0.6rem;
 
 
}
 
}
  
.tile-bottom.link-button {
+
.tile-bottom h2 {
     padding: 0;
+
     font-size: 1.4em;
     margin: 0 auto;
+
     margin: 0 0 0.4em;
    text-align: center;
 
 
}
 
}
  
Line 167: Line 115:
 
     font-size: 0.8em;
 
     font-size: 0.8em;
 
     color: #666;
 
     color: #666;
    margin-top: -5px;
 
    text-align: center;
 
 
     font-style: italic;
 
     font-style: italic;
 
     line-height: 1.2;
 
     line-height: 1.2;
 
}
 
}
  
/* Efeito hover */
+
/* ========== RESPONSIVE FIXES ========== */
.tile-halves:hover img {
+
.tile-top.tile-image a {
     transform: scale(1.05);
+
     display: contents;
 
}
 
}
  
/* Título do NPC */
+
.tile-top.tile-image .warp-copy::after {
.tile-bottom.link-button h2 .warp-copy {
+
     bottom: -25px;
    color: #000080;
+
     top: auto !important;
    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;
 
 
}
 
}

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