Ir para o conteúdo

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

De Wiki TokuDrive
Estilo visual da Wiki TokuDrive
 
Corrigindo logo única e infobox estilo wiki
 
(26 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:
body {
 
   background: #0b0d12;
 
/* === 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-body, .citizen-body {
.mw-logo-wordmark {
   background: transparent;
   width: 170px !important;
  height: 50px !important;
  max-width: 170px !important;
  max-height: 50px !important;
  object-fit: contain !important;
  object-position: left center !important;
}
}


.td-hero {
.mw-logo-tagline {
   border-radius: 24px;
   display: none !important;
  padding: 34px;
  margin: 10px 0 24px;
  background:
    radial-gradient(circle at top left, rgba(229, 9, 20, .35), transparent 34%),
    linear-gradient(135deg, #141824, #07090f 65%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
}


.td-hero-kicker {
/* Infobox igual wiki: à direita, com borda e cabeçalho */
   text-transform: uppercase;
.infobox {
   letter-spacing: .12em;
   float: right !important;
   font-size: 12px;
  clear: right !important;
   font-weight: 800;
  width: 22em !important;
   color: #ff4050;
  margin: 0 0 1em 1em !important;
   margin-bottom: 10px;
   background: #f8f9fa !important;
   border: 1px solid #a2a9b1 !important;
   border-spacing: 3px !important;
   color: #202122 !important;
   font-size: 88% !important;
  line-height: 1.5em !important;
}
}


.td-hero-title {
.infobox th,
   font-size: clamp(36px, 6vw, 72px);
.infobox td {
   line-height: 1;
   vertical-align: top !important;
  font-weight: 900;
   padding: 4px 6px !important;
   color: #fff;
   color: #202122 !important;
  margin-bottom: 14px;
}
}


.td-hero-text {
.infobox th {
   color: rgba(255,255,255,.82);
   background: #eaecf0 !important;
   max-width: 880px;
   text-align: center !important;
   font-size: 18px;
   font-weight: bold !important;
}
}


.td-grid {
.infobox .infobox-above,
   display: grid;
.infobox .infobox-title {
   grid-template-columns: repeat(4, minmax(0, 1fr));
   background: #ccccff !important;
   gap: 16px;
   text-align: center !important;
   margin: 20px 0 32px;
   font-size: 125% !important;
   font-weight: bold !important;
}
}


.td-card {
.infobox .td-infobox-image,
   border-radius: 18px;
.infobox .infobox-image {
  padding: 20px;
   text-align: center !important;
   background: rgba(255,255,255,.055);
   background: #f8f9fa !important;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .2s ease, background .2s ease;
}
}


.td-card:hover {
.infobox img {
   transform: translateY(-3px);
   max-width: 220px !important;
   background: rgba(255,255,255,.085);
   height: auto !important;
}
}


.td-card-title {
/* Tabelas padrão wiki */
   color: #fff;
.wikitable {
   font-size: 20px;
  background: #f8f9fa !important;
   font-weight: 900;
   color: #202122 !important;
   margin-bottom: 8px;
   border: 1px solid #a2a9b1 !important;
   border-collapse: collapse !important;
   margin: 1em 0 !important;
}
}


.td-card-text {
.wikitable th {
   color: rgba(255,255,255,.72);
   background: #eaecf0 !important;
   margin-bottom: 14px;
   font-weight: bold !important;
}
}


.td-card-link a {
.wikitable th,
   font-weight: 800;
.wikitable td {
   color: #ff4050;
   border: 1px solid #a2a9b1 !important;
   padding: 0.35em 0.55em !important;
}
}


/* Remove aviso antigo de importação */
.td-sourcebox {
.td-sourcebox {
   border-radius: 14px;
   display: none !important;
  padding: 14px 16px;
}
  margin: 14px 0 22px;
 
  background: rgba(255, 193, 7, .12);
/* Remove erros técnicos visuais de módulos importados */
   border: 1px solid rgba(255, 193, 7, .35);
.mw-parser-output .scribunto-error,
.mw-parser-output strong.error,
.mw-parser-output span.error {
   display: none !important;
}
}


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


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


@media (max-width: 560px) {
   .infobox {
   .td-grid {
     float: none !important;
     grid-template-columns: 1fr;
    width: 100% !important;
    margin: 0 0 1em 0 !important;
   }
   }
}


  .td-hero-text {
/* === TOKUDRIVE_FIX_LOGO_INFOBOX_END === */
    font-size: 16px;
  }
}

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