Diferencia entre revisiones de «MediaWiki:Common.css»
De Amereida
| Línea 13: | Línea 13: | ||
} | } | ||
| − | /* | + | /* === SUBDIVISIONES MULTICOLUMNA === */ |
.columns { | .columns { | ||
columns: 250px; | columns: 250px; | ||
column-gap: 20px; | column-gap: 20px; | ||
| − | |||
} | } | ||
| Línea 23: | Línea 22: | ||
columns: 110px; | columns: 110px; | ||
column-gap: 20px; | column-gap: 20px; | ||
| + | } | ||
| + | |||
| + | /* Para que los elementos dentro de .columns no se corten */ | ||
| + | .columns > * { | ||
break-inside: avoid; | break-inside: avoid; | ||
| + | margin-bottom: 1.5em; | ||
} | } | ||
| Línea 45: | Línea 49: | ||
border-radius: 4px; | border-radius: 4px; | ||
text-align: center; | text-align: center; | ||
| − | box-shadow: 0 1px 3px rgba(0,0,0,0.1); | + | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); |
} | } | ||
| Línea 54: | Línea 58: | ||
/* === FICHAS Y FLOTANTES INTERNOS === */ | /* === FICHAS Y FLOTANTES INTERNOS === */ | ||
| − | |||
div.thumb-text { | div.thumb-text { | ||
float: right; | float: right; | ||
| Línea 64: | Línea 67: | ||
line-height: 120%; | line-height: 120%; | ||
break-inside: avoid; | break-inside: avoid; | ||
| + | box-sizing: border-box; | ||
} | } | ||
| Línea 69: | Línea 73: | ||
div.thumb-text .value { | div.thumb-text .value { | ||
display: table-cell; | display: table-cell; | ||
| − | padding: .3ex 1ex; | + | padding: 0.3ex 1ex; |
vertical-align: top; | vertical-align: top; | ||
} | } | ||
| Línea 78: | Línea 82: | ||
div.thumb-text .title { | div.thumb-text .title { | ||
| − | font-family: Alegreya; | + | font-family: Alegreya, "Times New Roman", Times, serif; |
font-size: 110%; | font-size: 110%; | ||
text-align: center; | text-align: center; | ||
padding: 1em 0; | 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; | ||
} | } | ||
| Línea 116: | Línea 129: | ||
.columns, | .columns, | ||
.columns-sm { | .columns-sm { | ||
| − | + | column-count: 1 !important; | |
| − | column- | + | column-gap: 0 !important; |
} | } | ||
} | } | ||
| − | /* === TRANSICIONES === */ | + | /* === TRANSICIONES SUAVES === */ |
.side-content, | .side-content, | ||
.logos-flotantes, | .logos-flotantes, | ||
Revisión del 18:19 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: #f7f7f7;
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: #EFEFE1;
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;
}