User:Yair rand/MPSandbox/styles.css

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* TemplateStyles CSS page for the Main Page. See [[Wikipedia:TemplateStyles]] for more information. */
#mp-topbanner {
	clear: both;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	margin: 1.2em 0 6px;
	min-width: 47em;
	border: 1px solid #ddd;
	background-color: #f9f9f9;
	color: #000;
	white-space: nowrap;
}

#mp-topbanner > div {
	margin: 0.4em;
	width: 22em;
	text-align: center;
}

#mp-topbanner ul {
	position: absolute;
	right: -1em;
	top: 50%;
	margin-top: -2.4em;
	width: 38%;
	min-width: 25em;
	font-size: 95%;
}

#mp-topbanner ul li {
	position: absolute;
	left: 0;
	top: 0;
}

/* second row */
#mp-topbanner ul .mp-portal-row2 {
	top: 1.6em;
}

/* bottom row */
#mp-topbanner ul .mp-portal-row3 {
	top: 3.2em;
}

/* middle column */
#mp-topbanner ul .mp-portal-col2 {
	left: 33%;
}

/* right column */
#mp-topbanner ul .mp-portal-col3 {
	left: 66%;
}

#mp-upper {
	border-spacing: 0px;
	width: 100%;
	margin-top: 4px;
}

#mp-left, #mp-right {
	padding: 0;
	vertical-align: top;
}

#mp-upper h2, #mp-middle h2, #mp-lower h2, #mp-other-lower h2 {
	margin: 0.5em;
	padding: 0.2em 0.4em;
	border-width: 1px;
	border-style: solid;
	font-weight: bold;
	font-family: inherit;
	font-size: 120%;
}

#mp-left > div, #mp-right > div, #mp-other-lower > div {
	padding: 0.1em 0.6em;
}

#mp-left > #mp-dyk, #mp-right > #mp-otd {
	padding-bottom: 0.5em;
}

#mp-left {
	width: 55%;
	border: 1px solid #cef2e0;
	background: #f5fffa;
}

#mp-left h2 {
	background: #cef2e0;
	border-color: #a3bfb1;
}

#mp-divider {
	border: 1px solid transparent;
}

#mp-right {
	width: 45%;
	border: 1px solid #cedff2;
	background: #f5faff;
}

#mp-right h2 {
	background: #cedff2;
	border-color: #a3b0bf;
}

#mp-dyk-h2, #mp-otd-h2 {
	clear: both;
}

#mp-middle, #mp-lower, #mp-other-lower {
	overflow: auto;
	margin-top: 4px;
}

#mp-middle {
	background: #fff5fa;
	border: 1px solid #f2cedd;
}

#mp-tfl-h2 {
	border-color: #bfa3af;
	background: #f2cedd;
}

#mp-tfl {
	padding: 0.3em 0.7em;
}

.mp-featuredpicture {
	border: 1px solid #ddcef2;
	background: #faf5ff;
}

#mp-tfp-h2 {
	background: #ddcef2;
	border-color: #afa3bf;
}

#mp-tfp {
	margin: 0.1em 0.4em 0.6em;
}

#mp-other-lower {
	padding-bottom: 2px;
	padding-top: 4px;
	border: 1px solid #e2e2e2;
}

#mp-other-lower h2 {
	border-color: #ddd;
	color: #222;
}

#mp-other, #mp-sister {
	background: #eeeeee;
}

#mp-lang {
	background: #efefef;
}

@media (max-width: 865px) {
	#mp-topbanner {
		min-width: auto;
		white-space: normal;
	}
	
	#mp-topbanner > div {
		width: auto;
	}
	
	#mp-topbanner ul {
		position: static;
        margin: 0 20px;
	    text-align: center;
	    width: auto;
	    min-width: inherit;
	}
	
	#mp-topbanner ul li {
	    position: static;
	    display: inline-block;
	    padding: 0 5px;
	}
	
	#mp-upper > tbody > tr {
		display: block;
	}
	
	#mp-left, #mp-right {
		display: block;
		width: 100%;
	}
	
	#mp-tfp td {
		display: block;
	}
	
	#mp-tfp td:first-child {
		text-align: center;
	}
}