Ir para o conteúdo

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

De Wiki TokuDrive
Vector.css limpo
Corrigindo logo única e infobox estilo wiki
 
(5 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:
/* ==========================================================
  Wiki TokuDrive - Vector 2022 claro estilo Wikipédia
  ========================================================== */


/* Mantém o Vector 2022 claro, sem modo escuro forçado */
html,
body {
  background: #ffffff !important;
  color: #202122 !important;
  color-scheme: light !important;
}


body {
/* === TOKUDRIVE_FIX_LOGO_INFOBOX_BEGIN === */
  font-family: sans-serif;
}


.mw-page-title-main {
/* Corrige topo: mostra apenas a wordmark, sem duplicar logo */
   font-family: "Linux Libertine", Georgia, "Times New Roman", serif;
.mw-logo {
   font-weight: normal;
   min-width: 190px !important;
  width: 190px !important;
  height: 58px !important;
  display: flex !important;
   align-items: center !important;
}
}


.mw-body,
.mw-logo-icon {
.vector-body,
   display: none !important;
.mw-parser-output {
  color: #202122 !important;
}
 
a {
  color: #36c !important;
}
 
a:visited {
   color: #6b4ba1 !important;
}
}


a.new {
.mw-logo-wordmark {
   color: #d33 !important;
   width: 170px !important;
  height: 50px !important;
  max-width: 170px !important;
  max-height: 50px !important;
  object-fit: contain !important;
  object-position: left center !important;
}
}


/* Remove avisos antigos de importação */
.mw-logo-tagline {
.td-sourcebox {
   display: none !important;
   display: none !important;
}
}


/* Esconde erros técnicos de módulos importados */
/* Infobox igual wiki: à direita, com borda e cabeçalho */
.mw-parser-output .error,
.mw-parser-output .scribunto-error,
.mw-parser-output strong.error,
.mw-parser-output span.error {
  display: none !important;
}
 
/* Infobox no padrão Wikipédia */
.infobox {
.infobox {
   float: right;
   float: right !important;
   clear: right;
   clear: right !important;
   width: 22em;
   width: 22em !important;
   margin: 0 0 1em 1em;
   margin: 0 0 1em 1em !important;
   background: #f8f9fa;
   background: #f8f9fa !important;
   border: 1px solid #a2a9b1;
   border: 1px solid #a2a9b1 !important;
   border-spacing: 3px;
   border-spacing: 3px !important;
   color: #202122;
   color: #202122 !important;
   font-size: 88%;
   font-size: 88% !important;
   line-height: 1.5em;
   line-height: 1.5em !important;
}
 
.infobox caption {
  font-size: 125%;
  font-weight: bold;
  padding: 0.2em;
}
}


.infobox th,
.infobox th,
.infobox td {
.infobox td {
   vertical-align: top;
   vertical-align: top !important;
   padding: 4px 6px;
   padding: 4px 6px !important;
  color: #202122 !important;
}
}


.infobox th {
.infobox th {
   background: #eaecf0;
   background: #eaecf0 !important;
   text-align: center;
   text-align: center !important;
   font-weight: bold;
   font-weight: bold !important;
}
}


.infobox .infobox-above,
.infobox .infobox-above,
.infobox .infobox-title {
.infobox .infobox-title {
   background: #ccccff;
   background: #ccccff !important;
   text-align: center;
   text-align: center !important;
   font-size: 125%;
   font-size: 125% !important;
   font-weight: bold;
   font-weight: bold !important;
}
}


.infobox .infobox-image,
.infobox .td-infobox-image,
.infobox .td-infobox-image {
.infobox .infobox-image {
   text-align: center;
   text-align: center !important;
   background: #f8f9fa;
   background: #f8f9fa !important;
}
}


.infobox img {
.infobox img {
   max-width: 220px;
   max-width: 220px !important;
   height: auto;
   height: auto !important;
}
}


/* Tabelas padrão Wikipédia */
/* Tabelas padrão wiki */
.wikitable {
.wikitable {
   background: #f8f9fa;
   background: #f8f9fa !important;
  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;
}
 
/* Caixas de aviso semelhantes à Wikipédia */
.ambox {
  border: 1px solid #a2a9b1;
  border-left: 10px solid #f28500;
  background: #fbfbfb;
  margin: 0.5em 10%;
  padding: 0.25em 0.5em;
}
 
.thumbinner {
  background: #f8f9fa;
  border: 1px solid #c8ccd1;
}
 
/* Categorias */
.catlinks {
  background: #f8f9fa;
  border: 1px solid #a2a9b1;
  padding: 5px;
  margin-top: 1em;
}
 
/* ==========================================================
  Página principal estilo 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-stats strong {
  font-size: 120%;
}
 
.td-wp-toplinks {
  margin-top: 18px;
  font-size: 105%;
}
 
.td-wp-portals {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border: 1px solid #eaecf0;
  border-top: 5px solid #36c;
  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;
   color: #202122 !important;
  border: 1px solid #a2a9b1 !important;
  border-collapse: collapse !important;
  margin: 1em 0 !important;
}
}


.td-wp-portals a:hover {
.wikitable th {
   background: #eaecf0;
   background: #eaecf0 !important;
  font-weight: bold !important;
}
}


.td-wp-portals a:nth-child(1) { border-top: 5px solid #8b941f; }
.wikitable th,
.td-wp-portals a:nth-child(2) { border-top: 5px solid #4c9a2a; }
.wikitable td {
.td-wp-portals a:nth-child(3) { border-top: 5px solid #159957; }
  border: 1px solid #a2a9b1 !important;
.td-wp-portals a:nth-child(4) { border-top: 5px solid #22a6b3; }
  padding: 0.35em 0.55em !important;
.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 {
/* Remove aviso antigo de importação */
   border: 1px solid #a3b1a3;
.td-sourcebox {
  background: #f5fff5;
   display: none !important;
  padding: 12px;
  margin-bottom: 14px;
}
}


.td-wp-box:nth-child(even) {
/* Remove erros técnicos visuais de módulos importados */
  background: #f5faff;
.mw-parser-output .scribunto-error,
  border-color: #a3b1c2;
.mw-parser-output strong.error,
}
.mw-parser-output span.error {
 
   display: none !important;
.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-box ul {
  margin-top: 0.4em;
}
 
.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;
}
}


