MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 144: | Line 144: | ||
@media (max-width: 420px) { | @media (max-width: 420px) { | ||
.tv-cta__btn::after { width: 24px; height: 24px; } | .tv-cta__btn::after { width: 24px; height: 24px; } | ||
/* Add a flame icon via CSS so we don’t need inline <svg> in wikitext */ | |||
.tv-cta__btn::after { | |||
content: ""; | |||
width: 28px; | |||
height: 28px; | |||
margin-left: auto; /* push icon to the right edge */ | |||
flex-shrink: 0; | |||
background-repeat: no-repeat; | |||
background-position: center; | |||
background-size: contain; | |||
/* Inline SVG as a data URI. If your wiki blocks data URIs, swap to a PNG (see below). */ | |||
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><linearGradient id='g' x1='0' x2='1' y1='0' y2='1'><stop offset='0%' stop-color='%23ffd86b'/><stop offset='100%' stop-color='%23ff6a00'/></linearGradient></defs><path fill='url(%23g)' d='M13.5 2.5c.6 2.9-1 4.2-2.4 5.6-1.1 1.1-2.1 2.1-2.1 3.8 0 2.5 2 4.6 4.6 4.6 2.7 0 4.9-2.2 4.9-4.9 0-3.3-2.7-5.8-5-9.1zM9.8 14.4c0 1.7 1.4 3.1 3.1 3.1s3.1-1.4 3.1-3.1c0-1.1-.6-2.1-1.5-3.2-.4 1.1-1.5 2.1-2.6 2.1-.9 0-1.6-.3-2.1-.9 0 .7 0 1.2 0 2z'/></svg>"); | |||
} | |||
@media (max-width: 420px) { | |||
.tv-cta__btn::after { width: 24px; height: 24px; } | |||
} | |||
} | } | ||
Revision as of 13:49, 7 September 2025
/* CSS placed here will be applied to all skins */
#p-tb {
display: none;
}
body.page-Home #firstHeading {
display: none;
}
/* Force all links to be underlined */
a,
a:visited,
a:active {
text-decoration: underline !important;
}
/* Download buttons row */
.download-row {
display: flex;
flex-wrap: wrap; /* wrap if super narrow */
justify-content: center; /* center the row */
gap: 12px; /* space between buttons */
margin: 8px 0 16px;
}
/* Make the badge images responsive */
.download-row img {
width: clamp(140px, 28vw, 200px); /* 140–200px, scales with viewport */
height: auto;
display: block;
}
.spoiler {
filter: blur(6px);
cursor: pointer;
transition: filter 0.3s ease;
}
.spoiler.revealed {
filter: none;
}
/* Treeverse Season 2 Alpha – responsive CTA banner */
.tv-cta {
display: flex;
justify-content: center;
margin: 16px 0;
}
.tv-cta__btn {
--tv-bg1: #ff8c00;
--tv-bg2: #ff5e00;
--tv-text: #ffffff;
--tv-border: rgba(255, 255, 255, 0.25);
--tv-shadow: rgba(0, 0, 0, 0.25);
display: inline-flex;
align-items: center;
gap: 12px;
width: 100%;
max-width: 780px;
padding: 14px 18px;
border-radius: 16px;
text-decoration: none;
color: var(--tv-text);
font-weight: 700;
background: linear-gradient(45deg, var(--tv-bg1), var(--tv-bg2));
border: 1px solid var(--tv-border);
box-shadow: 0 6px 18px var(--tv-shadow);
transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.tv-cta__btn:hover,
.tv-cta__btn:focus-visible {
transform: translateY(-1px);
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
filter: brightness(1.02);
outline: none;
}
.tv-cta__left {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.tv-cta__eyebrow {
font-size: 12px;
font-weight: 600;
opacity: 0.9;
letter-spacing: 0.04em;
text-transform: uppercase;
white-space: nowrap;
}
.tv-cta__label {
font-size: clamp(16px, 2.5vw, 22px);
line-height: 1.15;
}
.tv-cta__icon {
flex-shrink: 0;
width: 28px;
height: 28px;
filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25));
}
@media (max-width: 420px) {
.tv-cta__btn { padding: 12px 14px; border-radius: 14px; }
.tv-cta__icon { width: 24px; height: 24px; }
.tv-cta__eyebrow { display: none; }
}
@media (prefers-color-scheme: dark) {
.tv-cta__btn {
--tv-border: rgba(255, 255, 255, 0.15);
--tv-shadow: rgba(0, 0, 0, 0.55);
}
}
@media (prefers-reduced-motion: reduce) {
.tv-cta__btn { transition: none; }
}
/* Add a flame icon via CSS so we don’t need inline <svg> in wikitext */
.tv-cta__btn::after {
content: "";
width: 28px;
height: 28px;
margin-left: auto; /* pushes icon to the right edge */
flex-shrink: 0;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
/* Data-URI SVG to avoid uploading a separate file.
If this ever gets blocked, swap to a PNG URL instead. */
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><linearGradient id='g' x1='0' x2='1' y1='0' y2='1'><stop offset='0%' stop-color='%23ffd86b'/><stop offset='100%' stop-color='%23ff6a00'/></linearGradient></defs><path fill='url(%23g)' d='M13.5 2.5c.6 2.9-1 4.2-2.4 5.6-1.1 1.1-2.1 2.1-2.1 3.8 0 2.5 2 4.6 4.6 4.6 2.7 0 4.9-2.2 4.9-4.9 0-3.3-2.7-5.8-5-9.1zM9.8 14.4c0 1.7 1.4 3.1 3.1 3.1s3.1-1.4 3.1-3.1c0-1.1-.6-2.1-1.5-3.2-.4 1.1-1.5 2.1-2.6 2.1-.9 0-1.6-.3-2.1-.9 0 .7 0 1.2 0 2z'/></svg>");
}
/* Optional: smaller icon on tiny screens to keep things tidy */
@media (max-width: 420px) {
.tv-cta__btn::after { width: 24px; height: 24px; }
/* Add a flame icon via CSS so we don’t need inline <svg> in wikitext */
.tv-cta__btn::after {
content: "";
width: 28px;
height: 28px;
margin-left: auto; /* push icon to the right edge */
flex-shrink: 0;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
/* Inline SVG as a data URI. If your wiki blocks data URIs, swap to a PNG (see below). */
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><linearGradient id='g' x1='0' x2='1' y1='0' y2='1'><stop offset='0%' stop-color='%23ffd86b'/><stop offset='100%' stop-color='%23ff6a00'/></linearGradient></defs><path fill='url(%23g)' d='M13.5 2.5c.6 2.9-1 4.2-2.4 5.6-1.1 1.1-2.1 2.1-2.1 3.8 0 2.5 2 4.6 4.6 4.6 2.7 0 4.9-2.2 4.9-4.9 0-3.3-2.7-5.8-5-9.1zM9.8 14.4c0 1.7 1.4 3.1 3.1 3.1s3.1-1.4 3.1-3.1c0-1.1-.6-2.1-1.5-3.2-.4 1.1-1.5 2.1-2.6 2.1-.9 0-1.6-.3-2.1-.9 0 .7 0 1.2 0 2z'/></svg>");
}
@media (max-width: 420px) {
.tv-cta__btn::after { width: 24px; height: 24px; }
}
}