MediaWiki:Common.css: Difference between revisions
Arisepedia (talk | contribs) No edit summary Tag: Manual revert |
Arisepedia (talk | contribs) No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
/* MediaWiki:Common.css */ | /* MediaWiki:Common.css */ | ||
:root { | |||
--bg-color: #f9f9f9; | |||
--text-color: #333; | |||
--hero-bg: #fc5351; | |||
--hero-text: #ffffff; | |||
--card-bg: #ffffff; | |||
--card-border: #e0e0e0; | |||
--heading-color: #6c0cec; | |||
--cta-bg: #f4f4f4; | |||
--footer-bg: #ffffff; | |||
--footer-text: #777; | |||
--link-color: #fc5351; | |||
--link-hover: #b03a30; | |||
} | |||
@media (prefers-color-scheme: dark) { | |||
:root { | |||
--bg-color: #1a1a1a; | |||
--text-color: #e0e0e0; | |||
--hero-bg: #8c2c2b; | |||
--hero-text: #ffffff; | |||
--card-bg: #2a2a2a; | |||
--card-border: #444; | |||
--heading-color: #9f6cf7; | |||
--cta-bg: #2a2a2a; | |||
--footer-bg: #2a2a2a; | |||
--footer-text: #999; | |||
--link-color: #ff7b7a; | |||
--link-hover: #ff9e9d; | |||
} | |||
} | |||
body { | body { | ||
font-family: 'Arial', sans-serif; | font-family: 'Arial', sans-serif; | ||
color: | color: var(--text-color); | ||
background-color: | background-color: var(--bg-color); | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
transition: background-color 0.3s, color 0.3s; | |||
} | } | ||
.hero { | .hero { | ||
background: | background: var(--hero-bg); | ||
color: | color: var(--hero-text); | ||
padding: 60px 20px; | padding: 60px 20px; | ||
border-radius: 20px; | border-radius: 20px; | ||
Line 32: | Line 63: | ||
} | } | ||
.hero | .hero .cta-button { | ||
display: inline-block; | display: inline-block; | ||
background: | background: var(--hero-text); | ||
color: | color: var(--hero-bg); | ||
padding: 15px 30px; | padding: 15px 30px; | ||
border-radius: 30px; | border-radius: 30px; | ||
Line 43: | Line 74: | ||
margin-top: 20px; | margin-top: 20px; | ||
transition: background 0.3s, color 0.3s; | transition: background 0.3s, color 0.3s; | ||
border: 2px solid | border: 2px solid var(--hero-text); | ||
} | } | ||
.hero | .hero .cta-button:hover { | ||
background: | background: var(--hero-bg); | ||
color: | color: var(--hero-text); | ||
} | } | ||
.card { | .card { | ||
background: | background: var(--card-bg); | ||
border-radius: 15px; | border-radius: 15px; | ||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); | box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); | ||
padding: 20px; | padding: 20px; | ||
border: 1px solid | border: 1px solid var(--card-border); | ||
margin-bottom: 20px; | margin-bottom: 20px; | ||
} | } | ||
Line 63: | Line 93: | ||
.card h2 { | .card h2 { | ||
font-size: 2em; | font-size: 2em; | ||
color: | color: var(--heading-color); | ||
border-bottom: 3px solid | border-bottom: 3px solid var(--card-border); | ||
padding-bottom: 10px; | padding-bottom: 10px; | ||
margin-bottom: 20px; | margin-bottom: 20px; | ||
Line 72: | Line 102: | ||
.card p { | .card p { | ||
font-size: 1.2em; | font-size: 1.2em; | ||
line-height: 1.6; | line-height: 1.6; | ||
} | } | ||
.cta { | .cta { | ||
background: | background: var(--cta-bg); | ||
color: | color: var(--text-color); | ||
padding: 40px; | padding: 40px; | ||
border-radius: 15px; | border-radius: 15px; | ||
Line 90: | Line 118: | ||
font-size: 2.2em; | font-size: 2.2em; | ||
font-weight: 700; | font-weight: 700; | ||
color: | color: var(--link-color); | ||
margin: 0; | margin: 0; | ||
} | } | ||
Line 100: | Line 128: | ||
.cta a { | .cta a { | ||
color: | color: var(--link-color); | ||
font-weight: 600; | font-weight: 600; | ||
text-decoration: underline; | text-decoration: underline; | ||
Line 107: | Line 135: | ||
.cta a:hover { | .cta a:hover { | ||
color: | color: var(--link-hover); | ||
} | } | ||
.footer { | .footer { | ||
text-align: center; | text-align: center; | ||
padding: 20px; | padding: 20px; | ||
background: | background: var(--footer-bg); | ||
border-top: 1px solid | border-top: 1px solid var(--card-border); | ||
margin-top: 40px; | margin-top: 40px; | ||
box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); | box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); | ||
Line 122: | Line 149: | ||
.footer p { | .footer p { | ||
margin: 0; | margin: 0; | ||
color: | color: var(--footer-text); | ||
font-size: 1.1em; | font-size: 1.1em; | ||
} | } | ||
Line 128: | Line 155: | ||
/* Media Queries */ | /* Media Queries */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.hero h1 { | .hero h1 { font-size: 1.8em; } | ||
.hero p { font-size: 1em; } | |||
.hero .cta-button { font-size: 1em; padding: 10px 20px; } | |||
.hero p { | .card h2 { font-size: 1.5em; } | ||
.card p { font-size: 1em; } | |||
.cta h2 { font-size: 1.8em; } | |||
.hero | .cta p { font-size: 1em; } | ||
.card h2 { | |||
.card p { | |||
.cta h2 { | |||
.cta p { | |||
} | } | ||
@media (max-width: 480px) { | @media (max-width: 480px) { | ||
.hero h1 { | .hero h1 { font-size: 1.5em; } | ||
.hero p { font-size: 0.9em; } | |||
.hero .cta-button { font-size: 0.9em; padding: 8px 15px; } | |||
.hero p { | .card h2 { font-size: 1.3em; } | ||
.card p { font-size: 0.9em; } | |||
.cta h2 { font-size: 1.5em; } | |||
.hero | .cta p { font-size: 0.9em; } | ||
.card h2 { | |||
.card p { | |||
.cta h2 { | |||
.cta p { | |||
} | } | ||
Revision as of 18:13, 5 October 2024
/* MediaWiki:Common.css */ :root { --bg-color: #f9f9f9; --text-color: #333; --hero-bg: #fc5351; --hero-text: #ffffff; --card-bg: #ffffff; --card-border: #e0e0e0; --heading-color: #6c0cec; --cta-bg: #f4f4f4; --footer-bg: #ffffff; --footer-text: #777; --link-color: #fc5351; --link-hover: #b03a30; } @media (prefers-color-scheme: dark) { :root { --bg-color: #1a1a1a; --text-color: #e0e0e0; --hero-bg: #8c2c2b; --hero-text: #ffffff; --card-bg: #2a2a2a; --card-border: #444; --heading-color: #9f6cf7; --cta-bg: #2a2a2a; --footer-bg: #2a2a2a; --footer-text: #999; --link-color: #ff7b7a; --link-hover: #ff9e9d; } } body { font-family: 'Arial', sans-serif; color: var(--text-color); background-color: var(--bg-color); margin: 0; padding: 0; transition: background-color 0.3s, color 0.3s; } .hero { background: var(--hero-bg); color: var(--hero-text); padding: 60px 20px; border-radius: 20px; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); text-align: center; margin-bottom: 40px; } .hero h1 { font-size: 2.5em; font-weight: 700; margin: 0; } .hero p { font-size: 1.25em; margin: 20px 0; font-weight: 300; } .hero .cta-button { display: inline-block; background: var(--hero-text); color: var(--hero-bg); padding: 15px 30px; border-radius: 30px; text-decoration: none; font-size: 1.2em; font-weight: 600; margin-top: 20px; transition: background 0.3s, color 0.3s; border: 2px solid var(--hero-text); } .hero .cta-button:hover { background: var(--hero-bg); color: var(--hero-text); } .card { background: var(--card-bg); border-radius: 15px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); padding: 20px; border: 1px solid var(--card-border); margin-bottom: 20px; } .card h2 { font-size: 2em; color: var(--heading-color); border-bottom: 3px solid var(--card-border); padding-bottom: 10px; margin-bottom: 20px; font-weight: 700; } .card p { font-size: 1.2em; line-height: 1.6; } .cta { background: var(--cta-bg); color: var(--text-color); padding: 40px; border-radius: 15px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); text-align: center; margin-top: 40px; } .cta h2 { font-size: 2.2em; font-weight: 700; color: var(--link-color); margin: 0; } .cta p { font-size: 1.2em; margin-top: 15px; } .cta a { color: var(--link-color); font-weight: 600; text-decoration: underline; transition: color 0.3s; } .cta a:hover { color: var(--link-hover); } .footer { text-align: center; padding: 20px; background: var(--footer-bg); border-top: 1px solid var(--card-border); margin-top: 40px; box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); } .footer p { margin: 0; color: var(--footer-text); font-size: 1.1em; } /* Media Queries */ @media (max-width: 768px) { .hero h1 { font-size: 1.8em; } .hero p { font-size: 1em; } .hero .cta-button { font-size: 1em; padding: 10px 20px; } .card h2 { font-size: 1.5em; } .card p { font-size: 1em; } .cta h2 { font-size: 1.8em; } .cta p { font-size: 1em; } } @media (max-width: 480px) { .hero h1 { font-size: 1.5em; } .hero p { font-size: 0.9em; } .hero .cta-button { font-size: 0.9em; padding: 8px 15px; } .card h2 { font-size: 1.3em; } .card p { font-size: 0.9em; } .cta h2 { font-size: 1.5em; } .cta p { font-size: 0.9em; } } #ca-viewsource { display: none; }