Ir para o conteúdo

MediaWiki:Common.css: mudanças entre as edições

De Wiki TokuDrive
CSS limpo corrigindo Vector 2022, home e artigos
Adicionando fundo suave atrás da logo
Linha 1: Linha 1:
/* ==========================================================
  Wiki TokuDrive - Vector 2022 limpo
  ========================================================== */


/* Não força dark mode. Mantém layout padrão claro do Vector 2022. */
html,
body {
  color-scheme: light !important;
}


/* Logo no topo sem quebrar a barra */
/* === TOKUDRIVE_LOGO_BG_BEGIN === */
 
/* Fundo bonito atrás da logo no topo */
.mw-logo {
.mw-logo {
   min-width: 210px !important;
   min-width: 210px !important;
Linha 16: Linha 10:
   display: flex !important;
   display: flex !important;
   align-items: center !important;
   align-items: center !important;
   gap: 0 !important;
   justify-content: center !important;
  padding: 6px 10px !important;
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, rgba(229,9,20,0.10), rgba(54,108,204,0.08)),
    linear-gradient(180deg, #ffffff, #f6f7f9) !important;
  border: 1px solid #d8dde3 !important;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8) !important;
}
}


/* some o ícone separado */
.mw-logo-icon {
.mw-logo-icon {
   display: none !important;
   display: none !important;
}
}


/* tamanho da wordmark */
.mw-logo-wordmark {
.mw-logo-wordmark {
   width: 180px !important;
   width: 180px !important;
Linha 29: Linha 34:
   max-height: 52px !important;
   max-height: 52px !important;
   object-fit: contain !important;
   object-fit: contain !important;
   object-position: left center !important;
   object-position: center center !important;
}
}


/* remove slogan */
.mw-logo-tagline {
.mw-logo-tagline {
   display: none !important;
   display: none !important;
}
}


/* Evita que logo fique gigante na home ou em cache */
/* mobile */
#p-logo a {
  background-size: contain !important;
}
 
/* Texto e títulos padrão Wikipédia */
.mw-page-title-main {
  font-family: "Linux Libertine", Georgia, "Times New Roman", serif;
  font-weight: normal;
}
 
a {
  color: #36c;
}
 
a:visited {
  color: #6b4ba1;
}
 
/* Remove aviso antigo de importação */
.td-sourcebox {
  display: none !important;
}
 
/* Esconde erros técnicos de módulos importados sem esconder conteúdo normal */
.mw-parser-output .scribunto-error,
.mw-parser-output strong.error,
.mw-parser-output span.error {
  display: none !important;
}
 
/* Infobox corrigida: sempre à direita como na Wikipédia */
.infobox {
  float: right;
  clear: right;
  width: 22em;
  margin: 0 0 1em 1em;
  background: #f8f9fa;
  border: 1px solid #a2a9b1;
  border-spacing: 3px;
  color: #202122;
  font-size: 88%;
  line-height: 1.5em;
}
 
.infobox caption {
  font-size: 125%;
  font-weight: bold;
  padding: 0.2em;
}
 
.infobox th,
.infobox td {
  vertical-align: top;
  padding: 4px 6px;
}
 
.infobox th {
  background: #eaecf0;
  text-align: center;
  font-weight: bold;
}
 
.infobox .infobox-above,
.infobox .infobox-title {
  background: #ccccff;
  text-align: center;
  font-size: 125%;
  font-weight: bold;
}
 
.infobox .td-infobox-image,
.infobox .infobox-image {
  text-align: center;
  background: #f8f9fa;
}
 
.infobox img {
  max-width: 220px;
  height: auto;
}
 
/* Tabelas padrão */
.wikitable {
  background: #f8f9fa;
  color: #202122;
  border: 1px solid #a2a9b1;
  border-collapse: collapse;
  margin: 1em 0;
}
 
.wikitable > tr > th,
.wikitable > * > tr > th {
  background: #eaecf0;
  font-weight: bold;
}
 
.wikitable > tr > th,
.wikitable > tr > td,
.wikitable > * > tr > th,
.wikitable > * > tr > td {
  border: 1px solid #a2a9b1;
  padding: 0.35em 0.55em;
}
 
/* Home estilo portal da Wikipédia */
.td-wp-home {
  max-width: 1280px;
  margin: 0 auto;
}
 
.td-wp-welcome {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #a2a9b1;
  padding: 28px 24px 26px;
  margin-bottom: 14px;
}
 
.td-wp-welcome-title {
  font-size: 230%;
  color: #54595d;
  font-variant: small-caps;
  line-height: 1.15;
}
 
.td-wp-welcome-sub {
  font-size: 125%;
  color: #54595d;
}
 
