MediaWiki:Common.css

De WikiCity
Ir a la navegación Ir a la búsqueda

Nota: tras guardar, quizás necesites actualizar la caché de tu navegador para ver los cambios.

  • Firefox/Safari: Mantén presionada la tecla Mayús mientras pulsas el botón Actualizar, o presiona Ctrl+F5 o Ctrl+R (⌘+R en Mac)
  • Google Chrome: presiona Ctrl+Shift+R (⌘+Mayús+R en Mac)
  • Internet Explorer: mantén presionada Ctrl mientras pulsas Actualizar, o presiona Ctrl+F5
  • Opera: dirígete a Menú → Configuración (Opera → Preferencias en Mac) y luego a Privacidad y seguridad → Borrar datos de navegación → Imágenes y archivos en caché.
/* Los estilos CSS colocados aquí se aplicarán a todas las apariencias */

.sysop-show, .user-show, .hide, .ns-14 #ca-ve-edit {
	display: none;
}

.pull-right { float: right; }
body.page-Página_principal.action-view h1.firstHeading, body.page-Página_principal h1.firstHeading, body.page-Página_principal.action-submit h1.firstHeading { display: none; }

.ve-activated .infobox, .ve-activated .main-wrapper.infobox-blocks {
   float: none;
}

.ve-activated .infobox div[style], .ve-activated .infobox .infobox-image{
	display: none !important;
}


/* TOC */

.mw-content-ltr .toc ul ul, .mw-content-rtl .mw-content-ltr .toc ul ul {
    margin: 0 0 0 0.75em;
}

.toc {
   background: none;
   border: none;
}

.toc .toctitle {
    text-align: left;
}

.mw-body-content .toc h2 {
    font-size: 1.1em;
    font-family: inherit;
    font-weight: normal;
    color: #72777d;
}

#main-toc {
    background: #fafafa;
}

/* INFOBOX */

.infobox {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    clear: right;
    color: black;
    float: right;
    font-size: .92em;
    line-height: 1.4em;
    margin: 0.5em 0 2em 1em;
    max-width: 320px;
    padding-bottom: 1em;
}

.infobox-image img {
    height: auto;
    width: 100% !important;
}

.infobox-image-caption {
    color: darkcyan;
    font-size: 0.97em;
    padding: 0 1em;
    text-align: center;
}

@media screen and ( max-width: 720px ) {
.infobox {
    max-width: unset;
    width: 100% !important;
}
}

.infobox-header {
    background: #f0f0f0;
    border: 1px solid #ddd;
    font-weight: bold;
    font-size: 1.2em;
    margin: .2em;
    margin-top: .75em;
    text-align: center;
}

.infobox-header:first-of-type {
    margin-top: .2em;
}

.infobox > div > div > div:first-of-type {
    color: #444;
    font-style: italic;
    font-size: .9em;
    line-height: 1.3em;
    padding-top: 10px;
    text-align: right;
    width: 100px;
}

.infobox > div > div > div:last-of-type {
    padding-left: 16px;
    vertical-align: text-top;
}

/* INFOBOX BLOCKS */

.main-wrapper.infobox-blocks {
    width: 100%;
    flex-direction: column;
    float: right;
}

.main-wrapper-column.infobox-blocks {
    width: 100% !important;
}

/*
.main-wrapper-column {
    margin: 0 !important;
}
*/

@media screen and ( max-width: 720px ){
.main-box {
    border-width: 0 !important;
}
}

@media screen and ( min-width: 768px ){
.main-wrapper.infobox-blocks {
    width: 320px;
    margin-left: 1em;
}
}

@media screen and ( min-width: 1280px ){
.main-wrapper.infobox-blocks {
    width: 400px;
    margin-left: 1em;
}
}

#main-crear-nuevo {
    background-image: linear-gradient(to right,#ececec 0%,#f8f9fa 25%,rgba(248,249,250,0) 100%);
}

