Diferencia entre revisiones de «MediaWiki:Common.css»
De Amereida
| Línea 1: | Línea 1: | ||
| − | /* Pantallas pequeñas */ | + | /* ----- Pantallas pequeñas ----- */ |
| − | @media (max-width: 768px){ | + | @media (max-width: 768px) { |
| − | div.thumb-text{ | + | div.thumb-text { |
float: none !important; | float: none !important; | ||
max-width: 100% !important; | max-width: 100% !important; | ||
margin: 0 0 2em 0 !important; | margin: 0 0 2em 0 !important; | ||
} | } | ||
| − | div.footerwrap > div.container{ | + | |
| + | div.footerwrap > div.container { | ||
margin: 0 2em !important; | margin: 0 2em !important; | ||
} | } | ||
| − | .smwofooterrow nav.navbar ul.navbar-nav{ | + | |
| − | text-align: center !important; | + | .smwofooterrow nav.navbar ul.navbar-nav { |
| + | 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 ----- */ |
| + | .mw-body { | ||
| + | max-width: 80em; /* Aumentado para mayor flexibilidad */ | ||
| + | margin: 0 auto; /* Centrar la página */ | ||
| + | } | ||
| − | . | + | /* ----- Títulos de páginas ----- */ |
| − | + | .firstHeading { | |
| − | + | font-size: 12px; | |
| + | font-family: "Alegreya Sans"; | ||
| + | letter-spacing: 0.24ex; | ||
| + | text-transform: uppercase; | ||
| + | font-weight: 600; | ||
} | } | ||
| − | /* | + | /* ----- Formato de poemas ----- */ |
| − | + | .poem { | |
| − | . | + | white-space: pre-wrap; |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
| − | .poem{ | + | .poem p { |
| − | + | font: 18px/24px Alegreya, "Times New Roman", Times, serif; | |
| + | margin: 0; | ||
} | } | ||
| − | .poem | + | .poem br { |
| − | + | display: none; | |
| − | |||
} | } | ||
| − | + | /* ----- Notas y avisos ----- */ | |
| − | + | .note { | |
| − | + | font-size: 75%; | |
| − | .note{ | + | margin: 1em auto; |
| − | + | border: 1px solid #eee; | |
| − | + | border-radius: 4px; | |
| − | + | padding: 2em; | |
| − | + | max-width: 50%; | |
| − | |||
} | } | ||
| − | /* | + | /* ----- Ajustes de formularios ----- */ |
| − | |||
table.formtable tr { | table.formtable tr { | ||
| − | + | border-bottom: 2ex solid transparent; | |
} | } | ||
| − | table.formtable tr th{ | + | |
| − | + | table.formtable tr th { | |
| − | + | text-align: right; | |
| + | padding-right: 1ex; | ||
} | } | ||
label.checkboxLabel { | label.checkboxLabel { | ||
| − | + | font-weight: normal; | |
| − | + | margin-right: 1em; | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
| − | . | + | /* ----- Licencias para archivos ----- */ |
| − | + | .licence { | |
| − | + | padding: 1em 2ex; | |
| − | + | border: 1px solid #eee; | |
| + | border-radius: 1ex; | ||
| + | font-size: 75%; | ||
| + | line-height: 120%; | ||
} | } | ||
| − | + | .licence .image { | |
| − | + | float: left; | |
| − | + | margin-right: 1em; | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | . | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
| − | + | /* ----- Ajustes de enlaces ----- */ | |
| − | + | a.new:link, | |
| − | + | a.new:hover, | |
| + | a.new:visited { | ||
| + | color: #666; | ||
} | } | ||
| − | + | /* ----- Estilos para "Logos Flotantes" ----- */ | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | /* | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
.page-container { | .page-container { | ||
display: flex; | display: flex; | ||
align-items: flex-start; | align-items: flex-start; | ||
| − | gap: 16px; /* Espaciado constante entre contenido y barra lateral | + | gap: 16px; /* Espaciado constante entre contenido principal y barra lateral */ |
| − | |||
} | } | ||
| Línea 260: | Línea 110: | ||
.side-content { | .side-content { | ||
| − | position: sticky; | + | position: sticky; |
| − | top: 20px; | + | top: 20px; |
width: 120px; /* Ancho fijo para la barra lateral */ | width: 120px; /* Ancho fijo para la barra lateral */ | ||
} | } | ||
| − | |||
.logos-flotantes { | .logos-flotantes { | ||
display: flex; | display: flex; | ||
| − | flex-direction: column; | + | flex-direction: column; |
gap: 8px; /* Espaciado entre logos */ | gap: 8px; /* Espaciado entre logos */ | ||
} | } | ||
| Línea 279: | Línea 128: | ||
max-width: 100%; /* Ajustar al ancho del contenedor */ | max-width: 100%; /* Ajustar al ancho del contenedor */ | ||
height: auto; /* Mantener proporciones */ | height: auto; /* Mantener proporciones */ | ||
| − | |||
} | } | ||
| Línea 289: | Línea 137: | ||
.main-content { | .main-content { | ||
| − | margin-bottom: | + | margin-bottom: 100px; /* Más espacio para acomodar la barra lateral fija */ |
} | } | ||
.side-content { | .side-content { | ||
| − | position: fixed; | + | position: fixed; |
bottom: 0; | bottom: 0; | ||
left: 0; | left: 0; | ||
| − | right: 0; | + | right: 0; |
width: 100%; /* Ocupa todo el ancho */ | width: 100%; /* Ocupa todo el ancho */ | ||
display: flex; | display: flex; | ||
| − | justify-content: space-around; /* | + | justify-content: space-around; /* Distribuir logos uniformemente */ |
| − | padding: 8px 0; | + | padding: 8px 0; |
| − | background-color: #ffffff; | + | background-color: #ffffff; |
| − | z-index: 10; | + | z-index: 10; |
} | } | ||
.logos-flotantes { | .logos-flotantes { | ||
| − | flex-direction: row; /* | + | flex-direction: row; /* Cambiar a orientación horizontal */ |
| − | gap: 8px; | + | gap: 8px; |
} | } | ||
.logo-container { | .logo-container { | ||
| − | margin: 0; | + | margin: 0; |
} | } | ||
.logo { | .logo { | ||
| − | + | width: 48px !important; /* Tamaño fijo para pantallas pequeñas */ | |
| − | height: | + | height: 48px !important; |
| + | object-fit: contain; /* Mantener proporciones dentro del espacio asignado */ | ||
} | } | ||
} | } | ||
| − | /* Transiciones suaves */ | + | /* ----- Transiciones suaves ----- */ |
.side-content, | .side-content, | ||
.logos-flotantes, | .logos-flotantes, | ||
Revisión del 19:10 3 dic 2024
/* ----- 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;
}
}
/* ----- Configuración de ancho de páginas ----- */
.mw-body {
max-width: 80em; /* Aumentado para mayor flexibilidad */
margin: 0 auto; /* Centrar la página */
}
/* ----- Títulos de páginas ----- */
.firstHeading {
font-size: 12px;
font-family: "Alegreya Sans";
letter-spacing: 0.24ex;
text-transform: uppercase;
font-weight: 600;
}
/* ----- Formato de poemas ----- */
.poem {
white-space: pre-wrap;
}
.poem p {
font: 18px/24px Alegreya, "Times New Roman", Times, serif;
margin: 0;
}
.poem br {
display: none;
}
/* ----- Notas y avisos ----- */
.note {
font-size: 75%;
margin: 1em auto;
border: 1px solid #eee;
border-radius: 4px;
padding: 2em;
max-width: 50%;
}
/* ----- Ajustes de 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;
}
/* ----- Licencias para archivos ----- */
.licence {
padding: 1em 2ex;
border: 1px solid #eee;
border-radius: 1ex;
font-size: 75%;
line-height: 120%;
}
.licence .image {
float: left;
margin-right: 1em;
}
/* ----- Ajustes de enlaces ----- */
a.new:link,
a.new:hover,
a.new:visited {
color: #666;
}
/* ----- Estilos para "Logos Flotantes" ----- */
.page-container {
display: flex;
align-items: flex-start;
gap: 16px; /* Espaciado constante entre contenido principal y barra lateral */
}
.main-content {
flex: 1;
max-width: 800px; /* Limitar el ancho máximo del contenido principal */
margin: 0 auto; /* Centrar en pantallas grandes y pequeñas */
}
.side-content {
position: sticky;
top: 20px;
width: 120px; /* Ancho fijo para la barra lateral */
}
.logos-flotantes {
display: flex;
flex-direction: column;
gap: 8px; /* Espaciado entre logos */
}
.logo-container {
display: block;
}
.logo {
max-width: 100%; /* Ajustar al ancho del contenedor */
height: auto; /* Mantener proporciones */
}
/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {
.page-container {
flex-direction: column; /* Apilar contenido principal y barra lateral */
}
.main-content {
margin-bottom: 100px; /* Más espacio para acomodar la barra lateral fija */
}
.side-content {
position: fixed;
bottom: 0;
left: 0;
right: 0;
width: 100%; /* Ocupa todo el ancho */
display: flex;
justify-content: space-around; /* Distribuir logos uniformemente */
padding: 8px 0;
background-color: #ffffff;
z-index: 10;
}
.logos-flotantes {
flex-direction: row; /* Cambiar a orientación horizontal */
gap: 8px;
}
.logo-container {
margin: 0;
}
.logo {
width: 48px !important; /* Tamaño fijo para pantallas pequeñas */
height: 48px !important;
object-fit: contain; /* Mantener proporciones dentro del espacio asignado */
}
}
/* ----- Transiciones suaves ----- */
.side-content,
.logos-flotantes,
.logo {
transition: all 0.3s ease; /* Suaviza cambios entre estados */
}