Diferenças entre edições de "MediaWiki:Common.css"

Linha 1: Linha 1:
 
/* CSS */
 
/* CSS */
 +
 +
 +
html {
 +
  scroll-behavior: smooth;
 +
}
  
 
body {background: url('https://tr-wiki.metin2.gameforge.com/images/9/9d/Metin2_25.2_Background_Wiki.jpg') no-repeat fixed center top #000;
 
body {background: url('https://tr-wiki.metin2.gameforge.com/images/9/9d/Metin2_25.2_Background_Wiki.jpg') no-repeat fixed center top #000;
Linha 38: Linha 43:
 
}
 
}
  
 +
.monster-card {
 +
  border: 1px black solid;
 +
  padding: 5px;
 +
  max-width: 400px;
 +
  box-sizing: border-box;
 +
}
 +
 +
.monster-card > :nth-child(5) {
 +
  display: grid;
 +
  justify-content: center;
 +
  align-items: start;
 +
}
  
 
.modal{
 
.modal{
Linha 82: Linha 99:
 
     color:#f0d9a2;
 
     color:#f0d9a2;
 
     text-align:center;
 
     text-align:center;
    position:relative;
+
... (298 linhas)
    -webkit-transition:border .25s linear,color .25s linear,background-color .25s linear;
+
Recolher
    transition:border .25s linear,color .25s linear,background-color .25s linear
+
Recolher (398 linhas)
}
+
Visualize o arquivo inteiro
.btn.btn-mt2{
+
CSS.txt
    background-color:#1f0e02;
+
CSS.txt (9 KB)
    border-color:#512410;
+
9 KB
    -webkit-box-shadow:0 3px 0 #512410;
+
CSS.txt (9 KB)
    box-shadow:0 3px 0 #512410;
+
Baixar CSS.txt (9 KB)Alterar idioma
    border-radius:4px
+
/* Código Javascript colocado aqui será carregado para todos os utilizadores em cada carregamento de página */
}
 
.btn.btn-mt2:hover{
 
    background-color:#512410;
 
    box-shadow:0 3px 0 #1f0e02
 
}
 
.btn.btn-mt2:active{
 
    top:3px;
 
    outline:none;
 
    -webkit-box-shadow:none;
 
    box-shadow:none
 
}
 
 
 
.container {
 
display: flex;
 
flex-direction: row;
 
}
 
 
 
@media screen and (max-width: 768px){
 
  .container {
 
  flex-direction: column;
 
  }
 
}
 
 
 
@media screen and (max-width: 340px){
 
 
 
  
  #mw-content {
+
/* =====================================
    padding-left: 10px;
+
  FUNÇÕES AUXILIARES
    padding-right: 10px;
+
  ===================================== */
  }
 
 
 
}
 
ul.subpage {
 
  display: flex;
 
  list-style: none;
 
  margin: 0 0 10px;
 
  padding: 0;
 
  background: #d1b597;
 
  overflow: hidden;
 
  line-height: 30px;
 
  white-space: nowrap;
 
}
 
 
 
.subpage a {
 
  padding-left: 20px;
 
  background: #36040d;
 
  display: inline-block;
 
  line-height: 30px;
 
  position: relative;
 
  color: #f1de8e;
 
  cursor: pointer;
 
}
 
 
 
.subpage a:before,
 
.subpage a:after {
 
  content: "";
 
  position: absolute;
 
  width: 0;
 
  height: 0;
 
  right: 0;
 
  padding: 1px 0;
 
  border-top: 14px solid transparent;
 
  border-bottom: 14px solid transparent;
 
  border-left: 14px solid white;
 
  transform: translate(14px);
 
  z-index: 1;
 
}
 
 
 
.subpage a:after {
 
  border-left: 14px solid #36040d;
 
  transform: translate(13px);
 
  z-index: 2;
 
}
 
 
 
.subpage > li:last-child {
 
  padding-left: 20px;
 
}
 
 
 
ul.subpage > li:first-child {
 
  flex-shrink: 0;
 
}
 
 
 
ul.subpage > li:first-child > a {
 
  height: 100%;
 
  display: flex;
 
  align-items: center;
 
  padding-left: 10px;
 
}
 
 
 
ul.subpage > li > a:hover {
 
  background: #5d0505;
 
}
 
 
 
