Template:Main Page/styles.css: Difference between revisions
Appearance
EkramHossen (talk | contribs) No edit summary |
EkramHossen (talk | contribs) No edit summary |
||
| Line 101: | Line 101: | ||
/* Featured box styling for Main_Page */ | |||
/* | |||
.featured-box { | .featured-box { | ||
font-family: sans-serif; | font-family: sans-serif; | ||
font-size: 0.9em; | font-size: 0.9em; | ||
border: 1px solid # | border: 1px solid #a2a9b1; | ||
background-color: #f8f9fa; | background-color: #f8f9fa; | ||
max-width: 720px; | max-width: 720px; | ||
margin: 1em auto; | margin: 1em auto; | ||
| Line 115: | Line 112: | ||
.featured-header { | .featured-header { | ||
background-color: # | background-color: #eaecf0; | ||
padding: 0. | padding: 0.4em 1em; | ||
font-weight: bold; | font-weight: bold; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #a2a9b1; | ||
background: #d8cef6; /* Pale violet from your screenshot */ | |||
} | } | ||
| Line 128: | Line 126: | ||
.featured-content img { | .featured-content img { | ||
display: block; | display: block; | ||
margin: 0.5em auto; | |||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
} | } | ||
| Line 142: | Line 140: | ||
} | } | ||
.photo-credit | .photo-credit, .footer-links { | ||
.footer-links { | |||
font-size: 0.8em; | font-size: 0.8em; | ||
color: #444; | |||
margin-top: 0.8em; | margin-top: 0.8em; | ||
} | } | ||
Revision as of 06:40, 20 July 2025
/* Welcome box */
.fp-welcome-box {
background-color: #1f2937;
padding: 2em 1em;
margin-bottom: 1em;
text-align: center;
border: 1px solid #374151;
font-family: Georgia;
}
/* Welcome title */
.fp-welcome-title {
font-size: 2.5em;
font-weight: 400;
color: #f9fafb;
}
/* Subtext under the welcome line */
.fp-welcome-subtext {
font-size: 1em;
color: #38bdf8;
margin-top: 0.5em;
display: block;
}
/* Styled link imitation */
.fp-welcome-subtext .fp-link {
color: #60a5fa;
text-decoration: none;
}
.fp-welcome-subtext .fp-link:hover {
text-decoration: underline;
}
/* End Welcome Box */
/* Container for top boxes */
.mp-main-container {
display: flex;
gap: 1em;
margin-bottom: 1em;
}
/* Box styling */
.green-box, .blue-box {
padding: 1em;
border: 1px solid #a2a9b1;
border-radius: 5px;
background-color: #f8f9fa;
flex: 1;
}
/* Specific colors */
.green-box {
background-color: #f5fff5;
border-left: 10px solid #a7d7a7;
}
.blue-box {
background-color: #f5faff;
border-left: 10px solid #aaccee;
}
/* Lower section (Did you know, On this day) */
.mp-lower-container {
display: flex;
gap: 1em;
}
.mp-lower-box {
flex: 1;
padding: 1em;
border: 1px solid #a2a9b1;
border-radius: 5px;
}
/* Headings inside boxes */
.green-box > h3, .blue-box > h3 {
margin-top: 0;
font-size: 1.2em;
border-bottom: 1px solid #ccc;
}
/* Link styling */
a {
color: #0645ad;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* End Four Box */
/* Featured box styling for Main_Page */
.featured-box {
font-family: sans-serif;
font-size: 0.9em;
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
max-width: 720px;
margin: 1em auto;
}
.featured-header {
background-color: #eaecf0;
padding: 0.4em 1em;
font-weight: bold;
border-bottom: 1px solid #a2a9b1;
background: #d8cef6; /* Pale violet from your screenshot */
}
.featured-content {
padding: 1em;
background-color: #ffffff;
}
.featured-content img {
display: block;
margin: 0.5em auto;
max-width: 100%;
height: auto;
}
.featured-content a {
color: #0645ad;
text-decoration: none;
}
.featured-content a:hover {
text-decoration: underline;
}
.photo-credit, .footer-links {
font-size: 0.8em;
color: #444;
margin-top: 0.8em;
}