Diferencia entre revisiones de «MediaWiki:Common.css»

De Amereida
 
(No se muestran 11 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
/* ----- Pantallas pequeñas ----- */
+
/* === 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 === */
 +
/* Grilla general */
 +
.grid {
 +
  display: grid;
 +
  grid-gap: 1.5em; /* Espaciado uniforme entre filas y columnas */
 +
  grid-template-columns: repeat(2, 1fr); /* Dos columnas por defecto */
 +
}
 +
 
 +
.cols-2 { grid-template-columns: 1fr 1fr; }
 +
.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
 +
.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
 +
.cols-5 { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; }
 +
.cols-6 { grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; }
 +
 
 +
@media (max-width: 600px) {
 +
  .grid {
 +
      grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
 +
  }
 +
}
 +
 
 +
/* Para que los elementos dentro de .columns no se corten */
 +
.grid > * {
 +
  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;
 +
  border-style: none;
 +
  text-align: center;
 +
}
 +
 
 +
.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) {
 
@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: #FFFFFF;
 +
    padding: 1em 0;
 +
  }
 +
 
   div.thumb-text {
 
   div.thumb-text {
 
     float: none !important;
 
     float: none !important;
Línea 7: Línea 136:
 
   }
 
   }
  
   div.footerwrap > div.container {
+
  .columns,
 +
  .columns-sm {
 +
    column-count: 1 !important;
 +
    column-gap: 0 !important;
 +
  }
 +
}
 +
 
 +
/* === TRANSICIONES SUAVES === */
 +
.side-content,
 +
.logos-flotantes,
 +
.logo {
 +
  transition: all 0.3s ease;
 +
}
 +
 
 +
/* Pantallas pequeñas */
 +
@media (max-width: 768px){
 +
  div.thumb-text{
 +
    float: none !important;
 +
    max-width: 100% !important;
 +
    margin: 0 0 2em 0 !important;
 +
  }
 +
   div.footerwrap > div.container{
 
     margin: 0 2em !important;
 
     margin: 0 2em !important;
 
   }
 
   }
 
+
   .smwofooterrow nav.navbar ul.navbar-nav{
   .smwofooterrow nav.navbar ul.navbar-nav {
+
     text-align: center !important;  
     text-align: center !important;
 
 
   }
 
   }
 
 
   .smwofooterrow .nav > li,
 
   .smwofooterrow .nav > li,
   .smwofooterrow .nav > li > a {
+
   .smwofooterrow .nav > li > a{
     display: inline-block !important;
+
     display: inline-block !important;  
 
   }
 
   }
 
}
 
}
  
/* ----- Configuración de ancho de páginas ----- */
+
/* Ancho de las páginas */
.mw-body {
+
 
  max-width: 80em; /* Aumentado para mayor flexibilidad */
+
.mw-body{
  margin: 0 auto; /* Centrar la página */
+
    max-width: 52em;
 +
    margin: 0 auto;
 
}
 
}
  
/* ----- Títulos de páginas ----- */
+
/* Títulos de páginas */
.firstHeading {
+
 
  font-size: 12px;
+
.firstHeading{
  font-family: "Alegreya Sans";
+
  font-size: 12px;
  letter-spacing: 0.24ex;
+
  font-family: "Alegreya Sans";
  text-transform: uppercase;
+
  letter-spacing: .24ex;
  font-weight: 600;
+
  text-transform: uppercase;
 +
  font-weight: 600;
 
}
 
}
  
/* ----- Formato de poemas ----- */
+
.poem{
.poem {
+
  white-space: pre-wrap;  
  white-space: pre-wrap;
 
 
}
 
}
  
.poem p {
+
.poem p{
  font: 18px/24px Alegreya, "Times New Roman", Times, serif;
+
  font: 18px/24px Alegreya,"Times New Roman", Times, serif;
  margin: 0;
+
  margin: 0;
 
}
 
}
  
.poem br {
+
.poem br{display: none}
  display: none;
+
.rounded{border-radius:4px}
 +
 
 +
.note{
 +
    font-size: 75%;
 +
    margin: 1em 1em 1em 35%;
 +
    border: 1px solid #EEE;
 +
    border-radius: 4px;
 +
    padding: 2em;
 
}
 
}
  
