Ir para o conteúdo

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

De Wiki TokuDrive
Ajustando logo TokuDrive no topo
Corrigindo logo única e infobox estilo wiki
 
(16 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:


/* === TOKUDRIVE LOGO TOPO === */


/* Área da logo no Vector */
/* === TOKUDRIVE_FIX_LOGO_INFOBOX_BEGIN === */
 
/* Corrige topo: mostra apenas a wordmark, sem duplicar logo */
.mw-logo {
.mw-logo {
   width: 220px !important;
   min-width: 190px !important;
   min-width: 220px !important;
   width: 190px !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;
  box-sizing: border-box !important;
}
}


/* Remove texto/wordmark padrão da Wikipédia */
.mw-logo-icon {
.mw-logo-wordmark,
  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 {
.mw-logo-tagline {
   display: none !important;
   display: none !important;
}
}


/* Troca o ícone/logo pelo logo TokuDrive */
/* Infobox igual wiki: à direita, com borda e cabeçalho */
.mw-logo-icon {
.infobox {
   width: 205px !important;
  float: right !important;
   height: 54px !important;
  clear: right !important;
   max-width: 205px !important;
   width: 22em !important;
   max-height: 54px !important;
  margin: 0 0 1em 1em !important;
   object-fit: contain !important;
  background: #f8f9fa !important;
   object-position: center !important;
  border: 1px solid #a2a9b1 !important;
   background-image: url('/resources/assets/tokudrive-logo.png') !important;
  border-spacing: 3px !important;
   background-size: contain !important;
   color: #202122 !important;
   background-position: center !important;
   font-size: 88% !important;
   background-repeat: no-repeat !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;
}
}


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


/* Ajusta a barra superior para a logo ficar parecida com a Wikipédia */
.wikitable th,
.vector-header-container,
.wikitable td {
.vector-sticky-header,
  border: 1px solid #a2a9b1 !important;
.vector-main-menu-landmark,
   padding: 0.35em 0.55em !important;
.vector-header-start {
   align-items: center !important;
}
}


/* Ajusta busca do topo */
/* Remove aviso antigo de importação */
.vector-search-box-input,
.td-sourcebox {
.cdx-text-input__input,
   display: none !important;
input[name="search"] {
   font-size: 14px !important;
}
}


/* Texto do topo com aparência limpa */
/* Remove erros técnicos visuais de módulos importados */
#p-personal,
.mw-parser-output .scribunto-error,
.vector-user-links {
.mw-parser-output strong.error,
   font-size: 14px !important;
.mw-parser-output span.error {
   display: none !important;
}
}


/* Mobile */
@media (max-width: 900px) {
@media (max-width: 800px) {
   .mw-logo {
   .mw-logo {
     width: 170px !important;
     min-width: 155px !important;
     min-width: 170px !important;
     width: 155px !important;
    height: 46px !important;
  }
 
  .mw-logo-wordmark {
    width: 145px !important;
    height: 42px !important;
    max-width: 145px !important;
    max-height: 42px !important;
   }
   }


   .mw-logo-icon {
   .infobox {
     width: 160px !important;
    float: none !important;
     max-width: 160px !important;
     width: 100% !important;
     margin: 0 0 1em 0 !important;
   }
   }
}
}


/* === FIM TOKUDRIVE LOGO TOPO === */
/* === 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 === */