Template:WelcomeBox/styles.css: Difference between revisions
Template page
More actions
Admin Jeremy (talk | contribs) No edit summary |
Admin Jeremy (talk | contribs) No edit summary |
||
| Line 58: | Line 58: | ||
} | } | ||
/* Footer links */ | |||
background:#c8eb7a; | .MainWelcomeFooter { | ||
border-radius:0 0 18px 18px; | background: #c8eb7a; | ||
padding:1px 12px; | border-radius: 0 0 18px 18px; | ||
text-align:center; | padding: 1px 12px; | ||
font-size:90% | text-align: center; | ||
font-size: 90%; | |||
} | } | ||
| Line 111: | Line 112: | ||
Welcome Hotbar | Welcome Hotbar | ||
========================= */ | ========================= */ | ||
/* Turn wiki links into nav buttons */ | /* Turn wiki links into nav buttons */ | ||
Latest revision as of 17:27, 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;
}
.MainWelcomeBody {
display: grid;
grid-template-columns: auto 1fr;
gap: 20px;
padding: 20px;
align-items: start;
border-radius: 0 0 0 0; /* prevents double rounding */
}
.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: 1px 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%;
}
.MainWelcomeHotbarLinks a {
display: block;
margin: 3px auto;
padding: 4px 10px;
width: 75%;
}
}
/* Fix for smaller phones */
@media (max-width: 480px) {
.MainWelcomeImage {
max-width: 40%;
}
}
.MainWelcomeText strong {
font-size: 110%;
}
/* =========================
Welcome Hotbar
========================= */
/* Turn wiki links into nav buttons */
.MainWelcomeHotbarLinks a {
display: inline-block;
margin: 2px 4px;
padding: 3px 10px;
font-size: 85%;
line-height: 1.2;
background: #f8ffe8;
border-radius: 999px;
font-weight: 600;
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;
}