Template:MediaWiki Sites/styles.css

From Linux Web Expert

Revision as of 19:48, 26 March 2024 by imported>Starlight300
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

.mediawiki-sites {
	background-color: #fff;
	margin-bottom: 3px;
	padding: 0;
	border: 1px solid #aaa;
	width: 15em;
	max-width: 100%;
}
/* @noflip */
.mediawiki-sites.mw-content-ltr {
	margin-left: 2.3em;
	float: right;
	direction: ltr;
}
/* @noflip */
.mediawiki-sites.mw-content-rtl {
	margin-right: 2.3em;
	float: left;
	direction: rtl;
}

.mediawiki-sites-header {
	font-size: 105%;
	line-height: 120%;
	padding: 0.4em;
	background-color: #eee;
	border-bottom: 1px solid #aaa;
}
/* @noflip */
.mediawiki-sites.mw-content-ltr .mediawiki-sites-header {
	text-align: left;
}
/* @noflip */
.mediawiki-sites.mw-content-rtl .mediawiki-sites-header {
	text-align: right;
}

.mediawiki-sites-body {
	padding: 0.4em;
	font-size: 95%;
}

html.skin-theme-clientpref-night .mediawiki-sites-header,
html.skin-theme-clientpref-night .mediawiki-sites {
    background: inherit;
}

@media (prefers-color-scheme: dark) {
    /* automatic mode */
    html.skin-theme-clientpref-os .mediawiki-sites-header,
    html.skin-theme-clientpref-os .mediawiki-sites {
        background: inherit;
    }
}

/* Force the text below the table on smaller screens to make the page more legible */
@media only screen and (max-width: 900px){
	.mediawiki-sites.mw-content-ltr, .mediawiki-sites.mw-content-rtl {
		margin: 0 auto;
		float: none;
		clear: both;
		width: 90%;
	}
}