Ir para o conteúdo

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

De Wiki TokuDrive
Home inspirada no Fandom + novo visual
Corrigindo logo única e infobox estilo wiki
 
(22 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:
/* ==========================================================
  Wiki TokuDrive - Home inspirada no Fandom
  Claro + Escuro
  ========================================================== */


:root {
  --td-bg: #f5f6fb;
  --td-surface: #ffffff;
  --td-card: rgba(255,255,255,.94);
  --td-text: #151722;
  --td-muted: #667089;
  --td-border: rgba(19,24,37,.12);
  --td-link: #1766d8;
  --td-accent: #ff005a;
  --td-accent-2: #ff7a00;
  --td-accent-3: #6d1fff;
  --td-hero1: #ff005c;
  --td-hero2: #9e005d;
  --td-hero3: #29003a;
  --td-shadow: 0 18px 50px rgba(0,0,0,.10);
}
html[data-td-theme="dark"] {
  --td-bg: #080911;
  --td-surface: #10131d;
  --td-card: rgba(18,20,32,.94);
  --td-text: #f4f6fd;
  --td-muted: #abb3c9;
  --td-border: rgba(255,255,255,.10);
  --td-link: #9cc0ff;
  --td-accent: #ff2b76;
  --td-accent-2: #ff9a28;
  --td-accent-3: #8d5dff;
  --td-hero1: #ff005c;
  --td-hero2: #980057;
  --td-hero3: #2a013b;
  --td-shadow: 0 18px 60px rgba(0,0,0,.38);
}


html,
/* === TOKUDRIVE_FIX_LOGO_INFOBOX_BEGIN === */
body {
  background: var(--td-bg) !important;
  color: var(--td-text) !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


body,
/* Corrige topo: mostra apenas a wordmark, sem duplicar logo */
.mw-body,
.mw-logo {
.citizen-body,
  min-width: 190px !important;
#content,
  width: 190px !important;
.citizen-page-container,
  height: 58px !important;
.citizen-body-container {
   display: flex !important;
   background: var(--td-bg) !important;
   align-items: center !important;
   color: var(--td-text) !important;
}
}


a {
.mw-logo-icon {
   color: var(--td-link);
   display: none !important;
}
}


a:visited {
.mw-logo-wordmark {
   color: var(--td-link);
  width: 170px !important;
   height: 50px !important;
  max-width: 170px !important;
  max-height: 50px !important;
  object-fit: contain !important;
  object-position: left center !important;
}
}


.mw-parser-output h1,
.mw-logo-tagline {
.mw-parser-output h2,
   display: none !important;
.mw-parser-output h3,
.mw-parser-output h4 {
   color: var(--td-text);
  border-color: var(--td-border);
}
}


.mw-parser-output > p,
/* Infobox igual wiki: à direita, com borda e cabeçalho */
.mw-parser-output li {
.infobox {
   font-size: 16px;
  float: right !important;
   line-height: 1.72;
  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;
}
}


.toc,
.infobox th,
#toc,
.infobox td {
.catlinks,
   vertical-align: top !important;
.thumbinner,
   padding: 4px 6px !important;
.infobox,
   color: #202122 !important;
.wikitable {
   background: var(--td-card) !important;
   color: var(--td-text) !important;
   border: 1px solid var(--td-border) !important;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
}


.wikitable th,
.infobox th {
.infobox th {
   background: rgba(127,127,127,.12) !important;
   background: #eaecf0 !important;
   color: var(--td-text) !important;
   text-align: center !important;
  font-weight: bold !important;
}
}


.wikitable td,
.infobox .infobox-above,
.wikitable th {
.infobox .infobox-title {
   border: 1px solid var(--td-border) !important;
   background: #ccccff !important;
  text-align: center !important;
  font-size: 125% !important;
  font-weight: bold !important;
}
}


.td-sourcebox {
.infobox .td-infobox-image,
  border: 1px solid rgba(255,0,92,.30);
.infobox .infobox-image {
  background: rgba(255,0,92,.08);
   text-align: center !important;
   color: var(--td-text);
   background: #f8f9fa !important;
  padding: 12px 14px;
  margin: 14px 0 22px;
  border-radius: 14px;
   font-size: 13px;
}
}


#td-theme-toggle {
.infobox img {
   position: fixed;
   max-width: 220px !important;
  right: 22px;
   height: auto !important;
  bottom: 20px;
  z-index: 99999;
  border: 1px solid var(--td-border);
  background: var(--td-card);
  color: var(--td-text);
  box-shadow: var(--td-shadow);
   border-radius: 999px;
  padding: 11px 16px;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(14px);
}
}


/* ==========================================================
/* Tabelas padrão wiki */
  HOME
.wikitable {
  ========================================================== */
   background: #f8f9fa !important;
 
  color: #202122 !important;
.td-home {
  border: 1px solid #a2a9b1 !important;
   max-width: 1490px;
  border-collapse: collapse !important;
   margin: 0 auto;
   margin: 1em 0 !important;
}
}


.td-fandom-hero {
.wikitable th {
  position: relative;
   background: #eaecf0 !important;
  overflow: hidden;
   font-weight: bold !important;
  border-radius: 0 0 24px 24px;
  min-height: 540px;
  padding: 42px 40px 34px;
  margin: -10px auto 0;
   background:
    radial-gradient(circle at top left, rgba(255,255,255,.10), transparent 32%),
    radial-gradient(circle at 15% 68%, rgba(255,255,255,.06) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 18%, rgba(255,255,255,.12) 0 3px, transparent 4px),
    linear-gradient(135deg, var(--td-hero1) 0%, var(--td-hero2) 48%, var(--td-hero3) 100%);
   box-shadow: var(--td-shadow);
}
}


.td-fandom-hero::before {
.wikitable th,
   content: "";
.wikitable td {
   position: absolute;
   border: 1px solid #a2a9b1 !important;
  inset: 0;
   padding: 0.35em 0.55em !important;
  background:
    radial-gradient(circle at 8% 14%, #ffd400 0 7px, transparent 8px),
    radial-gradient(circle at 20% 74%, #31004a 0 7px, transparent 8px),
    radial-gradient(circle at 86% 12%, #7de7ff 0 7px, transparent 8px),
    radial-gradient(circle at 93% 72%, #ff0062 0 6px, transparent 7px),
    radial-gradient(circle at 82% 52%, #ffd400 0 7px, transparent 8px);
  opacity: .95;
  pointer-events: none;
}
}


.td-fandom-hero::after {
/* Remove aviso antigo de importação */
   content: "";
.td-sourcebox {
  position: absolute;
   display: none !important;
  inset: 0;
  background:
    radial-gradient(circle at 94% 28%, rgba(0,0,0,.22) 0, rgba(0,0,0,.22) 1px, transparent 1px),
    radial-gradient(circle at 0% 100%, rgba(255,255,255,.14) 0, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 8px 8px, 8px 8px;
  background-position: right top, left bottom;
  opacity: .22;
  pointer-events: none;
}
}


.td-hero-inner {
/* Remove erros técnicos visuais de módulos importados */
   position: relative;
.mw-parser-output .scribunto-error,
  z-index: 2;
.mw-parser-output strong.error,
.mw-parser-output span.error {
   display: none !important;
}
}


.td-brand {
@media (max-width: 900px) {
   text-align: center;
   .mw-logo {
  color: #fff;
    min-width: 155px !important;
  margin: 24px 0 18px;
    width: 155px !important;
}
    height: 46px !important;
 
   }
.td-brand-top {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
   margin-bottom: 12px;
}


.td-brand-title {
   .mw-logo-wordmark {
   font-size: clamp(48px, 10vw, 98px);
    width: 145px !important;
  line-height: .95;
     height: 42px !important;
  font-weight: 1000;
    max-width: 145px !important;
  letter-spacing: -.06em;
    max-height: 42px !important;
  margin-bottom: 12px;
}
 
.td-brand-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: rgba(255,255,255,.88);
  max-width: 900px;
  margin: 0 auto 22px;
  line-height: 1.5;
}
 
.td-search-wrap {
  max-width: 800px;
  margin: 0 auto 28px;
}
 
.td-search-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none !important;
  color: #fff !important;
  font-size: 18px;
  font-weight: 900;
  background: rgba(41,0,58,.72);
  border: 3px solid rgba(255,255,255,.76);
  box-shadow: 0 16px 30px rgba(0,0,0,.18);
}
 
.td-search-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.14);
}
 
.td-featured-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
 
.td-featured-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 258px;
  background: linear-gradient(180deg, rgba(51,0,68,.35), rgba(33,0,51,.95));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 34px rgba(0,0,0,.15);
}
 
.td-featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 40%),
     radial-gradient(circle at 120% -10%, rgba(255,255,255,.18), transparent 36%);
  pointer-events: none;
}
 
.td-featured-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 14px 18px;
  color: #fff;
}
 
.td-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  background: #ff005a;
  margin-bottom: 10px;
}
 
.td-featured-title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 950;
}
 
