MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary Tags: Manual revert Reverted |
No edit summary Tag: Reverted |
||
Line 3: | Line 3: | ||
/* Top banner */ | /* Top banner */ | ||
#mp-topbanner { | #mp-topbanner { | ||
background-color: #eaf3ff; /* Light blue background */ | background-color: #eaf3ff; /* Light blue background */ | ||
border-bottom: 2px solid #a2a9b1; | border-bottom: 2px solid #a2a9b1; | ||
text-align: center; | |||
} | } | ||
/* Flexbox layout for the top sections */ | /* Flexbox layout for the top sections */ | ||
.mp-upper-grid { | .mp-upper-grid { | ||
display: flex; | display: flex; /* Enables flexbox layout */ | ||
flex-wrap: wrap; /* Ensures content wraps on smaller screens */ | flex-wrap: wrap; /* Ensures content wraps on smaller screens */ | ||
justify-content: space-between; /* Distributes space between columns */ | justify-content: space-between; /* Distributes space between columns */ | ||
gap: 20px; /* Adds space between the columns */ | |||
margin-top: 20px; /* Adds some space above the grid */ | margin-top: 20px; /* Adds some space above the grid */ | ||
} | } | ||
/* Set the width of each section to make them fit side by side */ | |||
.mp-box { | .mp-box { | ||
flex: 1 1 48%; /* | flex: 1 1 48%; /* Each box will take 48% of the container width, with space for margin */ | ||
padding: 15px; /* Adds padding inside each box */ | padding: 15px; /* Adds padding inside each box */ | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
Line 25: | Line 25: | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */ | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */ | ||
margin-bottom: 20px; /* Adds space below each box */ | margin-bottom: 20px; /* Adds space below each box */ | ||
} | |||
/* Mobile responsiveness: Stack sections vertically on smaller screens */ | |||
@media (max-width: 768px) { | |||
.mp-box { | |||
flex: 1 1 100%; /* Stack boxes vertically on smaller screens */ | |||
margin-bottom: 20px; /* Adds space between stacked sections */ | |||
} | |||
} | } | ||
Line 80: | Line 88: | ||
} | } | ||
/* | /* Caption styling */ | ||
. | .featured-caption { | ||
margin-top: 10px; | |||
font-size: 0.9em; /* Slightly smaller font size */ | |||
color: #555555; /* Dark grey color for caption text */ | |||
text-align: center; | |||
font-style: italic; /* Italic style for captions */ | |||
} | } | ||
Line 105: | Line 107: | ||
text-align: center; | text-align: center; | ||
} | } | ||
/* Adjust children elements spacing */ | /* Adjust children elements spacing */ | ||
Line 124: | Line 115: | ||
#mp-tfa > *:last-child { | #mp-tfa > *:last-child { | ||
margin-right: 0; /* Removes margin from the last child to prevent extra space */ | margin-right: 0; /* Removes margin from the last child to prevent extra space */ | ||
} | } | ||
Line 148: | Line 132: | ||
} | } | ||
/* Delve into the Lore Section */ | /* Delve into the Lore Section */ | ||
#mp-otd { | #mp-otd { | ||
Line 191: | Line 147: | ||
#mp-otd ul li a:hover { | #mp-otd ul li a:hover { | ||
text-decoration: underline; /* Adds underline on hover for links */ | text-decoration: underline; /* Adds underline on hover for links */ | ||
} | } |
Revision as of 23:28, 7 September 2024
/* Styles for the Main Page */
/* Top banner */
#mp-topbanner {
background-color: #eaf3ff; /* Light blue background */
border-bottom: 2px solid #a2a9b1;
text-align: center;
}
/* Flexbox layout for the top sections */
.mp-upper-grid {
display: flex; /* Enables flexbox layout */
flex-wrap: wrap; /* Ensures content wraps on smaller screens */
justify-content: space-between; /* Distributes space between columns */
gap: 20px; /* Adds space between the columns */
margin-top: 20px; /* Adds some space above the grid */
}
/* Set the width of each section to make them fit side by side */
.mp-box {
flex: 1 1 48%; /* Each box will take 48% of the container width, with space for margin */
padding: 15px; /* Adds padding inside each box */
border: 1px solid #a2a9b1;
border-radius: 5px; /* Rounded corners for a smooth look */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
margin-bottom: 20px; /* Adds space below each box */
}
/* Mobile responsiveness: Stack sections vertically on smaller screens */
@media (max-width: 768px) {
.mp-box {
flex: 1 1 100%; /* Stack boxes vertically on smaller screens */
margin-bottom: 20px; /* Adds space between stacked sections */
}
}
/* Specific background colors for different sections */
#mp-featured-article {
background-color: #f3eacb; /* Light gold background for a regal feel */
}
#mp-left {
background-color: #e1f0e6; /* Light green background to reflect nature */
}
#mp-lower {
background-color: #f0e5f9; /* Light purple background for a mystical vibe */
}
#mp-otd-h2, .mp-otd {
background-color: #f9f4e5; /* Soft cream background for ancient lore */
}
#mp-right {
background-color: #eaf3ff; /* Light blue background for harmony with water themes */
}
/* Background for main content areas */
.MainPageBG {
padding: 15px;
border-radius: 5px;
}
/* Style for floated content containers */
.mp-contains-float {
clear: both;
overflow: auto;
}
/* "Explore More" text styling */
.explore-more {
margin-top: 15px;
font-weight: bold;
text-align: center;
color: #0645ad; /* Wikipedia link blue */
padding: 10px;
background-color: #f0f8ff; /* Light blue background for emphasis */
border-radius: 5px;
}
/* Header styling */
.mp-h2 {
font-size: 1.5em;
margin-bottom: 15px;
border-bottom: 2px solid #a2a9b1;
padding-bottom: 5px;
color: #333333; /* Darker text for headers */
}
/* Caption styling */
.featured-caption {
margin-top: 10px;
font-size: 0.9em; /* Slightly smaller font size */
color: #555555; /* Dark grey color for caption text */
text-align: center;
font-style: italic; /* Italic style for captions */
}
/* Featured image style */
.featured-image {
border: 1px solid #a2a9b1;
padding: 10px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Small shadow for depth */
background-color: #ffffff; /* White background for contrast */
text-align: center;
}
/* Adjust children elements spacing */
#mp-tfa > * {
margin-right: 15px; /* Adds space between children */
}
#mp-tfa > *:last-child {
margin-right: 0; /* Removes margin from the last child to prevent extra space */
}
/* Text styling for the Featured Article */
#mp-tfa p {
margin: 0;
line-height: 1.6;
}
#mp-tfa a {
color: #0645ad; /* Wikipedia link blue */
text-decoration: none; /* Removes underline from links */
}
#mp-tfa a:hover {
text-decoration: underline; /* Adds underline on hover */
}
/* Delve into the Lore Section */
#mp-otd {
background-color: #f9f4e5; /* Matches the section background */
padding: 15px;
border-radius: 5px;
}
/* List styling within the Delve into the Lore section */
#mp-otd ul li {
background-color: #f9f4e5; /* Matches the section background */
}
#mp-otd ul li a:hover {
text-decoration: underline; /* Adds underline on hover for links */
}