MediaWiki:Common.css

De Wiki Gla
Revisão de 12h04min de 28 de abril de 2025 por Gurren1 (discussão | contribs) (Página substituída por '→‎Fundo geral com imagem: body { background: url('https://cdn.wikimg.net/en/hkwiki/images/a/a6/HK_Wiki_Bg-Hollow_Knight.webp') no-repeat center center fixed; bac...')
Ir para navegação Ir para pesquisar

Nota: Após salvar, você pode ter que limpar o "cache" do seu navegador para ver as alterações.

  • Firefox / Safari: Pressione Shift enquanto clica Recarregar, ou pressione Ctrl-F5 ou Ctrl-R (⌘-R no Mac)
  • Google Chrome: Pressione Ctrl-Shift-R (⌘-Shift-R no Mac)
  • Internet Explorer/Edge: PressioneCtrl enquanto clica Recarregar, ou Pressione Ctrl-F5
  • Opera: Pressione Ctrl-F5.
/* Fundo geral com imagem */
body {
  background: url('https://cdn.wikimg.net/en/hkwiki/images/a/a6/HK_Wiki_Bg-Hollow_Knight.webp') no-repeat center center fixed;
  background-size: cover;
  color: #d0d0d0;
}

/* Blur no conteúdo principal */
#content {
  background: rgba(24, 24, 24, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 0; /* Tirado o border-radius como pediu */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Cabeçalho sem fundo */
#mw-head,
#mw-page-base,
#mw-navigation {
  background: transparent;
  color: #d0d0d0;
  border: none;
}

/* Footer com leve blur */
#footer {
  background: rgba(24, 24, 24, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #d0d0d0;
  border: none;
  padding: 10px;
  text-align: center;
  border-radius: 10px 10px 0 0;
  margin-top: 20px;
}

/* Sidebar geral */
#mw-panel {
  background: transparent;
}

/* Só o espaço das opções da sidebar com fundo */
#mw-panel .portal {
  background-color: rgba(32, 32, 32, 0.9);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Títulos da sidebar */
#mw-panel .portal h3 {
  color: #ffffff;
  border-bottom: 1px solid #444444;
  padding-bottom: 5px;
}

/* Links da sidebar */
#mw-panel .portal li a {
  color: #b0b0b0;
  padding: 3px 0;
}
#mw-panel .portal li a:hover {
  color: #ffffff;
  background-color: #333333;
  border-radius: 4px;
  padding-left: 5px;
}

/* Links gerais */
a {
  color: #79a8ff;
}
a:visited {
  color: #a079ff;
}
a:hover {
  color: #ffffff;
}

/* Inputs e forms */
input,
textarea {
  background-color: #303030;
  color: #e0e0e0;
  border: 1px solid #555555;
}
button,
input[type="submit"] {
  background-color: #3a3a3a;
  color: #e0e0e0;
  border: 1px solid #666666;
}
button:hover,
input[type="submit"]:hover {
  background-color: #555555;
}

/* Títulos */
h1, h2, h3, h4, h5 {
  color: #ffffff;
  font-weight: 600;
}
h1 {
  border-bottom: 1px solid #444444;
  padding-bottom: 5px;
}

/* Navegação de abas com borda alinhada ao corpo */
.vector-menu-tabs li {
  background: rgba(36, 36, 36, 0.9) !important;
  background-image: none !important;
  border: 1px solid rgba(100, 100, 100, 0.5) !important; /* Borda igual à do .mw-body */
  border-bottom: none !important; /* Remove a linha de baixo pra alinhar com o corpo */
  margin-right: 2px;
  color: #d0d0d0 !important;
}
.vector-menu-tabs li.current a {
  background: rgba(60, 60, 60, 0.9) !important;
  color: #ffffff !important;
}
.vector-menu-tabs li a:hover {
  background: rgba(50, 50, 50, 0.9) !important;
  color: #ffffff !important;
}

/* Remove a borda/separador dos tabs e dropdowns do Vector */
.vector-menu-tabs,
.vector-menu-tabs a,
#mw-head .vector-menu-dropdown h3 {
  background: none !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-size: 0 !important;
  border: none !important;
}

/* Corpo da página com borda mais suave no dark */
.mw-body {
  margin-top: 0 !important;
  border: 1px solid rgba(100, 100, 100, 0.5) !important;
}
/* Empurra as abas da esquerda (Mensagem e Discussão) mais pra direita */
.vector-menu-tabs:first-child {
  margin-left: 20px;
}

/* Corrige cores apagadas no dark */
body, 
.mw-body-content, 
.vector-menu-tabs li a, 
#mw-head a, 
#mw-head h1, 
#p-personal li a, 
#footer a, 
.searchbox input {
  color: #d0d0d0 !important;
}

/* Cor do placeholder da busca */
.searchbox input::placeholder {
  color: #aaaaaa;
}

/* Tipografia geral */
body {
  font-family: 'Inter', sans-serif;
}

/* Importa a fonte Inter do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');