Ir para o conteúdo

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

De Wiki TokuDrive
Atualizando CSS estilo Wikipédia
Corrigindo logo única e infobox estilo wiki
 
(25 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:
/* Wiki TokuDrive - visual estilo Wikipédia */


body {
  background: #f8f9fa !important;
  color: #202122;
  font-family: sans-serif;
}


.mw-body,
/* === TOKUDRIVE_FIX_LOGO_INFOBOX_BEGIN === */
.vector-body,
#content {
  background: #ffffff !important;
}


.mw-body {
/* Corrige topo: mostra apenas a wordmark, sem duplicar logo */
   border: 1px solid #a2a9b1;
.mw-logo {
   border-right-width: 0;
   min-width: 190px !important;
   margin-top: 0;
   width: 190px !important;
  height: 58px !important;
  display: flex !important;
   align-items: center !important;
}
}


#p-personal,
.mw-logo-icon {
.vector-user-links,
   display: none !important;
.vector-header-container {
   font-size: 13px;
}
}


.vector-page-titlebar-toc,
.mw-logo-wordmark {
.vector-page-titlebar {
  width: 170px !important;
   border-bottom: 1px solid #a2a9b1;
  height: 50px !important;
  max-width: 170px !important;
  max-height: 50px !important;
  object-fit: contain !important;
   object-position: left center !important;
}
}


.mw-page-title-main {
.mw-logo-tagline {
   font-family: 'Linux Libertine', Georgia, Times, serif;
   display: none !important;
  font-weight: normal;
}
}


a {
/* Infobox igual wiki: à direita, com borda e cabeçalho */
   color: #0645ad;
.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;
}
}


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


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


.toc,
.infobox .infobox-above,
#toc {
.infobox .infobox-title {
   background: #f8f9fa;
   background: #ccccff !important;
   border: 1px solid #a2a9b1;
  text-align: center !important;
   padding: 8px;
   font-size: 125% !important;
   font-weight: bold !important;
}
}


.thumbinner {
.infobox .td-infobox-image,
   background: #f8f9fa;
.infobox .infobox-image {
   border: 1px solid #c8ccd1;
   text-align: center !important;
   background: #f8f9fa !important;
}
}


.catlinks {
.infobox img {
   background: #f8f9fa;
   max-width: 220px !important;
  border: 1px solid #a2a9b1;
   height: auto !important;
   margin-top: 24px;
}
}


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


.wikitable th {
.wikitable th {
   background: #eaecf0;
   background: #eaecf0 !important;
   font-weight: bold;
   font-weight: bold !important;
}
 
.wikitable td,
.wikitable th {
  border: 1px solid #a2a9b1;
  padding: 0.35em 0.55em;
}
 
/* Página inicial */
 
.td-wiki-main {
  max-width: 1180px;
  margin: 0 auto;
}
 
.td-wiki-welcome {
  border: 1px solid #a2a9b1;
  background: linear-gradient(#ffffff, #f8f9fa);
  padding: 18px 22px;
  text-align: center;
  margin: 10px 0 16px;
}
 
.td-wiki-title {
  font-family: 'Linux Libertine', Georgia, Times, serif;
  font-size: 34px;
  line-height: 1.2;
  color: #202122;
}
 
.td-wiki-subtitle {
  font-size: 17px;
  margin-top: 4px;
  color: #202122;
}
 
.td-wiki-small {
  margin-top: 8px;
  font-size: 14px;
  color: #54595d;
}
 
.td-wiki-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
 
.td-wiki-box {
  border: 1px solid #a2a9b1;
  background: #ffffff;
  padding: 12px 16px;
  min-height: 150px;
}
}


.td-wiki-box-title {
.wikitable th,
  background: #eaecf0;
.wikitable td {
   border: 1px solid #a2a9b1;
   border: 1px solid #a2a9b1 !important;
  font-weight: bold;
   padding: 0.35em 0.55em !important;
  font-size: 16px;
   padding: 6px 10px;
  margin: -4px -8px 10px;
  color: #202122;
}
 
.td-wiki-blue .td-wiki-box-title {
  background: #d8e8ff;
}
 
.td-wiki-green .td-wiki-box-title {
  background: #d5f0d5;
}
 
.td-wiki-wide {
  margin-top: 14px;
  min-height: auto;
}
}


/* Remove aviso antigo de importação */
.td-sourcebox {
.td-sourcebox {
   border: 1px solid #a2a9b1;
   display: none !important;
  background: #fffbea;
  padding: 10px 12px;
  margin: 12px 0 18px;
  font-size: 13px;
}
}


.infobox {
/* Remove erros técnicos visuais de módulos importados */
  float: right;
.mw-parser-output .scribunto-error,
  clear: right;
.mw-parser-output strong.error,
  width: 22em;
.mw-parser-output span.error {
  margin: 0 0 1em 1em;
   display: none !important;
  background: #f8f9fa;
  border: 1px solid #a2a9b1;
  border-spacing: 3px;
  font-size: 88%;
  line-height: 1.5em;
}
 
.infobox th {
  background: #eaecf0;
  text-align: center;
}
 
.infobox td,
.infobox th {
   padding: 4px 6px;
}
}


@media (max-width: 900px) {
@media (max-width: 900px) {
   .td-wiki-columns {
   .mw-logo {
     grid-template-columns: 1fr;
     min-width: 155px !important;
    width: 155px !important;
    height: 46px !important;
   }
   }


   .td-wiki-title {
   .mw-logo-wordmark {
     font-size: 28px;
     width: 145px !important;
  }
    height: 42px !important;
 
    max-width: 145px !important;
  .mw-body {
     max-height: 42px !important;
     border-right-width: 1px;
   }
   }


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

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 === */