ul.subpage > li > a:hover:after {
 
  border-left-color: #5d0505;
 
}
 
 
 
#mw-content .soulignement > a:link {
 
  text-decoration: none;
 
}
 
table.pretty-table tbody > *:nth-child(2n + 1) > td {
 
  background: rgba(0, 0, 0, 0.1);
 
}
 
 
 
table.pretty-table tr:hover {
 
  background: rgba(0, 0, 0, 0.05);
 
}
 
 
 
.tabber-active.button {
 
  background: rgba(75, 85, 95);
 
  color: white;
 
  border: 2px solid rgba(75, 85, 95);
 
}
 
 
 
/* Esconde todos os painéis por padrão */
 
.tabber-container > div:last-child > div {
 
  display: none;
 
}
 
 
 
/* Mostra só o painel ativo */
 
.tabber-container > div:last-child > div.tabber-active {
 
  display: block;
 
}
 
 
 
/* Continua a esconder o que tiver estas classes auxiliares */
 
.cacheTel,
 
.tabber-noactive {
 
  display: none;
 
}
 
 
 
.button {
 
  border: 2px solid #36040d;
 
  padding: 0 12px;
 
  line-height: 25px;
 
  border-radius: 16px;
 
  background: #5d0505;
 
  color: #f0d9a2;
 
  cursor: pointer;
 
  display: inline-block;
 
  position: relative;
 
  user-select: none;
 
  white-space: nowrap;
 
}
 
 
 
.button:hover {
 
  background: transparent;
 
  color: #36040d;
 
}
 
 
 
@media screen and (max-width: 768px) {
 
  .texte-long {
 
    white-space: normal;
 
    overflow: visible;
 
  }
 
 
 
  .grid2 {
 
    grid-template-columns: repeat(2, 1fr) !important;
 
  }
 
 
 
  .grid3 {
 
    grid-template-columns: repeat(3, auto) !important;
 
  }
 
 
 
  .container {
 
    flex-direction: column;
 
  }
 
 
 
  .cacheTel,
 
  .subpage > li:nth-last-child(2) > a {
 
    display: block;
 
  }
 
 
 
  .top-button {
 
    background: rgba(0, 0, 0, 0.7);
 
    color: #999;
 
    border: none;
 
    box-shadow: none;
 
  }
 
 
 
  .top-button::after {
 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' height='24' viewBox='0 -960 960 960' width='24'%3E%3Cpath d='M440-80v-647L256-544l-56-56 280-280 280 280-56 57-184-184v647h-80Z'/%3E%3C/svg%3E");
 
    height: 24px;
 
    width: 24px;
 
  }
 
 
 
  .tooltip-icon {
 
    position: static;
 
  }
 
 
 
  .tooltip-info {
 
    position: fixed;
 
    left: 20px;
 
    right: 20px;
 
    bottom: 50px;
 
    max-width: none;
 
    width: auto;
 
    transform: none;
 
    height: max-content;
 
  }
 
 
 
  .subpage > li > a,
 
  .cacheOrdi,
 
  .tooltip-info:after {
 
    display: none;
 
  }
 
}
 
 
 
@media screen and (max-width: 340px) {
 
  #mw-content {
 
    padding-left: 10px;
 
    padding-right: 10px;
 
  }
 
}
 
 
 
@media screen and (min-width: 851px) {
 
  html {
 
    scroll-padding-top: 3.325em;
 
  }
 
}
 
 
 
/*
 
http://wiki.metin2.com.pt/images/2/27/Header-bgxmas.png
 
*/
 
 
 
/* Botão "voltar ao topo" – estilo base (desktop + geral) */
 
.top-button {
 
  display: flex;
 
  justify-content: center;
 
  align-items: center;
 
  opacity: 0; /* começa invisível */
 
  cursor: pointer;
 
  position: fixed;
 
  bottom: 10px;
 
  right: 10px;
 
  width: 32px;
 
  height: 32px;
 
  background: linear-gradient(
 
    180deg,
 
    rgba(124, 200, 65, 1) 0%,
 
    rgba(113, 161, 85, 1) 50%,
 
    rgba(64, 117, 39, 1) 50%,
 
    rgba(46, 97, 39, 1) 100%
 
  );
 
  border: 1px solid #d0af52;
 
  box-shadow:
 
    1px 1px 2px #000,
 
    inset 1px 1px #090200,
 
    inset -1px -1px #090200;
 
  transform: translateY(100px); /* começa “fora” do ecrã */
 
  transition: all 0.5s ease;
 
  z-index: 99;
 
}
 
 
 
