Ir para o conteúdo

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

De Wiki TokuDrive
Corrigindo logo transparente, aparência direita e menu esquerdo fixo
Corrigindo logo única e infobox estilo wiki
 
(11 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:




/* === TOKUDRIVE_FIX_LOGO_INFOBOX_BEGIN === */


/* === TOKUDRIVE_FIX_LOGO_MENUS_BEGIN === */
/* Corrige topo: mostra apenas a wordmark, sem duplicar logo */
 
.mw-logo {
/* Logo transparente no topo */
   min-width: 190px !important;
.mw-logo,
   width: 190px !important;
.vector-header-start .mw-logo {
   height: 58px !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 8px !important;
   min-width: 270px !important;
   width: 270px !important;
   height: 70px !important;
   display: flex !important;
   display: flex !important;
   align-items: center !important;
   align-items: center !important;
Linha 25: Linha 17:


.mw-logo-wordmark {
.mw-logo-wordmark {
  content: url("/resources/assets/wiki-logo-wordmark-transparente-1782667297.png") !important;
   width: 170px !important;
   width: 245px !important;
   height: 50px !important;
   height: 64px !important;
   max-width: 170px !important;
   max-width: 245px !important;
   max-height: 50px !important;
   max-height: 64px !important;
   object-fit: contain !important;
   object-fit: contain !important;
   object-position: left center !important;
   object-position: left center !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)) !important;
}
}


Linha 42: Linha 29:
}
}


/* Barra superior mais limpa */
/* Infobox igual wiki: à direita, com borda e cabeçalho */
.vector-header-container,
.infobox {
.mw-header,
  float: right !important;
.vector-sticky-header {
  clear: right !important;
   background: #0b0f17 !important;
  width: 22em !important;
   border-bottom: 1px solid #2c374a !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;
}
}


/* Volta o menu de aparência da direita */
.infobox th,
.vector-appearance-landmark,
.infobox td {
.vector-appearance,
   vertical-align: top !important;
#vector-appearance,
   padding: 4px 6px !important;
.vector-page-tools-landmark,
   color: #202122 !important;
.vector-page-tools {
   display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
   max-height: none !important;
   overflow: visible !important;
  pointer-events: auto !important;
}
}


/* Remove o esconder antigo do painel de aparência */
.infobox th {
#p-dock-bottom {
   background: #eaecf0 !important;
   display: block !important;
   text-align: center !important;
  visibility: visible !important;
   font-weight: bold !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
   max-width: none !important;
   max-height: none !important;
}
}


/* Painel de aparência no modo escuro */
.infobox .infobox-above,
.vector-appearance,
.infobox .infobox-title {
#vector-appearance,
   background: #ccccff !important;
.vector-page-tools {
  text-align: center !important;
   background: #111827 !important;
   font-size: 125% !important;
   color: #f4f7fb !important;
   font-weight: bold !important;
   border-color: #2c374a !important;
}
}


.vector-appearance label,
.infobox .td-infobox-image,
.vector-appearance legend,
.infobox .infobox-image {
.vector-appearance h2,
  text-align: center !important;
.vector-appearance h3,
   background: #f8f9fa !important;
.vector-appearance span,
.vector-appearance button {
   color: #f4f7fb !important;
}
}


/* Menu esquerdo fixo durante rolagem */
.infobox img {
.vector-column-start,
   max-width: 220px !important;
.vector-main-menu-landmark {
   height: auto !important;
   position: sticky !important;
  top: 86px !important;
  align-self: start !important;
   max-height: calc(100vh - 96px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
}
}


/* Garante que o menu esquerdo continue visível */
/* Tabelas padrão wiki */
.vector-column-start,
.wikitable {
.vector-main-menu,
   background: #f8f9fa !important;
.vector-main-menu-landmark,
   color: #202122 !important;
#mw-panel {
   border: 1px solid #a2a9b1 !important;
   display: block !important;
   border-collapse: collapse !important;
   visibility: visible !important;
   margin: 1em 0 !important;
   opacity: 1 !important;
  background: #0b0f17 !important;
   color: #f4f7fb !important;
   border-color: #2c374a !important;
}
}


/* Deixa o menu esquerdo mais bonito no escuro */
.wikitable th {
.vector-main-menu .vector-menu-heading,
   background: #eaecf0 !important;
#mw-panel .portal h3 {
   font-weight: bold !important;
   color: #aab6c8 !important;
   border-bottom: 1px solid #2c374a !important;
}
}


.vector-main-menu a,
.wikitable th,
#mw-panel a {
.wikitable td {
   color: #8ab4ff !important;
   border: 1px solid #a2a9b1 !important;
  padding: 0.35em 0.55em !important;
}
}


.vector-main-menu a:hover,
/* Remove aviso antigo de importação */
#mw-panel a:hover {
.td-sourcebox {
   color: #ffffff !important;
   display: none !important;
  background: rgba(255,255,255,.06) !important;
}
}


/* Busca do topo */
/* Remove erros técnicos visuais de módulos importados */
.cdx-text-input__input,
.mw-parser-output .scribunto-error,
.vector-search-box-input,
.mw-parser-output strong.error,
input[name="search"] {
.mw-parser-output span.error {
  background: #101827 !important;
   display: none !important;
  color: #f4f7fb !important;
  border-color: #2c374a !important;
}
 
.cdx-text-input__input::placeholder,
.vector-search-box-input::placeholder,
input[name="search"]::placeholder {
  color: #8c9ab0 !important;
}
 
/* Botão pesquisar */
.cdx-button,
.vector-search-box-button,
button.searchButton {
  background: #1b2638 !important;
  color: #ffffff !important;
  border-color: #2c374a !important;
}
 
.cdx-button:hover,
.vector-search-box-button:hover,
button.searchButton:hover {
   background: #26354d !important;
}
}


/* Ajuste mobile */
@media (max-width: 900px) {
@media (max-width: 800px) {
   .mw-logo {
   .mw-logo,
     min-width: 155px !important;
  .vector-header-start .mw-logo {
     width: 155px !important;
     min-width: 210px !important;
     height: 46px !important;
     width: 210px !important;
     height: 58px !important;
   }
   }


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


   .vector-column-start,
   .infobox {
  .vector-main-menu-landmark {
    float: none !important;
     position: static !important;
     width: 100% !important;
     max-height: none !important;
     margin: 0 0 1em 0 !important;
   }
   }
}
}


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