/* HEADERS */

.mw-body-content .h2 {
    font-family: 'Linux Libertine','Georgia','Times',serif;
    font-size: 1.5em;
    line-height: 1.3;
    margin-bottom: 0.5em;
    padding: 0;
}

/* FORMULARIOS */

#pfForm .createboxInput, #pfForm .mandatoryField, #pfForm textarea, #pfForm select {
   font-family: inherit;
}

#pfForm td.checkboxes .checkboxLabel {
   display: block;
}

#pfForm .createboxInput, #pfForm .mandatoryField, #pfForm textarea {
   background: #fff;
}

input[type="submit"], input[type="button"], input[type="reset"], input[type="file"] {
   height: 29px !important;
}

.adjust-height {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.pf-runquery-formcontent hr {
   display: none;
}

input[type="submit"], input[type="button"], input[type="reset"], input[type="file"] {
    font-weight: bold;
    font-family: sans-serif;
}

#pfForm select, #pfForm input[type="checkbox"] {
    vertical-align: middle;
}
.select2-container-multi .select2-choices {
    background-image: none;
    border: 1px solid #bbb !important;
}
.select2-container-multi .select2-choices .select2-search-field input {
    padding: 0 5px;
}

.cuasi-input {
    border: none !important;
    font-weight: 600;
    font-size: .9rem;
    color: #238cea;
}

/* SF_Select */

span.select-sfs {
   margin-bottom: 0;
}

span.select-sfs::after {
   display: none;
}

span.select-sfs select {
   -webkit-appearance: menulist;
   -moz-appearance: menulist;
   appearance: menulist;
   border: 1px solid #bbb;
   background: #fff;
   background-image: none;
   border-radius: 3px;
   font-size: 100%;
   padding-left: 8px;
   min-width: unset !important;
}

span.select-sfs select:not([multiple]) {
   background-image: none;
   height: 30px;
}

/* DATATABLES */

.srf-datatables table {
    font-size: unset;
}

/* VISUAL EDITOR */

.ve-ui-mwTransclusionContextItem .ve-ui-linearContextItem-actions {
   visibility: hidden;
}

/* LOGO */
#p-logo a {
    background-size: cover;
}

/* MAIN PAGE */

