MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* Root color variables for light theme */ | ||
# | @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap'); | ||
display: block !important; | |||
background- | :root { | ||
background-size: | --background-color-base: #E6E6DD; /* Light Beige */ | ||
--text-color-base: #000000; /* Black */ | |||
} | |||
/* General light theme styling */ | |||
body { | |||
font-family: 'Roboto', sans-serif; | |||
background-color: var(--background-color-base); | |||
color: var(--text-color-base); | |||
} | |||
/* Light theme specific elements */ | |||
.vector-pinned-container { | |||
background-color: var(--background-color-base); | |||
} | |||
/* Dark theme styling when `skin-theme-clientpref-night` class is present */ | |||
.skin-theme-clientpref-night :root { | |||
--background-color-base: #121212; /* Dark Gray */ | |||
--text-color-base: #EAEAEA; /* Light Gray */ | |||
} | |||
.skin-theme-clientpref-night { | |||
background-color: #121212; | |||
color: #EAEAEA; | |||
} | |||
.skin-theme-clientpref-night .vector-pinned-container { | |||
background-color: var(--background-color-base); | |||
} | |||
.skin-theme-clientpref-night .mw-logo-icon { | |||
filter: invert(1) hue-rotate(180deg); | |||
background-color: transparent; | |||
} | |||
@media (min-width: 720px) { | |||
.mw-logo-wordmark { | |||
display: block; | |||
margin: 0 auto; | |||
} | |||
} | |||
.mw-logo-wordmark { | |||
display: none; | |||
} | |||
.mw-logo-icon { | |||
float: left; | |||
margin-right: 10px; | |||
display: block; | |||
width: 3.125em; | |||
height: 3.125em; | |||
} | |||
@media (max-width: 800px) { | |||
.ief-landing-hero { | |||
flex-direction: column; | |||
} | |||
.ief-landing-hero-title { | |||
font-size:18px; | |||
text-align:center; | |||
} | |||
} | |||
.ief-landing-hero-title { | |||
font-size:36px; | |||
text-align: left !important; | |||
} | |||
@media (min-width: 800px) { | |||
.ief-landing-hero { | |||
display: flex !important; | |||
align-items: flex-start !important; | |||
flex-direction: row !important; | |||
justify-content: start !important; | |||
} | |||
} | |||
.card-container { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 12px; | |||
justify-content: center; | |||
background-color: transparent; | |||
} | |||
.card { | |||
width: calc(40%); | |||
background-color: #F5F5F5; | |||
border: 1px solid #CCCCCC; | |||
padding: 8px 5px; | |||
text-align: center; | |||
color: #000000; | |||
box-shadow: 0px 4px 8px rgba(0,0,0,0.1); | |||
border-radius: 4px; | |||
} | |||
.card-container { | |||
background-color: transparent !important; | |||
} | |||
@media (max-width: 768px) { | |||
.card { | |||
width: 100%; /* full width for smaller screens */ | |||
} | |||
} | |||
.pl20 { | |||
padding-left: 20px !important; | |||
} | |||
/* Book Banner Popup */ | |||
.book-banner-popup { | |||
position: fixed; | |||
top: 50%; | |||
left: 50%; | |||
transform: translate(-50%, -50%); | |||
background: linear-gradient(135deg, #f9f9f9, #e6ffe6); | |||
border: 2px solid black; | |||
color: #155724; | |||
padding: 20px; | |||
border-radius: 12px; | |||
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); | |||
width: 320px; | |||
max-width: 90%; | |||
font-family: Arial, sans-serif; | |||
z-index: 1000; | |||
box-sizing: border-box; | |||
text-align: center; | |||
display: none; /* Initially hidden until injected by JavaScript */ | |||
} | |||
/* Headline Style */ | |||
.book-banner-popup h3 { | |||
margin: 0 0 15px; | |||
font-size: 20px; | |||
font-weight: bold; | |||
color: #154d2e; | |||
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); | |||
} | |||
/* Link Button Style */ | |||
.book-banner-link { | |||
color: #ffffff; | |||
text-decoration: none; | |||
font-weight: bold; | |||
background-color: #3cb371; /* Medium Sea Green */ | |||
padding: 10px 15px; | |||
border-radius: 5px; | |||
display: inline-block; | |||
margin-top: 10px; | |||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); | |||
transition: background-color 0.3s ease, transform 0.2s ease; | |||
} | |||
.book-banner-link:hover { | |||
background-color: #2e8b57; /* Sea Green */ | |||
transform: scale(1.05); | |||
} | |||
/* Close Button Style */ | |||
.book-banner-close { | |||
position: absolute; | |||
top: 10px; | |||
right: 10px; | |||
background: none; | |||
border: none; | |||
color: black; | |||
font-size: 18px; | |||
cursor: pointer; | |||
font-weight: bold; | |||
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); | |||
} | } | ||
. | .book-banner-close:hover { | ||
color: #8b0000; /* Dark Red */ | |||
transform: scale(1.2); | |||
} | } | ||
. | /* Centered for Small Screens */ | ||
@media (max-width: 768px) { | |||
width: | .book-banner-popup { | ||
top: 50%; | |||
left: 50%; | |||
transform: translate(-50%, -50%); | |||
width: 280px; | |||
} | |||
} | } | ||
. | /* Hide the fallback .book-banner element from the article */ | ||
.book-banner { | |||
display: none; | |||
} | } | ||