Diferencia entre revisiones de «MediaWiki:Common.css»
De Amereida
| Línea 1: | Línea 1: | ||
| − | /* | + | /* === LAYOUT GENERAL === */ |
| − | + | .page-container { | |
| − | + | display: flex; | |
| − | + | align-items: flex-start; | |
| − | + | gap: 2rem; | |
| − | + | flex-wrap: wrap; | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
| − | + | .main-content { | |
| − | . | + | flex: 1; |
| − | max-width: | + | max-width: 800px; |
| − | margin: 0 auto; | + | margin: 0 auto; |
} | } | ||
| − | /* | + | /* Permite subdivisiones dentro de .main-content */ |
| − | . | + | .columns { |
| − | + | columns: 250px; | |
| − | + | column-gap: 20px; | |
| − | + | break-inside: avoid; | |
| − | |||
| − | |||
} | } | ||
| − | + | .columns-sm { | |
| − | + | columns: 110px; | |
| − | + | column-gap: 20px; | |
| + | break-inside: avoid; | ||
} | } | ||
| − | . | + | /* === LATERAL DE LOGOS === */ |
| − | + | .side-content { | |
| − | + | position: sticky; | |
| + | top: 20px; | ||
| + | width: 140px; | ||
| + | flex-shrink: 0; | ||
} | } | ||
| − | . | + | .logos-flotantes { |
| − | display: | + | display: flex; |
| + | flex-direction: column; | ||
| + | gap: 12px; | ||
} | } | ||
| − | + | .logo-container { | |
| − | + | background: #f7f7f7; | |
| − | + | padding: 0.5em; | |
| − | |||
| − | |||
border-radius: 4px; | 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%; | line-height: 120%; | ||
| + | break-inside: avoid; | ||
} | } | ||
| − | . | + | div.thumb-text .key, |
| − | + | div.thumb-text .value { | |
| − | + | display: table-cell; | |
| + | padding: .3ex 1ex; | ||
| + | vertical-align: top; | ||
} | } | ||
| − | + | div.thumb-text .img img { | |
| − | + | border-radius: 3px; | |
| − | |||
| − | |||
| − | |||
} | } | ||
| − | + | div.thumb-text .title { | |
| − | . | + | font-family: Alegreya; |
| − | + | font-size: 110%; | |
| − | + | text-align: center; | |
| − | + | padding: 1em 0; | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
| − | /* | + | /* === RESPONSIVE === */ |
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.page-container { | .page-container { | ||
| − | flex-direction: column; | + | flex-direction: column; |
} | } | ||
.main-content { | .main-content { | ||
| − | width: 100%; | + | width: 100%; |
| − | max-width: 100%; | + | max-width: 100%; |
| − | padding: 1em; | + | padding: 1em; |
| − | box-sizing: border-box; | + | box-sizing: border-box; |
} | } | ||
.side-content { | .side-content { | ||
| − | position: relative; | + | position: relative; |
| − | width: 100%; | + | width: 100%; |
| − | |||
display: flex; | display: flex; | ||
| − | flex-direction: column; | + | flex-direction: column; |
| − | align-items: center; | + | align-items: center; |
| − | gap: 12px; | + | gap: 12px; |
| − | background-color: #f9f9f9; | + | background-color: #f9f9f9; |
| + | padding: 1em 0; | ||
} | } | ||
| − | . | + | div.thumb-text { |
| − | + | float: none !important; | |
| − | + | max-width: 100% !important; | |
| − | + | margin: 0 0 2em 0 !important; | |
| − | |||
| − | |||
| − | margin: 0 | ||
} | } | ||
| − | . | + | .columns, |
| − | + | .columns-sm { | |
| − | + | columns: auto; | |
| − | + | column-count: 1; | |
} | } | ||
} | } | ||
| − | /* | + | /* === TRANSICIONES === */ |
.side-content, | .side-content, | ||
.logos-flotantes, | .logos-flotantes, | ||
.logo { | .logo { | ||
| − | transition: all 0.3s ease; | + | transition: all 0.3s ease; |
} | } | ||
Revisión del 18:11 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;
}
/* Permite subdivisiones dentro de .main-content */
.columns {
columns: 250px;
column-gap: 20px;
break-inside: avoid;
}
.columns-sm {
columns: 110px;
column-gap: 20px;
break-inside: avoid;
}
/* === 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;
}
div.thumb-text .key,
div.thumb-text .value {
display: table-cell;
padding: .3ex 1ex;
vertical-align: top;
}
div.thumb-text .img img {
border-radius: 3px;
}
div.thumb-text .title {
font-family: Alegreya;
font-size: 110%;
text-align: center;
padding: 1em 0;
}
/* === 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 {
columns: auto;
column-count: 1;
}
}
/* === TRANSICIONES === */
.side-content,
.logos-flotantes,
.logo {
transition: all 0.3s ease;
}