Ikwipedia:Main Page/styles.css: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary |
EnWikiAdmin (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
background-color: #f9f9f9; | background-color: #f9f9f9; | ||
border: 1px solid #ddd; | border: 1px solid #ddd; | ||
text-align: center; | text-align: center; | ||
margin-bottom: 1em; | margin-bottom: 1em; | ||
Line 53: | Line 52: | ||
font-family: inherit; | font-family: inherit; | ||
background-color: #e6e6e6; /* Neutral heading background */ | background-color: #e6e6e6; /* Neutral heading background */ | ||
border: 1px solid #aaa; /* Border for headings */ | border: 1px solid #aaa; /* Border for headings */ | ||
} | } | ||
Line 72: | Line 69: | ||
#mp-lower, | #mp-lower, | ||
#mp-bottom { | #mp-bottom { | ||
max-width: 1200px; | max-width: 1200px; | ||
padding: 0.4em; /* Match Wikipedia padding */ | padding: 0.4em; /* Match Wikipedia padding */ | ||
Line 124: | Line 120: | ||
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
background-color: #f8f9fa; | background-color: #f8f9fa; | ||
font-size: 90%; | font-size: 90%; | ||
} | } | ||
Line 135: | Line 129: | ||
background-color: #cef2e0; /* Light green background */ | background-color: #cef2e0; /* Light green background */ | ||
border-bottom: none; /* Remove horizontal line */ | border-bottom: none; /* Remove horizontal line */ | ||
} | } | ||
Line 143: | Line 136: | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
background-color: #ffffff; | background-color: #ffffff; | ||
} | } |
Revision as of 01:46, 23 December 2024
/* Top Banner */
#mp-topbanner {
background-color: #f9f9f9;
border: 1px solid #ddd;
text-align: center;
margin-bottom: 1em;
}
#mp-topbanner h1 {
font-size: 1.8em;
margin: 0;
border-bottom: none;
font-family: inherit;
}
#mp-topbanner p {
margin: 0 0;
}
/* Main Content Layout */
#mp-upper {
display: flex;
justify-content: space-between;
gap: 0.5em;
max-width: 1200px;
margin: 0 auto;
}
#mp-left,
#mp-right
{
flex: 1;
padding: 0.4em; /* Match Wikipedia padding */
background-color: #f5faff;
border: 1px solid #cedff2;
}
#mp-left {
background-color: #f5fffa; /* Light green for left column */
border-color: #cef2e0; /* Green border */
}
#mp-right {
background-color: #f5faff; /* Light blue for right column */
border-color: #cedff2; /* Blue border */
}
/* Headings */
.mp-h2 {
font-size: 1.4em;
font-weight: bold;
font-family: inherit;
background-color: #e6e6e6; /* Neutral heading background */
border: 1px solid #aaa; /* Border for headings */
}
/* Column-Specific Heading Colors */
#mp-left .mp-h2 {
background-color: #cef2e0; /* Light green for left column headings */
border-color: #a3bfb1;
}
#mp-right .mp-h2 {
background-color: #cedff2; /* Light blue for right column headings */
border-color: #a3b0bf;
}
/* Lower Section */
#mp-lower,
#mp-bottom {
max-width: 1200px;
padding: 0.4em; /* Match Wikipedia padding */
background-color: #faf5ff;
border: 1px solid #ddcef2;
}
#mp-lower .mp-h2,
#mp-bottom .mp-h2 {
background-color: #ddcef2;
border-color: #afa3bf;
}
/* Section Content */
.mp-contains-float {
padding: 0.4em; /* Match Wikipedia padding */
}
.mp-contains-float::after {
content: "";
display: block;
clear: both;
}
/* Responsive Design */
@media (max-width: 875px) {
#mp-upper {
flex-direction: column;
}
}
/* Clearfix */
.clearfix::after {
content: "";
display: table;
clear: both;
}
/* Specific for Mobile */
@media screen and (max-width: 875px) {
#mp-upper,
#mp-lower,
#mp-bottom {
margin: 0.5em;
padding: 0.5em;
}
}
/* Basic box styling */
.test-box {
border: 1px solid #aaa;
background-color: #f8f9fa;
font-size: 90%;
}
/* Title styling within the box */
.test-box .test-title {
font-size: 120%;
font-weight: bold; /* Match bold headings */
background-color: #cef2e0; /* Light green background */
border-bottom: none; /* Remove horizontal line */
}
/* Sub-boxes */
.test-box .test-subbox {
border: 1px solid #ccc;
background-color: #ffffff;
}