/* ----- Notas y avisos ----- */
+
/* Ajuste de formularios cabeceras de campos en formularios */
.note {
+
 
  font-size: 75%;
+
table.formtable tr {
  margin: 1em auto;
+
  border-bottom: 2ex solid transparent;
  border: 1px solid #eee;
+
}
  border-radius: 4px;
+
table.formtable tr th{
  padding: 2em;
+
  text-align: right;
  max-width: 50%;
+
  padding-right: 1ex;
 +
}
 +
 
 +
label.checkboxLabel {
 +
    font-weight: normal;
 +
    margin-right: 1em;
 +
}
 +
 
 +
.pfAddressInput,
 +
.pfCoordsInput,
 +
.pfLookUpAddress,
 +
.pfUploadable{
 +
  padding: 4px 8px;
 +
  border: 1px solid rgb(187,187,187);
 +
  border-radius: 4px;
 +
}
 +
 
 +
/* licencias para archivos */
 +
 
 +
.licence{
 +
  padding: 1em 2ex;
 +
  border: 1px solid #EEE;
 +
  border-radius: 1ex;
 +
  font-size: 75%;
 +
  line-height: 120%;
 +
}
 +
 
 +
.licence .image{
 +
  float: left;
 +
  display: inline-block;
 +
  margin-right: 1em;
 
}
 
}
  
/* ----- Ajustes de formularios ----- */
+
.clearfix {overflow: auto;}
table.formtable tr {
+
.clearfix::after{
  border-bottom: 2ex solid transparent;
+
    content: "";
 +
    clear: both;
 +
    display: table;
 
}
 
}
  
table.formtable tr th {
+
/* color de enlaces a páginas inexistentes */
  text-align: right;
+
 
  padding-right: 1ex;
+
a.new:link, a.new:hover, a.new:visited{
 +
  color: #666;
 
}
 
}
  
label.checkboxLabel {
+
/* ficha de textos */
  font-weight: normal;
+
 
  margin-right: 1em;
+
div.thumb-text{
 +
  float: right;
 +
  max-width: 320px;
 +
  background-color: #EFEFE1;
 +
  font-size: 80%;
 +
  margin: 0 0 2em 2em;
 +
  padding: 0 1em 2em 1em;
 +
  line-height: 120%;
 +
  break-inside: avoid
 
}
 
}
  
/* ----- Licencias para archivos ----- */
+
div.thumb-text .key{
.licence {
+
  text-align: right;
  padding: 1em 2ex;
+
  min-width: 80px;
  border: 1px solid #eee;
+
  font-weight: bold;
  border-radius: 1ex;
 
  font-size: 75%;
 
  line-height: 120%;
 
 
}
 
}
  
.licence .image {
+
div.thumb-text div.img{
  float: left;
+
  padding: 0;
  margin-right: 1em;
+
  text-align: center;
 +
  margin-bottom: 2ex;
 
}
 
}
  
/* ----- Ajustes de enlaces ----- */
+
div.thumb-text div.img img{border-radius:3px}
a.new:link,
+
 
a.new:hover,
+
div.thumb-text div.title{
a.new:visited {
+
  font-family: Alegreya;
  color: #666;
+
  font-size: 110%;
 +
  text-align: center;
 +
  vertical-align: text-bottom;
 +
  padding: 1em 0 1em 0;
 
}
 
}
 +
/* resultados multicolumna */
  
/* ----- Estilos para "Logos Flotantes" ----- */
+
.columns{
.page-container {
+
  box-sizing: border-box;
  display: flex;
+
  columns: 250px;
  align-items: flex-start;
+
  column-gap: 20px;
  gap: 16px; /* Espaciado constante entre contenido principal y barra lateral */
 
 
}
 
}
  
.main-content {
+
.columns-sm{
  flex: 1;
+
  box-sizing: border-box;
  max-width: 800px; /* Limitar el ancho máximo del contenido principal */
+
  columns: 110px;
  margin: 0 auto; /* Centrar en pantallas grandes y pequeñas */
+
  column-gap: 20px;
 
}
 
}
  
.side-content {
+
/* ficha de acontecer */
  position: sticky;
+
 
  top: 20px;
+
.event,
  width: 120px; /* Ancho fijo para la barra lateral */
+
.thumb-event{
 +
  background-color: #EFEFE1;
 +
  border-radius: 4px;
 +
  padding: 8px;
 +
  margin-bottom: 2em;
 +
  break-inside: avoid;
 +
}
 +
.thumb-event .text{padding: 8px;}
 +
.event .title,
 +
.thumb-event .text .title{
 +
    display: inherit;
 +
    text-transform: uppercase;
 +
    font-weight: 800;
 +
    line-height: 100%;
 +
}
 +
.thumb-event .text .date{
 +
    margin-top: -5px;
 +
    display: inherit;
 +
    font-style: italic;
 +
    font-weight: 100;
 
}
 
}
  