.td-wp-stats {
  text-align: center;
  border-left: 1px solid #c8ccd1;
  padding-left: 24px;
  color: #202122;
}
 
.td-wp-toplinks {
  margin-top: 18px;
  font-size: 105%;
}
 
.td-wp-portals {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border: 1px solid #eaecf0;
  margin: 10px 0 22px;
  background: #f8f9fa;
  text-align: center;
}
 
.td-wp-portals a {
  display: block;
  padding: 8px 4px;
  border-right: 1px solid #eaecf0;
  text-decoration: none;
  color: #202122 !important;
}
 
.td-wp-portals a:hover {
  background: #eaecf0;
}
 
.td-wp-portals a:nth-child(1) { border-top: 5px solid #8b941f; }
.td-wp-portals a:nth-child(2) { border-top: 5px solid #4c9a2a; }
.td-wp-portals a:nth-child(3) { border-top: 5px solid #159957; }
.td-wp-portals a:nth-child(4) { border-top: 5px solid #22a6b3; }
.td-wp-portals a:nth-child(5) { border-top: 5px solid #2d6cdf; }
.td-wp-portals a:nth-child(6) { border-top: 5px solid #5236b8; }
.td-wp-portals a:nth-child(7) { border-top: 5px solid #a3339c; }
.td-wp-portals a:nth-child(8) { border-top: 5px solid #aa2e2e; }
 
.td-wp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
 
.td-wp-box {
  border: 1px solid #a3b1a3;
  background: #f5fff5;
  padding: 12px;
  margin-bottom: 14px;
}
 
.td-wp-box:nth-child(even) {
  background: #f5faff;
  border-color: #a3b1c2;
}
 
.td-wp-box h2 {
  margin: 0 0 10px !important;
  padding: 0.2em 0.4em !important;
  border: 1px solid #a3b1a3 !important;
  background: #cef2ce;
  color: #202122;
  font-size: 170%;
  font-family: "Linux Libertine", Georgia, "Times New Roman", serif;
  font-weight: normal;
}
 
.td-wp-box:nth-child(even) h2 {
  background: #cedff2;
  border-color: #a3b1c2 !important;
}
 
.td-wp-full {
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  padding: 12px;
  margin-top: 14px;
}
 
.td-wp-full h2 {
  margin-top: 0 !important;
  font-family: "Linux Libertine", Georgia, "Times New Roman", serif;
  font-weight: normal;
}
 
/* Responsivo */
@media (max-width: 900px) {
@media (max-width: 900px) {
   .mw-logo {
   .mw-logo {
     min-width: 160px !important;
     min-width: 170px !important;
     width: 160px !important;
     width: 170px !important;
     height: 48px !important;
     height: 52px !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
   }
   }


   .mw-logo-wordmark {
   .mw-logo-wordmark {
     width: 150px !important;
     width: 150px !important;
     height: 44px !important;
     height: 42px !important;
     max-width: 150px !important;
     max-width: 150px !important;
     max-height: 44px !important;
     max-height: 42px !important;
   }
   }
}


  .infobox {
/* === TOKUDRIVE_LOGO_BG_END === */
    float: none;
    width: 100%;
    margin: 0 0 1em 0;
  }
 
  .td-wp-welcome,
  .td-wp-grid {
    grid-template-columns: 1fr;
  }
 
  .td-wp-stats {
    border-left: 0;
    border-top: 1px solid #c8ccd1;
    padding-left: 0;
    padding-top: 16px;
  }
 
  .td-wp-portals {
    grid-template-columns: repeat(2, 1fr);
  }
}

Edição das 18h24min de 28 de junho de 2026



/* === TOKUDRIVE_LOGO_BG_BEGIN === */

/* Fundo bonito atrás da logo no topo */
.mw-logo {
  min-width: 210px !important;
  width: 210px !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 10px !important;
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, rgba(229,9,20,0.10), rgba(54,108,204,0.08)),
    linear-gradient(180deg, #ffffff, #f6f7f9) !important;
  border: 1px solid #d8dde3 !important;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8) !important;
}

/* some o ícone separado */
.mw-logo-icon {
  display: none !important;
}

/* tamanho da wordmark */
.mw-logo-wordmark {
  width: 180px !important;
  height: 52px !important;
  max-width: 180px !important;
  max-height: 52px !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* remove slogan */
.mw-logo-tagline {
  display: none !important;
}

/* mobile */
@media (max-width: 900px) {
  .mw-logo {
    min-width: 170px !important;
    width: 170px !important;
    height: 52px !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
  }

  .mw-logo-wordmark {
    width: 150px !important;
    height: 42px !important;
    max-width: 150px !important;
    max-height: 42px !important;
  }
}

/* === TOKUDRIVE_LOGO_BG_END === */