.mw-parser-output .main-top {
    align-items: start;
    background-image: url("images/6/66/BANNER_BIENVENIDA.jpg");
    background-position: right;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    border:1px solid #ddd;
    border-radius:2px;
    box-shadow: 0 3px 8px #f0f0f0;
}
.mw-parser-output .main-top-left {
    background-image: linear-gradient(to right,#f8f9fa 0%,#f8f9fa 70%,rgba(248,249,250,0)100%);
    padding: 2rem 0 2rem 1.5rem;
}
.main-h-buttons li {
    float: left;
    list-style: none;
}

.page-Página_principal #firstHeading { visibility: hidden }

/* TIMELINE */


.timeline .timeline-item::after, .timeline .timeline-item::before {
  clear: both;
  content: '';
  display: block;
  width: 100%;
}

.timeline {
  margin: 30px auto;
  padding: 0 10px;
  position: relative;
  transition: all 0.25s ease-in;
  width: 100%;
}

.timeline::before {
  background: #c8d2dd;
  content: '';
  height: 100%;
  left: 50%;
  position: absolute;
  top: 0;
  width: 4px;
}

.timeline::after {
  clear: both;
  content: '';
  display: table;
  width: 100%;
}

.timeline a {
  color: #0645ad;
  font-weight: bold;
  transition: all 0.25s ease-in;
}

.timeline a:hover {
  box-shadow: 0 1px 0px 0px #fefefe;
  transition: all 0.25s ease-in;
}

.timeline .timeline-item {
  margin-bottom: 8px;
  position: relative;
}

.timeline .timeline-item .timeline-icon {
  background: #c8d2dd;
  border-radius: 50%;
  height: 50px;
  left: 50%;
  margin-left: -23px;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: 50px;
}

.timeline .timeline-item .timeline-icon img,
.timeline .timeline-item .timeline-icon svg {
  left: 14px;
  position: relative;
  top: 11px;
}

.timeline .timeline-item .timeline-icon svg {
  top: 14px;
}

.timeline .timeline-item .timeline-content {
  padding: 20px 0;
  text-align: right;
  transition: all 0.25s ease-in;
  width: 45%;
  background: transparent;
}

.timeline .timeline-item .timeline-content p {
  color: #444;
}

.timeline .timeline-item .timeline-content p {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 0;
}

.timeline .timeline-item .timeline-content .timeline-content-date {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 0;
}

.timeline .timeline-item .timeline-content .timeline-content-month {
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 400;
}

.timeline .timeline-item .timeline-content.right {
  float: right;
  text-align: left;
}
.timeline-details p {
  font-size:1em !important;
}
.timeline-details a {
  color: #0645ad;
  font-size:1em;
  font-weight: normal;
}

@media screen and (max-width: 1400px) {
  .timeline {
    margin: 30px;
    padding: 0;
    width: 90%;
  }
  .timeline::before {
    left: 0;
  }
  .timeline .timeline-item {
    padding: 0 2em;
  }
  .timeline .timeline-item .timeline-content {
    float: right;
    text-align: left;
    width: 90%;
  }
  .timeline .timeline-item .timeline-content::before, .timeline .timeline-item .timeline-content.right::before {
    border-left: 0;
    border-right: 7px solid #fefefe;
    left: 10%;
    margin-left: -6px;
  }
  .timeline .timeline-item .timeline-icon {
    left: 0;
  }
}

/* SECCIONES */
.main-box {
	background: #fff;
	border: solid #c8ccd1;
	border-width: 1px 0;
	box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.15 );
	margin: 0 -1rem 1rem;
	padding: 1rem;
}

.main-box > p:last-child {
	 margin-bottom: 0;
}

/* Recurso del día */
.main-box-image-only > .main-box-content {
	margin: 0.5rem -1rem 0;
	text-align: center;
}

.main-box-image-only > .main-box-content img {
	height: auto;
	max-width: 100%;
}

.main-box-imageCaption {
	text-align: center;
}

.main-box-imageCaption > p {
	display: inline-block;
	margin-bottom: 0;
	text-align: left;
}

/* Sección */
.main-box-section {
	color: #72777d;
	line-height: 1.25;
	margin-top: -.125em; /* Equilibrando el límite superior de nombre de sección debido a line-height: 1.25; */
}

/* Encabezado */
.main-box-header {
	margin-top: -.15em; /* Equilibrando el límite superior del encabezado debido a line-height: 1.3; */
}

.main-box-header a {
	color: inherit;
}

.main-box-section + .main-box-header { /* Cuando existe el nombre, restablecer el margen al valor estándar */
	margin-top: 0;
}

.main-box-header a:focus,
.main-box:hover .main-box-header a,
.main-box:hover .main-featuredLists-item > a {
	color: #0645ad;
}

/* Pie */
.main-footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 1rem;
	position: relative;
}

.main-footer:empty {
	display: none;
}

.main-footer-actions {
	flex: 1;
}

.main-footer-actions > ul {
	align-items: center;
	display: flex;
}

/* Menú */
.main-footer-menu {
	align-items: stretch;
	display: flex;
}

.main-footer-menuToggle {
	align-items: center;
	display: flex;
	float: none;
	height: 100%;
	opacity: 0.87;
}

.main-footer-menuToggle:hover {
	opacity: 0.51;
}

/* Desplegable */
.main-footer-menuDropdown {
	background: #fff;
	border: 1px solid #a2a9b1;
	border-radius: 2px;
	box-shadow: 0 2px 2px 0 rgba( 0, 0, 0, 0.25 );
	max-width: 15em;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 100;
}

