Template:Main page/styles.css: Difference between revisions

From WikiAnimal
mNo edit summary
mNo edit summary
Tag: Manual revert
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* CSS used for WikiAnimal */
ca-talk { display:none!important; }
/* {{pp|small=yes}} */
.mp-box {
border: 1px solid #aaa; /* all border colors overriden on specific elements */
padding: 0 0.5em 0.5em;
margin-top: 4px;
}


.container { display: grid;
.mp-h2,
  grid-template-columns: 1fr 1fr 1fr;
body.skin-timeless .mp-h2 { /* Timeless needs a higher specificity */
  grid-template-rows: 1fr 1fr 1fr;
border: 1px solid #aaa; /* all border colors overriden on specific elements */
  gap: 10px 10px;
margin: 0.5em 0;
  grid-auto-flow: row;
padding: 0.2em 0.4em;
  grid-template-areas:
font-size: 120%;
    "main main main"
font-weight: bold;
    "left middle right"
font-family: inherit;
    ". . .";
}
}


.main { grid-area: main; }
.mp-later {
font-size: 85%;
font-weight: normal;
}


.left { grid-area: left; }
#mp-topbanner {
background: #f9f9f9;
border-color: #ddd;
}
 
#mp-welcomecount {
text-align: center;
margin: 0.4em;
}
 
#mp-welcome {
font-size: 162%;
padding: 0.1em;
}
 
#mp-welcome h1 {
font-size: inherit;
font-family: inherit;
display: inline;
border: none;
}
 
#mp-free {
font-size: 95%;
}
 
#articlecount {
font-size: 85%;
}
 
/* clear fix */
.mp-contains-float::after {
  content: "";
  display: block;
  clear: both;
}


.middle { grid-area: middle; }
#mp-banner {
background: #fffaf5;
border-color: #f2e0ce;
}


.right { grid-area: right; }
#mp-left {
background: #f5fffa;
border-color: #cef2e0;
}


.mainpage_row {
#mp-left .mp-h2 {
display: flex;
background: #cef2e0;
flex-direction: row;
border-color: #a3bfb1;
flex-flow: row wrap;
justify-content: space-between;
padding: 0;
margin: 0 -5px 0 -5px;
}
}
.mainpage_box {
 
flex: 1;
#mp-right {
margin: 5px;
background: #f5faff;
min-width: 210px;
border-color: #cedff2;
border: 1px solid #CCC;
padding: 0 10px 10px 10px;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
}
.mainpage_box h3 {
 
/* Reset padding so is equal across skins */
#mp-right .mp-h2 {
padding-right: 0;
background: #cedff2;
padding-top: 0;
border-color: #a3b0bf;
padding-bottom: 0;
/* Padding left gets overridden by headanchor gadget */
margin: 0.5em 0;
}
}
/* Set padding left only if headanchor gadget is not enabled */
 
.mainpage_box h3:not(.tpl-vheadanchor-heading) {
#mp-middle {
padding-left: 0;
background: #fff5fa;
border-color: #f2cedd;
}
}
.mainpage_box h3 .header_icon {
 
float: left;
#mp-middle .mp-h2 {
margin-right: 5px;
background: #f2cedd;
border-color: #bfa3af;
}
}
.mainpage_box .items {
 
border-top: 1px solid #CCC;
#mp-lower {
padding-top: 0.5em;
background: #faf5ff;
border-color: #ddcef2;
}
}
.mainpage_box p:last-child {
 
margin-bottom: 0;
#mp-lower .mp-h2 {
background: #ddcef2;
border-color: #afa3bf;
}
}
.mainpage_boxcontents_small {
 
font-size: 95%;
#mp-bottom {
/* no background */
border-color: #e2e2e2;
}
}
/* Style the "other languages" box the same way as other boxes on the main page */
 
.mw-pt-languages {
#mp-bottom .mp-h2 {
display: block;
background: #eee;
background: none;
border-color: #ddd;
border: 1px solid #CCC;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
width: auto;
}
}
.mw-pt-languages-label {
 
background: none;
@media (max-width: 875px) {
border-right: none;
/* We need to improve Template:POTD as used on the main page so that these
* hacks aren't necessary */
#mp-tfp table,
#mp-tfp tr,
#mp-tfp td,
#mp-tfp tbody {
display: block !important;
width: 100% !important;
box-sizing: border-box;
}
 
#mp-tfp tr:first-child td:first-child a {
text-align: center;
display: table;
margin: 0 auto;
}
}
}


@media screen and (max-width: 719px) {
@media (min-width: 875px) {
.thumb {
#mp-upper {
float: none;
display: flex;
}
#mp-left {
flex: 1 1 50%;
margin-right: 2px;
}
}
.thumb, .thumbinner {
margin-left: auto;
#mp-right {
margin-right: auto;
flex: 1 1 50%;
margin-left: 2px;
}
}
}
}

Latest revision as of 08:49, 5 April 2024

ca-talk { display:none!important; }
/* {{pp|small=yes}} */
.mp-box {
	border: 1px solid #aaa; /* all border colors overriden on specific elements */
	padding: 0 0.5em 0.5em;
	margin-top: 4px;
}

.mp-h2,
body.skin-timeless .mp-h2 { /* Timeless needs a higher specificity */
	border: 1px solid #aaa; /* all border colors overriden on specific elements */
	margin: 0.5em 0;
	padding: 0.2em 0.4em;
	font-size: 120%;
	font-weight: bold;
	font-family: inherit;
}

.mp-later {
	font-size: 85%;
	font-weight: normal;
}

#mp-topbanner {
	background: #f9f9f9;
	border-color: #ddd;
}

#mp-welcomecount {
	text-align: center;
	margin: 0.4em;
}

#mp-welcome {
	font-size: 162%;
	padding: 0.1em;
}

#mp-welcome h1 {
	font-size: inherit;
	font-family: inherit;
	display: inline;
	border: none;
}

#mp-free {
	font-size: 95%;
}

#articlecount {
	font-size: 85%;
}

/* clear fix */
.mp-contains-float::after {
  content: "";
  display: block;
  clear: both;
}

#mp-banner {
	background: #fffaf5;
	border-color: #f2e0ce;
}

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

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

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

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

#mp-middle {
	background: #fff5fa;
	border-color: #f2cedd;
}

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

#mp-lower {
	background: #faf5ff;
	border-color: #ddcef2;
}

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

#mp-bottom {
	/* no background */
	border-color: #e2e2e2;
}

#mp-bottom .mp-h2 {
	background: #eee;
	border-color: #ddd;
}

@media (max-width: 875px) {
	/* We need to improve Template:POTD as used on the main page so that these
	 * hacks aren't necessary */
	#mp-tfp table,
	#mp-tfp tr,
	#mp-tfp td,
	#mp-tfp tbody {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box;
	}

	#mp-tfp tr:first-child td:first-child a {
		text-align: center;
		display: table;
		margin: 0 auto;
	}
}

@media (min-width: 875px) {
	#mp-upper {
		display: flex;
	}
	
	#mp-left {
		flex: 1 1 50%;
		margin-right: 2px;
	}
	
	#mp-right {
		flex: 1 1 50%;
		margin-left: 2px;
	}
}