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

From WikiAnimal
No edit summary
No edit summary
Line 1: Line 1:
/* Global Styles */
ca-talk { display: none !important; }
body {
 
    font-family: Arial, sans-serif;
.mp-box {
    color: #333; /* Black text */
border: 1px solid #d4d4d4;
    background-color: #f2f2f2; /* Light gray background */
padding: 0 0.5em 0.5em;
    margin: 0;
margin-top: 4px;
    padding: 0;
}
}


.container {
.mp-h2,
    width: 100%;
body.skin-timeless .mp-h2 {
    max-width: 1200px; /* Adjust as needed */
border: 1px solid #d4d4d4;
    margin: 0 auto;
margin: 0.5em 0;
    padding: 20px;
padding: 0.2em 0.4em;
    box-sizing: border-box;
font-size: 120%;
font-weight: bold;
font-family: inherit;
}
}


header, footer {
.mp-later {
    width: 100%;
font-size: 85%;
    background-color: #4CAF50; /* Nature color */
font-weight: normal;
    color: #fff; /* White text */
    padding: 20px;
    box-sizing: border-box;
}
}


.col {
#mp-topbanner {
    width: calc(50% - 20px); /* 2 equal sized columns with 20px gutter */
background: #f2f9f2;
    float: left;
border-color: #d4e5d4;
    margin-right: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}
}


.clearfix::after {
#mp-welcomecount {
    content: "";
text-align: center;
    display: table;
margin: 0.4em;
    clear: both;
}
}


/* Media Query for Responsiveness */
#mp-welcome {
@media only screen and (max-width: 768px) {
font-size: 162%;
    .col {
padding: 0.1em;
        width: 100%; /* Columns stack on top of each other on small screens */
        margin-right: 0;
    }
}
}


/* Wikitext Markup */
#mp-welcome h1 {
.header-content, .footer-content, .col-content {
font-size: inherit;
    padding: 20px;
font-family: inherit;
display: inline;
border: none;
}
}


/* You can add additional styling for specific elements as needed */
#mp-free {
font-size: 95%;
}
 
#articlecount {
font-size: 85%;
}
 
.mp-contains-float::after {
content: "";
display: block;
clear: both;
}
 
#mp-banner {
background: #fef8f0;
border-color: #f2d8b4;
}
 
#mp-left {
background: #f2fdf4;
border-color: #b4dfb4;
}
 
#mp-left .mp-h2 {
background: #b4dfb4;
border-color: #8cbf8c;
}
 
#mp-right {
background: #f2f7ff;
border-color: #b4bde0;
}
 
#mp-right .mp-h2 {
background: #b4bde0;
border-color: #8c97bf;
}
 
#mp-middle {
background: #fef0f5;
border-color: #e0b4cb;
}
 
#mp-middle .mp-h2 {
background: #e0b4cb;
border-color: #bf8c9e;
}
 
#mp-lower {
background: #fdf4ff;
border-color: #dfb4e0;
}
 
#mp-lower .mp-h2 {
background: #dfb4e0;
border-color: #bf8ca3;
}
 
#mp-bottom {
border-color: #e2e2e2;
}
 
#mp-bottom .mp-h2 {
background: #f2f2f2;
border-color: #d4d4d4;
}
 
@media (max-width: 875px) {
#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;
}
}

Revision as of 20:54, 4 April 2024

ca-talk { display: none !important; }

.mp-box {
	border: 1px solid #d4d4d4;
	padding: 0 0.5em 0.5em;
	margin-top: 4px;
}

.mp-h2,
body.skin-timeless .mp-h2 {
	border: 1px solid #d4d4d4;
	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: #f2f9f2;
	border-color: #d4e5d4;
}

#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%;
}

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

#mp-banner {
	background: #fef8f0;
	border-color: #f2d8b4;
}

#mp-left {
	background: #f2fdf4;
	border-color: #b4dfb4;
}

#mp-left .mp-h2 {
	background: #b4dfb4;
	border-color: #8cbf8c;
}

#mp-right {
	background: #f2f7ff;
	border-color: #b4bde0;
}

#mp-right .mp-h2 {
	background: #b4bde0;
	border-color: #8c97bf;
}

#mp-middle {
	background: #fef0f5;
	border-color: #e0b4cb;
}

#mp-middle .mp-h2 {
	background: #e0b4cb;
	border-color: #bf8c9e;
}

#mp-lower {
	background: #fdf4ff;
	border-color: #dfb4e0;
}

#mp-lower .mp-h2 {
	background: #dfb4e0;
	border-color: #bf8ca3;
}

#mp-bottom {
	border-color: #e2e2e2;
}

#mp-bottom .mp-h2 {
	background: #f2f2f2;
	border-color: #d4d4d4;
}

@media (max-width: 875px) {
	#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;
	}
}