Template:WelcomeBox/styles.css: Difference between revisions
Template page
More actions
Admin Jeremy (talk | contribs) No edit summary Tags: Manual revert Reverted |
Admin Jeremy (talk | contribs) No edit summary Tag: Manual revert |
||
| Line 100: | Line 100: | ||
.MainWelcomeText strong { | .MainWelcomeText strong { | ||
font-size: 110%; | font-size: 110%; | ||
} | |||
/* ========================= | |||
Welcome Hotbar | |||
========================= */ | |||
.MainWelcomeHotbar { | |||
background: #b9e062; | |||
border-radius: 0 0 18px 18px; | |||
padding: 10px 14px; | |||
text-align: center; | |||
border-top: 2px solid rgba(0,0,0,0.08); | |||
} | |||
/* Turn wiki links into nav buttons */ | |||
.MainWelcomeHotbarLinks a { | |||
display: inline-block; | |||
margin: 4px 6px; | |||
padding: 6px 14px; | |||
background: #f8ffe8; | |||
border-radius: 999px; | |||
font-weight: 600; | |||
font-size: 90%; | |||
text-decoration: none; | |||
color: #2c3e0f; | |||
transition: | |||
background 0.15s ease, | |||
transform 0.1s ease, | |||
box-shadow 0.1s ease; | |||
} | |||
/* Hover animation */ | |||
.MainWelcomeHotbarLinks a:hover { | |||
background: #ffffff; | |||
transform: translateY(-1px); | |||
box-shadow: 0 2px 4px rgba(0,0,0,0.15); | |||
} | |||
/* Click animation */ | |||
.MainWelcomeHotbarLinks a:active { | |||
transform: translateY(0); | |||
box-shadow: none; | |||
} | } | ||
Revision as of 17:11, 21 February 2026
/* =========================
Main Welcome Box
========================= */
.MainWelcomeBox {
background: #f8ffe8;
border-radius: 18px;
padding: 0;
margin-bottom: 24px;
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
/* Header band */
.MainWelcomeHeader {
background: #c8eb7a;
border-radius: 18px 18px 0 0;
padding: 18px 20px 14px;
text-align: center;
}
.MainWelcomeTitle {
font-size: 300%;
font-weight: bold;
margin-bottom: 4px;
font-family: 'VPTIP';
}
.MainWelcomeSubtitle {
font-style: italic;
font-size: 95%;
opacity: 0.85;
}
/* Body layout */
.MainWelcomeBody {
display: grid;
grid-template-columns: auto 1fr;
gap: 20px;
padding: 20px;
align-items: start; /* important */
}
.MainWelcomeImage img {
display: block;
filter: drop-shadow(4px 6px 6px rgba(0, 0, 0, 0.35));
}
.MainWelcomeImage {
display: flex;
justify-content: center;
}
.MainWelcomeText {
text-align: center;
line-height: 1.5;
}
/* Footer links */
.MainWelcomeFooter {
background: #c8eb7a;
border-radius: 0 0 18px 18px;
padding: 8px 12px;
text-align: center;
font-size: 90%;
}
@media (max-width: 700px) {
.MainWelcomeBody {
display: block; /* kill grid */
}
.MainWelcomeImage {
float: right;
max-width: 50%;
margin: 0 12px 8px 0;
}
.MainWelcomeImage img {
width: 100%;
height: auto;
}
.MainWelcomeText {
text-align: left;
}
.MainWelcomeTitle {
font-size: 140%;
}
}
/* Fix for smaller phones */
@media (max-width: 480px) {
.MainWelcomeImage {
max-width: 40%;
}
}
.MainWelcomeText strong {
font-size: 110%;
}
/* =========================
Welcome Hotbar
========================= */
.MainWelcomeHotbar {
background: #b9e062;
border-radius: 0 0 18px 18px;
padding: 10px 14px;
text-align: center;
border-top: 2px solid rgba(0,0,0,0.08);
}
/* Turn wiki links into nav buttons */
.MainWelcomeHotbarLinks a {
display: inline-block;
margin: 4px 6px;
padding: 6px 14px;
background: #f8ffe8;
border-radius: 999px;
font-weight: 600;
font-size: 90%;
text-decoration: none;
color: #2c3e0f;
transition:
background 0.15s ease,
transform 0.1s ease,
box-shadow 0.1s ease;
}
/* Hover animation */
.MainWelcomeHotbarLinks a:hover {
background: #ffffff;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
/* Click animation */
.MainWelcomeHotbarLinks a:active {
transform: translateY(0);
box-shadow: none;
}