Fara í innihald

„Snið:Forsíða/Haus/styles.css“: Munur á milli breytinga

Úr Wikipediu, frjálsa alfræðiritinu
Efni eytt Efni bætt við
mEkkert breytingarágrip
Jon (WMF) (spjall | framlög)
Fixes phab:T369874. Please see talk page and do not revert without discussion. See also meta:User:Jon_(WMF)/Edit_for_dark_mode_support
Merki: Breyting tekin til baka
Lína 135: Lína 135:


@media screen {
@media screen {
html.skin-theme-clientpref-night .main-top-left {
@media screen {
color: white;
html.skin-theme-clientpref-night .main-top-left {
color: white;
}
html.skin-theme-clientpref-night .main-top-header {
color: white;
}
html.skin-theme-clientpref-night .main-top-articleCount {
color: gray;
}
}
}
html.skin-theme-clientpref-night .main-top-header {
@media screen and (min-width: 720px) {
color: white;
@media screen and ( prefers-color-scheme: dark) {
}
html.skin-theme-clientpref-night .main-top-articleCount {
html.skin-theme-clientpref-os .main-top {
color: gray;
background-color: #0e0f09;
border: 1px solid #3d334e;
}
box-shadow: 0 1px 1px rgba(255, 255, 255, .15);
}
}

}
@media screen and (min-width: 720px) {
html.skin-theme-clientpref-night .main-top {
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .main-top {
background-color: #0e0f09;
background-color: #0e0f09;
border: 1px solid #3d334e;
border: 1px solid #3d334e;
box-shadow: 0 1px 1px rgba(255, 255, 255, .15);
box-shadow: 0 1px 1px rgba(255, 255, 255, .15);
}
}
}
}
html.skin-theme-clientpref-night .main-top {
@media screen and (min-width: 1000px) {
background-color: #0e0f09;
@media screen and ( prefers-color-scheme: dark) {
border: 1px solid #3d334e;
html.skin-theme-clientpref-os .main-top-left {
box-shadow: 0 1px 1px rgba(255, 255, 255, .15);
background-image: linear-gradient(to right, #090f09 0%, #0e0f09 70%, rgba(2, 1, 0, 0) 100%);
}
}

}
html.skin-theme-clientpref-night .main-top-left {
background-image: linear-gradient(to right, #090f09 0%, #0e0f09 70%, rgba(2, 1, 0, 0) 100%);
}
}
}


@media screen and (min-width: 1000px) {
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .main-top-left {
background-image: linear-gradient(to right, #090f09 0%, #0e0f09 70%, rgba(2, 1, 0, 0) 100%);
}
}
html.skin-theme-clientpref-night .main-top-left {
background-image: linear-gradient(to right, #090f09 0%, #0e0f09 70%, rgba(2, 1, 0, 0) 100%);
}
}
}

Útgáfa síðunnar 8. ágúst 2024 kl. 17:09

/*
  Byggt á hönnun spænsku Wikipedíu:
  https://es.wikipedia.org/wiki/Plantilla:Portada:Encabezado/OOUI/styles.css
*/

.main-top {
  font-size: 1rem;
  margin-top: 1rem;
  padding-bottom: 1.5rem;
}

.main-top-left>p {
  font-size: 0.875em;
  margin: 0;
}

.main-top-right {
  font-size: 0.875em;
  margin-top: 0.5em;
}

.main-top-right>ul {
  line-height: 12px;
  font-size: 16px;
  margin-top: 0.5rem;
  margin-right: 14px;
}

.main-top-right>ul li .mw-ui-button {
  padding: 0px 8px;
  color: inherit;
}

.main-top-right>ul li .mw-ui-button:hover {
  text-decoration: underline;
}

.main-top-header {
  border-bottom: 0;
  margin-bottom: 5px;
  margin-top: 0;
}

.main-top-articleCount {
  margin-bottom: 0;
}


/*
  Spjaldtölvur
*/

@media (min-width: 720px) {
  .main-top {
    background-color: #f8f9fa;
    border: 1px solid #c8ccd1;
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .15);
    margin-bottom: 1rem;
    margin-top: 0;
    padding: 1rem;
    text-align: center;
  }
  .main-top-right>ul {
    font-size: 18px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .main-top-articleCount {
    margin-bottom: 0px;
    font-size: 12px;
  }
}


/*
Computadoras
*/

@media (min-width: 1000px) {
  .main-top {
    align-items: center;
    background-image: url(https://upload.wikimedia.org/wikipedia/commons/e/e3/Wikipedia_logo_letters_banner.svg);
    background-position: right;
    background-repeat: no-repeat;
    display: flex;
    margin-bottom: 1rem;
    margin-top: 0;
    padding: 0 1.5rem 0 0;
  }
  .main-top-left {
    background-image: linear-gradient(to right, #f8f9fa 0%, #f8f9fa 70%, rgba(248, 249, 250, 0) 100%);
    flex: 2;
    padding: 2rem 0 2rem 1.5rem;
    text-align: left;
  }
  .main-top-right {
    flex: 3;
    margin-top: 0;
    text-align: right;
  }
  .main-top-right>ul {
    align-items: flex-end;
    margin: 7px 0;
    justify-content: flex-end;
  }
  .main-top-articleCount {
    font-size: 14px;
    margin: 0;
  }
}


/* bugfix in skin-modern */

body.skin-modern .main-top-header {
  line-height: 1.8rem;
  font-size: 1.8rem;
}

/* Dökkt þema */
@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .main-top-left {
		color: white;
	}
	html.skin-theme-clientpref-os .main-top-header {
		color: white;
	}
	html.skin-theme-clientpref-os .main-top-articleCount {
		color: gray;
	}
}

@media screen {
	
@media screen {
    html.skin-theme-clientpref-night .main-top-left {
			color: white;
		}
		html.skin-theme-clientpref-night .main-top-header {
			color: white;
		}
		html.skin-theme-clientpref-night .main-top-articleCount {
			color: gray;
		}
	}
	
	@media screen and (min-width: 720px) {
		@media screen and ( prefers-color-scheme: dark) {
			html.skin-theme-clientpref-os .main-top {
				background-color: #0e0f09;
				border: 1px solid #3d334e;
				box-shadow: 0 1px 1px rgba(255, 255, 255, .15);
			}
		}
		html.skin-theme-clientpref-night .main-top {
			background-color: #0e0f09;
			border: 1px solid #3d334e;
			box-shadow: 0 1px 1px rgba(255, 255, 255, .15);
		}
	
	}
	
	@media screen and (min-width: 1000px) {
		@media screen and ( prefers-color-scheme: dark) {
			html.skin-theme-clientpref-os .main-top-left {
				background-image: linear-gradient(to right, #090f09 0%, #0e0f09 70%, rgba(2, 1, 0, 0) 100%);
			}
		}
		html.skin-theme-clientpref-night .main-top-left {
			background-image: linear-gradient(to right, #090f09 0%, #0e0f09 70%, rgba(2, 1, 0, 0) 100%);
		}
}

}