Ikwipedia:Main Page/styles.css: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary |
EnWikiAdmin (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
padding: 0; | padding: 0; | ||
background-color: #f9f9f9; | background-color: #f9f9f9; | ||
font-family: inherit; /* | font-family: inherit; /* Ensure all text inherits default font */ | ||
} | } | ||
Line 39: | Line 39: | ||
#mp-right { | #mp-right { | ||
flex: 1; | flex: 1; | ||
padding: | padding: 0.8em; /* Matches Wikipedia's padding */ | ||
background-color: #f5faff; | background-color: #f5faff; | ||
border: 1px solid #cedff2; | border: 1px solid #cedff2; | ||
} | } | ||
#mp-left { | #mp-left { | ||
background-color: #f5fffa; /* Light green | background-color: #f5fffa; /* Light green for left column */ | ||
border-color: #cef2e0; /* Green border */ | border-color: #cef2e0; /* Green border */ | ||
} | } | ||
#mp-right { | #mp-right { | ||
background-color: #f5faff; /* Light blue | background-color: #f5faff; /* Light blue for right column */ | ||
border-color: #cedff2; /* Blue border */ | border-color: #cedff2; /* Blue border */ | ||
} | } | ||
/* | /* Bold headings */ | ||
#mp-left .mp-h2, | #mp-left .mp-h2, | ||
#mp-right .mp-h2 { | #mp-right .mp-h2 { | ||
font-family: inherit; | font-family: inherit; | ||
background-color: #cedff2; | background-color: #cedff2; | ||
border: | border: none; /* Remove horizontal line */ | ||
padding: 0.5em; | padding: 0.5em; | ||
font-size: 1.2em; | font-size: 1.2em; | ||
font-weight: | font-weight: bold; /* Make headings bold */ | ||
text-transform: none; /* Enforce sentence case */ | text-transform: none; /* Enforce sentence case */ | ||
} | } | ||
Line 69: | Line 69: | ||
#mp-left .mp-h2 { | #mp-left .mp-h2 { | ||
background-color: #cef2e0; /* Light green for left column headings */ | background-color: #cef2e0; /* Light green for left column headings */ | ||
border-color: | border-color: transparent; | ||
} | } | ||
Line 77: | Line 77: | ||
margin: 1em auto; | margin: 1em auto; | ||
max-width: 1200px; | max-width: 1200px; | ||
padding: | padding: 0.8em; /* Adjusted padding */ | ||
background-color: #faf5ff; | background-color: #faf5ff; | ||
border: 1px solid #ddcef2; | border: 1px solid #ddcef2; | ||
} | } | ||
Line 85: | Line 85: | ||
#mp-bottom .mp-h2 { | #mp-bottom .mp-h2 { | ||
font-family: inherit; | font-family: inherit; | ||
background-color: #ddcef2; | background-color: #ddcef2; | ||
border: | border: none; /* Remove horizontal line */ | ||
padding: 0.5em; | padding: 0.5em; | ||
text-transform: none; /* Enforce sentence case */ | text-transform: none; /* Enforce sentence case */ | ||
font-weight: | font-weight: bold; /* Make headings bold */ | ||
} | } | ||
/* Section Content */ | /* Section Content */ | ||
.mp-contains-float { | .mp-contains-float { | ||
padding: | padding: 0.8em; /* Matches Wikipedia */ | ||
} | } | ||
Line 122: | Line 122: | ||
.test-box .test-title { | .test-box .test-title { | ||
font-size: 120%; | font-size: 120%; | ||
font-weight: | font-weight: bold; /* Match bold headings */ | ||
background-color: #cef2e0; /* Light green background */ | background-color: #cef2e0; /* Light green background */ | ||
border-bottom: | border-bottom: none; /* Remove horizontal line */ | ||
margin: 0 0 0.5em; | margin: 0 0 0.5em; | ||
padding: 0.2em; | padding: 0.2em; |
Revision as of 01:16, 23 December 2024
/* General Settings */
body {
line-height: 1.6;
margin: 0;
padding: 0;
background-color: #f9f9f9;
font-family: inherit; /* Ensure all text inherits default font */
}
/* Top Banner */
#mp-topbanner {
background-color: #f9f9f9;
border: 1px solid #ddd;
padding: 1em;
text-align: center;
margin-bottom: 1em;
}
#mp-topbanner h1 {
font-size: 1.8em;
margin: 0 0 0.5em;
font-family: inherit;
}
#mp-topbanner p {
margin: 0.5em 0;
}
/* Main Content Layout */
#mp-upper {
display: flex;
justify-content: space-between;
gap: 1em;
max-width: 1200px;
margin: 0 auto;
}
#mp-left,
#mp-right {
flex: 1;
padding: 0.8em; /* Matches Wikipedia's 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 */
}
/* Bold headings */
#mp-left .mp-h2,
#mp-right .mp-h2 {
font-family: inherit;
background-color: #cedff2;
border: none; /* Remove horizontal line */
padding: 0.5em;
font-size: 1.2em;
font-weight: bold; /* Make headings bold */
text-transform: none; /* Enforce sentence case */
}
/* Left-specific heading */
#mp-left .mp-h2 {
background-color: #cef2e0; /* Light green for left column headings */
border-color: transparent;
}
/* Lower Section */
#mp-lower,
#mp-bottom {
margin: 1em auto;
max-width: 1200px;
padding: 0.8em; /* Adjusted padding */
background-color: #faf5ff;
border: 1px solid #ddcef2;
}
#mp-lower .mp-h2,
#mp-bottom .mp-h2 {
font-family: inherit;
background-color: #ddcef2;
border: none; /* Remove horizontal line */
padding: 0.5em;
text-transform: none; /* Enforce sentence case */
font-weight: bold; /* Make headings bold */
}
/* Section Content */
.mp-contains-float {
padding: 0.8em; /* Matches Wikipedia */
}
.mp-contains-float::after {
content: "";
display: block;
clear: both;
}
/* Responsive Design */
@media (max-width: 875px) {
#mp-upper {
flex-direction: column;
}
}
/* Basic box styling */
.test-box {
border: 1px solid #aaa;
background-color: #f8f9fa;
padding: 1em;
margin: 1em 0;
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 */
margin: 0 0 0.5em;
padding: 0.2em;
}
/* Sub-boxes */
.test-box .test-subbox {
border: 1px solid #ccc;
background-color: #ffffff;
padding: 0.5em;
margin-top: 0.5em;
}