Ir para o conteúdo

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

De Wiki TokuDrive
Ajustando logo TokuDrive no topo
CSS limpo estilo Wikipédia real
Linha 1: Linha 1:
/* Wiki TokuDrive - base visual estilo Wikipédia */


/* === TOKUDRIVE LOGO TOPO === */
body {
  background: #f8f9fa;
}
 
.mw-body,
.vector-body {
  background: #ffffff;
}


/* Área da logo no Vector */
.mw-page-title-main {
  font-family: 'Linux Libertine', Georgia, Times, serif;
  font-weight: normal;
}
 
/* Logo TokuDrive no topo do Vector 2022 */
.mw-logo {
.mw-logo {
   width: 220px !important;
   min-width: 250px !important;
   min-width: 220px !important;
   width: 250px !important;
   height: 56px !important;
   height: 58px !important;
   display: flex !important;
   display: flex !important;
   align-items: center !important;
   align-items: center !important;
   padding: 0 10px !important;
   gap: 8px !important;
   box-sizing: border-box !important;
}
 
.mw-logo-icon {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  object-fit: contain !important;
}
 
.mw-logo-wordmark {
  width: 210px !important;
  height: 58px !important;
   max-width: 210px !important;
  max-height: 58px !important;
  object-fit: contain !important;
}
}


/* Remove texto/wordmark padrão da Wikipédia */
.mw-logo-wordmark,
.mw-logo-tagline {
.mw-logo-tagline {
   display: none !important;
   display: none !important;
}
}


/* Troca o ícone/logo pelo logo TokuDrive */
/* Esconde qualquer aviso antigo de importação, caso algum ainda esteja cacheado */
.mw-logo-icon {
.td-sourcebox {
   width: 205px !important;
   display: none !important;
   height: 54px !important;
}
   max-width: 205px !important;
 
   max-height: 54px !important;
/* Aparência padrão tipo Wikipédia */
   object-fit: contain !important;
.wikitable {
   object-position: center !important;
   background: #f8f9fa;
   background-image: url('/resources/assets/tokudrive-logo.png') !important;
  border: 1px solid #a2a9b1;
   background-size: contain !important;
   border-collapse: collapse;
   background-position: center !important;
}
   background-repeat: no-repeat !important;
 
.wikitable th {
   background: #eaecf0;
   font-weight: bold;
}
 
.wikitable td,
.wikitable th {
   border: 1px solid #a2a9b1;
   padding: 0.35em 0.55em;
}
 
/* Infobox padrão */
.infobox {
  float: right;
  clear: right;
  width: 22em;
  margin: 0 0 1em 1em;
   background: #f8f9fa;
  border: 1px solid #a2a9b1;
  border-spacing: 3px;
   font-size: 88%;
   line-height: 1.5em;
}
}


/* Caso a logo seja renderizada como IMG */
.infobox th {
img.mw-logo-icon {
   background: #eaecf0;
   content: url('/resources/assets/tokudrive-logo.png') !important;
  text-align: center;
}
}


/* Ajusta a barra superior para a logo ficar parecida com a Wikipédia */
.infobox td,
.vector-header-container,
.infobox th {
.vector-sticky-header,
   padding: 4px 6px;
.vector-main-menu-landmark,
.vector-header-start {
   align-items: center !important;
}
}


/* Ajusta busca do topo */
/* Não deixa erros técnicos vermelhos destruírem o artigo */
.vector-search-box-input,
.mw-parser-output .error,
.cdx-text-input__input,
.mw-parser-output .scribunto-error,
input[name="search"] {
.mw-parser-output strong.error,
   font-size: 14px !important;
.mw-parser-output span.error {
   display: none !important;
}
}


/* Texto do topo com aparência limpa */
/* Imagens e thumbs */
#p-personal,
.thumbinner {
.vector-user-links {
   background: #f8f9fa;
   font-size: 14px !important;
  border: 1px solid #c8ccd1;
}
}


/* Mobile */
@media (max-width: 800px) {
@media (max-width: 800px) {
   .mw-logo {
   .mw-logo {
     width: 170px !important;
     min-width: 190px !important;
     min-width: 170px !important;
     width: 190px !important;
   }
   }


   .mw-logo-icon {
   .mw-logo-wordmark {
     width: 160px !important;
     width: 155px !important;
     max-width: 160px !important;
  }
 
  .infobox {
    float: none;
     width: 100%;
    margin: 0 0 1em 0;
   }
   }
}
}
/* === FIM TOKUDRIVE LOGO TOPO === */

Edição das 16h12min de 28 de junho de 2026

/* Wiki TokuDrive - base visual estilo Wikipédia */

body {
  background: #f8f9fa;
}

.mw-body,
.vector-body {
  background: #ffffff;
}

.mw-page-title-main {
  font-family: 'Linux Libertine', Georgia, Times, serif;
  font-weight: normal;
}

/* Logo TokuDrive no topo do Vector 2022 */
.mw-logo {
  min-width: 250px !important;
  width: 250px !important;
  height: 58px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.mw-logo-icon {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  object-fit: contain !important;
}

.mw-logo-wordmark {
  width: 210px !important;
  height: 58px !important;
  max-width: 210px !important;
  max-height: 58px !important;
  object-fit: contain !important;
}

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

/* Esconde qualquer aviso antigo de importação, caso algum ainda esteja cacheado */
.td-sourcebox {
  display: none !important;
}

/* Aparência padrão tipo Wikipédia */
.wikitable {
  background: #f8f9fa;
  border: 1px solid #a2a9b1;
  border-collapse: collapse;
}

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

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

/* Infobox padrão */
.infobox {
  float: right;
  clear: right;
  width: 22em;
  margin: 0 0 1em 1em;
  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;
}

/* Não deixa erros técnicos vermelhos destruírem o artigo */
.mw-parser-output .error,
.mw-parser-output .scribunto-error,
.mw-parser-output strong.error,
.mw-parser-output span.error {
  display: none !important;
}

/* Imagens e thumbs */
.thumbinner {
  background: #f8f9fa;
  border: 1px solid #c8ccd1;
}

@media (max-width: 800px) {
  .mw-logo {
    min-width: 190px !important;
    width: 190px !important;
  }

  .mw-logo-wordmark {
    width: 155px !important;
  }

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