.logos-flotantes {
+
.thumb-event .text .excerpt{
  display: flex;
+
  font-size: 80%;
  flex-direction: column;
+
  line-height: 100%;
  gap: 8px; /* Espaciado entre logos */
 
 
}
 
}
  
.logo-container {
+
div.thumb-text .key,
  display: block;
+
div.thumb-text .value{
 +
  display: table-cell;
 +
  padding: .3ex 1ex;
 +
  vertical-align: top;
 
}
 
}
  
.logo {
+
.event .leyend{padding: 12px;}
  max-width: 100%; /* Ajustar al ancho del contenedor */
+
 
  height: auto; /* Mantener proporciones */
+
.nota{
 +
  width: 50%;
 +
  float:right;
 +
  font-size: 75%;
 +
  padding: 1em;
 +
  margin: 0 0 1em 1em;
 +
  background-colo: #EEE;
 
}
 
}
  
/* ----- Responsividad para pantallas pequeñas ----- */
 
@media (max-width: 768px) {
 
  .page-container {
 
    flex-direction: column; /* Todo en una sola columna */
 
  }
 
  
  .main-content {
+
/* ficha obra */
    width: 100%; /* Ocupar todo el ancho disponible */
+
 
    max-width: 100%; /* Eliminar límites de ancho */
+
.obra{
    padding: 1em; /* Agregar espacio alrededor del contenido */
+
  background-color: #EFEFE1;
    box-sizing: border-box; /* Incluir padding en el ancho total */
+
  border-radius: 4px;
  }
+
  padding: 8px;
 +
  margin-bottom: 2em;
 +
}
  
  .side-content {
+
/* ficha documento */
    position: relative; /* No fijo */
 
    width: 100%; /* Ocupar todo el ancho */
 
    padding: 1em 0; /* Espaciado vertical */
 
    display: flex;
 
    flex-direction: column; /* Organizar contenido en columna */
 
    align-items: center; /* Centrar los elementos horizontalmente */
 
    gap: 12px; /* Espaciado entre logos */
 
    background-color: #f9f9f9; /* Fondo sutil para distinguir */
 
  }
 
  
  .logos-flotantes {
+
.thumb-doc > .text{
     flex-direction: column; /* Asegurar que los logos estén en columna */
+
  text-align:center;
     gap: 8px; /* Espaciado entre elementos */
+
}
  }
+
.thumb-doc > .text > .title{
 +
     display: block;
 +
    line-height: 111%;
 +
     font-family: Alegreya;
 +
    font-size: 80%;
 +
}
  
  .logo-container {
+
.thumb-doc > .text > .title > a{
     margin: 0 auto; /* Centrar cada logo */
+
     display: block;
  }
+
    border-radius: 3px;
 +
    padding: 1ex;
 +
}
  
  .logo {
+
.thumb-doc > .text > .title > a:hover{
     width: 64px; /* Tamaño consistente */
+
     background-color: #EFEFE1;
     height: auto; /* Mantener proporciones */
+
     text-decoration: none;
    object-fit: contain; /* Ajustar la imagen sin deformar */
 
  }
 
 
}
 
}
  
/* ----- Transiciones suaves ----- */
+
/* Image Uploader Wizard fix */
.side-content,
+
 
.logos-flotantes,
+
#mwe-upwiz-steps li {
.logo {
+
    list-style-image: none;
  transition: all 0.3s ease; /* Suaviza cambios entre estados */
+
    list-style-type: none;
 
}
 
}

Revisión actual del 14:35 1 jul 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 === */
/* Grilla general */
.grid {
   display: grid;
   grid-gap: 1.5em; /* Espaciado uniforme entre filas y columnas */
   grid-template-columns: repeat(2, 1fr); /* Dos columnas por defecto */
}

.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.cols-5 { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; }
.cols-6 { grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; }

@media (max-width: 600px) {
   .grid {
      grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
   }
}

/* Para que los elementos dentro de .columns no se corten */
.grid > * {
  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;
  border-style: none;
  text-align: center;
}

.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: #FFFFFF;
    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;
}