.td-featured-card a {
  color: #fff !important;
  text-decoration: none !important;
}
 
.td-featured-card a:hover {
  text-decoration: underline !important;
}
 
.td-bottom-zone {
  background: linear-gradient(180deg, #24002f 0%, #17001f 100%);
  color: #fff;
  padding: 28px 28px 20px;
  margin-top: 0;
  border-top: 6px solid #ff0c6a;
}
 
.td-bottom-grid {
  display: grid;
  grid-template-columns: 220px repeat(4, 1fr) 220px;
  gap: 26px;
  align-items: start;
}
 
.td-main-wikis-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  border-radius: 0;
  background: #ffd000;
  color: #23002f;
  font-size: 18px;
  font-weight: 1000;
  text-transform: uppercase;
  text-align: center;
  padding: 14px;
}
 
.td-col-title {
  color: #ffd000;
  font-size: 14px;
  font-weight: 1000;
  text-transform: uppercase;
  margin-bottom: 10px;
}
 
.td-bottom-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
 
.td-bottom-grid li {
  margin: 8px 0;
}
 
.td-bottom-grid a {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
}
 
.td-bottom-grid a:hover {
  text-decoration: underline !important;
}
 
.td-more-box {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}
 
.td-more-arrow {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 0;
  margin-top: 16px;
  align-items: center;
  justify-content: center;
  background: #ffd000;
  color: #21002d !important;
  font-size: 24px;
  font-weight: 1000;
  text-decoration: none !important;
}
 
