Ir para o conteúdo

MediaWiki:Common.css

De Big2be
Revisão de 09h23min de 22 de julho de 2025 por Admin big2be (discussão | contribs)

Nota: Após publicar, 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)
  • Edge: Pressione Ctrl enquanto clica Recarregar, ou pressione Ctrl-F5.
  • Opera: Pressione Ctrl-F5.
/* === Fonte Moderna === */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&display=swap');

/* === Estilo base === */
body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: #f9f9f9;
  color: #111;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* === Remover elementos laterais === */
#mw-panel,
#p-logo,
#mw-head-base,
#mw-navigation {
  display: none !important;
}

/* === Tela cheia no conteúdo === */
#content,
#mw-content-text {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 60px 10vw;
  box-sizing: border-box;
  background: white;
  border: none;
  box-shadow: none;
}

/* === Cabeçalho moderno === */
#mw-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 20px 10vw;
  border-bottom: 2px solid #000;
  position: sticky;
  top: 0;
  z-index: 1000;
}
#mw-head a {
  color: #111;
  font-weight: 600;
  margin-right: 20px;
}

/* === Títulos === */
h1, h2, h3, h4 {
  color: #000;
  border-bottom: 2px solid #000;
  padding-bottom: 4px;
  margin-top: 40px;
}

/* === Links === */
a {
  color: #0066ff;
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: #0033aa;
  text-decoration: underline;
}

/* === Botões === */
input[type="submit"],
.mw-ui-button,
button {
  background: #000;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
}
input[type="submit"]:hover,
.mw-ui-button:hover,
button:hover {
  background: #333;
}

/* === Tabelas === */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
th, td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
}
th {
  background-color: #eee;
}

/* === Rodapé === */
#footer {
  background-color: #f1f1f1;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #555;
  border-top: 2px solid #000;
}

/* === Áreas de formulário === */
textarea,
input[type="text"],
input[type="search"],
input[type="password"],
select {
  border: 2px solid #000;
  padding: 10px;
  border-radius: 6px;
  width: 100%;
  background-color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  box-sizing: border-box;
}

/* === Oculta elementos vazios ou inúteis === */
.mw-portlet-empty,
#siteSub,
#contentSub,
#jump-to-nav {
  display: none;
}

/* === Ajuste para TOC (sumário) === */
#toc {
  background: #fff;
  border: 2px solid #000;
  padding: 20px;
  margin: 40px 0;
  border-radius: 8px;
}
#toc a {
  color: #111;
  font-weight: 600;
}
#toc a:hover {
  color: #0066ff;
}

/* === Responsividade básica === */
@media (max-width: 768px) {
  #mw-head {
    flex-direction: column;
    align-items: flex-start;
  }
  #content,
  #mw-content-text {
    padding: 40px 5vw;
  }
}