/* Pantallas pequeñas */
@media (max-width: 768px){
  div.thumb-text{
    float: none !important;
    max-width: 100% !important;
    margin: 0 0 2em 0 !important;
  }
  div.footerwrap > div.container{
    margin: 0 2em !important;
  }
  .smwofooterrow nav.navbar ul.navbar-nav{
    text-align: center !important; 
  }
  .smwofooterrow .nav > li,
  .smwofooterrow .nav > li > a{
    display: inline-block !important; 
  }
}

/* Ancho de las páginas */

.mw-body{
    max-width: 52em;
    margin: 0 auto;
}

/* Títulos de páginas */

.firstHeading{
   font-size: 12px;
   font-family: "Alegreya Sans";
   letter-spacing: .24ex;
   text-transform: uppercase;
   font-weight: 600;
}

.poem{
   white-space: pre-wrap;   
}

.poem p{
   font: 18px/24px Alegreya,"Times New Roman", Times, serif;
   margin: 0;
}

.poem br{display: none}
.rounded{border-radius:4px}

.note{
    font-size: 75%;
    margin: 1em 1em 1em 35%;
    border: 1px solid #EEE;
    border-radius: 4px;
    padding: 2em;
}

/* Ajuste de formularios cabeceras de campos en formularios */

table.formtable tr {
   border-bottom: 2ex solid transparent;
}
table.formtable tr th{
   text-align: right;
   padding-right: 1ex;
}

label.checkboxLabel {
    font-weight: normal;
    margin-right: 1em;
}

.pfAddressInput,
.pfCoordsInput,
.pfLookUpAddress,
.pfUploadable{
   padding: 4px 8px;
   border: 1px solid rgb(187,187,187);
   border-radius: 4px;
}

/* licencias para archivos */

.licence{
   padding: 1em 2ex;
   border: 1px solid #EEE;
   border-radius: 1ex;
   font-size: 75%;
   line-height: 120%;
}

.licence .image{
   float: left;
   display: inline-block;
   margin-right: 1em;
}

.clearfix {overflow: auto;}
.clearfix::after{
    content: "";
    clear: both;
    display: table;
}

/* color de enlaces a páginas inexistentes */

a.new:link, a.new:hover, a.new:visited{
   color: #666;
}

/* ficha de textos */

div.thumb-text{
   float: right;
   max-width: 320px;
   background-color: #EFEFE1;
   font-size: 80%;
   margin: 0 0 2em 2em;
   padding: 0 1em 2em 1em;
   line-height: 120%;
   break-inside: avoid
}

div.thumb-text .key{
   text-align: right;
   min-width: 80px;
   font-weight: bold;
}

div.thumb-text div.img{
   padding: 0;
   text-align: center;
   margin-bottom: 2ex;
}

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

div.thumb-text div.title{
   font-family: Alegreya;
   font-size: 110%;
   text-align: center;
   vertical-align: text-bottom;
   padding: 1em 0 1em 0;
}
/* resultados multicolumna */

.columns{
   box-sizing: border-box;
   columns: 250px;
   column-gap: 20px;
}

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

/* ficha de acontecer */

.event,
.thumb-event{
   background-color: #EFEFE1;
   border-radius: 4px;
   padding: 8px;
   margin-bottom: 2em;
   break-inside: avoid;
}
.thumb-event .text{padding: 8px;}
.event .title,
.thumb-event .text .title{
    display: inherit;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 100%;
}
.thumb-event .text .date{
    margin-top: -5px;
    display: inherit;
    font-style: italic;
    font-weight: 100;
}

.thumb-event .text .excerpt{
   font-size: 80%;
   line-height: 100%;
}

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

.event .leyend{padding: 12px;}

.nota{
   width: 50%;
   float:right;
   font-size: 75%;
   padding: 1em;
   margin: 0 0 1em 1em;
   background-colo: #EEE;
}


/* ficha obra */

.obra{
   background-color: #EFEFE1;
   border-radius: 4px;
   padding: 8px;
   margin-bottom: 2em;
}

/* ficha documento */

.thumb-doc > .text{
   text-align:center;
}
.thumb-doc > .text > .title{
    display: block;
    line-height: 111%;
    font-family: Alegreya;
    font-size: 80%;
}

.thumb-doc > .text > .title > a{
    display: block;
    border-radius: 3px;
    padding: 1ex;
}

.thumb-doc > .text > .title > a:hover{
    background-color: #EFEFE1;
    text-decoration: none;
}

/* Image Uploader Wizard fix */

#mwe-upwiz-steps li {
    list-style-image: none;
    list-style-type: none;
}