.main-footer-menuDropdown .mw-ui-button {
	text-align: left;
	width: 100%;
}

/*
Teléfonos móviles
*/
@media (max-width: 719px) {
	.main-box-responsive-image > .floatleft,
	.main-box-responsive-image > .floatright {
		float: none;
		margin-left: -1rem;
		margin-right: -1rem;
		text-align: center;
	}
	
	.main-box-responsive-image > .floatleft > a,
	.main-box-responsive-image > .floatright > a {
		display: block;
	}
}

/*
Tabletas
*/
@media (min-width: 720px) {
	.main-box {
		border-radius: 2px;
		border-width: 1px;
		margin-bottom: 1rem;
		margin-left: 0;
		margin-right: 0;
	}
}

/*
Computadoras
*/
@media (min-width: 1000px) {
	.main-box {
		margin-bottom: 1rem;
		padding: 1rem;
	}
	
	.main-box-image-only > .main-box-content {
		margin-left: -1rem;
		margin-right: -1rem;
	}
}
/* Encabezados estándar */
.main-header {
	border-bottom-color: transparent;
	margin-bottom: 0.25em;
	margin-top: 0;
	padding-bottom: 0;
	padding-top: 0;
}

/* Listas no ordenadas */

.main-plainlist > ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-plainlist li {
    margin-bottom: 0;
    padding: 4px 10px;
}

.main-plainlist li:hover {
    background: #f0f0f0;
}

/* Enlaces-botones */
.main-top-right .mw-ui-quiet:hover,
.main-top-right .mw-ui-quiet:focus,
.main-footer .mw-ui-quiet:hover,
.main-footer .mw-ui-quiet:focus {
	color: #0645ad;
}

/* Eliminar la numeración de los encabezados creados por la opción «Numerar automáticamente los encabezados»
    en [[Especial:Preferencias#mw-prefsection-rendering]] */
.mw-headline-number {
    display: none;
}

/*
Tabletas
*/
@media (min-width: 720px) {
	.main-wikimedia {
		padding-top: 1rem;
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

/*
Computadoras
*/
@media (min-width: 1000px) {
	.main-wrapper {
		display: flex;
		margin: 0 -0.5rem;
	}
	
	.main-wrapper-column {
		flex: 1;
		margin: 0 0.5rem;
	}
	
	.main-wikimedia {
		padding-top: 1rem;
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

/* Reparto columnas al 55-45 % */
@media (min-width: 1000px) {
	.main-wrapper-column {
		width: 55%;
	}
	.main-wrapper-column + .main-wrapper-column {
		width: 45%;
	}
	.main-wrapper-column {
		flex: inherit;
	}
}

/* IMAGES */

.img-responsive,
.thumbnail>img,
.thumbnail a>img,
.carousel-inner>.item>img,
.carousel-inner>.item>a>img {
 display:block;
 max-width:100%;
 height:auto
}
.img-rounded {
 border-radius:6px
}
.img-thumbnail {
 padding:4px;
 line-height:1.42857143;
 background-color:#fff;
 border:1px solid #ddd;
 border-radius:4px;
 -webkit-transition:all .2s ease-in-out;
 -o-transition:all .2s ease-in-out;
 transition:all .2s ease-in-out;
 display:inline-block;
 max-width:100%;
 height:auto
}
.img-circle {
 border-radius:50%
}
.center-block {
 display:block;
 margin-right:auto;
 margin-left:auto
}

blockquote {
   font-family: Times,serif;
   font-style: italic;
}

.main-box .formInput { width:95%; margin-bottom:8px }


[name="createbox"] input {
    height: 1.5rem;
}
.mw-ui-button[type="submit"] {
    height: 32px !important;
}

/* center table columns */
table.col-4-center tr td:nth-child(4) {
	text-align: center;
}