@media (max-width: 900px) {
@media (max-width: 900px) {
   .infobox {
   .mw-logo {
     float: none;
     min-width: 155px !important;
     width: 100%;
     width: 155px !important;
     margin: 0 0 1em 0;
     height: 46px !important;
   }
   }


   .td-wp-welcome,
   .mw-logo-wordmark {
  .td-wp-grid {
    width: 145px !important;
     grid-template-columns: 1fr;
    height: 42px !important;
    max-width: 145px !important;
     max-height: 42px !important;
   }
   }


   .td-wp-stats {
   .infobox {
     border-left: 0;
     float: none !important;
     border-top: 1px solid #c8ccd1;
     width: 100% !important;
     padding-left: 0;
     margin: 0 0 1em 0 !important;
    padding-top: 16px;
   }
   }
}


  .td-wp-portals {
/* === TOKUDRIVE_FIX_LOGO_INFOBOX_END === */
    grid-template-columns: repeat(2, 1fr);
  }
}

Edição atual tal como às 01h11min de 29 de junho de 2026



/* === TOKUDRIVE_FIX_LOGO_INFOBOX_BEGIN === */

/* Corrige topo: mostra apenas a wordmark, sem duplicar logo */
.mw-logo {
  min-width: 190px !important;
  width: 190px !important;
  height: 58px !important;
  display: flex !important;
  align-items: center !important;
}

.mw-logo-icon {
  display: none !important;
}

.mw-logo-wordmark {
  width: 170px !important;
  height: 50px !important;
  max-width: 170px !important;
  max-height: 50px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.mw-logo-tagline {
  display: none !important;
}

/* Infobox igual wiki: à direita, com borda e cabeçalho */
.infobox {
  float: right !important;
  clear: right !important;
  width: 22em !important;
  margin: 0 0 1em 1em !important;
  background: #f8f9fa !important;
  border: 1px solid #a2a9b1 !important;
  border-spacing: 3px !important;
  color: #202122 !important;
  font-size: 88% !important;
  line-height: 1.5em !important;
}

.infobox th,
.infobox td {
  vertical-align: top !important;
  padding: 4px 6px !important;
  color: #202122 !important;
}

.infobox th {
  background: #eaecf0 !important;
  text-align: center !important;
  font-weight: bold !important;
}

.infobox .infobox-above,
.infobox .infobox-title {
  background: #ccccff !important;
  text-align: center !important;
  font-size: 125% !important;
  font-weight: bold !important;
}

.infobox .td-infobox-image,
.infobox .infobox-image {
  text-align: center !important;
  background: #f8f9fa !important;
}

.infobox img {
  max-width: 220px !important;
  height: auto !important;
}

/* Tabelas padrão wiki */
.wikitable {
  background: #f8f9fa !important;
  color: #202122 !important;
  border: 1px solid #a2a9b1 !important;
  border-collapse: collapse !important;
  margin: 1em 0 !important;
}

.wikitable th {
  background: #eaecf0 !important;
  font-weight: bold !important;
}

.wikitable th,
.wikitable td {
  border: 1px solid #a2a9b1 !important;
  padding: 0.35em 0.55em !important;
}

/* Remove aviso antigo de importação */
.td-sourcebox {
  display: none !important;
}

/* Remove erros técnicos visuais de módulos importados */
.mw-parser-output .scribunto-error,
.mw-parser-output strong.error,
.mw-parser-output span.error {
  display: none !important;
}

@media (max-width: 900px) {
  .mw-logo {
    min-width: 155px !important;
    width: 155px !important;
    height: 46px !important;
  }

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

  .infobox {
    float: none !important;
    width: 100% !important;
    margin: 0 0 1em 0 !important;
  }
}

/* === TOKUDRIVE_FIX_LOGO_INFOBOX_END === */