Diferencia entre revisiones de «MediaWiki:Common.css»

De Amereida
Línea 61: Línea 61:
 
   float: right;
 
   float: right;
 
   max-width: 320px;
 
   max-width: 320px;
   background-color: #EFEFE1;
+
   background-color: #ffffff;
 
   font-size: 80%;
 
   font-size: 80%;
 
   margin: 0 0 2em 2em;
 
   margin: 0 0 2em 2em;

Revisión del 18:27 27 jun 2025

/* === LAYOUT GENERAL === */
.page-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.main-content {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* === SUBDIVISIONES MULTICOLUMNA === */
.columns {
  columns: 250px;
  column-gap: 20px;
}

.columns-sm {
  columns: 110px;
  column-gap: 20px;
}

/* Para que los elementos dentro de .columns no se corten */
.columns > * {
  break-inside: avoid;
  margin-bottom: 1.5em;
}

/* === LATERAL DE LOGOS === */
.side-content {
  position: sticky;
  top: 20px;
  width: 140px;
  flex-shrink: 0;
}

.logos-flotantes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logo-container {
  background: #ffffff;
  padding: 0.5em;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logo {
  max-width: 100%;
  height: auto;
}

/* === FICHAS Y FLOTANTES INTERNOS === */
div.thumb-text {
  float: right;
  max-width: 320px;
  background-color: #ffffff;
  font-size: 80%;
  margin: 0 0 2em 2em;
  padding: 0 1em 2em 1em;
  line-height: 120%;
  break-inside: avoid;
  box-sizing: border-box;
}

div.thumb-text .key,
div.thumb-text .value {
  display: table-cell;
  padding: 0.3ex 1ex;
  vertical-align: top;
}

div.thumb-text .img img {
  border-radius: 3px;
}

div.thumb-text .title {
  font-family: Alegreya, "Times New Roman", Times, serif;
  font-size: 110%;
  text-align: center;
  padding: 1em 0;
}

/* === PREVENCIÓN DE CONFLICTOS CON FLOATS INDESEADOS === */
.main-content img[align="right"],
.main-content .floatright,
.main-content .thumb.tright {
  float: none !important;
  display: block;
  margin: 1em auto;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .page-container {
    flex-direction: column;
  }

  .main-content {
    width: 100%;
    max-width: 100%;
    padding: 1em;
    box-sizing: border-box;
  }

  .side-content {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background-color: #f9f9f9;
    padding: 1em 0;
  }

  div.thumb-text {
    float: none !important;
    max-width: 100% !important;
    margin: 0 0 2em 0 !important;
  }

  .columns,
  .columns-sm {
    column-count: 1 !important;
    column-gap: 0 !important;
  }
}

/* === TRANSICIONES SUAVES === */
.side-content,
.logos-flotantes,
.logo {
  transition: all 0.3s ease;
}