Adaris:Main Page/styles.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 66: | Line 66: | ||
margin-left: 2px; | margin-left: 2px; | ||
} | } | ||
} | |||
/* General styling for h2 elements in the different sections */ | |||
.mp-h2 { | |||
padding-left: 10px; /* Adds space to the left */ | |||
border: 2px solid #6e6543; /* Adds a thicker border */ | |||
margin: 0.5em 0; | |||
padding: 0.4em 0.6em; | |||
font-size: 120%; | |||
font-weight: bold; | |||
color: #5a3b91; /* Deep magical purple */ | |||
} | } | ||
/* Color scheme for specific sections */ | /* Color scheme for specific sections */ | ||
@media screen { | @media screen { | ||
#mp-left .mp-h2 { | #mp-left .mp-h2 { | ||
background-color: #c4e6d0; /* Soft green for a natural vibe */ | background-color: #c4e6d0; /* Soft green for a natural vibe */ | ||
border-color: #2e573b; /* Darker green border */ | border-color: #2e573b; /* Darker green border */ | ||
} | } | ||
#mp-right .mp-h2 { | #mp-right .mp-h2 { | ||
background-color: #dab4e3; /* Muted lavender for a soft, magical feel */ | background-color: #dab4e3; /* Muted lavender for a soft, magical feel */ | ||
border-color: #804093; /* Darker purple for contrast */ | border-color: #804093; /* Darker purple for contrast */ | ||
padding-left: 10px; /* Adds space to the left */ | |||
} | } | ||
Line 108: | Line 95: | ||
background-color: #e2c084; /* Rich gold background */ | background-color: #e2c084; /* Rich gold background */ | ||
border-color: #b0915a; /* Deep gold border */ | border-color: #b0915a; /* Deep gold border */ | ||
padding-left: 10px; /* Adds space to the left */ | |||
} | } | ||
#mp-lower .mp-h2 { | #mp-lower .mp-h2 { | ||
background-color: #d6b6e6; /* Richer lavender for headings */ | background-color: #d6b6e6; /* Richer lavender for headings */ | ||
border-color: #7f3b93; /* Darker purple for a magical touch */ | border-color: #7f3b93; /* Darker purple for a magical touch */ | ||
padding-left: 10px; /* Adds space to the left */ | |||
} | } | ||
#mp-bottom .mp-h2 { | #mp-bottom .mp-h2 { | ||
background-color: #f0e6d8; /* Soft parchment background */ | background-color: #f0e6d8; /* Soft parchment background */ | ||
border-color: #b09d84; /* Warm brown border */ | border-color: #b09d84; /* Warm brown border */ | ||
padding-left: 10px; /* Adds space to the left */ | |||
} | } | ||
} | } |
Revision as of 03:59, 8 September 2024
/* General styling for boxes and headings */
.mp-box {
border: 1px solid #6e6543; /* A warm earthy border */
padding: 0 0.5em 0.5em;
margin-top: 2px;
background-color: #f4f0e6; /* Light parchment-like background for a magical, old-world feel */
}
/* Less prominent text */
.mp-later {
font-size: 85%;
font-weight: normal;
color: #9159b3; /* Light magical lavender for minor text */
}
/* Welcome text at the top */
#mp-welcomecount {
text-align: center;
margin: 0.4em;
}
#mp-welcome {
font-size: 162%;
padding: 0.1em;
color: #5a3b91; /* The same deep magical purple for the welcome text */
}
#mp-welcome h1,
#mp-welcome .mw-heading1 {
font-size: inherit;
font-family: inherit;
display: inline;
border: none;
}
#mp-free {
font-size: 95%;
color: #3b6e47; /* Rich green to suggest nature and magic */
}
#articlecount {
font-size: 85%;
color: #9159b3; /* Slightly softer lavender for article count */
}
/* Clear floats */
.mp-contains-float::after {
content: "";
display: block;
clear: both;
}
/* Flexbox for layout on larger screens */
@media (min-width: 875px) {
#mp-upper {
display: flex;
}
#mp-left {
flex: 1 1 55%;
margin-right: 2px;
}
#mp-right {
flex: 1 1 45%;
margin-left: 2px;
}
}
/* General styling for h2 elements in the different sections */
.mp-h2 {
padding-left: 10px; /* Adds space to the left */
border: 2px solid #6e6543; /* Adds a thicker border */
margin: 0.5em 0;
padding: 0.4em 0.6em;
font-size: 120%;
font-weight: bold;
color: #5a3b91; /* Deep magical purple */
}
/* Color scheme for specific sections */
@media screen {
#mp-left .mp-h2 {
background-color: #c4e6d0; /* Soft green for a natural vibe */
border-color: #2e573b; /* Darker green border */
}
#mp-right .mp-h2 {
background-color: #dab4e3; /* Muted lavender for a soft, magical feel */
border-color: #804093; /* Darker purple for contrast */
padding-left: 10px; /* Adds space to the left */
}
#mp-middle .mp-h2 {
background-color: #e2c084; /* Rich gold background */
border-color: #b0915a; /* Deep gold border */
padding-left: 10px; /* Adds space to the left */
}
#mp-lower .mp-h2 {
background-color: #d6b6e6; /* Richer lavender for headings */
border-color: #7f3b93; /* Darker purple for a magical touch */
padding-left: 10px; /* Adds space to the left */
}
#mp-bottom .mp-h2 {
background-color: #f0e6d8; /* Soft parchment background */
border-color: #b09d84; /* Warm brown border */
padding-left: 10px; /* Adds space to the left */
}
}
/* Dark mode color scheme */
html.skin-theme-clientpref-night #mp-topbanner {
background-color: #23282a;
border-color: #5f5348;
}
html.skin-theme-clientpref-night #mp-banner {
background-color: #5f3b63;
border-color: #87638f;
}
html.skin-theme-clientpref-night #mp-left {
background-color: #23342f;
border-color: #2e573b;
}
html.skin-theme-clientpref-night #mp-left .mp-h2 {
background-color: #2e573b;
border-color: #416b51;
}
html.skin-theme-clientpref-night #mp-right {
background-color: #362337;
border-color: #7a497f;
}
html.skin-theme-clientpref-night #mp-right .mp-h2 {
background-color: #7a497f;
border-color: #9f65a4;
}
html.skin-theme-clientpref-night #mp-middle {
background-color: #4f3b31;
border-color: #75413d;
}
html.skin-theme-clientpref-night #mp-lower {
background-color: #362744;
border-color: #6a578d;
}
html.skin-theme-clientpref-night #mp-bottom {
border-color: #5f5348;
}
html.skin-theme-clientpref-night #mp-bottom .mp-h2 {
background-color: #4b423d;
border-color: #7f5f53;
}
/* Button-like styling for "Read the full article" and "Explore More" links */
.explore-more {
margin-top: 15px;
clear: both; /* Ensures it clears any floating elements */
display: flex;
justify-content: center;
}
.explore-more p a {
font-size: 1.2em;
font-weight: bold;
color: #5a3b91; /* Rich purple for links */
text-decoration: none;
padding: 10px 15px;
background-color: #dab4e3; /* Soft magical lavender background */
border: 2px solid #804093; /* Darker purple border */
border-radius: 10px; /* Pronounced rounded corners */
display: inline-block;
text-align: center;
transition: background-color 0.3s, color 0.3s;
}
.explore-more p a:hover {
background-color: #804093; /* Darker magical purple on hover */
color: #ffffff; /* White text on hover */
}
/* Button styling for Read the full article */
.read-more {
margin-top: 15px;
clear: both; /* Ensures it clears any floating elements */
display: flex;
justify-content: center;
}
.read-more a {
font-size: 1.2em;
font-weight: bold;
color: #5a3b91; /* Rich purple */
text-decoration: none;
padding: 10px 15px;
background-color: #dab4e3; /* Soft lavender */
border: 2px solid #804093; /* Darker purple */
border-radius: 10px;
text-align: center;
transition: background-color 0.3s, color 0.3s;
}
.read-more a:hover {
background-color: #804093;
color: #ffffff;
}
/* Featured picture container styling */
#mp-tfp {
border: 1px solid #8f7a66; /* Border for the featured image container */
padding: 10px;
border-radius: 5px;
background-color: #f3e6f7; /* Pale lavender background */
text-align: center;
}
/* Featured caption styling */
.featured-caption {
margin-top: 10px;
font-size: 0.9em;
color: #5a3b91; /* Magical purple */
text-align: center;
font-style: italic; /* Italic for captions */
}
/* Ensure layout stays in two columns */
@media (min-width: 875px) {
#mp-upper {
display: flex;
justify-content: space-between;
}
}