.td-panel-row {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  margin-top: 18px;
}
 
.td-panel {
  border-radius: 20px;
  background: var(--td-card);
  border: 1px solid var(--td-border);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  padding: 22px;
}
 
.td-panel h2 {
  margin-top: 0 !important;
  border: 0 !important;
  padding-top: 0 !important;
  font-size: 24px;
  font-weight: 1000;
}
 
.td-panel-list {
  display: grid;
  gap: 10px;
}
 
.td-panel-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none !important;
  background: rgba(127,127,127,.08);
  font-weight: 900;
}
 
.td-panel-list a:hover {
  background: rgba(255,0,92,.12);
}
 
@media (max-width: 1380px) {
  .td-featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
   }
   }


   .td-bottom-grid {
   .infobox {
     grid-template-columns: 1fr 1fr 1fr;
     float: none !important;
    width: 100% !important;
    margin: 0 0 1em 0 !important;
   }
   }
}
}


@media (max-width: 860px) {
/* === TOKUDRIVE_FIX_LOGO_INFOBOX_END === */
  .td-featured-grid,
  .td-bottom-grid,
  .td-panel-row {
    grid-template-columns: 1fr;
  }
 
  .td-fandom-hero {
    padding: 28px 18px 24px;
    min-height: auto;
    border-radius: 0 0 18px 18px;
  }
 
  .td-search-link {
    min-height: 56px;
    font-size: 16px;
    padding: 0 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 === */