.top-button::after {
 
  content: "";
 
  height: 32px;
 
  width: 32px;
 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000000' height='24' viewBox='0 -960 960 960' width='24'%3E%3Cpath d='M440-80v-647L256-544l-56-56 280-280 280 280-56 57-184-184v647h-80Z'/%3E%3C/svg%3E");
 
  background-repeat: no-repeat;
 
  background-position: center;
 
}
 
 
 
/* classe usada pelo JS para mostrar o botão */
 
.show-button {
 
  opacity: 1;
 
  transform: translateY(0);
 
}
 
 
 
/* Versão mobile: estilo mais simples no telemóvel */
 
@media screen and (max-width: 768px) {
 
  .top-button {
 
    background: rgba(0, 0, 0, 0.7);
 
    color: #999;
 
    border: none;
 
    box-shadow: none;
 
  }
 
 
 
  .top-button::after {
 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' height='24' viewBox='0 -960 960 960' width='24'%3E%3Cpath d='M440-80v-647L256-544l-56-56 280-280 280 280-56 57-184-184v647h-80Z'/%3E%3C/svg%3E");
 
    height: 24px;
 
    width: 24px;
 
  }
 
}
 

Revisão das 11h08min de 17 de novembro de 2025

/* CSS */


html {
  scroll-behavior: smooth;
}

body {background: url('https://tr-wiki.metin2.gameforge.com/images/9/9d/Metin2_25.2_Background_Wiki.jpg') no-repeat fixed center top #000;
     background-size: 100%;

}

td,th {padding: 2px }

.nativelooktop {
  background: url("https://en-wiki.metin2.gameforge.com/images/1/1c/Nativelooktop.jpg") no-repeat;
  padding: 0px;
  width: 190px;
  height: 10px;
}

.nativelookbackground {
  background-image: url("https://en-wiki.metin2.gameforge.com/images/1/12/Nativelookbackground.jpg");
  background-repeat: repeat-y;
  padding: 0px;
  width: 190px;
}

.nativelookbottom {
  background: url("https://en-wiki.metin2.gameforge.com/images/8/8b/Nativelookbottom.jpg") no-repeat;
  padding: 0px;
  width: 190px;
  height: 10px;
}



.header-bgxmas {
    background: url("https://pt-wiki.metin2.gameforge.com/images/c/c3/Fita_Página_Inicial.png") repeat 0em 0em;
}
.header-bgxmas2 {
    background: url("https://pt-wiki.metin2.gameforge.com/images/7/70/Preço_IS.png") repeat 0em 0em;
}

.monster-card {
  border: 1px black solid;
  padding: 5px;
  max-width: 400px;
  box-sizing: border-box;
}

.monster-card > :nth-child(5) {
  display: grid;
  justify-content: center;
  align-items: start;
}

.modal{
    display:none;
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    z-index:99;
    background-color:rgba(0,0,0,0.5)
}
.modal-content{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    padding:16px 24px;
    width:auto;
    background:url(https://it-wiki.metin2.gameforge.com/images/2/20/Modal_Background.png);
    border-radius:8px;
    border:1px solid black
}
.close-button{
    float:right;
    width:20px;
    height:20px;
    line-height:24px;
    text-align:center;
    cursor:pointer;
    border-radius:4px;
    background:url(https://it-wiki.metin2.gameforge.com/images/0/04/No.png) no-repeat
}
.close-button:hover{
    background-color:darkgray
}
.btn{
    font-size:12px;
    white-space:nowrap;
    padding:.8em 1.5em;
    line-height:14px;
    display:inline-block;
    zoom:1;
    color:#f0d9a2;
    text-align:center;
... (298 linhas)
Recolher
Recolher (398 linhas)
Visualize o arquivo inteiro
CSS.txt
CSS.txt (9 KB)
9 KB
CSS.txt (9 KB)
Baixar CSS.txt (9 KB)Alterar idioma
/* Código Javascript colocado aqui será carregado para todos os utilizadores em cada carregamento de página */

/* =====================================
   FUNÇÕES AUXILIARES
   ===================================== */